/* site.css: the look of bantefa.com, shared by every page.
   The colours are the app's own (mobile/src/ui/theme.ts), light and dark, and every word on the
   page is Pangolin. Nothing eases: there are no transitions or animations, a change just happens.
   The hand-drawn branch, squiggle and ring are drawn by site.js from the app's own numbers. */

:root {
  color-scheme: light dark;

  --bg: #F5EFDF;
  --card: #FFFCF3;
  --line: #E4DCC4;
  --text: #2A2E1D;
  /* theme.ts says #7A7A66; one step darker so small text still reads 4.5:1 on the paper */
  --muted: #6B6B58;
  --primary: #4F5F22;
  --primary-hover: #3E4B1A;
  --on-primary: #FFFCF3;
  --leaf: #9DB05E;
  --leaf-dark: #6E8236;
  --branch: #6B7B34;
  --olive-dark: #2D2A1F;
  --olive-purple: #4B3A5A;
  --highlight: #E4EBA0;
  --callout: #ECEFD6;
  --record: #C4492E;
  --record-hover: #A83C24;
  --on-record: #FFFCF3;
  --record-soft: #F2D9CF;
  --warn: #A8641C;
  --doodle: #E3DAC0;
  /* form fields need an edge that reads 3:1 against the card */
  --field-line: #9C916F;

  /* theme.ts lift: a soft, warm shadow for cards on the paper */
  --lift: 0 6px 14px rgba(91, 74, 30, 0.08);
  --pen: "Pangolin", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  --gutter: 16px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171A10;
    --card: #21251A;
    --line: #343925;
    --text: #F1ECDD;
    --muted: #A6A893;
    --primary: #B3C474;
    --primary-hover: #C6D48C;
    --on-primary: #171A10;
    --leaf: #7E9142;
    --leaf-dark: #5C6B2C;
    --branch: #8A9A4C;
    --olive-dark: #0E0F0A;
    --olive-purple: #5E4A70;
    --highlight: #4E5724;
    --callout: #2A301E;
    --record: #E26B4F;
    --record-hover: #EC8670;
    --on-record: #171A10;
    --record-soft: #43261E;
    --warn: #E0A15A;
    --doodle: #252A1B;
    --field-line: #6E7558;
    --lift: 0 6px 14px rgba(0, 0, 0, 0.3);
  }
}

@media (min-width: 720px) {
  :root { --gutter: 28px; }
}

/* ---------- base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }

body {
  margin: 0;
  min-height: 100vh;
  /* short pages still put the footer at the bottom */
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--pen);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 720px) {
  body { font-size: 1.125rem; }
}

/* The faint study doodles from the app, behind everything. The picture is only a shape: it is
   painted in the theme's doodle colour, so it follows light and dark. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--doodle);
  -webkit-mask: url("/assets/doodles.png") 0 0 / 440px 960px repeat;
  mask: url("/assets/doodles.png") 0 0 / 440px 960px repeat;
}

h1, h2, h3 {
  margin: 0 0 0.4em;
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.55rem + 3.1vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
h3, .h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0 0 0.9em; }
ul, ol { margin: 0 0 0.9em; padding-left: 1.3em; }
li { margin: 0.25em 0; }
/* Pangolin has one weight, so emphasis is a highlighter stroke across the bottom of the words */
strong { font-weight: 400; background: linear-gradient(transparent 58%, var(--highlight) 58%); padding: 0 0.1em; }
img, svg { max-width: 100%; }

a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }

mark { background: var(--highlight); color: inherit; padding: 0 0.2em; border-radius: 4px; }

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

::selection { background: var(--highlight); color: var(--text); }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 8px; top: -80px; z-index: 100;
  background: var(--card); color: var(--text); padding: 8px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--primary);
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 70rem; margin-inline: auto; padding-inline: var(--gutter); }
main { flex: 1 0 auto; }
.narrow { max-width: 46rem; }

.muted { color: var(--muted); }
.small { font-size: 0.95rem; }
.lede { font-size: 1.2rem; line-height: 1.5; max-width: 34em; }
@media (min-width: 720px) { .lede { font-size: 1.3rem; } }
.center { text-align: center; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stack > * + * { margin-top: 14px; }
.stack > * { margin-bottom: 0; }
/* the pages site.js fills in: even gaps between what it puts there */
.flow > * { margin-top: 0; margin-bottom: 0; }
.flow > * + * { margin-top: 18px; }
.flow > section + *, .flow > * + section { margin-top: 34px; }

/* ---------- the header and footer ---------- */

.top { padding: 14px 0 6px; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.65rem; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--lift); }

.nav { display: flex; align-items: center; gap: 20px; }
.nav__link { color: var(--text); text-decoration: none; }
.nav__link:hover { text-decoration: underline; }
@media (max-width: 679px) {
  .nav__link { display: none; }
}

.foot { position: relative; margin-top: 56px; padding: 36px 0 44px; border-top: 1px solid var(--line); }
.foot .branch { position: absolute; right: var(--gutter); top: -44px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 14px; padding: 0; list-style: none; }
.foot__links li { margin: 0; }
.foot__links a { color: var(--text); }
.foot p { margin-bottom: 0.5em; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  border: 1.5px solid var(--primary); border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
  font: inherit; font-size: 1.0625rem; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); text-decoration: none; }
.btn:active { opacity: 0.75; }
.btn--quiet { background: transparent; color: var(--primary); }
.btn--quiet:hover { background: var(--callout); border-color: var(--primary); color: var(--primary); }
.btn--small { min-height: 40px; padding: 6px 16px; font-size: 1rem; }
.btn--danger { background: var(--record); border-color: var(--record); color: var(--on-record); }
.btn--danger:hover { background: var(--record-hover); border-color: var(--record-hover); color: var(--on-record); }
.btn--block { display: flex; width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:hover { background: var(--primary); border-color: var(--primary); }
.btn--quiet:disabled:hover { background: transparent; }
.btn--danger:disabled:hover { background: var(--record); border-color: var(--record); }

.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { text-decoration-thickness: 3px; }

/* ---------- cards, notes and alerts ---------- */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--lift); }
@media (min-width: 720px) { .card { padding: 26px; } }
.card > :last-child { margin-bottom: 0; }

.callout { background: var(--callout); border-radius: var(--r-md); padding: 14px 18px; }
.callout > :last-child { margin-bottom: 0; }

.alert { border-radius: var(--r-md); padding: 12px 16px; margin: 0 0 16px; background: var(--card); border: 1.5px solid var(--line); }
.alert > :last-child { margin-bottom: 0; }
.alert--error { background: var(--record-soft); border-color: var(--record); }
.alert--ok { background: var(--callout); border-color: var(--leaf-dark); }
.alert--warn { border-color: var(--warn); }

.tag { display: inline-block; padding: 1px 12px; border-radius: 999px; background: var(--highlight); color: var(--text); font-size: 0.95rem; line-height: 1.5; }


/* ---------- the hand-drawn bits (site.js draws them) ---------- */

.branch { display: block; overflow: visible; pointer-events: none; }
.branch--flip { transform: scaleX(-1); }
.branch .stem { fill: none; stroke: var(--branch); stroke-width: 2.4; stroke-linecap: round; }
.branch .leaf { fill: var(--leaf); }
.branch .leaf--dark { fill: var(--leaf-dark); }
.branch .twig { stroke: var(--branch); stroke-width: 1.4; }
.branch .olive { fill: var(--olive-dark); }
.branch .olive--purple { fill: var(--olive-purple); }
.branch .shine { fill: #ffffff; opacity: 0.35; }

.squiggle { display: block; overflow: visible; margin: -4px 0 20px; }
.squiggle path { fill: none; stroke: var(--leaf); stroke-width: 3; stroke-linecap: round; }

.ring { overflow: visible; pointer-events: none; }
.ring path { fill: none; stroke: var(--leaf); stroke-linecap: round; }

/* a word circled by hand, like a note in the margin */
.ringed { position: relative; display: inline-block; white-space: nowrap; padding: 0 0.12em; }
.ringed .ring { position: absolute; left: -10%; top: -16%; width: 120%; height: 132%; max-width: none; }

/* small line drawings on the feature cards */
.ic { width: 34px; height: 34px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sections ---------- */

.section { padding-block: 44px; }
@media (min-width: 720px) { .section { padding-block: 64px; } }
.section--first { padding-top: 20px; }
.section__intro { max-width: 40rem; margin-bottom: 26px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- the home page ---------- */

.hero { position: relative; padding: 18px 0 36px; }
.hero__grid { display: grid; gap: 34px; }
@media (min-width: 920px) {
  .hero { padding: 36px 0 56px; }
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 48px; }
}
.kicker { color: var(--primary); font-size: 1.1rem; margin-bottom: 0.5em; }
.hero h1 { margin-bottom: 0.35em; }
.hero__ctas { margin: 22px 0 18px; }
.hero__note { margin: 14px 0 0; }

/* the example of a class in the app, beside the words */
.demo { position: relative; max-width: 30rem; width: 100%; margin: 0 auto; padding-top: 30px; }
.demo .branch { position: absolute; top: -8px; right: -6px; }
.demo__card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--lift); padding: 18px 20px; }
.demo__card--live { transform: rotate(-1.4deg); }
.demo__card--notes { transform: rotate(0.9deg); margin: -8px 0 0 22px; }
.demo__title { font-size: 1.05rem; margin: 0 0 8px; }
.demo__label { font-size: 0.9rem; color: var(--muted); margin: 0 0 4px; }
.demo__quote { margin: 0; font-size: 1.05rem; }
.demo__h { font-size: 1.15rem; margin: 2px 0 4px; }
.rec { display: inline-flex; align-items: center; gap: 8px; color: var(--record); font-size: 0.95rem; margin: 0 0 8px; }
.rec::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--record); }
.chip {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px;
  padding: 6px 12px; border-radius: var(--r-md); background: var(--callout); font-size: 0.95rem;
}
.demo figcaption { margin-top: 12px; text-align: center; font-size: 0.9rem; color: var(--muted); }


/* ---------- the home page's little scenes ----------
   Each feature card opens with a small picture of the app doing that thing. Without JavaScript, or for
   people who asked their phone for less motion, the pictures are still and finished. Otherwise
   site.js adds .anim to <html> and .play to a scene while it's on screen, and everything moves in
   steps, never eased: a frame, then the next frame. */

.bento { display: grid; gap: 16px; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } .feature--wide { grid-column: span 2; } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.feature { display: flex; flex-direction: column; }
.feature h3 { margin: 14px 0 6px; }
.feature p { margin: 0; }

.scene {
  position: relative; overflow: hidden; min-height: 150px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg);
  font-size: 0.95rem; line-height: 1.35;
}
.scene p { margin: 0; }
.scene .ring path { stroke: var(--leaf-dark); }

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.25; } }
@keyframes show { from { visibility: hidden; } to { visibility: visible; } }
@keyframes sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes march { to { stroke-dashoffset: -24; } }

/* recording */
.rec-bar { display: flex; align-items: center; gap: 12px; }
.rec-btn { position: relative; display: grid; place-items: center; width: 56px; height: 56px; flex: none; }
.rec-btn .ring { position: absolute; inset: 0; }
.rec-btn i { width: 24px; height: 24px; border-radius: 50%; background: var(--record); }
.rec-meta { display: grid; line-height: 1.15; }
.rec-live { color: var(--record); font-size: 0.85rem; }
.rec-time { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.rec-lock { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 0.85rem; }
.rec-lock svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wave { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 46px; margin: 10px 0 8px; }
.wave i { flex: 1 1 0; min-width: 2px; max-width: 9px; border-radius: 3px; background: var(--leaf-dark); }
.pieces { display: flex; flex-wrap: wrap; gap: 6px; }
.pieces span { padding: 1px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 0.8rem; color: var(--muted); }
.anim .play .rec-btn i, .anim .play .rec-dot { animation: blink 1.2s steps(1) infinite; }
.anim .pieces span:not(.on) { visibility: hidden; }

/* the transcript */
.ts-head { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 0.85rem; margin-bottom: 8px !important; }
.ts-behind { padding: 0 8px; border-radius: 8px; background: var(--highlight); color: var(--text); }
.ts-line { display: grid; grid-template-columns: 46px 1fr; gap: 8px; margin-top: 6px !important; }
.ts-time { color: var(--muted); font-size: 0.82rem; padding-top: 2px; font-variant-numeric: tabular-nums; }
.w.wet { color: var(--leaf-dark); }
.anim .w:not(.in) { visibility: hidden; }

/* notes */
.nt-h { font-size: 1.05rem; margin-bottom: 4px !important; }
.nt-h--small { font-size: 0.95rem; margin-top: 10px !important; color: var(--muted); }
.nt-line { font-size: 0.92rem; margin-bottom: 3px !important; }
.hl { background: linear-gradient(var(--highlight), var(--highlight)) no-repeat left / 100% 100%; border-radius: 4px; padding: 0 0.15em; margin: 0 -0.15em; }
.anim .play .hl { animation: sweep 0.6s steps(6) both; animation-delay: 0.3s; }
.anim .play .nt-line:nth-of-type(3) .hl { animation-delay: 1.1s; }
.nt-check { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.tick { position: relative; width: 15px; height: 15px; border: 1.5px solid var(--field-line); border-radius: 4px; flex: none; }
.tick::after { content: ""; position: absolute; left: 4px; top: 0; width: 4px; height: 9px; border: solid var(--primary); border-width: 0 2px 2px 0; rotate: 40deg; }
.anim .play .tick::after { animation: show 0.1s steps(1) both; animation-delay: 1.8s; }
.anim .play .nt-check + .nt-check .tick::after { animation-delay: 2.4s; }

/* deadlines */
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; font-size: 1.1rem; }
.week span { position: relative; display: grid; padding: 4px 0; }
.week small { font-size: 0.72rem; color: var(--muted); }
.week__due .ring { position: absolute; inset: -6px -2px; width: calc(100% + 4px); height: calc(100% + 12px); }
.week__due .ring path { stroke-dasharray: 100; }
.anim .play .week__due .ring path { animation: draw 0.8s steps(8) both; animation-delay: 0.4s; }
.due-chip { display: inline-block; margin-top: 12px !important; padding: 3px 10px; border-radius: 10px; background: var(--callout); font-size: 0.9rem; }
.due-bells { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }
.due-bells span { padding: 0 8px; border-radius: 8px; border: 1px dashed var(--field-line); font-size: 0.78rem; color: var(--muted); }
.anim .play .due-chip { animation: show 0.1s steps(1) both; animation-delay: 1.3s; }
.anim .play .due-bells span { animation: show 0.1s steps(1) both; animation-delay: 1.9s; }
.anim .play .due-bells span + span { animation-delay: 2.4s; }

/* the class reminder */
.scene--nudge { display: grid; align-content: center; gap: 12px; text-align: center; }
.lock-time { font-size: 2.4rem; line-height: 1; }
.notif { display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--lift); font-size: 0.88rem; line-height: 1.3; }
.notif img { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.notif b { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.anim .play .notif { animation: show 0.1s steps(1) both; animation-delay: 0.9s; }

/* asking */
.scene--ask { display: grid; align-content: start; gap: 10px; }
.bubble { max-width: 88%; padding: 7px 12px; border-radius: 14px; font-size: 0.9rem; }
.bubble--q { justify-self: end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 4px; }
.bubble--a { justify-self: start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.dots { display: none; gap: 4px; padding: 4px 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 0.9s steps(1) infinite; }
.dots i:nth-child(2) { animation-delay: 0.3s; }
.dots i:nth-child(3) { animation-delay: 0.6s; }
.bubble--a.typing .dots { display: inline-flex; }

/* the class */
.mates { display: flex; align-items: center; gap: 8px; }
.mate { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--callout); border: 1.5px solid var(--leaf-dark); font-size: 1.05rem; flex: none; }
.mate--rec { width: 48px; height: 48px; background: var(--highlight); font-size: 1.35rem; }
.mate .rec-dot { position: absolute; right: -2px; top: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--record); border: 2px solid var(--bg); }
.mates__lines { flex: 1; height: 60px; min-width: 40px; overflow: visible; }
.mates__lines path { fill: none; stroke: var(--branch); stroke-width: 2; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
.anim .play .mates__lines path { animation: march 0.8s steps(4) infinite; }
.mates__note { margin-top: 12px !important; color: var(--muted); font-size: 0.9rem; }
.note-count { color: var(--text); font-size: 1.1rem; }
.anim .play .mate:not(.mate--rec) { animation: show 0.1s steps(1) both; animation-delay: calc(0.5s * var(--n)); }

/* flagging */
.scene--flag { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.flag-branch { width: 230px; max-width: 60%; height: auto; }
.flag-side { display: grid; justify-items: start; gap: 8px; }
.knock { display: flex; gap: 8px; color: var(--primary); font-size: 1.2rem; min-height: 1.5em; }
.anim .knock span { visibility: hidden; }
.anim .knocking .knock span { animation: show 0.1s steps(1) both; }
.anim .knocking .knock span + span { animation-delay: 0.35s; }
.flag-log { color: var(--muted); font-size: 0.9rem; }

/* ---------- how it works: three phones on a drawn path ---------- */
.steps-wrap { position: relative; }
.steps__path { display: none; }
@media (min-width: 900px) {
  .steps__path { display: block; position: absolute; left: 0; top: 140px; width: 100%; height: 120px; overflow: visible; pointer-events: none; }
  .steps__path path { fill: none; stroke: var(--leaf); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; vector-effect: non-scaling-stroke; }
}
.steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { margin: 0; text-align: center; }
.step h3 { margin: 4px 0 6px; }
.step p { max-width: 24rem; margin-inline: auto; }
.step__num { position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin: 12px auto 2px; font-size: 1.7rem; color: var(--primary); }
.step__num .ring { position: absolute; inset: 0; }
.step__num .ring path { stroke-dasharray: 100; }
.anim .step.play .step__num .ring path { animation: draw 0.6s steps(6) both; }

.phone {
  position: relative; width: 190px; height: 300px; margin: 0 auto; padding: 26px 14px 14px;
  border: 2px solid var(--text); border-radius: 30px; background: var(--card); box-shadow: var(--lift);
  display: grid; align-content: start; gap: 8px; text-align: left; overflow: hidden;
}
.phone::before { content: ""; position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 50px; height: 6px; border-radius: 3px; background: var(--line); }
.phone__title { font-size: 0.95rem; margin: 0; }
.phone__label { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 0; }
.phone .nt-line { margin: 0 !important; }

.grid-week { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 44px; gap: 4px; }
.gw-day { text-align: center; font-size: 0.75rem; color: var(--muted); height: 18px; }
.grid-week { grid-template-rows: 18px; }
.gw-block { grid-column: var(--c); grid-row: calc(var(--r) + 1); display: grid; place-items: center; padding: 2px; border-radius: 6px; font-size: 0.6rem; line-height: 1.1; text-align: center; }
.gw-a { background: var(--highlight); }
.gw-b { background: var(--callout); border: 1px solid var(--leaf); }
.gw-c { background: var(--record-soft); }
.anim .step.play .gw-block { animation: show 0.1s steps(1) both; }
.anim .step.play .gw-block:nth-of-type(7) { animation-delay: 0.4s; }
.anim .step.play .gw-block:nth-of-type(8) { animation-delay: 0.8s; }
.anim .step.play .gw-block:nth-of-type(9) { animation-delay: 1.2s; }
.anim .step.play .gw-block:nth-of-type(10) { animation-delay: 1.6s; }

.notif--small { font-size: 0.8rem; padding: 7px 9px; box-shadow: none; }
.rec-btn--big { width: 96px; height: 96px; margin: 26px auto 6px; }
.rec-btn--big i { width: 44px; height: 44px; }
.anim .step.play .notif--small { animation: show 0.1s steps(1) both; animation-delay: 0.3s; }
.anim .step.play .rec-btn--big .ring path { stroke-dasharray: 100; animation: draw 0.7s steps(7) both; animation-delay: 0.9s; }
.anim .step.play .rec-btn--big i { animation: blink 1.2s steps(1) infinite 1.6s; }

.due-chip--small { font-size: 0.75rem; margin-top: 8px !important; justify-self: start; }
.anim .step.play .phone .nt-line { animation: show 0.1s steps(1) both; }
.anim .step.play .phone .nt-line:nth-of-type(3) { animation-delay: 0.4s; }
.anim .step.play .phone .nt-line:nth-of-type(4) { animation-delay: 0.8s; }
.anim .step.play .phone .hl { animation: sweep 0.6s steps(6) both 0.6s; }
.anim .step.play .due-chip--small { animation: show 0.1s steps(1) both; animation-delay: 1.4s; }
.anim .steps-wrap.play .steps__path path { animation: march 1.2s steps(6) infinite; }

/* ---------- pricing ---------- */

.plans { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .plans--two { grid-template-columns: repeat(2, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.plan--plus { border: 2px solid var(--primary); }
.plan--wanted { outline: 3px dashed var(--leaf-dark); outline-offset: 4px; }
.plan__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.plan__name { font-size: 1.5rem; margin: 0; }
.plan__price { font-size: 2.3rem; line-height: 1.05; margin: 4px 0 0; }
.plan__per { font-size: 1.05rem; color: var(--muted); }
.plan__note { font-size: 0.95rem; color: var(--muted); margin: 0; }
.plans + p { margin-top: 14px; }
.panel h3 { margin-top: 22px; }
.plan .btn { margin-top: auto; }
.plan > .btn:first-of-type { margin-top: 12px; }

.ticks { list-style: none; padding: 0; margin: 8px 0 10px; }
.ticks li { position: relative; padding-left: 28px; margin: 0.35em 0; }
/* a leaf for a bullet, the app's own leaf shape */
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 19px; height: 10px;
  background: var(--leaf-dark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -7 26 14'%3E%3Cpath d='M0,0 C5,-6.5 17,-7 26,0 C17,7 5,6.5 0,0 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -7 26 14'%3E%3Cpath d='M0,0 C5,-6.5 17,-7 26,0 C17,7 5,6.5 0,0 Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(-24deg);
}

.website-only { margin-top: 30px; }
.website-only h3 { margin-bottom: 4px; }

/* ---------- questions ---------- */

.faq { display: grid; gap: 10px; max-width: 48rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary { position: relative; padding: 14px 52px 14px 18px; font-size: 1.15rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font-size: 1.6rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { rotate: 45deg; }
.faq .answer { padding: 0 18px 16px; }
.faq .answer > :last-child { margin-bottom: 0; }

/* ---------- the stores ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.stores--center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 7px 14px 7px 10px;
  border: 1.5px solid var(--text); border-radius: 14px; background: var(--card); color: var(--text); text-decoration: none;
}
.store:hover { text-decoration: none; color: var(--text); }
a.store:hover { background: var(--callout); }
.store--soon { border-style: dashed; }
.store svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.store__text { display: grid; line-height: 1.15; }
.store__small { font-size: 0.8rem; color: var(--muted); }
.store__big { font-size: 1.15rem; }

/* ---------- forms ---------- */

.form { max-width: 34rem; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field legend { font-size: 1.05rem; }
.hint { font-size: 0.95rem; color: var(--muted); margin: 0; }
.req { color: var(--muted); font-size: 0.95rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; color: var(--text); background: var(--card);
  border: 1.5px solid var(--field-line); border-radius: 12px;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--record); }
.field__error { margin: 0; padding: 6px 12px; border-radius: var(--r-sm); background: var(--record-soft); font-size: 0.95rem; }

/* ---------- the account pages ---------- */

.panel { max-width: 46rem; }
.panel > section { margin-top: 30px; }
.signin { display: grid; gap: 12px; max-width: 22rem; margin: 18px 0; }
.signin__google, .signin__apple { min-height: 44px; }
.signin__msg:empty { display: none; }
.signin__msg { margin: 0; }
.meter { height: 14px; margin: 6px 0 8px; border-radius: 999px; background: var(--callout); border: 1px solid var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--leaf-dark); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.code { font-size: 1.5rem; letter-spacing: 0.12em; }

dialog {
  width: min(30rem, calc(100vw - 32px)); padding: 24px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); color: var(--text); box-shadow: var(--lift);
}
dialog::backdrop { background: rgba(23, 26, 16, 0.5); }
dialog h2 { font-size: 1.5rem; }

/* ---------- long reading (privacy, terms) ---------- */

.prose { max-width: 44rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.7em; }
.prose h2:first-of-type { margin-top: 0.8em; }
.prose li { margin: 0.4em 0; }

/* ---------- mock mode ---------- */

.mockbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  padding: 8px var(--gutter); background: var(--highlight); color: var(--text);
  border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.mockbar label { display: inline-flex; align-items: center; gap: 6px; }
.mockbar select { width: auto; min-height: 34px; padding: 2px 8px; border-radius: var(--r-sm); font-size: 0.95rem; }
.mockbar .linkbtn { color: var(--text); }
