/* Ayumitra landing page. Tokens mirror design/tokens.json (the app's). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-standard-normal.woff2") format("woff2-variations");
  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: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-ext-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  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: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --canvas: #FAF7F2;
  --surface: #FFFFFF;
  --muted: #F3EEE6;
  --line: #E8E1D6;
  --line-strong: #D6CDBF;
  --ink: #1E2B28;
  --ink-soft: #5C6B66;
  --primary: #23574B;
  --primary-deep: #173F36;
  --primary-soft: #DCEBE5;
  --accent: #C98A2B;
  --alert: #A54A2A;
  --alert-soft: #F8E3DA;
  --alert-ink: #6E2C16;
  --on-dark: #F3EEE6;
  --on-dark-soft: #BFD0C9;
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
svg { display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-deep); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* ---- Header ------------------------------------------------------------- */
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { font-family: var(--display); font-size: 21px; font-weight: 600; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a:not(.header-cta) { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.header-nav a:not(.header-cta):hover { color: var(--ink); }
.header-cta {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600;
}
.header-cta:hover { color: var(--ink); background: var(--surface); }
@media (max-width: 760px) {
  .header-nav a:not(.header-cta) { display: none; }
}

/* ---- Shared pieces ------------------------------------------------------ */
.lede { margin: 0; font-size: 1.2rem; line-height: 1.5; color: var(--ink-soft); max-width: 32rem; }
.section-head { max-width: 40rem; margin-bottom: 44px; }
.section-head h2, .isnt h2, .download h2 {
  margin: 0; font-family: var(--display); font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.018em;
}
.section-head p { margin: 14px 0 0; font-size: 1.12rem; color: var(--ink-soft); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
/* Placeholder store buttons. Replace with the official badges (see README). */
.store {
  min-height: 56px; padding: 8px 22px 8px 18px; border-radius: 16px;
  background: var(--ink); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
}
.store:hover { color: #fff; background: var(--primary-deep); }
/* Before the app is in the stores: the same button, not a link, saying when. */
.store.is-soon { cursor: default; }
.store.is-soon:hover { background: var(--ink); }
.store.is-soon small { opacity: 0.85; }
.store strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; }
.store small { display: block; font-size: 12.5px; opacity: 0.75; line-height: 1.2; }

/* ---- Hero --------------------------------------------------------------- */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px;
  align-items: center; padding-block: 48px 104px;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.024em;
  max-width: 12ch;
}
.hero-note { margin: -6px 0 0; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-block: 24px 80px; }
}

/* The file: a person's papers, the readings her phone brought in, and an
   answer that points to both. Laid out on a 560 x 560 canvas whose unit
   (--u) scales with its width; narrower, the prescription goes. Papers
   are tilted; what comes from the app stands straight. */
.file { margin: 0; container-type: inline-size; }
.file-canvas {
  --u: calc(100cqw / 560);
  position: relative; aspect-ratio: 560 / 560; font-size: calc(13 * var(--u));
}
.paper {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: calc(6 * var(--u));
  box-shadow: 0 calc(14 * var(--u)) calc(30 * var(--u)) calc(-18 * var(--u)) rgba(30, 43, 40, 0.35);
}
.paper-rx {
  right: 0; top: 0; width: 35%; padding: calc(18 * var(--u)); transform: rotate(4deg); z-index: 1;
  background: #FFFDF8;
}
.rx-mark { display: block; font-family: var(--display); font-size: calc(26 * var(--u)); font-weight: 600; color: var(--primary); margin-bottom: calc(8 * var(--u)); }
.rx-line { margin: 0 0 calc(4 * var(--u)); font-size: calc(13 * var(--u)); color: #3B4A46; }
.rx-line b { font-weight: 600; color: var(--ink); }
.rx-sign { width: 70%; margin-top: calc(14 * var(--u)); }

.paper-lab {
  left: 1%; top: 7%; width: 62%; padding: calc(18 * var(--u)) calc(18 * var(--u)) calc(12 * var(--u));
  transform: rotate(-2.5deg); z-index: 2;
}
.lab-head { display: flex; justify-content: space-between; align-items: baseline; gap: calc(8 * var(--u)); border-bottom: 1px solid var(--line-strong); padding-bottom: calc(8 * var(--u)); }
.lab-title { font-family: var(--display); font-size: calc(17 * var(--u)); font-weight: 600; }
.lab-date { font-size: calc(11.5 * var(--u)); color: var(--ink-soft); }
.lab-patient { margin: calc(6 * var(--u)) 0 calc(8 * var(--u)); font-size: calc(11.5 * var(--u)); color: var(--ink-soft); }
.lab-table { width: 100%; border-collapse: collapse; font-size: calc(12 * var(--u)); }
.lab-table th { text-align: left; font-weight: 600; color: var(--ink-soft); padding: calc(4 * var(--u)) calc(4 * var(--u)); font-size: calc(11 * var(--u)); }
.lab-table td { padding: calc(5 * var(--u)) calc(4 * var(--u)); border-top: 1px solid var(--line); }
.lab-table .num { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; font-size: calc(13 * var(--u)); }
.lab-hit td { position: relative; }
.lab-hit { background-image: linear-gradient(var(--primary-soft), var(--primary-soft)); background-repeat: no-repeat; background-size: 0% 100%; }
.is-playing .lab-hit { animation: sweep 0.7s var(--ease) 0.25s forwards; }
.is-done .lab-hit { background-size: 100% 100%; }
@keyframes sweep { to { background-size: 100% 100%; } }
.lab-page { margin: calc(8 * var(--u)) 0 0; font-size: calc(10.5 * var(--u)); color: var(--ink-soft); text-align: right; }

/* Readings from the phone: a measure's page, as the app shows it */
.readings {
  position: absolute; right: 0; bottom: 2%; width: 38%; z-index: 3;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(16 * var(--u));
  padding: calc(12 * var(--u)) calc(14 * var(--u)) calc(10 * var(--u));
  box-shadow: 0 calc(18 * var(--u)) calc(34 * var(--u)) calc(-22 * var(--u)) rgba(30, 43, 40, 0.4);
}
.readings-head { display: flex; justify-content: space-between; align-items: center; gap: calc(6 * var(--u)); }
.readings-head b { font-size: calc(14 * var(--u)); font-weight: 650; }
.readings-head span {
  font-size: calc(9.5 * var(--u)); font-weight: 600; color: var(--primary-deep); background: var(--primary-soft);
  border-radius: 999px; padding: calc(2 * var(--u)) calc(7 * var(--u)); white-space: nowrap;
}
.readings-rows {
  list-style: none; margin: calc(8 * var(--u)) calc(-6 * var(--u)) calc(6 * var(--u)); padding: 0;
  border-radius: calc(8 * var(--u));
  background-image: linear-gradient(var(--primary-soft), var(--primary-soft)); background-repeat: no-repeat; background-size: 0% 100%;
}
.readings-rows li {
  display: flex; justify-content: space-between; align-items: baseline; gap: calc(8 * var(--u));
  padding: calc(5 * var(--u)) calc(6 * var(--u)); border-top: 1px solid var(--line);
}
.readings-rows li:first-child { border-top-color: transparent; }
.readings-rows span { font-size: calc(11.5 * var(--u)); color: var(--ink-soft); }
.readings-rows b { font-family: var(--display); font-weight: 600; font-size: calc(15 * var(--u)); font-variant-numeric: tabular-nums; }
.readings-foot { margin: 0; font-size: calc(10.5 * var(--u)); color: var(--ink-soft); }
.is-playing .readings-rows { animation: sweep 0.7s var(--ease) 1.75s forwards; }
.is-done .readings-rows { background-size: 100% 100%; }

.answer {
  position: absolute; left: 0; bottom: 0; width: 58%; z-index: 5;
  background: var(--canvas); border: 1px solid var(--line); border-radius: calc(18 * var(--u));
  padding: calc(14 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u));
  box-shadow: 0 calc(24 * var(--u)) calc(44 * var(--u)) calc(-22 * var(--u)) rgba(30, 43, 40, 0.45);
  display: flex; flex-direction: column; gap: calc(10 * var(--u));
}
.answer-bar { display: flex; align-items: center; gap: calc(6 * var(--u)); font-size: calc(12.5 * var(--u)); font-weight: 600; }
.answer-bar svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.answer-local {
  margin-left: auto; display: inline-flex; align-items: center; gap: calc(4 * var(--u));
  font-size: calc(10.5 * var(--u)); color: var(--primary-deep); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: calc(3 * var(--u)) calc(8 * var(--u));
}
.answer-local svg { width: calc(10 * var(--u)); height: calc(10 * var(--u)); }
.answer-ask {
  margin: 0; align-self: flex-end; max-width: 88%; background: var(--primary); color: #fff;
  border-radius: calc(14 * var(--u)) calc(14 * var(--u)) calc(4 * var(--u)) calc(14 * var(--u));
  padding: calc(8 * var(--u)) calc(12 * var(--u)); font-size: calc(13 * var(--u)); line-height: 1.35;
}
.answer-text { margin: 0; font-size: calc(14 * var(--u)); line-height: 1.45; }
.answer-text b { font-weight: 650; }
.answer-cites { display: flex; flex-direction: column; align-items: flex-start; gap: calc(6 * var(--u)); }
.answer-cite { font-size: calc(11.5 * var(--u)); font-weight: 600; color: var(--primary-deep);
  background: var(--surface); border: 1px solid var(--primary); border-radius: 999px;
  padding: calc(4 * var(--u)) calc(10 * var(--u));
}
.is-playing .answer-cite { animation: ring 0.9s var(--ease) 1.9s 1; }
.is-playing .answer-cite[data-cite="readings"] { animation-delay: 3.05s; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(35, 87, 75, 0.35); } 100% { box-shadow: 0 0 0 calc(10 * var(--u)) rgba(35, 87, 75, 0); } }

.thread { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: var(--primary); stroke-width: 1.6; stroke-linecap: round; opacity: 0; }
.is-done .thread path { opacity: 0.85; }
.is-playing .thread path { opacity: 0.85; animation: draw 0.9s var(--ease) 0.95s forwards; }
.is-playing .thread path[data-thread="readings"] { animation-delay: 2.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Narrow: the report, the answer under it, the readings under that */
@container (max-width: 480px) {
  .file-canvas { --u: calc(100cqw / 380); aspect-ratio: 380 / 740; }
  .paper-rx { display: none; }
  .paper-lab { left: 0; top: 0; width: 88%; transform: rotate(-1.5deg); }
  .answer { left: 5%; top: 31%; bottom: auto; width: 84%; }
  .readings { right: 0; bottom: 0; width: 52%; }
}

/* ---- Watch it work: four small screens -------------------------------- */
.watch { padding-block: 32px 112px; }
.demos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1080px) { .demos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; } }
@media (max-width: 560px) { .demos { grid-template-columns: minmax(0, 1fr); } }
.demo { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.demo figcaption h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.demo figcaption p { margin: 0; font-size: 15px; color: var(--ink-soft); }

.screen {
  height: 400px; border-radius: 26px; background: var(--canvas); border: 1px solid var(--line-strong);
  overflow: hidden; display: flex; flex-direction: column; font-size: 13px; line-height: 1.4;
  box-shadow: 0 22px 40px -30px rgba(30, 43, 40, 0.5);
  transition: opacity 0.45s ease;
}
.fade .screen { opacity: 0.35; }
.screen-bar { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-deep);
  font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.avatar.a2 { background: #F7EAD3; color: #85561A; }
.avatar.a3 { background: var(--muted); color: var(--ink); }
.local {
  margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--primary-deep); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px;
}
.screen-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.chat { justify-content: flex-end; }

/* What appears as the demo plays */
[data-bubble], [data-r], [data-done], [data-t] {
  opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s var(--ease);
}
[data-bubble].on, [data-r].on, [data-done].on, [data-t].on { opacity: 1; transform: none; }

.mini-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.mini-steps li { display: flex; align-items: center; gap: 8px; }
.mini-steps li::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex-shrink: 0;
  box-sizing: border-box;
}
.mini-steps li.is-live { color: var(--ink); }
.mini-steps li.is-live::before { border-color: var(--primary); border-right-color: transparent; animation: spin 0.8s linear infinite; }
.mini-steps li.is-done { color: var(--ink); }
.mini-steps li.is-done::before { background: var(--primary); border-color: var(--primary); box-shadow: inset 0 0 0 2.5px var(--canvas); }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-steps.live { max-height: 0; overflow: hidden; opacity: 0; transition: opacity 0.3s ease, max-height 0.3s ease; }
.mini-steps.live.on { max-height: 120px; opacity: 1; }

/* 1. Reading a report */
.scan { display: flex; gap: 12px; align-items: flex-start; }
.scan-page {
  position: relative; width: 74px; height: 96px; flex-shrink: 0; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 5px; padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
}
.scan-page i { display: block; height: 3px; border-radius: 2px; background: var(--line-strong); }
.scan-page i.short { width: 60%; }
.scan-line {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--primary);
  box-shadow: 0 0 10px 2px rgba(35, 87, 75, 0.35); opacity: 0;
}
.scanning .scan-line { opacity: 1; animation: scanline 1.4s ease-in-out infinite alternate; }
@keyframes scanline { from { top: 4%; } to { top: 94%; } }
.results { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.results li { display: grid; grid-template-columns: 1fr auto 40px; align-items: baseline; gap: 6px; padding: 9px 12px; border-top: 1px solid var(--line); }
.results li:first-child { border-top: 0; }
.results:not(:has(.on)) { background: transparent; border-color: transparent; }
.results b { font-family: var(--display); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.results small { color: var(--ink-soft); font-size: 11px; }
.saved {
  margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--primary-deep);
  background: var(--primary-soft); border-radius: 10px; padding: 8px 10px;
}

/* 2 and 4. Chat */
.bubble {
  margin: 0; align-self: flex-end; max-width: 86%; background: var(--primary); color: #fff;
  border-radius: 14px 14px 4px 14px; padding: 8px 11px; font-size: 13px;
}
.reply { display: flex; flex-direction: column; gap: 8px; }
.reply p { margin: 0; font-size: 13.5px; }
.mini-trend { width: 100%; height: 48px; }
.cite {
  align-self: flex-start; font-size: 11px; font-weight: 600; color: var(--primary-deep); background: var(--surface);
  border: 1px solid var(--primary); border-radius: 999px; padding: 3px 9px;
}
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px 14px; border-top: 1px solid var(--line); }
.field {
  flex: 1; min-width: 0; height: 36px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface);
  display: flex; align-items: center; padding: 0 12px; font-size: 12.5px; white-space: nowrap; overflow: hidden;
}
.placeholder { color: var(--ink-soft); }
.placeholder.hide { display: none; }
.caret { width: 1.5px; height: 15px; background: var(--primary); margin-left: 1px; display: none; }
.typing .caret { display: block; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.send { width: 34px; height: 34px; border-radius: 50%; background: var(--muted); flex-shrink: 0; position: relative; transition: background 0.2s ease; }
.send::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-left: 2px solid var(--ink-soft); border-top: 2px solid var(--ink-soft); transform: translate(-50%, -25%) rotate(45deg); }
.send.active { background: var(--primary); }
.send.active::after { border-color: #fff; }

/* 3. Prescription */
.rx-photo {
  position: relative; background: #FFFDF8; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 10px 12px; display: flex; gap: 10px; align-items: center; overflow: hidden; transform: rotate(-1.5deg);
}
.rx-photo-mark { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--primary); }
.rx-photo svg { flex: 1; height: 40px; }
.course { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.course b { font-size: 14px; font-weight: 650; }
.course span { font-size: 12.5px; }
.course small { font-size: 11px; color: var(--ink-soft); }
.times { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); }
.times span { margin-right: 2px; }
.times i { font-style: normal; font-weight: 600; color: var(--primary-deep); background: var(--primary-soft); border-radius: 999px; padding: 4px 10px; }
.button {
  margin-top: auto; text-align: center; background: var(--primary); color: #fff; font-weight: 600; font-size: 13px;
  border-radius: 12px; padding: 11px 10px; opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.15s ease, background 0.15s ease;
}
.button.on { opacity: 1; transform: none; }
.button.pressed { transform: scale(0.97); background: var(--primary-deep); }
[data-demo="rx"] .saved { margin-top: -38px; align-self: stretch; text-align: center; }

/* 4. The urgent-care callout: the app's own, in clay */
.urgent {
  background: var(--alert-soft); color: var(--alert-ink); border-radius: 14px; padding: 11px 12px;
  display: flex; flex-direction: column; gap: 5px; border: 1px solid #EDC7B7;
}
.urgent b { font-size: 14px; font-weight: 700; }
.urgent span { font-size: 12.5px; }
.urgent .call {
  align-self: flex-start; background: var(--alert); color: #fff; font-weight: 700; font-size: 13px;
  border-radius: 10px; padding: 7px 14px; margin-top: 2px;
}
.urgent small { font-size: 10.5px; }

/* ---- Readings: a day as Ayumitra keeps it ----------------------------- */
/* One person's day on a 24-hour clock from 8 pm to 8 pm, a lane per measure.
   Marks sit at --at (0 to 1 along the day); spans run --from to --to. What
   came from which app is said on the mark, as the app says it. */
.day { padding-block: 32px 112px; }
.day-panel {
  margin: 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 24px;
  padding: 18px 28px 22px; box-shadow: 0 30px 60px -48px rgba(30, 43, 40, 0.55);
}
.day-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.day-when { color: var(--ink-soft); }
.day-checked { margin-left: auto; font-size: 13.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.day-checked::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.strip {
  position: relative; display: grid; grid-template-columns: 148px minmax(0, 1fr);
  grid-template-rows: 34px 56px 112px 72px 72px 56px; column-gap: 20px; margin-top: 6px;
}
.axis, .grid-lines, .now-line { grid-column: 2; position: relative; }
.axis { grid-row: 1; }
.axis span {
  position: absolute; left: calc(var(--at) * 100%); top: 10px; transform: translateX(-50%);
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.axis span:first-child { transform: none; }
.axis span:last-child { transform: translateX(-100%); }
.grid-lines { grid-row: 2 / -1; pointer-events: none; }
.grid-lines i { position: absolute; top: 0; bottom: 0; left: calc(var(--at) * 100%); border-left: 1px dashed var(--line); }
/* What hasn't happened yet today */
.later { position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--at) * 100%); background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(232, 225, 214, 0.55) 6px 7px); }
.now-line { grid-row: 1 / -1; pointer-events: none; z-index: 2; }
.now-line::before { content: ""; position: absolute; top: 30px; bottom: 0; left: calc(var(--at) * 100%); border-left: 2px solid var(--accent); }
.now-line span {
  position: absolute; left: calc(var(--at) * 100%); top: 6px; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: #85561A; background: #F7EAD3; border-radius: 999px; padding: 1px 8px;
}
.lane-name { grid-column: 1; display: flex; flex-direction: column; justify-content: center; gap: 1px; border-top: 1px solid var(--line); }
.lane-name b { font-size: 15px; font-weight: 600; }
.lane-name span { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--primary-deep); font-variant-numeric: tabular-nums; line-height: 1.2; }
.lane-name small { font-family: var(--body); font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.track { grid-column: 2; position: relative; border-top: 1px solid var(--line); z-index: 1; }

/* A span: sleep, or the day so far */
.band {
  position: absolute; top: 50%; transform: translateY(-50%); height: 30px;
  left: calc(var(--from) * 100%); width: calc((var(--to) - var(--from)) * 100%);
  background: var(--primary-soft); border: 1.5px solid var(--primary); border-radius: 999px;
  display: flex; align-items: center; padding: 0 12px; font-size: 12.5px; font-weight: 600; color: var(--primary-deep); white-space: nowrap; overflow: hidden;
}
.band-day { justify-content: space-between; gap: 12px; background: var(--muted); border-color: var(--line-strong); border-radius: 8px 999px 999px 8px; color: var(--ink-soft); }
.src {
  position: absolute; top: 50%; left: calc(var(--at) * 100%); transform: translate(8px, -50%);
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
/* Heart rate: each hour's lowest to highest, on 45 to 125 bpm */
.bars { position: absolute; inset: 22px 0 22px; }
.bars i {
  position: absolute; left: calc(var(--at) * 100%); width: 6px; margin-left: -3px; border-radius: 3px; background: var(--primary);
  bottom: calc(var(--lo) * 100%); height: max(4px, calc((var(--hi) - var(--lo)) * 100%));
}
.hr-high, .hr-low {
  position: absolute; left: calc(var(--at) * 100%); bottom: calc(var(--y) * 100%);
  font-family: var(--display); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--primary-deep); white-space: nowrap;
}
.hr-high { transform: translate(-50%, -4px); }
.hr-low { transform: translate(-50%, calc(100% + 4px)); }
/* A reading at a moment */
.pt {
  position: absolute; top: 50%; left: calc(var(--at) * 100%); width: 0; height: 0;
}
.pt::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--primary); box-sizing: border-box; }
.pt b, .pt small { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; }
.pt b { bottom: 9px; font-family: var(--display); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.pt small { top: 9px; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.day-key { margin: 14px 0 0 168px; font-size: 13.5px; color: var(--ink-soft); }

/* Narrow: the day as the app lists it, a time column on the left */
.daylist { display: none; list-style: none; margin: 4px 0 0; padding: 0; }
.daylist li { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.daylist li:first-child { border-top: 0; }
.when { grid-row: 1 / span 2; display: flex; flex-direction: column; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.when small { font-weight: 500; color: var(--ink-soft); font-size: 12px; }
.when i { display: block; width: 2px; height: 14px; margin: 3px 0 3px 6px; border-radius: 1px; background: var(--primary); }
.is-day .when { color: var(--ink-soft); }
.what { font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--primary-deep); }
.what b { display: block; font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--ink); }
.from { grid-column: 2; font-size: 12.5px; color: var(--ink-soft); }

.day-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.day-facts h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.day-facts p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

@media (max-width: 860px) {
  .day-facts { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 720px) {
  .day-panel { padding: 14px 18px 8px; border-radius: 20px; }
  .strip, .day-key { display: none; }
  .daylist { display: block; }
  .day-checked { margin-left: 0; flex-basis: 100%; }
}

/* ---- What it keeps: the ledger ---------------------------------------- */
.keeps { padding-block: 32px 112px; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.ledger li {
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) 170px; gap: 8px 32px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.ledger h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.01em; }
.ledger p { margin: 0; color: var(--ink-soft); max-width: 34rem; }
.figure {
  justify-self: end; font-family: var(--display); font-weight: 600; font-size: 1.6rem;
  font-variant-numeric: tabular-nums; color: var(--primary-deep); white-space: nowrap;
}
.figure small { font-family: var(--body); font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); margin-left: 2px; }
@media (max-width: 760px) {
  .ledger li { grid-template-columns: minmax(0, 1fr) auto; }
  .ledger h3 { grid-column: 1; }
  .figure { grid-column: 2; grid-row: 1; font-size: 1.3rem; }
  .ledger p { grid-column: 1 / -1; }
}

/* ---- Ask: six languages ------------------------------------------------- */
.ask { padding-block: 32px 112px; }
.questions {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.questions li { padding: 22px 24px 26px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.questions span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.questions q { quotes: none; font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; letter-spacing: -0.005em; }
.questions q[lang="hi"] { font-family: var(--body); font-weight: 500; line-height: 1.45; }
@media (max-width: 860px) { .questions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .questions { grid-template-columns: minmax(0, 1fr); } }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.trust h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.trust p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 1000px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .trust { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---- Privacy: the one dark band --------------------------------------- */
.privacy { background: var(--primary-deep); color: var(--on-dark); padding-block: 104px; }
.privacy .section-head h2 { color: #fff; }
.privacy .section-head p { color: var(--on-dark-soft); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.facts li { padding: 22px 0; border-top: 1px solid rgba(243, 238, 230, 0.18); }
.facts h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: #fff; }
.facts p { margin: 0; color: var(--on-dark-soft); font-size: 15.5px; max-width: 30rem; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---- Why it exists ----------------------------------------------------- */
.story { padding-block: 104px 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px 56px; align-items: start; }
.story h2 {
  margin: 0; font-family: var(--display); font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.018em; text-wrap: balance;
}
.story-text { display: flex; flex-direction: column; gap: 18px; max-width: 36rem; }
.story-text p { margin: 0; font-family: var(--display); font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.55; }
.story-text p:last-child { color: var(--primary); }
@media (max-width: 760px) { .story-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- What it isn't ------------------------------------------------------ */
.isnt { padding-block: 104px 40px; }
.isnt ul { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 46rem; }
.isnt li { font-size: 1.08rem; color: var(--ink-soft); padding-left: 22px; position: relative; }
.isnt li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.isnt b { color: var(--ink); font-weight: 600; }

/* ---- What it costs ----------------------------------------------------- */
.plans { padding-block: 64px 0; }
.plan-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
.plan { border-top: 2px solid var(--primary); padding-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.plan-soon { border-top-color: var(--line-strong); }
.plan h3 { margin: 0; font-size: 17px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.plan .price { margin: 0; font-family: var(--display); font-size: 1.9rem; font-weight: 500; line-height: 1.15; }
.plan-soon .price { color: var(--ink-soft); }
.plan p:not(.price) { margin: 0; color: var(--ink-soft); font-size: 15.5px; max-width: 30rem; }
.soon { font-size: 13px; font-weight: 600; color: var(--primary-deep); background: var(--primary-soft); border-radius: 999px; padding: 3px 10px; }
@media (max-width: 760px) { .plan-list { grid-template-columns: minmax(0, 1fr); } }

/* ---- Get the app -------------------------------------------------------- */
.download { padding-block: 72px 112px; }
.download-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px 56px; align-items: start;
  border-top: 1px solid var(--line-strong); padding-top: 56px;
}
.download .lede { margin-top: 12px; }
.download-side { display: flex; flex-direction: column; gap: 20px; }
.needs { margin: 0; font-size: 15px; color: var(--ink-soft); max-width: 34rem; }
@media (max-width: 760px) { .download-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { padding-block: 32px 40px; display: flex; flex-direction: column; gap: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.made { margin: 0; font-family: var(--display); font-size: 1.15rem; font-weight: 500; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer nav a { color: var(--ink); font-size: 15px; font-weight: 500; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.fine { margin: 0; font-size: 13.5px; color: var(--ink-soft); max-width: 60rem; }

/* ---- Reduced motion: everything in its finished state ------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
