/* Katha AI webfonts, subset to Latin and served as woff2 from /fonts/.
   The design-system originals are full TTFs (about 4 MB together); these are
   the same files run through pyftsubset, variable axes intact. */
@font-face { font-family: "BricolageGrotesque"; src: url("/fonts/BricolageGrotesque.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "HankenGrotesk"; src: url("/fonts/HankenGrotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Baloo2-ExtraBold"; src: url("/fonts/Baloo2-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/fonts/Literata.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "InterTightSemiBold"; src: url("/fonts/InterTight-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* Katha AI color tokens. Ground + white surfaces + shadows-not-borders. */
:root{
  /* Neutrals — luminance-ordered surface > bg > surface2 > track > canvas > border > borderStrong */
  --color-bg: #F3F2EF;              /* the ground */
  --color-canvas: #EBEAE7;
  --color-surface: #FFFFFF;         /* pure white, the card. never tinted */
  --color-surface-2: #EEEDEA;       /* recessed inset fill */
  --color-border: #E7E6E2;          /* flat unelevated only */
  --color-border-strong: #D7D5D0;
  --color-track: #EDECE9;           /* 1px dividers — never --color-border */

  /* Ink */
  --color-ink: #0F0E0C;             /* primary text */
  --color-muted: #6B6560;           /* secondary text */
  --color-strong: #3A3632;          /* icons only, midway between muted and ink */
  --color-tertiary: #9C9691;        /* eyebrows, de-emphasized labels */

  /* Accent — Katha orange */
  --color-accent: #FF6B1A;
  --color-accent-pressed: #E85610;
  --color-accent-soft: #FFEFE2;     /* tinted chip; never a green substitute */

  /* Semantic */
  --color-heart: #E85D5D;
  --color-info: #4A78C2;
  --color-premium: #C44536;
  --color-success: #12B5A5;

  /* Sepia (Reader surface) */
  --color-sepia: #F4E8D0;
  --color-sepia-text: #4A3B2A;
  --color-sepia-heading: #33291F;
  --color-sepia-body: #4A3F35;
  --color-sepia-muted: #8B7D6B;
  --color-sepia-secondary: #6A5C4C;
  --color-sepia-accent: #A64C1C;
  --color-sepia-button: #EC6F2C;
  --color-sepia-placeholder: #E7DCC6;

  /* Semantic aliases */
  --text-primary: var(--color-ink);
  --text-secondary: var(--color-muted);
  --text-icon: var(--color-strong);
  --surface-page: var(--color-bg);
  --surface-card: var(--color-surface);
  --surface-inset: var(--color-surface-2);
  --divider: var(--color-track);
}

/* Katha AI typography tokens.
   Semibold is a FAMILY, never a font-weight (static instances). */
:root{
  --font-display: "BricolageGrotesque", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "HankenGrotesk", ui-sans-serif, system-ui, sans-serif;
  --font-brand: "Baloo2", ui-sans-serif, system-ui, sans-serif;
  --font-brand-heavy: "Baloo2-ExtraBold", "Baloo2", ui-sans-serif, sans-serif;
  --font-reader: "Literata", Georgia, "Iowan Old Style", serif;
  --font-reader-italic: "LiterataItalic", Georgia, serif;
  --font-tight: "InterTight", ui-sans-serif, system-ui, sans-serif;
  --font-tight-semibold: "InterTightSemiBold", ui-sans-serif, system-ui, sans-serif;

  /* Onboarding ramp — 28 / 16 / 14.5 / 12. sectionHeader is an eyebrow, not a ramp step. */
  --type-title-size: 28px;     --type-title-lh: 34px;     --type-title-track: -0.9px;
  --type-section-size: 12px;   --type-section-lh: 16px;   --type-section-track: 1px;
  --type-body-size: 16px;      --type-body-lh: 21px;      --type-body-track: 0.2px;
  --type-helper-size: 14.5px;  --type-helper-lh: 18px;    --type-helper-track: 0.3px;
  --type-caption-size: 12px;   --type-caption-lh: 16px;   --type-caption-track: 0;

  /* Reader */
  --type-reader-size: 18px;    --type-reader-lh: 30px;
}

/* Spacing on the 4pt grid. `related` (8) + `betweenGroups` (24) are ONE rhythm, always paired. */
:root{
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-xxl: 24px;
  --space-xxxl: 32px;
  --space-huge: 48px;

  /* Semantic pair — never use raw sizes on either side of it. */
  --space-related: 8px;           /* inside a group */
  --space-between-groups: 24px;   /* between one group and the next; below title/sub pair */

  /* Radius — deeper shadow, larger radius. White card on ground moves md → lg. */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Icon-button geometry */
  --control-icon-sm: 38px;
  --control-icon: 42px;
  --control-icon-lg: 46px;
}

/* Elevation replaces borders on lifted surfaces. Every value is LAYERED: contact + ambient. */
:root{
  /* Flat in-flow surfaces: rows, list cards. */
  --shadow-card: 0 1px 1px rgba(15,14,12,.06), 0 2px 6px rgba(15,14,12,.04);
  /* Lifted: option cards, selected states, the primary CTA. */
  --shadow-raised: 0 1px 2px rgba(15,14,12,.08), 0 6px 16px rgba(15,14,12,.08);
  /* Floats over content: sheets, popovers, toasts, modals. */
  --shadow-overlay: 0 2px 4px rgba(15,14,12,.10), 0 12px 32px rgba(15,14,12,.16);

  /* The 38–46px circular icon button.
     Inset highlight lifts the plate (no gradient library, no flat fill). */
  --shadow-icon-button:
    inset 0 6px 6px -4px rgba(255,255,255,.95),
    inset 0 -2px 3px -1px rgba(15,14,12,.05),
    0 1px 2px rgba(15,14,12,.08),
    0 4px 10px rgba(15,14,12,.08);
  --shadow-icon-button-pressed:
    inset 0 2px 4px -1px rgba(15,14,12,.10),
    inset 0 1px 2px rgba(255,255,255,.60),
    0 1px 1px rgba(15,14,12,.06);
}

:root{
  --motion-fast: 150ms; /* @kind other */
  --motion-base: 250ms; /* @kind other */
  --motion-slow: 400ms; /* @kind other */
  --motion-ease: cubic-bezier(.45,0,.2,1); /* @kind other */
}
@media (prefers-reduced-motion: reduce){
  :root{
    --motion-fast: 0ms; /* @kind other */
    --motion-base: 0ms; /* @kind other */
    --motion-slow: 0ms; /* @kind other */
  }
}

/* Genre gradients — picked against a warm neutral, three stops each. */
:root{
  --gradient-romance: linear-gradient(180deg,#C45B7B,#8B2D4B,#5A1D33); /* @kind other */
  --gradient-romantasy: linear-gradient(180deg,#8E5BAA,#5B2D7B,#3A1D55); /* @kind other */
  --gradient-darkRomance: linear-gradient(180deg,#8B1A1A,#5A0D0D,#2A0505); /* @kind other */
  --gradient-fantasy: linear-gradient(180deg,#5B8A5B,#3A6B3A,#1A4A2A); /* @kind other */
  --gradient-scifi: linear-gradient(180deg,#4A3A8E,#2D1A5A,#1A0D3A); /* @kind other */
  --gradient-thriller: linear-gradient(180deg,#3A3A3A,#1A1A1A,#0D0D0D); /* @kind other */
  --gradient-mystery: linear-gradient(180deg,#2C3E50,#1A2A36,#0D1620); /* @kind other */
  --gradient-horror: linear-gradient(180deg,#5A1D1D,#3A0D0D,#1A0505); /* @kind other */
  --gradient-contemporary: linear-gradient(180deg,#4A9A9A,#2D6B6B,#1A4A4A); /* @kind other */
  --gradient-historical: linear-gradient(180deg,#8B7355,#6B5235,#3A2D1A); /* @kind other */
  --gradient-adventure: linear-gradient(180deg,#E87B4A,#C04A2D,#8B2A1A); /* @kind other */
  --gradient-comedy: linear-gradient(180deg,#F0C04A,#D4A02D,#8B7020); /* @kind other */
  --gradient-poetry: linear-gradient(180deg,#8E7A9E,#6B5B8E,#4A3A6B); /* @kind other */

  /* Hero wash — the warm sunrise ground onboarding lifts off */
  --gradient-hero: linear-gradient(180deg,#FEFBF3,#F3EAD8); /* @kind other */
  /* Accent CTA gradient (paywall) */
  --gradient-accent: linear-gradient(180deg,#FF8A3D,#FF6B1A); /* @kind other */
}

/* Katha landing page. build.mjs prepends tokens/*.css to this file and ships
   the result as landing.<hash>.css. Style against the token variables. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Clip the hero cards and the marquee at the page edge. On body this would be
   propagated to the viewport and stop clipping, so it lives on main. */
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--color-accent); text-decoration: none; transition: color 160ms var(--motion-ease); }
a:hover { color: var(--color-accent-pressed); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--color-ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-md);
  font-weight: 700;
}
.skip:focus { top: 12px; color: #fff; }

/* ------------------------------------------------------------------ icons */
.ic {
  width: var(--s, 20px); height: var(--s, 20px); flex-shrink: 0;
  fill: currentColor; stroke: currentColor; stroke-width: 32;
  color: var(--color-strong); vertical-align: middle;
}
.ic--section { --s: 24px; stroke-width: 38; }

/* ----------------------------------------------------------------- layout */
.gutter { padding-left: clamp(20px, 5vw, 64px); padding-right: clamp(20px, 5vw, 64px); }
.inner { max-width: 1200px; margin: 0 auto; }
.section { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.eyebrow {
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--color-muted);
}
.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--color-muted); text-wrap: pretty; }
.head { display: flex; flex-direction: column; gap: 16px; }
.head--center { align-items: center; text-align: center; }
.muted { color: var(--color-muted); }

/* ------------------------------------------------------------------ button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 24px; border: none; border-radius: 16px;
  font-family: var(--font-ui); font-size: 17px; font-weight: 700; white-space: nowrap;
  cursor: pointer; flex-shrink: 0;
  transition: transform var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease);
}
.btn:active { transform: scale(.985); }
.btn--md { height: 48px; border-radius: var(--radius-md); font-size: 15px; }
.btn--primary {
  background: var(--color-accent); color: #fff;
  box-shadow: 0 8px 20px rgba(255,107,26,.30), 0 1px 2px rgba(15,14,12,.06);
}
.btn--primary:hover { color: #fff; }
.btn--primary:active { background: var(--color-accent-pressed); }
.btn--primary:disabled { background: #EDE3D4; color: #B7AB99; box-shadow: none; cursor: not-allowed; transform: none; }
.btn--secondary { background: var(--color-surface); color: var(--color-ink); box-shadow: var(--shadow-card); }
.btn--secondary:hover { color: var(--color-ink); }
.btn--ghost { background: transparent; color: var(--color-accent); }

/* ------------------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 22px; border: 1.5px solid var(--color-border);
  background: var(--color-surface); color: var(--color-ink);
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; line-height: 1;
  transition: background var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease);
}
button.chip { cursor: pointer; min-height: 44px; }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-accent); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-tight-semibold); font-size: 11px; font-weight: 600;
  letter-spacing: .4px; text-transform: uppercase;
  background: var(--color-surface-2); color: var(--color-muted);
}
.badge--accent { background: var(--color-accent-soft); color: var(--color-accent); }

.credit {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--color-accent-soft); color: var(--color-ink);
  font-family: var(--font-ui); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.credit .ic { --s: 16px; color: var(--color-accent); }

.progress { display: flex; align-items: center; gap: 14px; width: 100%; }
.progress__track { flex: 1; height: 6px; border-radius: 6px; background: var(--color-surface-2); overflow: hidden; }
.progress__fill {
  display: block; height: 100%; width: calc(var(--v, 0) * 100%);
  background: var(--gradient-accent); border-radius: 6px;
  transition: width var(--motion-base) var(--motion-ease);
}
.progress__label { font-size: 12px; font-weight: 700; color: var(--color-muted); }

/* ------------------------------------------------------------------- cover */
.cover {
  width: 172px; height: 172px; border-radius: 20px; overflow: hidden; flex-shrink: 0;
  background: var(--g, var(--gradient-adventure));
  box-shadow: 0 10px 26px rgba(80,50,20,.20);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--mini  { width: 96px;  height: 96px;  border-radius: 14px; }
.cover--sm    { width: 86px;  height: 104px; border-radius: 12px; }
.cover--thumb { width: 92px;  height: 108px; border-radius: 12px; }
.cover--lib   { width: 64px;  height: 80px;  border-radius: 10px; }
.cover--tall  { width: 112px; height: 150px; border-radius: 14px; }

.g-romance { --g: var(--gradient-romance); }
.g-fantasy { --g: var(--gradient-fantasy); }
.g-scifi { --g: var(--gradient-scifi); }
.g-mystery { --g: var(--gradient-mystery); }
.g-horror { --g: var(--gradient-horror); }
.g-comedy { --g: var(--gradient-comedy); }
.g-historical { --g: var(--gradient-historical); }
.g-contemporary { --g: var(--gradient-contemporary); }
.g-adventure { --g: var(--gradient-adventure); }

/* --------------------------------------------------------------- storycard */
.sc { display: flex; flex-direction: column; gap: 12px; width: 172px; flex-shrink: 0; text-align: left; }
.sc__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.sc__title {
  font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 20px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sc__sub { font-size: 13px; font-weight: 600; color: var(--color-muted); }
.sc--compact { flex-direction: row; align-items: center; width: 100%; }

.avatar {
  width: var(--av, 40px); height: var(--av, 40px); border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tone, var(--color-surface-2)); color: #fff;
  font-weight: 700; font-size: calc(var(--av, 40px) * .38);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------- the logo */
.logo { display: inline-flex; align-items: center; gap: 3px; min-height: 44px; }
.logo__k {
  width: 34px; height: 34px; border-radius: 10px; background: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center; padding-top: 5px;
  color: #fff; font-family: var(--font-brand-heavy); font-size: 26px; line-height: 1;
}
.logo__rest { font-family: var(--font-brand-heavy); font-size: 28px; line-height: 1; color: var(--color-accent); padding-top: 5px; }

/* --------------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--color-bg); box-shadow: 0 1px 0 var(--color-track); }
.nav__row { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__right { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.nav__links { display: flex; gap: 28px; }
.nav__links a, .foot__col a { font-size: 15px; font-weight: 600; color: var(--color-ink); }
.nav__links a { min-height: 44px; display: inline-flex; align-items: center; }
.nav__links a:hover, .foot__col a:hover { color: var(--color-accent); }
@media (max-width: 819px) { .nav__links { display: none; } }

/* ------------------------------------------------------------------- phone */
.phone {
  position: relative; width: 297px; height: 628px; flex-shrink: 0; border-radius: 48px;
  background: var(--color-ink); padding: 6px;
  box-shadow: inset 0 0 0 1.5px var(--color-muted), 0 0 0 1px var(--color-strong), var(--shadow-overlay);
}
.phone__btn { position: absolute; width: 3px; background: var(--color-strong); }
.phone__btn--l { left: -3px; border-radius: 2px 0 0 2px; }
.phone__btn--r { right: -3px; border-radius: 0 2px 2px 0; }
.phone__btn:nth-child(1) { top: 96px; height: 22px; }
.phone__btn:nth-child(2) { top: 136px; height: 44px; }
.phone__btn:nth-child(3) { top: 190px; height: 44px; }
.phone__btn:nth-child(4) { top: 150px; height: 70px; }
.phone__screen {
  width: 285px; height: 616px; border-radius: 42px; overflow: hidden; position: relative;
  background: var(--color-bg);
}
.ui {
  position: absolute; left: 0; top: 0; width: 390px; height: 844px;
  transform: scale(.7308); transform-origin: 0 0;
  display: flex; flex-direction: column; color: var(--color-ink);
}
.ui__home {
  position: absolute; z-index: 5; left: 50%; bottom: 8px; width: 136px; height: 5px; margin-left: -68px;
  border-radius: 3px; background: var(--ui-heading, var(--color-ink));
}
.status {
  height: 56px; flex-shrink: 0; padding: 4px 30px 0 52px; position: relative;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ui-heading, var(--color-ink));
}
.status__time { font-size: 17px; font-weight: 650; letter-spacing: -.2px; }
.status__island { position: absolute; left: 50%; top: 11px; margin-left: -62px; width: 124px; height: 36px; border-radius: 20px; background: var(--color-ink); }
.status__icons { display: flex; gap: 5px; align-items: center; }
.status__icons .ic { --s: 17px; color: currentColor; }
.ui__spacer { flex: 1; }
.ui__title { padding: 10px 20px 18px; font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.5px; }
.ui__sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 20px; }
.ui__sh-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.ui__sh-act { color: var(--color-accent); font-size: 13px; font-weight: 700; }
.ui__rail { display: flex; gap: 14px; padding: 14px 20px 0; overflow: hidden; }

.tabbar {
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--color-surface);
  border-top: 1px solid var(--color-track); padding: 8px 8px 20px;
}
.tabbar span {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px;
  color: var(--color-tertiary); font-size: 10.5px; font-weight: 700; letter-spacing: .2px;
}
.tabbar .ic { --s: 25px; color: currentColor; }
.tabbar .is-on { color: var(--color-accent); }

.home__head { padding: 6px 20px 12px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: baseline; font-family: var(--font-brand-heavy); }
.wordmark__w { font-size: 24px; line-height: 25px; color: var(--color-ink); }
.wordmark__w b { font-weight: inherit; color: var(--color-accent); }
.wordmark__ai { font-size: 10.3px; line-height: 12.5px; margin-left: 2px; color: var(--color-accent); }
.home__actions { display: flex; align-items: center; gap: 12px; }
.home__actions > .ic { --s: 25px; }
.home__greet { padding: 8px 20px 18px; }
.home__hello { font-family: var(--font-display); font-weight: 700; font-size: 27px; letter-spacing: -.4px; }
.home__note { font-size: 14px; color: var(--color-muted); margin-top: 4px; }

.cont {
  margin: 0 20px; padding: 16px; border-radius: 18px; background: var(--color-accent);
  box-shadow: 0 10px 24px rgba(255,107,26,.28); color: #fff;
  display: flex; gap: 14px; align-items: center;
}
.cont__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cont__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.cont__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.15; }
.cont__meta { font-size: 13px; font-weight: 600; }
.cont__bar { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cont__bar b { font-size: 12px; font-weight: 700; }
.cont--stack { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
.cont--stack .cont__title { font-size: 20px; }
.cont__row { display: flex; gap: 14px; align-items: center; }

.seg {
  margin: 0 20px 22px; padding: 4px; border-radius: 999px; background: var(--color-surface-2);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.seg span { padding: 9px 0; text-align: center; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--color-muted); }
.seg .is-on { background: var(--color-surface); box-shadow: var(--shadow-card); color: var(--color-ink); }

.inprog {
  margin: 14px 20px 0; padding: 16px; border-radius: 18px; background: var(--color-surface);
  box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 16px;
}
.inprog__item { display: flex; flex-direction: column; gap: 10px; }

.search {
  margin: 0 20px 16px; height: 48px; padding: 0 16px; border-radius: 14px;
  background: var(--color-surface); box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--color-tertiary);
}
.search .ic { --s: 20px; }
.ui__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 22px; }

/* reader phone: the theme vars cross-fade */
.reader {
  --ui-bg: var(--color-sepia); --ui-heading: var(--color-sepia-heading); --ui-body: var(--color-sepia-body);
  --ui-muted: var(--color-sepia-secondary); --ui-bar: rgba(231,220,198,.8);
}
.reader[data-theme="paper"] {
  --ui-bg: var(--color-surface); --ui-heading: var(--color-ink); --ui-body: var(--color-strong);
  --ui-muted: var(--color-muted); --ui-bar: rgba(243,242,239,.85);
}
.reader[data-theme="dark"] {
  --ui-bg: var(--color-ink); --ui-heading: var(--color-sepia); --ui-body: var(--color-sepia-placeholder);
  --ui-muted: var(--color-sepia-muted); --ui-bar: rgba(58,54,50,.72);
}
.reader .phone__screen { background: var(--ui-bg); transition: background var(--motion-base) var(--motion-ease); }
.reader .status, .reader .ui__home { transition: color var(--motion-base) var(--motion-ease), background var(--motion-base) var(--motion-ease); }
.reader__top { padding: 8px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.reader__top .ic { color: var(--ui-heading); transition: color var(--motion-base) var(--motion-ease); }
.reader__chap { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ui-muted); }
.reader__text { padding: 34px 30px 0; display: flex; flex-direction: column; gap: 18px; }
.reader__h { font-family: var(--font-reader); font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--ui-heading); }
.reader__text p { font-family: var(--font-reader); font-size: 18px; line-height: 30px; color: var(--ui-body); }
.reader__h, .reader__text p, .reader__chap, .reader__meta { transition: color var(--motion-base) var(--motion-ease); }
.reader__bar {
  margin: 0 16px 30px; padding: 18px; border-radius: 20px; background: var(--ui-bar);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-raised);
  display: flex; flex-direction: column; gap: 16px;
  transition: background var(--motion-base) var(--motion-ease);
}
.reader__meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ui-muted); }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.themes button {
  height: 52px; border-radius: 14px; cursor: pointer; border: 2px solid var(--color-border-strong);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 700; transition: border-color 160ms var(--motion-ease);
}
.themes button span { font-family: var(--font-reader); font-size: 17px; }
.themes [data-pick="paper"] { background: var(--color-surface); color: var(--color-ink); }
.themes [data-pick="sepia"] { background: var(--color-sepia); color: var(--color-sepia-heading); }
.themes [data-pick="dark"]  { background: var(--color-ink); color: var(--color-sepia); border-color: var(--color-strong); }
.themes [aria-pressed="true"] { border-color: var(--color-accent); }
/* The buttons are drawn at 390-scale and shrunk by .7308, so a 52px button is
   38px on screen. This invisible extension keeps the hit area at 44px+. */
.themes button { position: relative; }
.themes button::after { content: ""; position: absolute; inset: -6px -2px; }

/* -------------------------------------------------------------------- hero */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 5vw, 72px); }
.hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 80px);
  line-height: 1; letter-spacing: -.04em; text-wrap: balance;
}
.hero .lead { max-width: 30em; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 4px; }
.small-note { font-size: 13px; font-weight: 600; color: var(--color-muted); }
.hero__stage {
  flex: 1 1 480px; min-width: 0; position: relative; height: 680px;
  display: flex; align-items: center; justify-content: center;
}
.hero__stage .phone { z-index: 1; }
.float {
  position: absolute; z-index: 0; background: var(--color-surface); border-radius: 18px;
  padding: 12px 12px 14px; box-shadow: var(--shadow-raised);
}
.float--1 { left: calc(50% - 290px); top: 30px;  transform: rotate(-9deg); }
.float--2 { left: calc(50% + 100px); top: 200px; transform: rotate(8deg); }
.float--3 { left: calc(50% - 260px); top: 410px; transform: rotate(5deg); }
/* Narrow screens: a 297px phone leaves almost no room beside it, so the cards
   would sit hidden behind it. Below 600px the phone draws at 74% and the cards
   at 72%, fanned so each cover shows clearly at a page edge. */
@media (max-width: 600px) {
  .hero__stage { height: 560px; }
  .hero__stage .phone { transform: scale(.74); }
  .float--1 { left: calc(50% - 248px); top: -15px; transform: rotate(-9deg) scale(.72); }
  .float--2 { left: calc(50% + 52px);  top: 150px; transform: rotate(8deg) scale(.72); }
  .float--3 { left: calc(50% - 240px); top: 320px; transform: rotate(5deg) scale(.72); }
}

/* -------------------------------------------------------------- mood band */
.mood { padding-bottom: clamp(8px, 2vw, 24px); display: flex; flex-direction: column; gap: 16px; }
.mood .eyebrow { text-align: center; padding: 0 20px; }
.marquee {
  overflow: hidden; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: katha-marquee 70s linear infinite; }
.marquee__group { display: flex; gap: 12px; margin: 0; padding: 0 12px 0 0; list-style: none; }
.marquee .chip { font-size: 16px; padding: 13px 20px; border-radius: 999px; }
.marquee .chip .ic { --s: 17px; }
.marquee .chip--ink { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.marquee .chip--ink .ic { color: #fff; }
@keyframes katha-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------- reading, better */
.screens { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(40px, 4vw, 56px); }
.screen { width: 297px; display: flex; flex-direction: column; gap: 24px; }
.screen h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: -.02em; }
.caption { font-size: 15.5px; line-height: 1.5; color: var(--color-muted); }
.screen__copy { display: flex; flex-direction: column; gap: 6px; }

/* ----------------------------------------------------------- one seed demo */
.seed { background: var(--gradient-hero); }
.seed__row { display: flex; flex-wrap: wrap; gap: clamp(48px, 6vw, 88px); align-items: flex-start; }
.seed__left { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.rows { display: flex; flex-direction: column; border-bottom: 1px solid var(--color-border-strong); }
.row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0;
  border-top: 1px solid var(--color-border-strong);
}
.row__num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--color-accent); }
.row__body { display: flex; flex-direction: column; gap: 6px; }
.row__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

.demo {
  flex: 1 1 460px; min-width: 0; background: var(--color-surface); border-radius: 24px;
  box-shadow: var(--shadow-overlay); padding: clamp(20px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 20px;
}
.demo__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field { display: block; }
.field__label {
  display: block; margin-bottom: 8px; font-family: var(--font-tight-semibold); font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--color-tertiary);
}
.field input {
  width: 100%; height: 52px; padding: 0 16px; background: var(--color-surface); border-radius: 14px;
  border: 1.5px solid var(--color-border); outline: none;
  font-size: 17px; font-weight: 600; color: var(--color-ink);
  transition: border-color var(--motion-fast) var(--motion-ease);
}
.field input::placeholder { color: var(--color-tertiary); font-weight: 500; }
.field input:focus { border-color: var(--color-accent); box-shadow: var(--shadow-card); }
.demo__presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demo__presets > span { font-size: 13px; font-weight: 600; color: var(--color-muted); padding-right: 4px; }
.demo__go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.loading { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: var(--color-surface-2); }
.loading[hidden] { display: none; }
.loading__step { font-size: 14.5px; font-weight: 600; }
.unfold {
  display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(8px);
  transition: grid-template-rows var(--motion-slow) var(--motion-ease), opacity var(--motion-slow) var(--motion-ease), transform var(--motion-slow) var(--motion-ease);
}
.unfold.is-open { grid-template-rows: 1fr; opacity: 1; transform: none; }
.unfold > div { min-height: 0; overflow: hidden; }
.unfold:not(.is-open) { visibility: hidden; margin-top: -20px; }
.draft { display: flex; flex-direction: column; gap: 18px; padding: 20px; border-radius: 18px; background: var(--color-bg); }
.draft__head { display: flex; gap: 16px; align-items: flex-start; }
.draft__info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.draft__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.draft__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -.3px; }
.draft__meta { font-size: 13px; font-weight: 600; color: var(--color-muted); }
.draft__open { font-family: var(--font-reader); font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.draft__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------- stay the author */
.split { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); align-items: flex-start; }
.split__left { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split__left .lead { max-width: 26em; font-size: clamp(17px, 1.5vw, 19px); }
.split__right { flex: 1 1 420px; min-width: 0; }
.split .row { grid-template-columns: 28px minmax(0, 1fr); padding: 24px 0; }
.row__t { font-size: 18px; font-weight: 700; }

/* ---------------------------------------------------------- feature tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tile {
  background: var(--color-surface); border-radius: 18px; box-shadow: var(--shadow-card); padding: 22px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 170ms var(--motion-ease), box-shadow 170ms var(--motion-ease);
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); }
.tile__copy { display: flex; flex-direction: column; gap: 10px; }
.tile__title { font-size: 17px; font-weight: 700; }
.tile__text { font-size: 14.5px; line-height: 1.45; color: var(--color-muted); }
.well { margin-top: auto; padding: 14px; border-radius: 14px; background: var(--color-surface-2); display: flex; flex-direction: column; gap: 10px; }
.well--row { flex-direction: row; align-items: center; padding: 12px 14px; }
@media (min-width: 820px) { .tile--wide { grid-column: span 2; } }
.libtabs {
  padding: 3px; border-radius: 999px; background: var(--color-canvas);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.libtabs button {
  border: none; cursor: pointer; min-height: 32px; padding: 0 4px; border-radius: 999px;
  background: transparent; font-size: 12px; font-weight: 700; color: var(--color-muted);
  transition: background 160ms var(--motion-ease);
}
.libtabs [aria-selected="true"] { background: var(--color-surface); box-shadow: var(--shadow-card); color: var(--color-ink); }
.libcovers { display: flex; gap: 10px; overflow: hidden; }
.well .ic { --s: 16px; }
.duo { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.follow {
  min-height: 32px; padding: 0 14px; border: none; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; font-weight: 700; background: var(--color-accent); color: #fff;
  transition: background 160ms var(--motion-ease);
}
.follow[aria-pressed="true"] { background: var(--color-accent-soft); color: var(--color-accent); }
.swatches { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.swatches span {
  height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-reader); font-size: 22px; font-weight: 600;
}
.swatches span:first-child { background: var(--color-sepia); color: var(--color-sepia-heading); }
.swatches span:last-child { background: var(--color-ink); color: var(--color-sepia); }
.notif {
  margin-top: auto; padding: 12px; border-radius: 14px; background: var(--color-surface);
  box-shadow: var(--shadow-raised); display: flex; gap: 10px; align-items: center;
}
.notif__k {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; background: var(--color-accent);
  display: inline-flex; align-items: center; justify-content: center; padding-top: 3px;
  color: #fff; font-family: var(--font-brand-heavy); font-size: 20px;
}
.notif__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif__body b { font-size: 12.5px; }
.notif__body span { font-size: 12px; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ----------------------------------------------------------------- writers */
.writers { display: flex; flex-direction: column; gap: clamp(36px, 4vw, 48px); }
.wrail {
  display: flex; gap: clamp(20px, 3vw, 36px); overflow-x: auto; padding-top: 4px; padding-bottom: 8px;
  scrollbar-width: none; list-style: none; margin: 0;
}
.wrail::-webkit-scrollbar { display: none; }
.wrail li { flex-shrink: 0; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.wrail .avatar { --av: 72px; }
.wrail b { display: block; font-size: 14.5px; }
.wrail small { display: block; font-size: 13px; font-weight: 600; color: var(--color-muted); margin-top: 2px; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.wcard {
  background: var(--color-surface); border-radius: 18px; box-shadow: var(--shadow-card); padding: 18px;
  display: flex; gap: 18px; align-items: flex-start;
}
.wcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.wcard .badge { align-self: flex-start; }
.wcard__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.2; }
.wcard__by { font-size: 13px; font-weight: 600; color: var(--color-muted); }
.wcard__stats { display: flex; gap: 14px; align-items: center; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--color-strong); }
.wcard__stats span { display: inline-flex; align-items: center; gap: 5px; }
.wcard__stats .ic { --s: 16px; }
.wcard__stats .heart { color: var(--color-heart); }

/* ------------------------------------------------------------- maker note */
.maker {
  max-width: 760px; margin: 0 auto; background: var(--color-surface); border-radius: 24px;
  box-shadow: var(--shadow-raised); padding: clamp(28px, 5vw, 56px);
  display: flex; flex-direction: column; gap: 24px;
}
.maker h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.maker p { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.7; text-wrap: pretty; }
.maker__sig { display: flex; align-items: center; gap: 16px; padding-top: 8px; }
.maker__photo { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; background: var(--color-surface-2); display: flex; align-items: center; justify-content: center; }
.maker__photo { overflow: hidden; }
.maker__photo img { width: 100%; height: 100%; object-fit: cover; }
.maker__sig b { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.2px; }
.maker__sig span { display: block; font-size: 14px; color: var(--color-muted); margin-top: 2px; }

/* -------------------------------------------------------------- closing CTA */
.cta-sec { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 80px); }
.cta {
  max-width: 1200px; margin: 0 auto; position: relative; overflow: hidden;
  border-radius: clamp(24px, 3vw, 36px);
  background-color: var(--color-accent);
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    radial-gradient(120% 140% at 0% 0%, #FF8A3D 0%, var(--color-accent) 45%, color-mix(in oklch, var(--color-accent) 55%, var(--color-sepia-accent)) 100%);
  background-size: 56px 56px, 56px 56px, 100% 100%;
  background-position: -1px -1px, -1px -1px, 0 0;
  box-shadow: 0 18px 40px rgba(166,76,28,.22);
  padding: 0 clamp(24px, 6vw, 88px);
  display: flex; flex-wrap: wrap; align-items: stretch; column-gap: clamp(32px, 5vw, 72px);
}
.cta__text {
  flex: 1 1 380px; min-width: 0; padding: clamp(56px, 7vw, 96px) 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 32px;
}
.cta h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05; letter-spacing: -.035em; color: #fff; text-wrap: balance; max-width: 12em;
}
.btn--pill { border-radius: 999px; padding: 0 36px; box-shadow: 0 10px 24px rgba(120,40,0,.22); }
.cta__phone { flex: 0 0 auto; margin: 0 auto; display: flex; align-items: flex-end; padding-top: clamp(0px, 4vw, 56px); }
.cta__clip { height: 472px; overflow: hidden; padding: 0 4px; }
.cta__clip .phone { box-shadow: inset 0 0 0 1.5px var(--color-muted), 0 0 0 1px var(--color-strong), 0 24px 48px rgba(60,20,0,.28); }
@media (max-width: 520px) { .cta__text { padding-bottom: 40px; } }
/* Below ~360px the CTA block is narrower than the 297px phone: draw it smaller. */
@media (max-width: 360px) {
  .cta__phone, .cta__clip { width: 100%; display: flex; justify-content: center; }
  .cta__clip { height: 400px; }
  .cta__clip .phone { transform: scale(.85); transform-origin: top center; }
}

/* ------------------------------------------------------------------ footer */
.foot { padding-top: clamp(56px, 6vw, 80px); padding-bottom: 40px; }
.foot__inner { display: flex; flex-direction: column; gap: 56px; }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot__top .logo { align-self: flex-start; }
.foot__cols { display: flex; flex-wrap: wrap; gap: clamp(40px, 7vw, 96px); }
.foot__col { display: flex; flex-direction: column; gap: 4px; }
.foot__col .eyebrow { padding-bottom: 8px; }
.foot__col a { min-height: 44px; display: flex; align-items: center; }
.foot__bottom {
  padding-top: 24px; border-top: 1px solid var(--color-border-strong);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 13px; color: var(--color-muted);
}
.foot__bottom a { color: var(--color-muted); }
.foot__bottom a:hover { color: var(--color-accent-pressed); }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .tile:hover { transform: none; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================ legal pages */
/* Privacy, Terms, Delete account and Support are rendered by build.mjs from
   content/*.md into this frame: same nav and footer as the landing page, a
   white reading card on the parchment ground. */
.doc { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 64px); }
.doc__inner {
  max-width: 820px; margin: 0 auto; background: var(--color-surface); border-radius: 24px;
  box-shadow: var(--shadow-card); padding: clamp(24px, 5vw, 56px);
}
.doc__head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--color-track); }
.doc__head h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.06; letter-spacing: -.03em; text-wrap: balance;
}
.doc__updated { font-size: 14px; font-weight: 600; color: var(--color-muted); }

.toc { background: var(--color-surface-2); border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 36px; }
.toc h2 { margin-bottom: 8px; }
.toc ol, .toc ul { margin: 0; padding-left: 22px; columns: 2 220px; column-gap: 32px; }
.toc ul.toc--numbered { list-style: none; padding-left: 0; }
.toc li { font-size: 14.5px; line-height: 1.4; padding: 4px 0; break-inside: avoid; }
.toc a { color: var(--color-ink); font-weight: 600; }
.toc a:hover { color: var(--color-accent-pressed); }

.prose { font-size: 16.5px; line-height: 1.7; color: var(--color-strong); }
.prose > * + * { margin-top: 16px; }
.prose h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15; letter-spacing: -.02em; color: var(--color-ink);
  margin-top: 48px; scroll-margin-top: 96px;
}
.prose h3 { font-size: 18px; font-weight: 700; color: var(--color-ink); margin-top: 28px; scroll-margin-top: 96px; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong, .prose b { color: var(--color-ink); font-weight: 700; }
.prose a { color: var(--color-accent-pressed); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--color-ink); }
.prose code { font-size: .9em; background: var(--color-surface-2); padding: 1px 6px; border-radius: 6px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--color-border); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; min-width: 560px; }
.prose th { text-align: left; font-weight: 700; color: var(--color-ink); background: var(--color-surface-2); }
.prose th, .prose td { padding: 12px 14px; vertical-align: top; }
.prose tr + tr td { border-top: 1px solid var(--color-track); }

.callout { border-radius: var(--radius-md); padding: 16px 18px; background: var(--color-accent-soft); color: var(--color-ink); }
.callout--warn { background: #FCEAE7; }

/* forms on Delete account and Support */
.doc section.prose { margin-top: 48px; padding-top: 8px; }
.form { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.form .field { display: flex; flex-direction: column; gap: 8px; }
.form label { font-size: 15px; font-weight: 700; color: var(--color-ink); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; background: var(--color-surface);
  border: 1.5px solid var(--color-border-strong); font-size: 16px; color: var(--color-ink); outline: none;
  transition: border-color var(--motion-fast) var(--motion-ease);
}
.form textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--color-accent); box-shadow: var(--shadow-card); }
.form ::placeholder { color: var(--color-tertiary); }
.hint { font-size: 13.5px; font-weight: 500; color: var(--color-muted); }
label .hint { font-weight: 500; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--color-accent); }
.check label { font-weight: 500; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn {
  align-self: flex-start; background: var(--color-accent); color: #fff;
  box-shadow: 0 8px 20px rgba(255,107,26,.30), 0 1px 2px rgba(15,14,12,.06);
}
.form .btn:disabled { background: #EDE3D4; color: #B7AB99; box-shadow: none; }
.form-status { border-radius: var(--radius-md); padding: 14px 16px; font-size: 15px; background: var(--color-surface-2); }
.form-status[data-state="ok"] { background: #DCF5F1; color: #0B6B62; }
.form-status[data-state="err"] { background: #FCEAE7; color: #8F2C21; }
.form-status a { color: inherit; font-weight: 700; text-decoration: underline; }
.foot__col a[aria-current="page"] { color: var(--color-accent); }

/* 404 */
.lost { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding-top: 64px; padding-bottom: 64px; }
.lost h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.04em; line-height: 1; }
.lost nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.lost nav a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
