/* MORPH landing page.
   Tokens lifted from the app's Deep system (PRD 13) so the site and the product
   are visibly the same thing. One theme, one accent, one radius scale. */

:root {
  --deep:      #072531;   /* paper50, the screen */
  --deeper:    #04161e;   /* below the base, for the footer well */
  --raised:    #0E323C;   /* teal50 */
  --raised-2:  #143039;   /* paper200 */
  --line:      rgba(255,255,255,.10);
  --line-soft: rgba(255,255,255,.06);

  --accent:    #3DDBD9;   /* teal700, the only accent on this page */
  --on-accent: #04252E;   /* never white on the accent */
  --life:      #C6F04E;   /* sand600, used once, for the streak note */

  --text:      #EAF7F9;   /* ink900 */
  --muted:     #8FAAB4;   /* ink500 */
  --faint:     #4d6b76;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 28px;

  --max: 1180px;
  --display: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--deep);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The aura. Two soft radial pools, matching MorphAura in the app. Fixed and
   non-interactive so it never costs a repaint on scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 72% 8%,  rgba(61,219,217,.14), transparent 70%),
    radial-gradient(50% 40% at 12% 52%, rgba(21,65,75,.55),  transparent 72%);
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */

.nav {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 0;
  max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px;
  height: 72px;
}
.nav img { width: 34px; height: 34px; border-radius: 9px; }
.nav b { font-family: var(--display); font-size: 19px; letter-spacing: -.2px; }
.nav .spacer { flex: 1; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* ---------- hero: one full viewport, four items inside the fold ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100dvh - 72px);   /* dvh, never vh: the iOS address bar moves */
  padding: 8px 0 48px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.02; letter-spacing: -1.6px; margin: 0 0 16px; font-weight: 800;
}
.hero h1 span { color: var(--accent); }
.hero > .copy > p {
  font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 34ch;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 15px 8px 11px;
  font-size: 13.5px; color: var(--muted); margin-bottom: 20px;
}
.badge b { color: var(--text); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* The four items. Two by two so they sit in the fold beside the phone. */
.four-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px;
}
.four-list li { display: flex; gap: 13px; align-items: flex-start; }
.four-list b { display: block; font-family: var(--display); font-size: 16.5px; letter-spacing: -.2px; }
.four-list em { display: block; font-style: normal; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* Glyph wells. The gradient and inner highlight give them depth without
   pretending to be rendered objects, which is the honest version of this
   until real 3D icons exist. */
.glyph {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  color: var(--accent);
  background: linear-gradient(160deg, rgba(61,219,217,.16), rgba(61,219,217,.04));
  border: 1px solid rgba(61,219,217,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 16px rgba(0,0,0,.35);
}
.glyph svg { width: 21px; height: 21px; }

/* Caps the product shot so the whole fold fits without a scroll. min() against
   dvh rather than vh, because the iOS address bar changes vh mid-scroll. */
.hero-shot { max-height: min(72dvh, 620px); width: auto; display: block; }
.row .shot { max-height: 560px; width: auto; }
.row:not(.flip) .shot { margin-left: auto; }

/* The phone, with the pool clip masked into the otter ring. */
.phone { position: relative; margin-left: auto; width: fit-content; }
.phone .pool {
  position: absolute;
  left: 29.4%; top: 8.4%; width: 41.3%; height: 19.0%;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}

/* ---------- the four items: one band, typographic, not cards ---------- */

.four {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
  margin-bottom: 110px;
}
.four-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px;
}
.four-grid div { border-left: 2px solid var(--accent); padding-left: 18px; }
.four-grid h3 {
  font-family: var(--display); font-size: 20px; margin: 0 0 6px; letter-spacing: -.3px;
}
.four-grid p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- alternating feature rows ---------- */

.row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  margin-bottom: 120px;
}
.row.flip .copy { order: 2; }
.row h2 {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.06; letter-spacing: -1px; margin: 0 0 18px; font-weight: 800;
}
.row p { color: var(--muted); font-size: 18px; margin: 0 0 16px; max-width: 46ch; }
.row .kicker {
  font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; font-weight: 700;
}

/* ---------- refusals: two columns of text, no images ---------- */

.refuse {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 64px 56px;
  margin-bottom: 120px;
}
.refuse h2 {
  font-family: var(--display); font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -1px; margin: 0 0 12px; font-weight: 800; max-width: 20ch;
}
.refuse > p { color: var(--muted); max-width: 62ch; margin: 0 0 44px; font-size: 18px; }
.refuse-list { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 56px; }
.refuse-list h4 {
  font-family: var(--display); font-size: 19px; margin: 0 0 6px; letter-spacing: -.2px;
}
.refuse-list p { margin: 0; color: var(--muted); font-size: 16px; }
.refuse-list .no {
  color: var(--accent); font-weight: 700; margin-right: 8px;
}

/* ---------- closing ---------- */

.closing {
  text-align: center;
  padding: 40px 0 120px;
}
.closing img { width: 92px; margin: 0 auto 26px; }
.closing h2 {
  font-family: var(--display); font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -1.4px; margin: 0 0 16px; font-weight: 800;
}
.closing p { color: var(--muted); font-size: 19px; max-width: 44ch; margin: 0 auto 30px; }
.pill {
  display: inline-block;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--display); font-weight: 700; font-size: 17px;
  padding: 15px 30px; border-radius: 999px;
  text-decoration: none;
}
.pill.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.note { font-size: 14px; color: var(--faint); margin-top: 20px; }

/* ---------- footer ---------- */

.foot {
  background: var(--deeper);
  border-top: 1px solid var(--line-soft);
  padding: 44px 0;
  font-size: 14px; color: var(--faint);
}
.foot .wrap { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .spacer { flex: 1; }

/* ---------- entrance motion, motivated: it stages the reading order ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- mobile: every multi-column layout collapses explicitly ---------- */

@media (max-width: 900px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-bottom: 56px; min-height: 0; }
  .hero > .copy > p { max-width: none; }
  .hero-shot { max-height: 560px; margin: 0 auto; }
  .phone { margin: 0 auto; }
  .four-list { gap: 18px 20px; }
  .four { padding: 40px 0; margin-bottom: 72px; }
  .four-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .row { grid-template-columns: 1fr; gap: 36px; margin-bottom: 76px; }
  .row.flip .copy { order: 0; }
  .row .shot { max-width: 380px; }
  .refuse { padding: 40px 26px; margin-bottom: 76px; }
  .refuse-list { grid-template-columns: 1fr; gap: 26px; }
  .nav a.hide-sm { display: none; }
}
@media (max-width: 520px) {
  .four-grid { grid-template-columns: 1fr; }
  .four-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .phone .pool { display: none; }
}
