/* =========================================================================
   Alakai — marketing site
   Design system translated from the app (KeelColors / KeelType in the Android source).
   Dark, quiet, keel-orange-accented. Serif for voice, sans for UI, mono labels.
   ========================================================================= */

:root {
  /* Surfaces (from KeelColors) */
  --bg: #0B0C0A;
  --bg-alt: #101210;
  --surface: #1B1E19;
  --surface-2: #181B16;
  --chip: #262B24;
  --user-bubble: #272C24;

  /* Ink */
  --text: #E9ECE6;
  --coach-text: #DFE3D8;
  --secondary: #C6CBBF;
  --muted: #A8AE9F;
  --faint: #6D7368;

  /* Brand */
  --accent: #FE9E32;         /* keel orange */
  --accent-ink: #0D203E;     /* logo navy — reads on the orange */
  --navy: #0D203E;
  --amber: #D3BB92;
  --danger: #E5736B;

  /* Lines & washes */
  --border: rgba(233, 236, 230, 0.10);
  --border-2: rgba(233, 236, 230, 0.16);
  --accent-wash: rgba(254, 158, 50, 0.10);
  --accent-wash-2: rgba(254, 158, 50, 0.18);

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Radii */
  --r-pill: 999px;
  --r-card: 20px;
  --r-md: 16px;
  --r-sm: 12px;

  /* Layout */
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 32px);

}

/* ------------------------------- Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
button { font: inherit; }

::selection { background: var(--accent-wash-2); color: var(--text); }

/* --------------------------- Accessibility ---------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-pill);
  font-weight: 600; text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------ Layout -------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(64px, 10vw, 128px); position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.measure { max-width: 720px; }
.measure-lg { max-width: 820px; }
.center-block { margin-inline: auto; }
.center { text-align: center; }
.center.lead, .lead.center { margin-inline: auto; }

/* ---------------------------- Typography ------------------------------ */
.overline {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.overline--accent { color: var(--accent); }

.statement {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 24px;
  text-wrap: balance;
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 18px;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--secondary);
  margin-bottom: 18px;
  max-width: 62ch;
}
.lead.center { max-width: 64ch; }
.lead:last-child { margin-bottom: 0; }

.ink { color: var(--accent); }

.section__head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__head .lead { margin-inline: auto; }

.footnote {
  text-align: center;
  font-size: 12.5px;
  color: var(--faint);
  max-width: 620px;
  margin: 26px auto 0;
  line-height: 1.6;
}

/* ------------------------------ Buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(254, 158, 50, 0.55); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: rgba(233, 236, 230, 0.06); border-color: var(--border-2); }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

/* -------------------------------- Nav --------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav[data-scrolled] {
  background: rgba(11, 12, 10, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 20px; height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; border-radius: 8px; }
.brand__word {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 21px; letter-spacing: 0.01em; color: var(--text);
}

.nav__links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .18s ease; }
.nav__links a:hover { color: var(--text); }
.nav .btn--primary { margin-left: 4px; }

/* -------------------------------- Hero -------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 96px) clamp(56px, 9vw, 112px); }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(254, 158, 50, 0.16), transparent 70%),
    radial-gradient(50% 45% at 10% 0%, rgba(13, 32, 62, 0.35), transparent 70%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center; min-height: min(78vh, 720px);
}
.hero__copy { max-width: 620px; }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.02;
  letter-spacing: -0.025em; color: var(--text);
  margin-bottom: 22px; text-wrap: balance;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.5vw, 1.24rem); line-height: 1.6;
  color: var(--secondary); max-width: 34em; margin-bottom: 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__fine { font-size: 13.5px; color: var(--faint); line-height: 1.6; margin-top: 18px; }

/* Entrance animation for above-the-fold (no JS required) */
@keyframes riseIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero__copy { animation: riseIn .8s .05s both; }
.hero__device { animation: riseIn .9s .18s both; }
@media (prefers-reduced-motion: reduce) {
  .hero__copy, .hero__device { animation: none; }
}

/* --------------------------- App screens ------------------------------ */
/* Real app screenshots: transparent PNGs that include the phone frame. */
.hero__device { display: flex; justify-content: center; }
.screen {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}
.screen--hero { width: min(300px, 74vw); }

.screens__head { text-align: center; margin: clamp(56px, 8vw, 88px) 0 28px; }
.screens__title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.2; color: var(--text); text-wrap: balance;
}
.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
.screens__item { margin: 0; }
.screens__item .screen { max-width: 260px; margin-inline: auto; aspect-ratio: 348 / 717; object-fit: contain; }
.screens__item figcaption {
  margin-top: 18px; text-align: center; font-size: 14.5px; line-height: 1.55; color: var(--muted);
  max-width: 240px; margin-inline: auto; text-wrap: balance;
}
.screens__step {
  display: block; margin-bottom: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
@media (max-width: 900px) { .screens { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }
/* Phones: a swipeable row instead of a tall stack. */
@media (max-width: 560px) {
  .screens {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screens__item { flex: 0 0 68%; scroll-snap-align: center; }
}

/* ------------------------------ Problem ------------------------------- */
.problem .measure-lg { margin-inline: auto; text-align: center; }
.problem .lead { margin-inline: auto; }

/* ------------------------------- Cards -------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 28px 26px;
  display: flex; flex-direction: column;
  transition: border-color .25s ease, transform .25s ease, background-color .25s ease;
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.card__icon {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--accent-wash); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 23px; height: 23px; }
.card__title { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: var(--text); margin-bottom: 12px; text-wrap: balance; }
.card__body { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.card__body em { color: var(--secondary); font-style: italic; }

/* ------------------------------ Quotes -------------------------------- */
.quotes .quote { margin: 0; }
.quote {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 28px 26px;
  display: flex; flex-direction: column;
}
.quote blockquote {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1.3;
  color: var(--text); margin-bottom: 18px; text-wrap: balance;
}
.quote figcaption { margin-top: auto; }
.quote__name { display: block; font-weight: 600; font-size: 15px; color: var(--text); }
.quote__note { display: block; font-size: 13px; color: var(--faint); line-height: 1.5; margin-top: 6px; }
.quote__src { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--accent); text-decoration: none; }
.quote__src:hover { text-decoration: underline; }

.callout {
  max-width: 860px; margin: 28px auto 0;
  background: linear-gradient(180deg, var(--accent-wash), transparent), var(--surface);
  border: 1px solid var(--accent-wash-2); border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 40px);
}
.callout p { font-size: 1.14rem; line-height: 1.6; color: var(--secondary); }
.callout p + p { margin-top: 14px; }
.callout a { color: var(--accent); text-underline-offset: 3px; }

/* ----------------------------- Comparison ----------------------------- */
.compare { margin-top: clamp(32px, 5vw, 48px); overflow-x: auto; }
.compare__table { width: 100%; min-width: 560px; max-width: 840px; margin-inline: auto; border-collapse: separate; border-spacing: 0; }
.compare__table th, .compare__table td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare__table thead th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border-2);
}
.compare__table tbody th[scope="row"] { text-align: left; color: var(--secondary); font-weight: 500; font-family: var(--sans); font-size: 15px; }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: none; }
.compare__brand { background: var(--accent-wash); }
.compare__table thead th.compare__brand { color: var(--accent); border-top-left-radius: var(--r-sm); border-top-right-radius: var(--r-sm); }
.compare__table tbody tr:last-child td.compare__brand { border-bottom-left-radius: var(--r-sm); border-bottom-right-radius: var(--r-sm); }
.mark { font-size: 16px; }
.mark--yes { color: var(--secondary); }
.mark--no { color: var(--faint); }
.mark--brand { color: var(--accent); font-weight: 700; }

/* --------------------------- Personalization -------------------------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split__copy .lead { max-width: 46ch; }
.fit-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px 26px; }
.fit-card__over { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.fit-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.fit-row:last-child { border-bottom: none; }
.fit-row span { color: var(--text); font-weight: 500; font-size: 15px; }
.fit-row em { font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--accent); }
.fit-row--muted span, .fit-row--muted em { color: var(--faint); }

/* ------------------------------ Studies ------------------------------- */
.studies { list-style: none; padding: 0; margin: 0 auto; max-width: 880px; display: flex; flex-direction: column; gap: 14px; }
.study {
  display: grid; grid-template-columns: 156px 1fr; gap: 24px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px;
}
.study__stat { display: flex; flex-direction: column; gap: 4px; padding-right: 20px; border-right: 1px solid var(--border); }
.study__num { font-family: var(--serif); font-size: 1.85rem; line-height: 1; color: var(--accent); }
.study__unit { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.study__title { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.study__body p { font-size: 15px; line-height: 1.6; color: var(--muted); margin-bottom: 10px; }
.study__body q { color: var(--secondary); font-style: italic; }
.study__cite { font-size: 13px; color: var(--faint); }
.study__cite cite { font-style: italic; }
.study__cite a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
.study__cite a:hover { text-decoration: underline; }

/* ----------------------------- Assurances ----------------------------- */
.problem, #privacy { text-align: center; }
#privacy .measure-lg { margin-inline: auto; }
#privacy .lead { margin-inline: auto; }
.assurances { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.assurances li { display: flex; align-items: center; gap: 10px; color: var(--secondary); font-size: 15px; }
.assurances__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }

/* ------------------------------ Waitlist ------------------------------ */
.waitlist { overflow: hidden; }
.waitlist__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(50% 60% at 50% 0%, rgba(254, 158, 50, 0.14), transparent 70%);
}
.waitlist .container { position: relative; z-index: 1; }
.waitlist__title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -0.02em; color: var(--text); margin-bottom: 18px; text-wrap: balance; }

.waitlist__form { max-width: 520px; margin: 30px auto 0; }
.field {
  display: flex; gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-pill); padding: 6px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.field input[type="email"] {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--sans); font-size: 16px; padding: 12px 16px;
}
.field input::placeholder { color: var(--faint); }
.field .btn { flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.waitlist__status { min-height: 20px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.waitlist__status.is-error { color: var(--danger); }
.waitlist__status.is-success { color: var(--accent); }
.waitlist__consent { margin: 20px auto 0; max-width: 470px; font-size: 13px; line-height: 1.6; color: var(--faint); }
.waitlist__consent a { color: var(--accent); text-underline-offset: 3px; }
.waitlist .hero__fine { text-align: center; }

/* ------------------------------- Footer ------------------------------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; background: var(--bg); }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer__brand { max-width: 300px; }
.footer__tag { font-family: var(--serif); font-style: italic; color: var(--faint); font-size: 15px; margin-top: 12px; }
.footer__links { display: flex; gap: 18px 26px; flex-wrap: wrap; align-items: center; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .18s ease; }
.footer__links a:hover { color: var(--text); }
.footer__base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; }

/* ----------------------- Prose (legal / 404) -------------------------- */
.prose { max-width: 720px; }
.prose h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 10px; }
.prose .meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 32px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--text); margin: 36px 0 12px; }
.prose p { color: var(--secondary); line-height: 1.7; margin-bottom: 16px; }
.prose ul { color: var(--secondary); line-height: 1.7; margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .lead { color: var(--text); }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: var(--text); margin: 24px 0 8px; }
.prose ol { color: var(--secondary); line-height: 1.7; margin: 0 0 16px; padding-left: 22px; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 88px; }

/* Legal pages: contents, summary box, data tables */
.legal-toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 18px 22px; margin: 8px 0 32px;
}
.legal-toc .overline { margin-bottom: 10px; }
.legal-toc ol { columns: 2 220px; column-gap: 28px; margin: 0; font-size: 14.5px; }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-toc a { color: var(--secondary); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }
.legal-summary {
  border-left: 3px solid var(--accent); background: var(--accent-wash);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 16px 20px; margin: 0 0 24px;
}
.legal-summary ul { margin-bottom: 0; }
.legal-table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--border); border-radius: var(--r-sm); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--secondary); }
.legal-table thead th { color: var(--text); font-weight: 600; background: var(--surface); }
.legal-table tbody th { color: var(--text); font-weight: 600; }
.legal-table tr:last-child td, .legal-table tr:last-child th { border-bottom: none; }
.legal-caps { text-transform: uppercase; letter-spacing: 0.01em; font-size: 14px; }

/* SMS page: sign-up box, exact message text, conversation mockup */
.sms-cta {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 20px 24px; margin: 8px 0 32px;
}
.sms-cta .overline { margin-bottom: 8px; }
.sms-cta .sms-cta__keyword { font-family: var(--serif); font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.25; color: var(--text); margin-bottom: 14px; }
.sms-cta__keyword strong { color: var(--accent); font-weight: 600; letter-spacing: 0.02em; }
.sms-cta__keyword a { color: var(--text); white-space: nowrap; }
.sms-num { white-space: nowrap; }
.sms-cta .sms-cta__terms { font-size: 14.5px; line-height: 1.6; margin-bottom: 0; }
.sms-quote {
  font-family: var(--mono); font-size: 13.5px; line-height: 1.55; color: var(--coach-text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 14px;
}
blockquote.sms-quote { display: block; margin: 10px 0 16px; }
.prose .sms-examples { list-style: none; padding-left: 0; }
.sms-examples .sms-quote { display: inline-block; }
.sms-thread { margin: 8px 0 32px; }
.sms-thread__phone {
  display: flex; flex-direction: column; gap: 8px; max-width: 360px; margin: 0 auto;
  background: var(--bg-alt); border: 1px solid var(--border-2); border-radius: 28px; padding: 16px 14px 22px;
}
.sms-thread .sms-thread__contact { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--border); margin: 0 0 4px; }
.sms-thread .sms-thread__gap { text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 6px 0; }
.sms-thread .sms-msg { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; margin: 0; }
.sms-thread .sms-msg--in { align-self: flex-start; background: var(--chip); color: var(--coach-text); border-bottom-left-radius: 6px; }
.sms-thread .sms-msg--out { align-self: flex-end; background: var(--accent); color: var(--accent-ink); font-weight: 600; border-bottom-right-radius: 6px; }
.sms-thread figcaption { max-width: 420px; margin: 12px auto 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--muted); }
.sms-thread figcaption a { color: var(--muted); }

/* Simple centered page (404) */
.center-page { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.center-page .btn { margin-top: 24px; }

/* ------------------------- Scroll reveal (JS) ------------------------- */
[data-reveal] { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
body.reveal [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(18px); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-reveal] { transition: none; }
}

/* ---------------------------- Responsive ------------------------------ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; min-height: 0; }
  .hero__copy { max-width: 640px; margin-inline: auto; }
  .hero__lede { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .split { grid-template-columns: 1fr; }
  .split__copy .lead { max-width: none; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav .btn--primary { margin-left: auto; }
  .study { grid-template-columns: 1fr; gap: 16px; }
  .study__stat { flex-direction: row; align-items: baseline; gap: 10px; padding-right: 0; padding-bottom: 14px; border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--4 { grid-template-columns: 1fr; }
  .field { flex-direction: column; background: transparent; border: none; padding: 0; gap: 12px; }
  .field:focus-within { box-shadow: none; }
  .field input[type="email"] { width: 100%; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-pill); padding: 15px 18px; }
  .field .btn { width: 100%; }
  .assurances { flex-direction: column; align-items: center; gap: 14px; }
  .footer__base { flex-direction: column; }
}

/* Comparison table → stacked cards on phones (keeps the Alakai column visible) */
@media (max-width: 600px) {
  .compare { overflow-x: visible; }
  .compare__table { min-width: 0; }
  .compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .compare__table, .compare__table tbody, .compare__table tr, .compare__table th, .compare__table td { display: block; width: 100%; }
  .compare__table tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px 16px 10px; margin-bottom: 12px; }
  .compare__table tbody th[scope="row"] { padding: 12px 0 8px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text); font-weight: 600; }
  .compare__table td { display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .compare__table tbody tr td:last-child { border-bottom: none; }
  .compare__table td::before { content: attr(data-label); color: var(--muted); font-size: 13.5px; }
  .compare__table td.compare__brand, .compare__brand { background: transparent; border-radius: 0; }
  .compare__table td.compare__brand::before { color: var(--accent); font-weight: 600; }
}

/* ======================================================================
   Additions for the plan/focus/reflect positioning
   ====================================================================== */

/* ------------------------- The loop (how it works) -------------------- */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.loop__step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 26px 24px;
  transition: border-color .25s ease, transform .25s ease;
}
.loop__step:hover { border-color: var(--border-2); transform: translateY(-3px); }
.loop__num { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.loop__title { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; color: var(--text); margin-bottom: 10px; text-wrap: balance; }
.loop__text { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.loop__text em { color: var(--secondary); font-style: italic; }

@media (max-width: 900px) { .loop { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .loop { grid-template-columns: 1fr; } }

/* ------------------- Comparison: before / after variant --------------- */
.compare--ba .compare__table { max-width: 760px; }
.compare--ba thead th, .compare--ba td { text-align: left; }
.compare--ba td { color: var(--muted); font-size: 14.5px; }
.compare--ba td.compare__brand { color: var(--text); font-weight: 500; }
.compare--ba thead th:first-child { width: 34%; }

@media (max-width: 600px) {
  .compare--ba td { display: flex; align-items: center; justify-content: space-between; }
}
