/* Flatlog — flatlog.in. A short story told on one drawn building: the book's round, then the same month
   on every phone. Look: the app's final restyle (Decisions 2026-11-29 and 30 Nov): paper #FAF7F1, white cards
   with a line border, Sapphire for the one main button, Mineral Teal secondary, Albert Sans with Noto Sans
   Telugu, pill-shaped buttons and chips, cards 24, fields 16, tiles 12. */

@font-face { font-family: 'Albert Sans'; font-weight: 400; font-display: swap; src: url(fonts/albert-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Albert Sans'; font-weight: 400; font-display: swap; src: url(fonts/albert-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Noto Sans Telugu'; font-weight: 400; font-display: swap; src: url(fonts/noto-sans-telugu-telugu-400-normal.woff2) format('woff2'); unicode-range: U+0951-0952,U+0964-0965,U+0C00-0C7F,U+1CDA,U+1CF2,U+200C-200D,U+25CC; }
@font-face { font-family: 'Albert Sans'; font-weight: 500; font-display: swap; src: url(fonts/albert-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Albert Sans'; font-weight: 500; font-display: swap; src: url(fonts/albert-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Noto Sans Telugu'; font-weight: 500; font-display: swap; src: url(fonts/noto-sans-telugu-telugu-500-normal.woff2) format('woff2'); unicode-range: U+0951-0952,U+0964-0965,U+0C00-0C7F,U+1CDA,U+1CF2,U+200C-200D,U+25CC; }
@font-face { font-family: 'Albert Sans'; font-weight: 600; font-display: swap; src: url(fonts/albert-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Albert Sans'; font-weight: 600; font-display: swap; src: url(fonts/albert-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Noto Sans Telugu'; font-weight: 600; font-display: swap; src: url(fonts/noto-sans-telugu-telugu-600-normal.woff2) format('woff2'); unicode-range: U+0951-0952,U+0964-0965,U+0C00-0C7F,U+1CDA,U+1CF2,U+200C-200D,U+25CC; }

:root {
  /* surfaces and text */
  --ground: #FAF7F1; --surface: #FFFFFF; --line: #DAD5CC; --control-line: #857F74; --fill: #EAE6DD;
  --ink: #1C1B19; --ink-2: #4F4A41;
  /* action: Sapphire by importance */
  --action: #0F52BA; --action-pressed: #0B4196; --action-text: #0B4196; --action-line: #A3BDE8; --action-soft: #E8EFFB; --on-action: #FFFFFF;
  /* secondary: Mineral Teal (tiles a card leads with, the dark strip) */
  --secondary: #3F716A; --secondary-soft: #DCEBE8; --dark: #1E4842; --dark-line: #2E5F58; --on-dark-2: #E3F1EE;
  /* money states, always with a word and an icon */
  --owes: #9B2C20; --owes-soft: #FBEDEA; --paid: #2E6B4A; --paid-soft: #EAF3EE;
  --waiting: #7A4E12; --waiting-soft: #FAF0DE; --signed: #1E3A6E; --signed-soft: #E8EFFB;
  /* records */
  --page: #FEFBF6; --page-rule: #C2D9FF; --page-rule-head: #93BCFF; --page-margin: #E2544A;
  /* night (Sapphire 900/800) and the app icon's art colours, for the drawings only */
  --night: #082451; --night-2: #0C3474; --on-night-2: #E8EFFB;
  --art-coral: #F4694E; --art-mustard: #FFB223; --art-night: #0A2F75; --art-blue: #3072DF;

  --sans: 'Albert Sans', 'Noto Sans Telugu', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* five sizes, in rem so they follow the phone's font size */
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-lead: clamp(1.25rem, 0.95rem + 1.1vw, 1.875rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4.75rem);
  --step-display: clamp(3rem, 1rem + 7.4vw, 7.75rem);
  --m: clamp(1.25rem, 2.6vw, 2.5rem);
  --gap: clamp(1rem, 2vw, 1.5rem);
  --section: clamp(4.5rem, 2.5rem + 7vw, 10rem);
  --r-pill: 999px; --r-card: 24px; --r-field: 16px; --r-tile: 12px; --r-status: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Material Symbols Rounded 400 (Apache 2.0) */
  --chev: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%20-960%20960%20960%22%3E%3Cpath%20d%3D%22M469-358q-5-2-10-7L261-563q-9-9-8.5-21.5T262-606q9-9%2021.5-9t21.5%209l175%20176%20176-176q9-9%2021-8.5t21%209.5q9%209%209%2021.5t-9%2021.5L501-365q-5%205-10%207t-11%202q-6%200-11-2Z%22/%3E%3C/svg%3E");
  /* scene tokens (vendor/stage.css) */
  --accent: var(--action); --font-display: var(--sans); --font-text: var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang="te"] body { line-height: 1.75; }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
html[lang="te"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 600; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
::selection { background: var(--action-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--m); }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 10; background: var(--action); color: var(--on-action); padding: 12px 20px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.br { display: none; }
.h-head { font-size: var(--step-head); max-width: 15ch; }
html[lang="te"] .h-head { font-size: calc(var(--step-head) * 0.74); max-width: 18ch; }

/* buttons: pill-shaped. One main (Sapphire, white words) per screen; every other is outline. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.5rem; padding: 0.7em 1.5em; border-radius: var(--r-pill); border: 1.5px solid transparent; font-weight: 600; font-size: var(--step-body); line-height: 1.2; text-decoration: none; text-align: center; transition: transform 140ms var(--ease-out), background-color 180ms ease, border-color 180ms ease; }
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 3rem; padding: 0.4em 1.15em; }
.btn--main { background: var(--action); color: var(--on-action); }
.btn--main:active { background: var(--action-pressed); }
.btn--outline { background: var(--surface); color: var(--action-text); border-color: var(--action-line); }
.btn--outline:active { background: var(--action-soft); }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.22em; min-height: 3rem; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) {
  .btn--main:hover { background: var(--action-pressed); }
  .btn--outline:hover { background: var(--action-soft); }
}
.lang { border: 1.5px solid var(--action-line); border-radius: var(--r-pill); background: var(--surface); color: var(--action-text); min-height: 3rem; padding: 0.35em 1.1em; font-weight: 600; font-size: var(--step-body); transition: background-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .lang:hover { background: var(--action-soft); } }
.mark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.01em; min-height: 3rem; }
.mark__icon { width: 2.25rem; height: 2.25rem; border-radius: 22%; flex: none; }

/* ---------- the drawn building ---------- */
.bld { width: 100%; height: 100%; overflow: visible; }
.bld--day { --b-shutter: #CFC9BE; --b-shutline: #AFA89C; --b-wall: #FFFFFF; --b-out: #1C1B19; --b-slab: #DAD5CC; --b-door: #0C3474; --b-knob: #FFB223; --b-win: #E8EFFB; --b-lit: #FFD27A; --b-mul: #1C1B19; --b-num: #1C1B19; --b-core: #EAE6DD; --b-stair: #857F74; --b-stilt: #EAE6DD; --b-board: #0C3474; --b-boardtext: #FFFFFF; --b-tank: #1C1B19; --b-tank2: #3A3631; --b-road: #DAD5CC; --b-sep: #EAE6DD; --b-scoot: #4F4A41; --b-wheel: #1C1B19; }
.bld--night { --b-shutter: #0A2F75; --b-shutline: #082451; --b-wall: #0E3A7E; --b-out: #1B4C98; --b-slab: #0A2F75; --b-door: #061B3E; --b-knob: #FFB223; --b-win: #143F82; --b-lit: #FFC95C; --b-mul: #082451; --b-num: #E8EFFB; --b-core: #0B3270; --b-stair: #3A64A8; --b-stilt: #061B3E; --b-board: #FFFFFF; --b-boardtext: #1C1B19; --b-tank: #061B3E; --b-tank2: #133A78; --b-road: #0A2F75; --b-sep: #0B3270; --b-scoot: #1B4C98; --b-wheel: #061B3E; }
.b-wall { fill: var(--b-wall); } .b-out { stroke: var(--b-out); stroke-width: 3; }
.b-slab { fill: var(--b-slab); } .b-door { fill: var(--b-door); } .b-knob { fill: var(--b-knob); }
.b-win { fill: var(--b-win); } .b-lit { fill: var(--b-lit); } .b-mul { fill: var(--b-mul); }
.b-num { fill: var(--b-num); font: 600 15px var(--sans); }
.b-core { fill: var(--b-core); } .b-stair { fill: none; stroke: var(--b-stair); stroke-width: 3; stroke-linejoin: round; }
.b-sep { fill: var(--b-sep); } .b-stilt { fill: var(--b-stilt); }
.b-board { fill: var(--b-board); } .b-boardtext { fill: var(--b-boardtext); font: 600 17px var(--sans); }
.b-tank { fill: var(--b-tank); } .b-tank2 { fill: var(--b-tank2); } .b-rib { fill: var(--b-tank2); }
.b-road { fill: var(--b-road); } .b-gate { fill: var(--b-door); }
.b-scoot { fill: var(--b-scoot); } .b-wheel { fill: var(--b-wheel); } .b-handle { fill: var(--b-wheel); }
.b-phone { fill: #1C1B19; } .b-screen { fill: #FFFFFF; }
.b-sig { fill: var(--signed-soft); stroke: var(--signed); stroke-width: 1.5; } .b-tick { fill: none; stroke: var(--signed); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.b-pend { fill: none; stroke: var(--owes); stroke-width: 4; stroke-dasharray: 9 6; }
.b-book { fill: var(--night-2); } .b-ribbon { fill: var(--art-coral); } .b-bookline { fill: var(--page); }
.b-bill { fill: #FFFFFF; stroke: #1C1B19; stroke-width: 2; }
.b-shopsign { fill: var(--art-mustard); } .b-shoptext { fill: #1C1B19; font: 600 12px var(--sans); }
.b-shutter { fill: var(--b-shutter); } .b-shutline { fill: var(--b-shutline); }

/* ---------- hero: the building in daylight, every flat signed ---------- */
.hero { background: var(--surface); color: var(--ink); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: clip; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.bar__right { display: flex; align-items: center; gap: 0.5rem; }
.hero__grid { display: grid; gap: 1.75rem; padding-top: clamp(1rem, 4vw, 2rem); }
.hero__h1 { font-size: var(--step-head); max-width: 13ch; line-height: 1.02; }
html[lang="te"] .hero__h1 { font-size: calc(var(--step-head) * 0.78); max-width: 14ch; }
.hero__p { font-size: var(--step-lead); line-height: 1.35; margin-top: 1rem; max-width: 30ch; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.75rem; }
.hero__actions .btn { flex: 1 1 100%; }
.hero__art { height: min(62svh, 560px); }
.tailor { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.tailor > .field--name, .tailor > .opts, .tailor > [data-show], .tailor > .opt--ph, .tailor__sum, .tailor__note { grid-column: 1 / -1; }
.field { display: grid; gap: 0.4rem; }
.field label, .field__l, .opts legend { font-size: var(--step-small); font-weight: 500; color: var(--ink-2); }
.field input { width: 100%; min-height: 3.5rem; border: 1.5px solid var(--control-line); border-radius: var(--r-field); background: var(--surface); color: var(--ink); padding: 0.4rem 1rem; font-family: var(--sans); font-size: 1.125rem; appearance: textfield; -moz-appearance: textfield; }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input::placeholder { color: var(--ink-2); opacity: 1; }
.field input:focus-visible { outline: 3px solid var(--action-line); outline-offset: 1px; border: 2px solid var(--action); padding-inline: calc(1rem - 0.5px); }
.step { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3rem; align-items: center; gap: 0.375rem; max-width: 14rem; }
.step input { text-align: center; padding-inline: 0.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.step input:focus-visible { padding-inline: calc(0.25rem - 0.5px); }
.step__b { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--action-text); border: 1.5px solid var(--action-line); padding: 0; }
.step__b .ico { width: 1.5rem; height: 1.5rem; }
.step__b:active { background: var(--action-soft); }
.opts { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 0.4rem; }
.opts legend { padding: 0; margin-bottom: 0.4rem; }
.opts__row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opt { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 3rem; padding: 0 1.15rem; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); border: 1.5px solid var(--control-line); font-weight: 600; cursor: pointer; user-select: none; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opt .ico { display: none; width: 1.15rem; height: 1.15rem; }
.opt.is-on { background: var(--action-soft); border-color: var(--action); color: var(--action-text); }
.opt.is-on .ico { display: block; }
.opt:focus-within { outline: 2px solid var(--action); outline-offset: 2px; }
.opt--ph { justify-self: start; }
.tailor__sum { font-weight: 600; color: var(--ink); }
.tailor__note { grid-column: 1 / -1; font-size: var(--step-small); color: var(--ink-2); }

/* ---------- the two stories ---------- */
.story { padding-block: var(--section); }
.story--book { background: var(--ground); }
.story--month { background: var(--action-soft); color: var(--ink); }
.story__grid { display: grid; gap: 1.5rem; }
.story__h { font-size: var(--step-head); max-width: 16ch; }
html[lang="te"] .story__h { font-size: calc(var(--step-head) * 0.7); }
.beats { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
.beat { font-size: var(--step-lead); font-weight: 500; line-height: 1.3; max-width: 24ch; }
.story__meta { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
/* the date, drawn as the app's date tile */
.cal { display: grid; justify-items: center; align-content: center; width: 5.25rem; min-height: 5.25rem; padding: 0.4rem 0.25rem; background: var(--secondary-soft); color: var(--ink); border-radius: var(--r-tile); flex: none; }
.cal__m { font-size: var(--step-small); font-weight: 500; color: var(--ink-2); line-height: 1.2; }
.cal__d { font-size: 2.5rem; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.count { font-weight: 600; white-space: nowrap; }
.story__art { height: min(78svh, 640px); }
.month__visual { display: grid; gap: 1.5rem; }
.month__phone { width: 100%; max-width: 24rem; justify-self: center; }

/* live: the stage holds while the story plays */
.scene.is-live { padding: 0; }
.scene.is-live .scene-stage { display: flex; }
.scene.is-live .story__grid { height: 100%; grid-template-rows: auto minmax(0, 1fr); padding-block: clamp(1rem, 4svh, 2.5rem); }
.scene.is-live .beats { display: grid; margin-top: 0.9rem; }
.scene.is-live .beat { grid-area: 1 / 1; }
.scene.is-live .story__meta { margin-top: 0.9rem; }
.scene.is-live .story__art { height: 100%; min-height: 0; }
.scene.is-live .month__visual { min-height: 0; display: grid; }
.scene.is-live .month__visual > * { grid-area: 1 / 1; min-height: 0; }
.scene.is-live .month__phone { align-self: center; height: 100%; display: flex; align-items: center; }
.scene.is-live .month__phone .ui { max-height: 100%; }

/* ---------- interface pieces (data-ui): the app's own look ---------- */
.ui { background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: var(--step-body); line-height: 1.4; overflow: clip; text-align: left; }
.ui--phone { border-radius: 28px; position: relative; display: grid; width: 100%; }
.ui--phone .scr { grid-area: 1 / 1; display: grid; grid-template-rows: auto 1fr; }
.scene:not(.is-live) .ui--phone .scr:not(.scr--remind) { display: none; }
.ui__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding: 0.95rem 1.1rem 0.6rem; }
.ui__bar--chat { background: var(--dark); color: #FFFFFF; padding-bottom: 0.85rem; }
.ui__title { font-weight: 600; font-size: 1.125rem; line-height: 1.25; }
.ui__meta { font-size: var(--step-small); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.ui__body { padding: 0.4rem 0.9rem 1.1rem; display: grid; gap: 0.75rem; align-content: start; }
.ui__body--chat { background: var(--fill); gap: 0.55rem; padding-top: 0.9rem; }
.ui__panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 0.9rem 1rem; display: grid; gap: 0.6rem; } /* taste-skill-ignore: app card, inside data-ui */
.ui__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.ui__row--total { padding-top: 0.6rem; border-top: 1px solid var(--line); font-weight: 600; } /* taste-skill-ignore: inside data-ui */
.ui__note { font-size: var(--step-small); font-weight: 500; color: var(--ink-2); }
.ui__h { font-size: var(--step-small); font-weight: 600; color: var(--ink-2); letter-spacing: 0.04em; text-transform: uppercase; }
:lang(te) .ui__h, html[lang="te"] .ui__h { text-transform: none; letter-spacing: 0; }
.ui__big { font-weight: 600; font-size: 1.125rem; }
.ui__sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); font-size: var(--step-small); font-weight: 500; color: var(--ink-2); } /* taste-skill-ignore: inside data-ui */
.ui__sum strong { display: block; color: var(--ink); font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ui__claim { font-weight: 600; }
.ui__card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 0.9rem; display: grid; gap: 0.6rem; } /* taste-skill-ignore: app card, inside data-ui */
.ui__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ui__btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 2.75rem; padding: 0.4rem 1.1rem; border-radius: var(--r-pill); background: var(--action); color: var(--on-action); border: 1.5px solid var(--action); font-weight: 600; font-size: var(--step-small); white-space: nowrap; }
.ui__btn--out { background: var(--surface); color: var(--action-text); border-color: var(--action-line); }
.ui__btn .ico { width: 1.2rem; height: 1.2rem; }
.ui__list { display: grid; }
.ui__list li { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.55rem 0; border-top: 1px solid var(--line); } /* taste-skill-ignore: inside data-ui */
.ui__list li:first-child { border-top: 0; }
.ui__list--bills li { display: grid; grid-template-columns: 1fr auto auto; }
.ui__list--bills strong { font-weight: 500; }
.ui__flat { display: inline-grid; place-items: center; min-width: 3.25rem; min-height: 2.5rem; padding: 0 0.5rem; border-radius: var(--r-tile); background: var(--secondary-soft); font-weight: 600; }
.amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2rem; padding: 0 0.7rem; border-radius: var(--r-status); font-size: var(--step-small); font-weight: 600; white-space: nowrap; }
.tag .ico { width: 1rem; height: 1rem; }
.tag--signed { background: var(--signed-soft); color: var(--signed); }
.remwrap { display: grid; justify-items: end; }
.remwrap > * { grid-area: 1 / 1; align-self: center; }
.scene:not(.is-live) .remind { visibility: hidden; }
.thumb { width: 2.2rem; height: 2.2rem; border-radius: 8px; background: var(--fill); display: grid; align-content: center; gap: 3px; padding: 0 6px; }
.thumb span { height: 3px; background: #B3ACA0; border-radius: 2px; }
.thumb span:nth-child(2) { width: 70%; }
.thumb--none { background: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 0.2rem; min-width: 3.4em; min-height: 2rem; padding: 0 0.6em; border-radius: var(--r-pill); background: var(--fill); color: var(--ink-2); font-size: var(--step-small); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip .ico { width: 0.95rem; height: 0.95rem; display: none; }
.chip.is-signed { background: var(--signed-soft); color: var(--signed); }
.chip.is-signed .ico { display: block; }
.chip--more { background: transparent; }
.bubble { background: var(--surface); border-radius: 4px 16px 16px 16px; padding: 0.55rem 0.8rem 0.4rem; max-width: 94%; display: grid; gap: 0.15rem; font-size: var(--step-small); line-height: 1.45; }
.bubble__from { font-weight: 600; color: var(--secondary); }
.bubble__link { color: var(--action-text); text-decoration: underline; }
.bubble__time { justify-self: end; font-size: 0.8125rem; color: var(--ink-2); }
.bubble--file { grid-template-columns: auto 1fr; align-items: center; gap: 0.7rem; }
.bubble--file strong { display: block; word-break: break-all; font-weight: 600; }
.pdf { width: 2.4rem; height: 2.8rem; background: var(--secondary-soft); color: var(--ink); font-weight: 600; font-size: 0.8125rem; display: grid; place-items: center; border-radius: 6px; }
.steppers, .form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.stepper, .fld { display: grid; gap: 0.1rem; background: var(--surface); border: 1.5px solid var(--control-line); border-radius: var(--r-field); padding: 0.45rem 0.85rem; }
.stepper strong, .fld strong { font-weight: 400; font-size: 1.25rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fld--wide { grid-column: 1 / -1; }
.fld--on { border: 2px solid var(--action); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--step-small); font-weight: 600; }
.seg span { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 2.5rem; padding: 0 0.9rem; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--control-line); } /* taste-skill-ignore: app chip, inside data-ui */
.seg .is-on { background: var(--action-soft); border: 1.5px solid var(--action); color: var(--action-text); }
.seg .ico { width: 1rem; height: 1rem; }

/* ---------- between the stories: their own book ---------- */
.mid { background: var(--surface); padding-block: var(--section); }
.mid__grid { display: grid; gap: 2rem; }
.mid__art { margin: 0; }
.ledger { display: block; width: 100%; max-width: 34rem; height: auto; margin-inline: auto; }
.lg-page { fill: var(--page); stroke: var(--line); stroke-width: 1.5; }
.lg-margin { stroke: var(--page-margin); stroke-width: 2; }
.lg-title { font-family: var(--sans); font-size: 32px; font-weight: 600; fill: var(--ink); letter-spacing: -0.4px; }
.lg-sub { font-family: var(--sans); font-size: 19px; font-weight: 500; fill: var(--ink-2); }
.lg-col { font-family: var(--sans); font-size: 16px; font-weight: 600; fill: var(--ink-2); }
.lg-flat, .lg-amt { font-family: var(--sans); font-size: 22px; font-weight: 500; fill: var(--ink); font-variant-numeric: tabular-nums; }
.lg-more { font-family: var(--sans); font-size: 17px; font-weight: 500; fill: var(--ink-2); }
.lg-rule { stroke: var(--page-rule); stroke-width: 1.5; }
.lg-rule--head { stroke: var(--page-rule-head); stroke-width: 2.5; }
.lg-sig { fill: none; stroke: var(--art-blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lg-gap { fill: var(--owes-soft); stroke: var(--owes); stroke-width: 1.5; stroke-dasharray: 5 5; }
.mid__text { display: grid; gap: 1.25rem; }
.mid__p { font-size: var(--step-lead); font-weight: 500; line-height: 1.35; max-width: 26ch; }
.facts { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.facts li { display: flex; gap: 0.75rem; align-items: center; font-size: var(--step-lead); font-weight: 500; line-height: 1.3; }
.facts .ico { width: 2.25rem; height: 2.25rem; padding: 0.4rem; border-radius: var(--r-tile); background: var(--secondary-soft); fill: var(--ink); }

/* ---------- set-up ---------- */
.setup { padding-block: var(--section); }
.setup__head { display: grid; gap: 1rem; }
.setup__p { max-width: 34ch; font-size: var(--step-lead); font-weight: 500; line-height: 1.35; }
.cards { display: grid; gap: 2.75rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.card { display: grid; gap: 0.75rem; align-content: start; }
.card__ui { height: 25rem; border-radius: var(--r-card); border: 1px solid var(--line); margin-bottom: 0.5rem; } /* taste-skill-ignore: app card */
.card__h { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; }
.card__p { max-width: 36ch; }
.how summary, .q summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; min-height: 3rem; font-weight: 600; }
.how summary { color: var(--action-text); }
.how summary::-webkit-details-marker, .q summary::-webkit-details-marker { display: none; }
.how summary::after, .q summary::after { content: ''; flex: none; width: 1.5rem; height: 1.5rem; background: currentColor; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transition: transform 220ms var(--ease-out); }
.q summary::after { color: var(--ink-2); background: var(--ink-2); }
.how[open] summary::after, .q[open] summary::after { transform: rotate(180deg); }
.how p { padding: 0.25rem 0 0.5rem; max-width: 52ch; }
.how a { font-weight: 600; color: var(--action-text); }
.setup__go { display: grid; gap: 0.75rem; margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- questions ---------- */
.faq { background: var(--surface); padding-block: var(--section); }
.faq__grid { display: grid; gap: 2rem; }
.qs { display: grid; gap: 0.75rem; }
.q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 0.4rem 1.25rem; } /* taste-skill-ignore: brand rule, white cards with a 1px line border (Decisions 2026-11-29) */
.q summary { justify-content: space-between; font-size: var(--step-lead); line-height: 1.25; padding-block: 0.6rem; }
.q p { padding: 0 0 1rem; max-width: 56ch; }

/* ---------- the close: on the app's Mineral Teal strip ---------- */
.cta { background: var(--secondary-soft); color: var(--ink); padding-block: calc(var(--section) * 0.9); }
.cta__in { display: grid; justify-items: center; text-align: center; gap: 2rem; }
.cta__h { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.04em; }
html[lang="te"] .cta__h { font-size: calc(var(--step-display) * 0.6); line-height: 1.3; letter-spacing: 0; }
.cta__row { display: grid; gap: 0.75rem; justify-items: center; width: min(100%, 22rem); }
.cta__row .btn { width: 100%; }
.cta__or { font-weight: 500; color: var(--ink-2); }

.foot { background: var(--ground); color: var(--ink); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.foot__grid { display: grid; gap: 2.5rem; }
.foot__h { font-size: var(--step-head); margin-top: 1.5rem; max-width: 11ch; }
html[lang="te"] .foot__h { font-size: calc(var(--step-head) * 0.68); }
.foot__links { display: grid; gap: 0.25rem; }
.foot__links a { font-size: var(--step-lead); font-weight: 500; text-decoration: none; display: inline-flex; min-height: 3rem; align-items: center; word-break: break-word; }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover { color: var(--action-text); text-decoration: underline; } }
.foot__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; font-size: var(--step-small); color: var(--ink-2); }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .hero__actions .btn { flex: 0 0 auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .setup__go { grid-template-columns: auto auto; justify-content: start; }
  .cta__row { grid-template-columns: 1fr auto 1fr; width: min(100%, 40rem); align-items: center; }
  .mid__grid { grid-template-columns: 1fr 1fr; column-gap: var(--gap); align-items: center; }
}
@media (min-width: 1000px) {
  .br { display: inline; }
  .hero { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
  .hero__grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr auto; column-gap: var(--gap); align-items: center; padding-top: 0; }
  .hero__text { grid-column: 1 / 7; grid-row: 1; align-self: end; }
  .tailor { grid-column: 1 / 6; grid-row: 2; align-self: start; margin-top: 1.5rem; }
  .hero__art { grid-column: 7 / 13; grid-row: 1 / 3; height: min(80svh, 720px); }
  .hero__h1 { max-width: 12ch; }

  .story__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
  .story__text { grid-column: 1 / 6; }
  .story__art { grid-column: 6 / 13; }
  .story__grid--month .story__text { grid-column: 1 / 6; }
  .month__visual { grid-column: 6 / 13; grid-template-columns: 1fr 1.1fr; align-items: center; gap: var(--gap); }
  .scene.is-live .story__grid { grid-template-rows: 1fr; }
  .scene.is-live .story__art { height: min(88svh, 900px); }
  .scene.is-live .month__visual { height: 100%; grid-template-columns: 1fr 1.1fr; }
  .scene.is-live .month__visual > * { grid-area: auto; }
  .scene.is-live .month__phone { height: auto; max-height: 86svh; }
  .scene.is-live .month__art { height: min(80svh, 820px); }

  .setup__head { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
  .setup__head .h-head { grid-column: 1 / 8; }
  .setup__p { grid-column: 8 / 13; }
  .cards { grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); }

  .faq__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .faq__grid .h-head { grid-column: 1 / 5; }
  .qs { grid-column: 5 / 13; }

  .foot__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .foot__brand { grid-column: 1 / 7; }
  .foot__links { grid-column: 8 / 13; }
  .foot__legal { grid-column: 1 / -1; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__text > * { animation: rise 700ms var(--ease-out) both; }
  .js .hero__text > :nth-child(2) { animation-delay: 120ms; }
  .js .hero__text > :nth-child(3) { animation-delay: 220ms; }
  .js .hero__art .flat .lit, .js .hero__art .flat .ph, .js .hero__art .flat .sig { animation: glow 500ms var(--ease-out) both; animation-delay: calc(500ms + var(--i, 0) * 70ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 560ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--d, 0ms) * 0.6); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  details[open] > p { animation: rise 360ms var(--ease-out); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes glow { from { opacity: 0; } to { opacity: 1; } }
