/* ==========================================================================
   recipedekho.in - one stylesheet, mobile first.
   Animation rules: transform and opacity only; nothing is ever left hidden
   if JavaScript does not run; prefers-reduced-motion turns movement off.
   ========================================================================== */

:root {
  --bg: #FBF6EE;
  --surface: #FFFFFF;
  --ink: #1E1712;
  --muted: #6B5E52;
  --line: #EADFD0;
  --accent: #C2410C;          /* the recipe sites' default accent */
  --accent-ink: #FFFFFF;
  --turmeric: #B7791F;
  --green: #2F7A47;
  --red: #B42318;

  --accent-wash: color-mix(in srgb, var(--accent) 9%, var(--surface));
  --accent-line: color-mix(in srgb, var(--accent) 30%, var(--line));
  --sunken: color-mix(in srgb, var(--ink) 4%, var(--bg));
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent);
  --shadow-md: 0 10px 30px -14px color-mix(in srgb, var(--ink) 30%, transparent);
  --shadow-lg: 0 30px 70px -30px color-mix(in srgb, var(--ink) 45%, transparent);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-hindi: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;

  --gutter: 16px;
  --header-h: 60px;
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.25, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15110E;
    --surface: #1F1915;
    --ink: #F5EEE6;
    --muted: #A89B8E;
    --line: #342B24;
    --accent: #FF8A4C;
    --accent-ink: #1A0F08;
    --turmeric: #E8B04B;
    --green: #5CC17E;
    --red: #FF7A6E;
    --shadow-md: 0 10px 30px -14px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 30px 70px -30px rgb(0 0 0 / 0.85);
  }
}

@media (min-width: 720px) { :root { --gutter: 32px; --header-h: 68px; } }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a, button, label, input, summary { touch-action: manipulation; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
code { font-size: 0.92em; padding: 0.1em 0.4em; border-radius: 6px; background: var(--sunken); }

::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.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;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(760px + 2 * var(--gutter)); }
.wrap--narrow { max-width: calc(560px + 2 * var(--gutter)); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display {
  font-family: var(--font-display);
  font-weight: 560;
  font-variation-settings: 'SOFT' 50, 'opsz' 96;
  font-size: clamp(2rem, 8.5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1rem;
}
.display--xl { font-size: clamp(2.6rem, 12vw, 5.2rem); }

.muted { color: var(--muted); }
.lead { font-size: 1.15rem; }
.fine { font-size: 0.86rem; color: var(--muted); }
.fine a, .muted a { color: var(--accent); }

.tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 46px;
  padding: 0 1.3rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.button:active { transform: scale(0.97); }
.button--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px -12px var(--accent); }
.button--primary:active { background: color-mix(in srgb, var(--accent) 88%, black); }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button--google { background: #fff; color: #1F1F1F; border-color: #DADCE0; box-shadow: var(--shadow-sm); }
.button--lg { min-height: 56px; padding: 0.6rem 1.6rem; font-size: 1.06rem; }
.button--small { min-height: 38px; padding: 0 1rem; font-size: 0.92rem; white-space: nowrap; }
.button--block { width: 100%; }
.button[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.g-logo { width: 20px; height: 20px; }

@media (hover: hover) and (pointer: fine) {
  .button--primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
  .button--ghost:hover { border-color: var(--accent); color: var(--accent); }
  .button--google:hover { background: #F8FAFF; border-color: #C6CBD2; }
}

/* --------------------------------------------------------------------------
   Header and footer
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__tile { fill: var(--accent); }
.brand__fill { fill: var(--accent-ink); }
.brand__line { stroke: var(--accent-ink); }
.brand__word { font-family: var(--font-display); font-weight: 620; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand__word span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 10px; border-radius: 999px;
  font-weight: 560; font-size: 0.95rem; text-decoration: none; color: var(--muted);
  white-space: nowrap;
}
.nav__link:active { color: var(--ink); background: var(--sunken); }
.nav__link--premium { display: none; }
/* On a phone, About moves to the footer to make room for the language switch. */
@media (max-width: 479px) { .nav__link--about { display: none; } }
.nav__me { margin-left: 4px; border-radius: 50%; }
@media (min-width: 640px) {
  .nav { gap: 8px; }
  .nav__link--premium { display: inline-flex; }
}
@media (hover: hover) and (pointer: fine) { .nav__link:hover { color: var(--ink); } }

/* The language switch: the other language, named in its own script. */
.langswitch {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 38px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--ink); text-decoration: none;
  font-size: 0.92rem; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: border-color 0.18s, color 0.18s, background-color 0.18s;
}
.langswitch__icon { width: 17px; height: 17px; color: var(--accent); }
.langswitch:active { background: var(--sunken); }
@media (hover: hover) and (pointer: fine) { .langswitch:hover { border-color: var(--accent); color: var(--accent); } }
/* A phone has room for the label or the icon, not both. */
@media (max-width: 399px) {
  .langswitch { padding: 0 10px; }
  .langswitch__icon { display: none; }
}

.footer { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--sunken); }
.footer__inner {
  display: grid; gap: 1.5rem;
  max-width: 1120px; margin-inline: auto;
  padding: 2.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
}
.footer__brand p { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__links a { color: var(--muted); text-decoration: none; font-weight: 560; padding: 6px 0; }
.footer__fine { margin: 0; color: var(--muted); font-size: 0.85rem; }
.footer__langs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--muted); }
.footer__langs .icon { width: 18px; height: 18px; margin-right: -6px; }
.footer__lang { padding: 6px 0; font-weight: 560; color: var(--muted); }
.footer__lang[aria-current] { color: var(--ink); font-weight: 650; }
a.footer__lang { text-underline-offset: 4px; text-decoration-color: var(--line); }
@media (min-width: 720px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__langs { grid-column: 2; justify-content: flex-end; }
  .footer__fine { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   The one-time language prompt (layout.js languagePrompt, lang.js)
   -------------------------------------------------------------------------- */

.langprompt {
  position: fixed; z-index: 60;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid; gap: 14px;
  padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  /* After the hero has had its moment. */
  animation: prompt-in 0.6s var(--ease) 1.4s both;
}
.langprompt__ask {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0;
  font-size: 1.05rem; font-weight: 600; line-height: 1.5;
}
.langprompt__icon { margin-top: 3px; color: var(--accent); }
.langprompt__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.langprompt__actions .button { flex: 1 1 auto; min-height: 44px; }
.langprompt.is-leaving { animation: prompt-out 0.3s var(--ease) both; }
@keyframes prompt-in { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
@keyframes prompt-out { to { opacity: 0; transform: translate3d(0, 24px, 0); } }
@media (min-width: 600px) {
  .langprompt { left: auto; right: var(--gutter); bottom: 24px; width: 380px; }
}

/* --------------------------------------------------------------------------
   Scroll reveals (assets/js/home.js adds html.reveal-on, then .is-in)
   -------------------------------------------------------------------------- */

.reveal {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-on .reveal:not(.is-in) { opacity: 0; transform: translate3d(0, 28px, 0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* Reading progress, where the browser can tie an animation to scrolling. */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress {
    display: block;
    position: fixed; inset: 0 0 auto; z-index: 60;
    height: 3px;
    background: var(--accent);
    transform-origin: 0 50%;
    transform: scaleX(0);
    animation: progress linear both;
    animation-timeline: scroll(root);
  }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* --------------------------------------------------------------------------
   Home: hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: 3rem var(--gutter) 6rem;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 45% at 50% 38%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(40% 35% at 78% 70%, color-mix(in srgb, var(--turmeric) 14%, transparent), transparent 70%);
}
.hero__hindi {
  margin: 0 0 0.4rem;
  font-family: var(--font-hindi);
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  color: var(--accent);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  font-size: clamp(3.3rem, 17vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero__lede {
  max-width: 30ch;
  margin: 1.6rem auto 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.6vw, 1.6rem);
  line-height: 1.35;
  color: var(--muted);
}
.hero__lede em { color: var(--ink); }

.hero__hindi, .hero__title, .hero__lede { animation: rise 1.1s var(--ease) both; }
.hero__title { animation-delay: 0.12s; }
.hero__lede { animation-delay: 0.45s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } }

/* As the hero scrolls away it gently recedes, where supported. */
@supports (animation-timeline: view()) {
  .hero__inner {
    animation: recede linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 90%;
  }
  @keyframes recede { to { opacity: 0.15; transform: translate3d(0, -40px, 0) scale(0.94); } }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem;
  display: grid; justify-items: center; gap: 8px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none;
  animation: rise 1s var(--ease) 1s both;
}
.scroll-cue__line { position: relative; width: 1.5px; height: 44px; overflow: hidden; background: var(--line); }
.scroll-cue__line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(-100%);
  animation: drip 2s var(--ease) infinite 1.8s;
}
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* --------------------------------------------------------------------------
   Home: chapters
   -------------------------------------------------------------------------- */

.chapter { padding-block: clamp(4.5rem, 16vh, 9rem); }
.chapter + .chapter { padding-top: 0; }

.line {
  margin: 0 0 1.1em;
  font-family: var(--font-display);
  font-weight: 380;
  font-variation-settings: 'SOFT' 30, 'opsz' 72;
  font-size: clamp(1.55rem, 6.4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.line em { font-style: italic; color: var(--accent); }
.line--accent { font-style: italic; font-weight: 500; color: var(--accent); }

/* The problem */
.chapter--problem .display { margin-bottom: 2.4rem; }
.pains { display: grid; gap: 14px; margin-bottom: clamp(3rem, 10vh, 5rem); }
@media (min-width: 860px) { .pains { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.pain {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.pain figcaption { margin-top: 14px; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }
.pain figcaption strong { color: var(--ink); }

.pain__mock {
  min-height: 112px;
  padding: 14px;
  border-radius: 14px;
  background: var(--sunken);
  font-size: 0.85rem;
  line-height: 1.5;
}
.pain__mock p { margin: 0; }
.pain__mock--desc p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pain__mock--desc .more { font-weight: 700; }

.pain__mock--comments { display: grid; gap: 8px; align-content: start; }
.pain__mock--comments { gap: 6px; }
.pain__mock--comments .count { font-weight: 700; }
.pain__mock--comments .count span { margin-left: 4px; font-weight: 500; color: var(--muted); }
.pain__mock--comments .pin { font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.pain__mock--comments .pinned { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pain__mock--comments .more { font-weight: 700; }

.pain__mock--scrub { display: grid; gap: 12px; align-content: center; }
.pain__mock--scrub .q { font-family: var(--font-display); font-style: italic; font-size: 1rem; }
.pain__mock--scrub .time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.scrub { position: relative; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.scrub__fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: #E53935;
  transform-origin: 0 50%;
  animation: scrub-fill 4.2s ease-in-out infinite;
}
.scrub__head {
  position: absolute; top: 50%; left: 0;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: #E53935;
  animation: scrub-head 4.2s ease-in-out infinite;
}
@keyframes scrub-fill {
  0%, 100% { transform: scaleX(0.5); } 22% { transform: scaleX(0.28); }
  45% { transform: scaleX(0.62); } 68% { transform: scaleX(0.4); } 85% { transform: scaleX(0.55); }
}
/* The head follows the fill. translate() percentages would be of the head
   itself, so it moves by a share of the track instead: the mock is a size
   container and the track spans its full width, so 100cqw is the track. */
.pain__mock--scrub { container-type: inline-size; }
@keyframes scrub-head {
  0%, 100% { transform: translateX(calc(0.5 * 100cqw)); }
  22% { transform: translateX(calc(0.28 * 100cqw)); }
  45% { transform: translateX(calc(0.62 * 100cqw)); }
  68% { transform: translateX(calc(0.4 * 100cqw)); }
  85% { transform: translateX(calc(0.55 * 100cqw)); }
}

/* The statement, lit word by word as it scrolls through (home.js). */
.statement {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 560;
  font-variation-settings: 'SOFT' 60, 'opsz' 144;
  font-size: clamp(2.1rem, 9.5vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.statement .w { transition: opacity 0.35s linear, color 0.35s linear; }
.words-on .statement .w { opacity: 0.14; }
.words-on .statement .w.is-lit { opacity: 1; }
.statement .w--key.is-lit, .statement:not(.has-words) .w--key { color: var(--accent); font-style: italic; }

/* The answer */
.chapter--answer { position: relative; }
.urlbar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 1rem 0 0;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: clamp(1rem, 4.4vw, 1.4rem);
  font-weight: 560;
  white-space: nowrap;
}
.urlbar__lock { color: var(--green); }
.urlbar__text { display: inline-flex; align-items: center; min-width: 0; overflow: hidden; }
.urlbar__sub { color: var(--accent); font-weight: 700; }
.urlbar__caret { width: 2px; height: 1.15em; margin-inline: 1px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.values {
  display: grid;
  gap: 14px;
  margin-top: clamp(3rem, 9vh, 4.5rem);
  margin-bottom: 0;
  list-style: none;
}
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1040px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.value__icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 14px;
  border-radius: 14px;
  background: var(--accent-wash);
  color: var(--accent);
}
.value h3 {
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.value p { margin: 0; color: var(--muted); }

/* How it works */
.steps { display: grid; gap: 0; margin: 2rem auto 0; list-style: none; max-width: calc(760px + 2 * var(--gutter)); }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding-bottom: 2rem; }
.step:not(:last-child)::before {
  content: ''; position: absolute; left: 25px; top: 54px; bottom: 6px;
  width: 1.5px; background: var(--accent-line);
}
.step__n {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}
.step h3 { padding-top: 10px; margin-bottom: 0.3rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 560; line-height: 1.25; }
.step p { margin: 0; color: var(--muted); }

/* Call to action */
.cta {
  margin: 2rem var(--gutter) 0;
  padding: clamp(3.5rem, 10vh, 6rem) 0;
  border-radius: 32px;
  background:
    radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--accent-wash);
  text-align: center;
}
@media (min-width: 1184px) { .cta { max-width: 1120px; margin-inline: auto; } }
.cta__sub { font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; }
.cta__fine { margin: 1.1rem 0 0; font-size: 0.9rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   About / privacy
   -------------------------------------------------------------------------- */

.prose-page { padding-block: clamp(3rem, 10vh, 6rem) 0; }
.prose { font-size: 1.1rem; line-height: 1.7; margin: 1rem 0 2.5rem; }
.prose p { margin-bottom: 1.15em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.6em; }
.prose a { color: var(--accent); }

.mission {
  margin: 0 0 2.5rem;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--accent-wash);
  border-left: 4px solid var(--accent);
}
.mission blockquote { margin: 0; }
.mission blockquote p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 5vw, 1.75rem);
  line-height: 1.35;
}
.signoff { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 2rem; }
.signoff span { color: var(--muted); font-size: 1rem; }

/* --------------------------------------------------------------------------
   Sign in, errors
   -------------------------------------------------------------------------- */

.auth { display: grid; place-items: start center; padding: clamp(1.5rem, 6vh, 4rem) var(--gutter) 0; }
.auth__card {
  width: 100%; max-width: 540px;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 560px) { .auth__card { padding: 40px; } }
.auth__card .display { font-size: clamp(1.7rem, 6.5vw, 2.3rem); }
.auth__card > .button { width: 100%; margin: 0.6rem 0 0.4rem; }
.auth__card--center { text-align: center; }
.big-status { margin: 0; font-family: var(--font-display); font-size: 4rem; font-weight: 600; color: var(--accent); line-height: 1; }

.dev-login { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.dev-login .button { width: 100%; }
.dev-login .fine { margin: 6px 0 0; }

.permissions { display: grid; gap: 12px; margin: 1.6rem 0 1.2rem; padding: 18px; list-style: none; border-radius: 16px; background: var(--sunken); }
.permissions li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; line-height: 1.45; }
.permissions .icon { color: var(--accent); margin-top: 1px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 1rem 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--sunken);
  font-size: 0.95rem;
  line-height: 1.45;
}
.notice .icon { margin-top: 1px; }
.notice--error { background: color-mix(in srgb, var(--red) 10%, var(--surface)); color: var(--red); }
.notice--warn { background: color-mix(in srgb, var(--turmeric) 14%, var(--surface)); }

/* --------------------------------------------------------------------------
   App pages
   -------------------------------------------------------------------------- */

.app { padding-top: clamp(1.5rem, 5vh, 3rem); }
.app__head { margin-bottom: 1.5rem; }
.app__head .display { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 0.5rem; }

.back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 1.2rem; min-height: 40px;
  color: var(--muted); font-weight: 600; text-decoration: none;
}

.panel {
  margin-bottom: 18px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
@media (min-width: 720px) { .panel { padding: 28px; } }
.panel__title { margin-bottom: 0.4rem; font-family: var(--font-display); font-weight: 580; font-size: 1.45rem; line-height: 1.2; }
.panel--quiet { background: var(--sunken); }
.panel--empty { text-align: center; padding-block: 40px; }
.empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: var(--accent-wash); color: var(--accent); }
.empty__icon .icon { width: 30px; height: 30px; }

/* Avatars */
.avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; background: var(--sunken); }
.avatar--sm { width: 34px; height: 34px; font-size: 0.95rem; }
.avatar--lg { width: 72px; height: 72px; font-size: 1.9rem; }
.avatar--initial {
  display: inline-grid; place-items: center;
  background: var(--accent-wash); color: var(--accent);
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
}
.avatar--sm.avatar--initial { font-size: 0.95rem; }
.avatar--lg.avatar--initial { font-size: 1.9rem; }

/* Channel picker */
.choose fieldset { border: 0; margin: 1rem 0 1.2rem; padding: 0; }
.channels { display: grid; gap: 10px; }
.channel {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
  transition: border-color 0.18s, background-color 0.18s, transform 0.18s var(--ease);
}
.channel:active { transform: scale(0.985); }
.channel input { position: absolute; opacity: 0; pointer-events: none; }
.channel:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.channel:has(input:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.channel__body { display: grid; min-width: 0; flex: 1; }
.channel__title { font-weight: 650; font-size: 1.05rem; line-height: 1.3; margin: 0; }
.channel__handle { color: var(--muted); font-size: 0.9rem; margin: 0; overflow-wrap: anywhere; }
.channel__stats { color: var(--muted); font-size: 0.85rem; }
.channel__tick {
  display: grid; place-items: center;
  width: 28px; height: 28px; flex: none;
  border: 1.5px solid var(--line); border-radius: 50%;
  color: transparent;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.channel input:checked ~ .channel__tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.channel__tick .icon { width: 16px; height: 16px; }

/* Site cards */
.sites { display: grid; gap: 12px; margin: 1rem 0 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .sites { grid-template-columns: repeat(2, 1fr); } }
.site { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.site__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.site__who { min-width: 0; }
.site__channel { margin: 0; font-weight: 650; }
.site__url { margin: 0; color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
.site__url a { text-decoration: none; }
.site__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.site__note { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.site__note:last-child { margin-bottom: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 650;
  background: var(--sunken); color: var(--muted);
}
.pill--pending { background: color-mix(in srgb, var(--turmeric) 16%, var(--surface)); color: color-mix(in srgb, var(--turmeric) 75%, var(--ink)); }
.pill--live { background: color-mix(in srgb, var(--green) 14%, var(--surface)); color: var(--green); }
.pill--plan { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.pill--big { font-size: 1rem; padding: 6px 16px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Premium - visible, greyed out, not selectable */
.premium {
  position: relative;
  margin: 34px 0 18px;
  padding: 34px 18px 22px;
  border: 1.5px dashed var(--accent-line);
  border-radius: 24px;
  background: var(--surface);
}
@media (min-width: 720px) { .premium { padding: 40px 28px 28px; } }
.premium__soon {
  position: absolute; left: 0; right: 0; top: -18px; z-index: 1;
  display: flex; justify-content: center;
  margin: 0;
}
.premium__soon span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px -10px var(--accent);
}
.premium__body {
  filter: grayscale(1);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.billing { display: inline-flex; gap: 4px; margin: 0.6rem 0 1rem; padding: 4px; border-radius: 999px; background: var(--sunken); }
.billing__opt { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; }
.billing__opt:has(input:checked) { background: var(--surface); box-shadow: var(--shadow-sm); }
.billing__opt input { position: absolute; opacity: 0; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.2rem; }
.plan { display: grid; gap: 2px; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; }
.plan input { position: absolute; opacity: 0; }
.plan--premium { border-color: var(--accent); background: var(--accent-wash); }
.plan__name { font-weight: 700; }
.plan__price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.plan__note { font-size: 0.82rem; color: var(--muted); }

.features { display: grid; gap: 10px; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.feature { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; }
.feature__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-wash); color: var(--accent); }
.feature strong { display: block; line-height: 1.3; }
.feature span span { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.feature input { width: 20px; height: 20px; margin: 10px 0 0; accent-color: var(--accent); }

/* Subdomain form */
.chosen { display: flex; align-items: center; gap: 12px; margin-bottom: 1.4rem; padding: 12px 14px; border-radius: 18px; background: var(--sunken); }
.chosen p { margin: 0; }
.chosen__title { font-weight: 650; }
.chosen__meta { font-size: 0.88rem; color: var(--muted); }

.claim__label { display: block; margin-bottom: 8px; font-weight: 650; }
.claim__field {
  display: flex; align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.claim__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.claim__field.is-ok { border-color: var(--green); }
.claim__field.is-bad { border-color: var(--red); }
.claim__scheme { display: none; color: var(--muted); }
@media (min-width: 480px) { .claim__scheme { display: inline; } }
.claim__field input {
  flex: 1; min-width: 0;
  padding: 0; border: 0; outline: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 1.15rem; font-weight: 650;
}
.claim__suffix { color: var(--muted); font-weight: 560; white-space: nowrap; }
.claim__status { min-height: 1.6em; margin: 8px 0 2px; font-weight: 600; font-size: 0.95rem; }
.claim__status.is-ok { color: var(--green); }
.claim__status.is-bad { color: var(--red); }
.claim__status.is-busy { color: var(--muted); }
.claim__email { display: flex; gap: 10px; align-items: flex-start; margin: 1.4rem 0; padding: 12px 14px; border-radius: 14px; background: var(--sunken); font-size: 0.95rem; overflow-wrap: anywhere; }
.claim__email .icon { color: var(--accent); margin-top: 2px; }

/* Done */
.done { text-align: center; padding-top: 1rem; }
.done__art { position: relative; width: 120px; height: 120px; margin: 0 auto 1.4rem; display: grid; place-items: end center; }
.done__pot { width: 110px; height: 110px; color: var(--accent); stroke-width: 1.3; }
.steam {
  position: absolute; bottom: 70px;
  width: 6px; height: 34px; border-radius: 3px;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent) 50%, transparent), transparent);
  animation: steam 2.4s ease-in-out infinite;
}
.steam.s1 { left: 38px; }
.steam.s2 { left: 57px; animation-delay: 0.6s; }
.steam.s3 { left: 76px; animation-delay: 1.2s; }
@keyframes steam {
  0% { opacity: 0; transform: translate3d(0, 10px, 0) scaleY(0.6); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(0, -26px, 0) scaleY(1.2); }
}
.done .lead { margin-bottom: 0.6rem; }
.next { display: grid; gap: 10px; margin: 2rem 0; padding: 18px; list-style: none; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.next li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.next .icon { color: var(--accent); margin-top: 1px; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Profile */
.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-bottom: 1.6rem; }
.profile-head .display { font-size: clamp(1.6rem, 7vw, 2.4rem); margin: 0 0 0.2rem; overflow-wrap: anywhere; }
.profile-head .muted { margin: 0; overflow-wrap: anywhere; }
.profile-head__out { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .profile-head { grid-template-columns: auto 1fr auto; }
  .profile-head__out { grid-column: auto; }
}
.profile-grid { display: grid; gap: 0 18px; }
@media (min-width: 900px) { .profile-grid { grid-template-columns: 1fr 1.4fr; align-items: start; } }

.plan-row { display: flex; align-items: center; gap: 12px; margin: 0.8rem 0; }
.plan-row p { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 650; text-decoration: none; min-height: 40px; }
.link-arrow .icon { width: 1.05em; height: 1.05em; }

.facts { margin: 0.8rem 0 0; }
.facts__group { display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts__group:first-child { border-top: 0; padding-top: 4px; }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts dd a { color: var(--accent); }

.channel-list { display: grid; gap: 14px; margin: 1rem 0 0; padding: 0; list-style: none; }
.channel-card { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.channel-card__body { min-width: 0; flex: 1; }
.channel-card__body .channel__title { font-size: 1.15rem; }
.channel-card__desc { color: var(--muted); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; }
.stats { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0 4px; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.stats strong { color: var(--ink); }

.ledger { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.95rem; }
.ledger th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.85rem; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ledger td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) {
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger tr { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ledger td { display: grid; grid-template-columns: 7rem 1fr; padding: 0; border: 0; }
  .ledger td::before { content: attr(data-label); color: var(--muted); font-size: 0.85rem; }
}

/* --------------------------------------------------------------------------
   Hindi pages (<html lang="hi">)

   Devanagari faces sit behind the Latin ones, so each script gets its own
   font glyph by glyph: Fraunces + Tiro Devanagari for display, Instrument
   Sans + Noto Sans Devanagari for text. Devanagari needs more room above and
   below the line for its matras, and letter-spacing breaks the headline
   (shirorekha) that joins the letters of a word, so both are reset.
   -------------------------------------------------------------------------- */

html[lang="hi"] {
  --font-display: 'Fraunces', 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', Georgia, serif;
  --font-body: 'Instrument Sans', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
html[lang="hi"] body { line-height: 1.75; }
html[lang="hi"] :is(.display, .hero__title, .statement, .line, .hero__lede, .eyebrow, .scroll-cue, .tag, .panel__title, .step h3, .value h3) {
  letter-spacing: normal;
}
html[lang="hi"] .display { line-height: 1.3; }
html[lang="hi"] .hero__title { line-height: 1.15; }
html[lang="hi"] .statement { line-height: 1.4; }
html[lang="hi"] :is(.line, .hero__lede) { line-height: 1.55; }
html[lang="hi"] :is(.panel__title, .step h3, .value h3) { line-height: 1.45; }
html[lang="hi"] .eyebrow { font-size: 0.95rem; font-weight: 650; }
html[lang="hi"] .scroll-cue { font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   Reduced motion: no movement, content simply present.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__inner { animation: none !important; }
  .progress { display: none !important; }
}
