/* אקי — the landing page (index.html). The page is the first session: Aki asks, the
   visitor answers in the page, and their real target builds beside it. Same
   world as the rest of the site: white, one green that draws and fills,
   near-black ink, Secular One for Aki's voice, Assistant for everything said
   back and every figure. No shadow, no gradient, no second hue. */

@font-face {
  font-family: 'Secular One';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/secular-one-400-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Secular One';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/secular-one-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Assistant';
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/assistant-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Assistant';
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/assistant-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #ffffff;
  --ink: #0b1410;
  --green: #00a884;
  --green-deep: #008069;
  --hair: rgba(0, 128, 105, 0.22);
  --rule: rgba(0, 128, 105, 0.12);
  --wash: rgba(0, 168, 132, 0.08);
  /* The chat itself wears WhatsApp's colours: the beige wall, the pale green "me" bubble. */
  --chat-wall: #efeae2;
  --chat-me: #d9fdd3;
  --chat-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  --display: "Secular One", sans-serif;
  --data: "Assistant", -apple-system, "Segoe UI", sans-serif;
  --cell: 24px;
  --gut: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--green-deep) var(--paper); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--green-deep); border-radius: 10px; border: 2px solid var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--data);
  font-size: 17px;
  line-height: 1.55;
  accent-color: var(--green-deep);
  caret-color: var(--green-deep);
}
::selection { background: var(--green); color: var(--ink); }
a { color: var(--green-deep); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; border-radius: 4px; }
p { margin: 0; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: var(--gut); }

/* ── top ───────────────────────────────────────────────────────────────── */

.top { border-bottom: 1px solid var(--hair); }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.wordmark { font-family: var(--display); font-size: 1.625rem; color: var(--green-deep); text-decoration: none; line-height: 1; }
.wordmark--small { font-size: 1.25rem; }
.top__login {
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
  background: var(--green-deep);
  border-radius: 999px;
  padding: 9px 22px;
  transition: background 120ms ease-out, color 120ms ease-out;
}
.top__login:hover { color: var(--ink); background: var(--green); }

/* ── type ──────────────────────────────────────────────────────────────── */

.opener-row { display: flex; align-items: flex-start; gap: clamp(14px, 2.4vw, 28px); }
.face {
  flex: none;
  width: clamp(68px, 10vw, 132px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green);
}
.opener {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.375rem, 5.2vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 15ch;
}
.headline {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.875rem, 4.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede { font-size: 1.1875rem; line-height: 1.5; max-width: 46ch; color: var(--ink); }
.intake__say .lede { margin-top: 20px; }
@media (min-width: 720px) { .intake__say .lede { margin-inline-start: calc(clamp(68px, 10vw, 132px) + clamp(14px, 2.4vw, 28px)); } }

/* ── the intake ────────────────────────────────────────────────────────── */

.intake { padding-block: clamp(28px, 4.5vw, 56px) clamp(48px, 7vw, 96px); }
.intake__grid {
  display: grid;
  gap: 28px;
  grid-template-areas: "say" "session" "target";
}
.intake__say { grid-area: say; }
.try { grid-area: session; }
.target { grid-area: target; }
/* On a computer the chat and the target sit side by side, the same height. The
   chat has a fixed height, so the composer never scrolls out of its window. */
@media (min-width: 960px) {
  .intake__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "say say" "label ." "session target";
    column-gap: clamp(24px, 3vw, 40px);
    row-gap: 0;
  }
  .intake__say { margin-bottom: 36px; }
  .try { display: contents; }
  .try__label { grid-area: label; }
  .session { grid-area: session; height: clamp(460px, calc(100svh - 120px), 580px); }
  .session .thread { max-height: none; min-height: 0; }
  .target { display: flex; flex-direction: column; }
  .target__body { flex: 1; align-content: start; }
}

/* The intake is a WhatsApp chat window, the same one the phone further down
   shows: grey header with Aki's face, the wall, the input bar at the bottom.
   The label above says out loud that it is live and theirs to type into. */
.try__label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; font-weight: 600; line-height: 1.35; }
.try__tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 14px; border-radius: 999px; background: var(--green-deep); color: var(--paper); font-weight: 800; font-size: 0.9375rem; }
.try__tag i { width: 8px; height: 8px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); animation: live 2s ease-out infinite; }
@keyframes live { 70%, 100% { box-shadow: 0 0 0 7px rgba(37, 211, 102, 0); } }
@media (prefers-reduced-motion: reduce) { .try__tag i { animation: none; } }

.session {
  --wa-bar: #f0f2f5;
  --wa-meta: #667781;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(11, 20, 26, 0.12);
  border-radius: var(--radius);
  background: var(--chat-wall);
  box-shadow: 0 28px 56px -32px rgba(11, 20, 16, 0.4), 0 2px 6px -2px rgba(11, 20, 16, 0.08);
}
/* While the phone keyboard is up, the window is exactly what is left above it (set in landing.js). */
.session[data-fit] { height: var(--fit); }
.session[data-fit] .thread { min-height: 0; max-height: none; }
.session__head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--wa-bar); border-bottom: 1px solid rgba(11, 20, 26, 0.08); }
.session__face { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.session__who { display: grid; min-width: 0; line-height: 1.25; }
.session__who b { font-size: 1.0625rem; }
.session__step { font-size: 0.8125rem; font-weight: 500; color: var(--wa-meta); }
.session__skip {
  margin-inline-start: auto;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--green-deep);
  background: none;
  border: 0;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: end;
  line-height: 1.3;
  cursor: pointer;
}
.session__skip:hover { color: var(--ink); }

/* The thread: Aki on the start side, their answers on the end, as in WhatsApp. */
.thread {
  list-style: none;
  flex: 1 1 auto;
  margin: 0;
  padding: 16px clamp(12px, 2vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 240px;
  max-height: min(520px, 58vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--hair) transparent;
}
.thread::-webkit-scrollbar { width: 6px; }
.thread::-webkit-scrollbar-track { background: transparent; }
.thread::-webkit-scrollbar-thumb { background: var(--hair); border: 0; }
.msg { max-width: 86%; font-size: 1.0625rem; line-height: 1.45; }
.msg--aki {
  align-self: flex-start;
  background: var(--paper);
  border-radius: var(--radius);
  border-start-start-radius: 4px;
  box-shadow: var(--chat-shadow);
  padding: 8px 12px;
}
.msg--me + .msg--aki, .msg--aki + .msg--me { margin-top: 4px; }
.msg--me { align-self: flex-end; }
.msg__mine {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  text-align: start;
  color: var(--ink);
  background: var(--chat-me);
  border: 0;
  border-radius: var(--radius);
  border-start-end-radius: 4px;
  box-shadow: var(--chat-shadow);
  padding: 8px 12px;
}
.msg__edit { cursor: pointer; }
.msg__edit .icon { width: 16px; height: 16px; opacity: 0.5; transition: opacity 120ms ease-out; }
.msg__edit:hover .icon, .msg__edit:focus-visible .icon { opacity: 1; }
.thread > .msg:not(.msg--typing) { animation: land 280ms var(--ease) both; }
/* Aki typing: three dots that rise in turn. */
.msg--typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 14px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; opacity: 0.35; animation: dot 1.1s ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: 0.35; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .msg--typing i { animation: none; opacity: 0.6; } }
@keyframes land { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

.session__back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--green-deep);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}
.session__back .icon { width: 18px; height: 18px; }
.session__back:hover { color: var(--ink); }

/* What they type into, under the thread. */
.ask { padding: 10px clamp(10px, 1.6vw, 16px); background: var(--wa-bar); border-top: 1px solid rgba(11, 20, 26, 0.08); }
.composer { display: flex; align-items: flex-end; gap: 8px; }
.composer__field {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 18px;
  border: 2px solid var(--green-deep);
  border-radius: 27px;
  background: var(--paper);
  cursor: text;
}
.composer__field:focus-within { border-color: var(--green); }
.composer input, .composer textarea {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 12px 0;
}
.composer textarea { resize: none; max-height: 160px; overflow-y: auto; }
.composer input::placeholder, .composer textarea::placeholder { color: #54656f; opacity: 1; font-weight: 500; font-size: 1rem; }
.composer input:focus, .composer textarea:focus { outline: none; }
.composer--hold .composer__field { color: #54656f; font-weight: 600; border-color: rgba(11, 20, 26, 0.18); cursor: default; }
.composer--hold .send { opacity: 0.35; cursor: default; }
.composer__unit { font-size: 1rem; font-weight: 700; color: var(--green-deep); }
.send {
  flex: none;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--paper);
  background: var(--green);
  cursor: pointer;
  transition: background 120ms ease-out;
}
.send:hover { background: var(--green-deep); }
/* The arrow points the way the conversation reads. */
.send__icon { width: 24px; height: 24px; fill: currentColor; transform: scaleX(-1); }

.choices { display: grid; gap: 8px; width: 100%; }
@media (min-width: 560px) { .choices--2 { grid-template-columns: 1fr 1fr; } }
.choice {
  font: inherit;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.25;
  text-align: start;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--green-deep);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-height: 64px;
  cursor: pointer;
  transition: background 120ms ease-out, color 120ms ease-out;
}
.choice small { display: block; font-weight: 500; font-size: 0.9375rem; color: var(--green-deep); margin-top: 2px; }
.choice:hover { background: var(--wash); }
.choice:active { background: var(--green); }
.choice--was { background: var(--wash); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 28px;
  font: inherit;
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
  color: var(--paper);
  background: var(--green-deep);
  border: 2px solid var(--green-deep);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 120ms ease-out, color 120ms ease-out, border-color 120ms ease-out;
}
.btn:hover { background: var(--green); border-color: var(--green); color: var(--ink); }
.btn--ghost { background: var(--paper); color: var(--green-deep); }
.btn--ghost:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--paper); }
.btn--paper { background: var(--paper); border-color: var(--paper); color: var(--green-deep); }
.btn--paper:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }


/* The answer: the number and what to do with it. */
.verdict { padding-top: 6px; animation: land 420ms var(--ease) both; }
.verdict__say { font-family: var(--display); font-size: clamp(1.625rem, 3.2vw, 2.25rem); line-height: 1.1; margin-bottom: 8px; }
.verdict__more { max-width: 54ch; margin-bottom: 20px; }
.verdict__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.verdict__redo { font: inherit; font-weight: 600; color: var(--green-deep); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 0; }
.verdict__fine { margin-top: 16px; font-size: 0.875rem; color: var(--green-deep); max-width: 60ch; }

/* ── the target card ───────────────────────────────────────────────────── */

.target { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--green); background: var(--paper); }
.target__head {
  background: var(--green);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.target__sample { font-family: var(--data); font-size: 0.8125rem; font-weight: 800; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 10px; }
.target__body { padding: 20px; display: grid; gap: 16px; }
.target__empty { display: grid; gap: 14px; padding-block: 6px; }
.target__waiting { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.1; color: var(--ink); }
.pips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pips i { height: 10px; border-radius: 5px; background: var(--rule); transition: background 240ms var(--ease); }
.pips i.on { background: var(--green); }
.figure__n { font-size: clamp(3rem, 6vw, 4.25rem); font-weight: 800; line-height: 1; color: var(--green-deep); display: flex; align-items: baseline; gap: 8px; }
.target__empty { display: grid; gap: 14px; padding-block: 6px; }
.target__waiting { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.1; color: var(--ink); }
.figure--small .figure__n { font-size: 2.25rem; color: var(--ink); }
.figure__n small { font-size: 1rem; font-weight: 700; color: var(--green-deep); }
.figure__l { font-weight: 700; font-size: 0.9375rem; color: var(--green-deep); }
.figure.is-live .figure__n .num { color: var(--green-deep); }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.facts li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.facts li:nth-child(odd) { padding-inline-end: 12px; }
.facts li:nth-child(even) { padding-inline-start: 12px; border-inline-start: 1px solid var(--rule); }
.facts span { color: var(--green-deep); }
.facts b { font-weight: 800; }
.facts b.empty { color: var(--hair); font-weight: 400; }
.target__note { font-size: 0.875rem; color: var(--green-deep); }

/* On a phone the card sits below the session; the dock keeps the number in sight. */
.dock {
  position: fixed;
  inset-inline: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: var(--green);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  animation: land 320ms var(--ease) both;
}
.dock span { font-weight: 700; margin-inline-end: auto; }
@media (min-width: 960px) { .dock { display: none !important; } }

/* ── after: the day in WhatsApp ────────────────────────────────────────── */

section + section { border-top: 1px solid var(--hair); }
.after, .tone, .straight { padding-block: clamp(56px, 8vw, 112px); }
.after__grid { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .after__grid { grid-template-columns: minmax(0, 1fr) auto; } }
.beats { list-style: none; margin: 28px 0 0; padding: 0; max-width: 480px; }
.beats li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 12px; padding-block: 12px; border-top: 1px solid var(--rule); }
.beats li:last-child { border-bottom: 1px solid var(--rule); }
.beats li > span:first-child { font-weight: 800; color: var(--green-deep); }

.bubble { max-width: 46ch; padding: 10px 14px; border-radius: var(--radius); line-height: 1.45; }
.bubble--aki { background: var(--paper); border: 1px solid var(--hair); border-start-start-radius: 4px; }
.bubble--me { background: var(--chat-me); box-shadow: var(--chat-shadow); color: var(--ink); font-weight: 600; justify-self: end; border-start-end-radius: 4px; display: inline-flex; align-items: center; gap: 10px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aside-note { margin-top: 16px; font-size: 0.875rem; color: var(--green-deep); }

/* The sample day lives in a phone: an iPhone body around a WhatsApp chat, so the
   promise "I live in your WhatsApp" is shown, not described. Physical left/right
   below are deliberate: the page is always RTL, and the frame is a picture. */
.phone {
  --wa-bar: #f6f6f6;
  --wa-meta: #667781;
  position: relative; justify-self: center; width: min(100%, 372px); margin: 0; padding: 11px;
  border-radius: 58px; background: #101614;
  box-shadow: inset 0 0 0 1.5px #3a423e, inset 0 0 0 4px #101614, 0 40px 80px -30px rgba(11, 20, 16, 0.45), 0 12px 24px -12px rgba(11, 20, 16, 0.25);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: #2a312e; }
.phone::before { right: -3px; top: 190px; height: 90px; }
.phone::after { left: -3px; top: 160px; height: 120px; box-shadow: 0 -60px 0 -18px #2a312e; }
.phone__screen { position: relative; display: flex; flex-direction: column; aspect-ratio: 393 / 852; border-radius: 47px; overflow: hidden; background: var(--chat-wall); font-size: 15px; isolation: isolate; }

.phone__status { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 4px 30px 0; background: var(--wa-bar); font-weight: 700; font-size: 15px; }
.phone__island { position: absolute; top: 11px; left: 50%; width: 104px; height: 30px; margin-left: -52px; border-radius: 20px; background: #000; }
.phone__sys { display: flex; align-items: center; gap: 5px; direction: ltr; }
.phone__sys svg { display: block; height: 11px; fill: currentColor; }
.phone__home { position: absolute; bottom: 8px; left: 50%; width: 128px; height: 5px; margin-left: -64px; border-radius: 3px; background: var(--ink); }

.wa__bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 12px 8px; background: var(--wa-bar); border-bottom: 1px solid rgba(11, 20, 26, 0.08); }
.wa__bar svg, .wa__input svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa__back { color: var(--green-deep); }
.wa__face { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.wa__who { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.wa__who b { font-size: 16px; }
.wa__who span { font-size: 12.5px; color: var(--wa-meta); }
.wa__act { margin-inline-start: 10px; }

.wa__chat { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; list-style: none; margin: 0; padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.wa__chat::-webkit-scrollbar { display: none; }
.wa__day { align-self: center; margin-block: 8px 6px; padding: 4px 12px; border-radius: 8px; background: var(--paper); box-shadow: var(--chat-shadow); font-size: 12.5px; font-weight: 600; color: var(--wa-meta); }
.wa__chat .bubble { position: relative; display: flow-root; max-width: 84%; padding: 6px 9px 7px; border: 0; border-radius: 8px; box-shadow: var(--chat-shadow); line-height: 1.38; font-weight: 400; }
.wa__chat .bubble--aki { align-self: flex-start; background: var(--paper); }
.wa__chat .bubble--me { align-self: flex-end; background: var(--chat-me); }
.wa__chat .bubble--tail + .bubble--tail { margin-top: 4px; }
.wa__chat .bubble--aki.bubble--tail { border-top-right-radius: 0; }
.wa__chat .bubble--me.bubble--tail { border-top-left-radius: 0; }
.wa__chat .bubble--tail::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; background: inherit; }
.wa__chat .bubble--aki.bubble--tail::before { right: -8px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.wa__chat .bubble--me.bubble--tail::before { left: -8px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.wa__text { white-space: pre-line; }
.wa__time { float: left; display: inline-flex; align-items: center; gap: 3px; margin: 8px 12px -3px 0; font-size: 11px; line-height: 1; color: var(--wa-meta); }
.wa__ticks { width: 16px; height: 11px; fill: none; stroke: #53bdeb; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wa__photo { display: inline-flex; align-items: center; gap: 8px; }
.wa__photo .icon { color: var(--green-deep); }

.wa__chat .bubble--doc { width: 250px; padding: 4px 4px 7px; }
.doc { display: block; overflow: hidden; border-radius: 6px; background: #f5f6f6; color: var(--ink); text-decoration: none; }
.doc img { display: block; width: 100%; height: 132px; object-fit: cover; object-position: top; border-bottom: 1px solid rgba(11, 20, 26, 0.08); }
.doc__row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; }
.doc__pdf { flex: none; display: grid; place-items: center; width: 30px; height: 36px; border-radius: 4px; background: #e5534b; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.04em; }
.doc__name { display: grid; min-width: 0; line-height: 1.25; }
.doc__name b { font-size: 14px; font-weight: 600; }
.doc__name span { font-size: 12px; color: var(--wa-meta); }
.doc:hover .doc__name span { color: var(--green-deep); text-decoration: underline; }
.bubble--doc .wa__time { margin-inline-end: 6px; }

/* The sample day plays as the page scrolls (landing.js adds .is-scrub): the
   phone is pinned for a stretch of page, each part of it brings in the next
   message, newest at the bottom, and nothing scrolls inside the phone, so a
   thumb on it always scrolls the page. Without the script the chat scrolls. */
.after__track { position: relative; }
.after.is-scrub .after__track { height: calc(100svh + 7 * 18svh); }
.after.is-scrub .after__stick { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
.after.is-scrub .phone { width: min(100%, 372px, calc((100svh - 40px) * 393 / 852 + 22px)); }
.after.is-scrub .wa__chat { overflow: hidden; justify-content: flex-end; }
.after.is-scrub .wa__chat > li:not(.is-in) { display: none; }
/* landing.js moves the messages in (glide): the new one rises, the rest slide up. */
@media (min-width: 900px) {
  .after.is-scrub .after__grid { align-items: start; }
  .after.is-scrub .after__say { position: sticky; top: max(24px, calc(50svh - 250px)); }
  .after.is-scrub .beats li { opacity: 0.4; transition: opacity 240ms ease-out; }
  .after.is-scrub .beats li.is-now { opacity: 1; }
}

.wa__input { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 14px 28px; background: var(--wa-bar); border-top: 1px solid rgba(11, 20, 26, 0.08); color: var(--ink); }
.wa__field { flex: 1; height: 34px; display: flex; align-items: center; padding-inline: 14px; border-radius: 18px; background: var(--paper); border: 1px solid rgba(11, 20, 26, 0.1); color: #8696a0; font-size: 15px; }

/* ── tone ──────────────────────────────────────────────────────────────── */

.tone__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .tone__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.switch { margin-top: 28px; display: inline-grid; grid-auto-flow: column; border: 2px solid var(--green-deep); border-radius: var(--radius-sm); overflow: hidden; }
.switch button { font: inherit; font-weight: 800; padding: 12px 20px; background: var(--paper); color: var(--green-deep); border: 0; cursor: pointer; transition: background 120ms ease-out, color 120ms ease-out; }
.switch button + button { border-inline-start: 2px solid var(--green-deep); }
.switch button[aria-checked="true"] { background: var(--green-deep); color: var(--paper); }
.switch button:hover:not([aria-checked="true"]) { background: var(--wash); }
.tone__chat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: start; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--chat-wall); }
.tone__chat .bubble--aki { border-color: transparent; box-shadow: var(--chat-shadow); }
.tone__chat > .bubble--me { grid-column: 1 / -1; }
.tone__face { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green); grid-column: 1; }
.tone__chat .bubble--aki { grid-column: 2; }
.tone__chat .bubble--aki { animation: land 300ms var(--ease) both; font-size: 1.0625rem; }

/* ── straight ──────────────────────────────────────────────────────────── */

.straight__grid { display: grid; gap: 20px clamp(28px, 5vw, 64px); margin-top: 28px; }
@media (min-width: 820px) { .straight__grid { grid-template-columns: 1fr 1fr; } }
.straight__grid p { max-width: 56ch; }
.straight__grid b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.375rem; color: var(--green-deep); margin-bottom: 6px; }

/* ── safe: what happens to what they write ─────────────────────────────── */

/* The proof is a WhatsApp chat list where only Aki's row can be read: the
   other chats are theirs, and Aki has no way to see them. */
.safe { padding-block: clamp(56px, 8vw, 112px); }
.safe__grid { display: grid; gap: 28px clamp(36px, 6vw, 72px); grid-template-areas: "say" "seen" "body"; }
@media (min-width: 900px) {
  .safe__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); grid-template-areas: "say seen" "body seen"; align-items: start; }
  .seen { position: sticky; top: 96px; }
}
.safe__say { grid-area: say; }
.safe__body { grid-area: body; }
.safe__points { list-style: none; margin: 0; padding: 0; }
.safe__points li { padding-block: 16px; border-top: 1px solid var(--rule); max-width: 60ch; }
.safe__points li:last-child { border-bottom: 1px solid var(--rule); }
.safe__points b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1.25; color: var(--green-deep); margin-bottom: 4px; }
.safe__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; font-weight: 700; color: var(--green-deep); text-underline-offset: 4px; }
.safe__more::after { content: "←"; margin-inline-start: 8px; }

.seen { grid-area: seen; margin: 0; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.seen__bar { padding: 14px 16px; background: #f0f2f5; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
.seen__list { list-style: none; margin: 0; padding: 0; }
.seen__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.seen__face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #dfe5e7; }
.seen__text { display: grid; min-width: 0; line-height: 1.3; }
.seen__text > span { color: #667781; font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seen__time { align-self: start; padding-top: 4px; color: #667781; font-size: 0.75rem; }
.seen__row--aki { background: var(--wash); }
.seen__row--aki .seen__time { color: var(--green-deep); font-weight: 700; }
/* Their other chats: present, and unreadable to Aki. */
.seen__row--off .seen__text, .seen__row--off .seen__time { filter: blur(5px); user-select: none; }
.seen__row--off { opacity: 0.7; }
.seen__cap { padding: 14px 16px; font-weight: 700; color: var(--green-deep); }

/* ── start: the same sign-up door at the foot of each section ───────────── */

/* Its own line, so it never reads as a fourth option beside the tone switch. */
.cta { display: flex; width: fit-content; margin-top: 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
.cta-row .cta, .cta-row .safe__more { margin-top: 0; }
.cta--hero { margin-top: 24px; min-height: 48px; padding: 0 22px; }
@media (min-width: 720px) { .cta--hero { margin-inline-start: calc(clamp(68px, 10vw, 132px) + clamp(14px, 2.4vw, 28px)); } }
/* On a phone the first screen belongs to Aki's first question; the button would push it down. */
@media (max-width: 559px) { .cta--hero { display: none; } }

/* ── close ─────────────────────────────────────────────────────────────── */

.close { background: var(--green); padding-block: clamp(64px, 9vw, 120px); text-align: center; border-top: 0 !important; }
.close__title { margin: 0 0 28px; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -0.025em; }
.close__note { margin-top: 16px; font-weight: 600; }

.foot { border-top: 1px solid var(--hair); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; min-height: 64px; color: var(--green-deep); font-size: 0.9375rem; padding-bottom: 88px; }
@media (min-width: 960px) { .foot__in { padding-bottom: 0; } }

/* Phones first: the question stays in the first screen, controls are thumb-sized. */
@media (max-width: 559px) {
  body { font-size: 16px; }
  .intake { padding-top: 20px; }
  .intake__grid { gap: 20px; }
  .lede { font-size: 1.0625rem; }
  .session__head { padding: 8px 12px; gap: 10px; }
  .session__face { width: 36px; height: 36px; }
  .thread { padding: 12px 10px; min-height: 180px; max-height: 52vh; }
  .msg { max-width: 90%; font-size: 1rem; }
  .btn { padding: 0 20px; }
  .beats li { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 10px; }
  .phone { padding: 9px; border-radius: 52px; }
  .phone__screen { border-radius: 43px; }
  .switch { width: 100%; grid-auto-columns: 1fr; }
  .switch button { padding: 12px 8px; }
  .tone__face { width: 44px; height: 44px; }
}

.foot__links { display: flex; gap: 20px; }
.foot__links a { font-weight: 600; }
.foot__legal { flex-basis: 100%; margin: 0; padding-bottom: 16px; font-size: 0.8125rem; opacity: 0.75; }

/* ── legal pages (privacy.html, terms.html) ────────────────────────────── */

.legal { max-width: 72ch; padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.legal .title { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
.legal .note { color: var(--green-deep); font-size: 0.9375rem; margin-bottom: 28px; }
.legal h2 { margin: 32px 0 8px; font-family: var(--display); font-weight: 400; font-size: 1.375rem; line-height: 1.2; color: var(--green-deep); }
.legal p, .legal ul { margin: 0 0 16px; }
.legal ul { padding-inline-start: 1.25em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--green-deep); }
.legal + .foot .foot__in { padding-bottom: 0; }

/* security.html: the four-line summary above the detail. */
.legal .brief { list-style: none; padding: 0; margin: 24px 0 8px; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--wash); }
.legal .brief li { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.legal .brief li:last-child { border-bottom: 0; }
.legal .brief b { color: var(--green-deep); }

/* ── whoop ─────────────────────────────────────────────────────────────── */

.whoop { padding-block: clamp(56px, 8vw, 112px); }
.whoop__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .whoop__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.latin { direction: ltr; unicode-bidi: isolate; }
.whoop__points { list-style: none; margin: 24px 0 28px; padding: 0; }
.whoop__points li { padding-block: 14px; border-top: 1px solid var(--rule); max-width: 56ch; }
.whoop__points li:last-child { border-bottom: 1px solid var(--rule); }
.whoop__points b { font-family: var(--display); font-weight: 400; font-size: 1.1875rem; color: var(--green-deep); margin-inline-end: 4px; }
.whoop__fine { margin-top: 18px; font-size: 0.875rem; color: var(--green-deep); max-width: 60ch; }

.whoop__stage { display: grid; gap: 16px; padding: clamp(18px, 3vw, 32px); border-radius: var(--radius); background: var(--chat-wall); }

/* WHOOP's own marks, unmodified and in black, as the attribution their guidelines show (web/brand/README.md). */
.whoop__card { background: var(--paper); border-radius: var(--radius-sm); padding: 18px 20px 10px; }
.whoop__badge { display: flex; align-items: center; gap: 12px; }
.whoop__puck { width: 44px; height: 44px; flex: none; }
.whoop__by { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; color: var(--ink); }
.whoop__mark { height: 22px; width: auto; }
.pulse { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.pulse__trace { fill: none; stroke: var(--green); stroke-opacity: 0.35; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
/* At rest the comet is a short bright stretch over the beat; .is-live sends it along the line. */
.pulse__comet { fill: none; stroke: var(--green-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16 84; stroke-dashoffset: -38; }
.whoop__stage.is-live .pulse__comet { animation: comet 2.4s linear infinite; }
@keyframes comet { from { stroke-dashoffset: 16; } to { stroke-dashoffset: -84; } }

.reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.reads div { background: var(--paper); border-radius: var(--radius-sm); padding: 10px 12px; }
.reads dt { font-size: 0.875rem; font-weight: 700; color: var(--green-deep); }
.reads dd { margin: 2px 0 0; display: flex; align-items: baseline; gap: 0.35em; }
.reads .num { font-weight: 800; font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.reads small { font-size: 0.9375rem; font-weight: 700; color: var(--green-deep); }

.whoop__chat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: start; }
.whoop__chat .bubble { font-size: 1.0625rem; }
.whoop__chat .bubble--aki { grid-column: 2; border-color: transparent; box-shadow: var(--chat-shadow); }
.whoop__chat .bubble--me { grid-column: 1 / -1; }
.whoop__chat .tone__face { grid-row: 1; }
.whoop__stage.is-live [data-land] { animation: land 360ms var(--ease) both; }
.whoop__stage.is-live [data-land]:nth-of-type(2) { animation-delay: 900ms; }
.whoop__stage.is-live [data-land]:nth-of-type(3) { animation-delay: 1800ms; }

@media (prefers-reduced-motion: reduce) {
  .whoop__stage.is-live .pulse__comet, .whoop__stage.is-live [data-land] { animation: none; }
}
@media (max-width: 559px) {
  .reads { gap: 8px; }
  .reads div { padding: 8px 10px; }
}
.whoop__chat .bubble--me { display: block; justify-self: end; }
.whoop__fine .latin { white-space: nowrap; }
