/* Kaviyam home page. The only stylesheet index.html loads besides the Google Fonts one.
   The site's content-security policy allows no <style> block and no style attribute, so every rule lives here. */
/* ---------- tokens: night is the lead look ---------- */
:root {
  color-scheme: dark;
  --f-text: "Tiro Tamil", "Iowan Old Style", "Palatino Linotype", Palatino, "Tamil Sangam MN", "Nirmala UI", Latha, Georgia, serif;
  --f-pen: "Nanum Pen Script", "Bradley Hand", "Segoe Print", "Chalkboard SE", cursive;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-ui: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --page: #0A0D14;
  --raised: #12151C;
  --raised-2: #171B24;
  --line: #1C2029;
  --line-2: #262B36;
  --line-3: #3D4452;
  --text: #ECEEF3;
  --text-2: #8A93A6;
  --pen: #D4475A;
  --pen-text: #EC6A64;
  --blue: #7EA2F5;
  --on-blue: #0A0D14;
  --gold: #C9A14A;
  --gold-text: #C9A14A;
  --btn: #B23445;
  --btn-text: #F3F0F1;
  --focus: #ECEEF3;
  --kolam: #3D4452;
  --note: #F3EEE3;           /* the sticky note on the first screen */
  --note-text: #161A26;

  /* the same in both looks */
  --tape: #E6D7A8;           /* paper tape */
  --bar: #0A0D14;
  --bar-line: #1C2029;
  --bar-btn: #B23445;
  --bar-btn-text: #F3F0F1;
  --bar-pen: #D4475A;
  --bar-text: #ECEEF3;
  --bar-text-2: #8A93A6;
  --band: #9C2B3A;
  --band-text: #FBF4EA;
  --band-btn: #FBF4EA;
  --band-btn-text: #9C2B3A;
  --bb: #2B4C9B;             /* the blue pencil band: the person's yes */
  --bb-text: #FBF4EA;
  --bb-text-2: #DCE3F5;
  --bb-line: #5A73B4;
  --bb-lit: #FBF4EA;
  --bb-lit-text: #1F3A80;
  --scr: #12151C;            /* the product's own screen: always night */
  --scr-2: #171B24;
  --scr-line: #262B36;
  --scr-line-2: #3D4452;
  --scr-text: #ECEEF3;
  --scr-text-2: #8A93A6;
  --scr-blue: #7EA2F5;
  --scr-gold: #C9A14A;
  --scr-on-blue: #0A0D14;
  --scr-focus: #ECEEF3;
  --table: #D9D2C3;          /* the cream table the real pieces sit on */
  --table-page: #F3EEE3;
  --table-sheet: #FFFDF8;
  --table-ink: #161A26;
  --table-ink-2: #454A5C;
  --table-line: #BDB4A3;
  --table-pen: #9C2B3A;
  --table-blue: #2B4C9B;
  --table-blue-text: #FBF4EA;
  --table-gold: #7E6019;
  --table-focus: #161A26;
  --clear: transparent;

  --wrap: 78rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --page: #FAF6EE;
    --raised: #FFFDF8;
    --raised-2: #F3EEE3;
    --line: rgba(22, 26, 38, 0.10);
    --line-2: rgba(22, 26, 38, 0.18);
    --line-3: rgba(22, 26, 38, 0.32);
    --text: #161A26;
    --text-2: #454A5C;
    --pen: #9C2B3A;
    --pen-text: #9C2B3A;
    --blue: #2B4C9B;
    --on-blue: #FBF4EA;
    --gold: #A8842B;
    --gold-text: #7E6019;
    --btn: #9C2B3A;
    --btn-text: #FBF4EA;
    --focus: #161A26;
    --kolam: rgba(22, 26, 38, 0.30);
    --note: #EDE3CC;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #FAF6EE;
  --raised: #FFFDF8;
  --raised-2: #F3EEE3;
  --line: rgba(22, 26, 38, 0.10);
  --line-2: rgba(22, 26, 38, 0.18);
  --line-3: rgba(22, 26, 38, 0.32);
  --text: #161A26;
  --text-2: #454A5C;
  --pen: #9C2B3A;
  --pen-text: #9C2B3A;
  --blue: #2B4C9B;
  --on-blue: #FBF4EA;
  --gold: #A8842B;
  --gold-text: #7E6019;
  --btn: #9C2B3A;
  --btn-text: #FBF4EA;
  --focus: #161A26;
  --kolam: rgba(22, 26, 38, 0.30);
  --note: #EDE3CC;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); }
.k { font-family: var(--f-text); font-size: 1.1875rem; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
:where(.k) :is(h1, h2, h3, p, ol, ul, figure) { margin: 0; }
:where(.k) :is(ol, ul) { padding: 0; list-style: none; }
.k img, .k video, .k svg { display: block; max-width: 100%; }
:where(.k) button { font: inherit; color: inherit; cursor: pointer; }
.k :focus { outline: none; }
.k :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.inner { max-width: var(--wrap); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 46px; padding: 0.55rem 1.2rem;
  background: var(--btn); color: var(--btn-text);
  font-family: var(--f-ui); font-weight: 600; font-size: 1rem;
  border: 0; border-radius: 8px; text-decoration: none;
  transition: transform 160ms var(--ease);
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }

/* hand-drawn underline */
.u { position: relative; white-space: nowrap; }
.u svg { position: absolute; left: -0.04em; bottom: -0.12em; width: calc(100% + 0.1em); height: 0.32em; overflow: visible; pointer-events: none; }
.u path { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.u-red path { stroke: var(--pen); }

/* the word yes, written by hand: the poster's loudest word */
.pen-yes { font-family: var(--f-pen); font-weight: 400; color: var(--blue); font-size: 1.7em; line-height: 0.5; letter-spacing: 0; display: inline-block; transform: rotate(-5deg) translateY(0.04em); position: relative; padding-inline: 0.04em; }
.pen-yes svg { position: absolute; left: -0.05em; right: -0.05em; bottom: -0.02em; width: calc(100% + 0.1em); height: 0.26em; overflow: visible; }
.pen-yes path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }

/* ---------- header ---------- */
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 0.6rem 1rem; background: var(--bar-text); color: var(--bar); font-family: var(--f-ui); font-weight: 600; font-size: 1rem; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.masthead { background: var(--bar); border-bottom: 1px solid var(--bar-line); }
.masthead .inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
/* the kit's header lockup, inked in currentColor: on the night bar it is the night wordmark. It never moves. */
.masthead .brand { display: block; width: 140px; height: 35px; flex: none; color: var(--bar-text); border-radius: 4px; }
.masthead .brand:focus-visible { outline-color: var(--scr-focus); }
.masthead .brand-logo { width: 140px; height: 35px; }
/* quiet on purpose: on the first screen the one thing to press is the Yes */
.masthead .btn { background: var(--clear); color: var(--bar-text); border: 1.5px solid var(--bar-text-2); font-weight: 500; }
.masthead .btn:hover { border-color: var(--bar-text); }
.masthead .btn:focus-visible { outline-color: var(--scr-focus); }

/* ---------- 1. the first screen ---------- */
.hero { position: relative; overflow: clip; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: grid; align-items: center; padding-block: 1.75rem; }
.hero .inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.who-for { display: inline-block; font-family: var(--f-ui); font-weight: 600; font-size: 1.05rem; line-height: 1.3; background: var(--table); color: var(--table-ink); padding: 0.4rem 0.8rem; border-radius: 4px; transform: rotate(-1.5deg); margin-bottom: 1.5rem; }
.hero .inner > div:first-child { position: relative; z-index: 1; }
.hero h1 { font-weight: 400; font-size: clamp(2.25rem, 0.8rem + 4.6vw, 5.5rem); line-height: 1.0; letter-spacing: -0.022em; }
.hero h1 > span { display: block; text-wrap: balance; }
.hero h1 > span + span { margin-top: 0.36em; }

/* the stage: a phone, Kavi's message, one big Yes */
.hstage { position: relative; display: grid; justify-items: center; gap: 0.85rem; font-family: var(--f-ui); }
/* the brand kolam, one thin looping line round five dots, drawn large behind the phone.
   At rest it is complete; your yes redraws it in the blue pencil. */
.k .kolam-bg { position: absolute; z-index: 0; width: 940px; max-width: none; left: 50%; top: calc(50% + 30px); transform: translate(-50%, -50%); pointer-events: none; overflow: visible; }
.kolam-bg .k-ln { fill: none; stroke: var(--kolam); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke 600ms var(--ease); }
.kolam-bg .kd { fill: var(--kolam); transform-box: fill-box; transform-origin: center; }
.kolam-bg .kd-c { fill: var(--pen); }
.hstage.is-sent .kolam-bg .k-ln { stroke: var(--blue); animation: redraw 1700ms var(--ease) both; }
.hstage.is-sent .kolam-bg .kd:not(.kd-c) { fill: var(--blue); }
.hstage.is-sent .kolam-bg .kd { animation: dot 900ms var(--ease) both; }
.hstage.is-sent .kolam-bg .kd:nth-of-type(2) { animation-delay: 300ms; }
.hstage.is-sent .kolam-bg .kd:nth-of-type(3) { animation-delay: 500ms; }
.hstage.is-sent .kolam-bg .kd:nth-of-type(4) { animation-delay: 700ms; }
.hstage.is-sent .kolam-bg .kd:nth-of-type(5) { animation-delay: 900ms; }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dot { 0% { transform: scale(1); } 40% { transform: scale(2.4); } 100% { transform: scale(1); } }

.hphone {
  --focus: var(--scr-focus);
  position: relative; z-index: 1;
  width: min(100%, 27rem);
  background: var(--scr); color: var(--scr-text);
  border: 3px solid var(--scr-line-2); border-radius: 42px;
  padding: 0.6rem 0.8rem 0.9rem;
}
.speaker { display: block; width: 4.4rem; height: 6px; border-radius: 999px; background: var(--scr-line-2); margin: 0.1rem auto 0.55rem; }
.ph-top { display: flex; align-items: center; gap: 0.6rem; padding: 0 0.3rem 0.65rem; border-bottom: 1px solid var(--scr-line); }
.ph-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--bar); border: 1px solid var(--scr-line-2); display: grid; place-items: center; flex: none; }
.ph-mark svg { width: 26px; height: 26px; }
.ph-name { font-weight: 600; font-size: 1.1rem; }
.ph-body { display: grid; gap: 0.55rem; padding: 0.8rem 0.1rem 0; }
.hmsg { justify-self: start; background: var(--scr-2); border: 1px solid var(--scr-line); border-radius: 18px 18px 18px 6px; padding: 0.55rem 0.85rem; font-size: 1.05rem; font-weight: 500; transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.hmsg.off { opacity: 0; transform: translateY(8px); }
.hdots { justify-self: start; display: inline-flex; gap: 4px; padding: 0.75rem 0.9rem; background: var(--scr-2); border-radius: 18px 18px 18px 6px; }
.hdots span { width: 7px; height: 7px; border-radius: 50%; background: var(--scr-text-2); animation: blink 900ms ease-in-out infinite; }
.hdots span:nth-child(2) { animation-delay: 150ms; } .hdots span:nth-child(3) { animation-delay: 300ms; }

.post { background: var(--table-sheet); color: var(--table-ink); border-radius: 14px; padding: 0.85rem 1rem 0.85rem; position: relative; }
.post-who { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.55rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--table-ink); color: var(--table-sheet); display: grid; place-items: center; font-weight: 600; font-size: 0.85rem; flex: none; }
.post-who b { display: block; font-weight: 600; font-size: 0.98rem; line-height: 1.2; }
.post-who small { display: block; font-size: 0.8rem; color: var(--table-ink-2); }
.post-body { font-size: 1.08rem; line-height: 1.45; }
.post-body .w { transition: opacity 180ms linear; }
.post-body .w.off { opacity: 0; }
.cut { text-decoration-line: line-through; text-decoration-thickness: 0.13em; text-decoration-color: var(--clear); transition: text-decoration-color 400ms var(--ease), color 400ms var(--ease); }
.cut.on { text-decoration-color: var(--table-pen); color: var(--table-ink-2); }
.pen-note { font-family: var(--f-pen); font-size: 1.85rem; line-height: 0.6; color: var(--table-pen); margin-left: 0.3rem; opacity: 0; transition: opacity 300ms var(--ease); display: inline-block; transform: rotate(-5deg) translateY(0.1em); white-space: nowrap; }
.pen-note.on { opacity: 1; }
.tick { position: absolute; right: 0.9rem; bottom: 0.35rem; width: 70px; height: 56px; pointer-events: none; }
.tick path { fill: none; stroke: var(--table-blue); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; }
/* a pencil note pointing at the Yes: it is there whenever it is your turn */
.press { position: absolute; right: 0.7rem; bottom: -1.05rem; z-index: 2; display: flex; align-items: flex-start; gap: 0.1rem; font-family: var(--f-pen); font-size: 2rem; line-height: 1; color: var(--table-blue); pointer-events: none; transform: rotate(-4deg); opacity: 0; transition: opacity 240ms var(--ease); }
.press svg { width: 30px; height: 36px; margin-top: 0.15rem; overflow: visible; }
.press path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hstage.is-wait .press { opacity: 1; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(5px); } }
.hstage.is-sent .tick path { stroke-dashoffset: 0; transition: stroke-dashoffset 600ms var(--ease) 100ms; }

.yes {
  position: relative; display: block; width: 100%; min-height: 88px; margin-top: 0.75rem;
  background: var(--scr-blue); color: var(--scr-on-blue);
  border: 3px solid var(--scr-blue); border-radius: 26px;
  font-family: var(--f-pen); font-size: 4.2rem; line-height: 1; padding: 0.08em 0 0;
  transition: transform 160ms var(--ease), background 300ms, color 300ms;
}
.yes:hover { transform: rotate(-1.5deg) scale(1.02); }
.yes:active { transform: scale(0.97); }
.yes .ring { position: absolute; inset: -7px; border: 3px solid var(--scr-blue); border-radius: 32px; opacity: 0; pointer-events: none; }
.hstage.is-wait .yes .ring { animation: ring 1.8s var(--ease) infinite; }
@keyframes ring { 0% { opacity: 0.9; transform: scale(0.97); } 70% { opacity: 0; transform: scale(1.08); } 100% { opacity: 0; } }
.hstage:not(.is-wait):not(.is-sent) .yes { opacity: 0.55; }
.hstage.is-sent .yes { background: var(--clear); color: var(--scr-blue); }

.status { position: relative; z-index: 1; background: var(--page); padding: 0.1rem 0.7rem; border-radius: 6px; font-size: 1.12rem; line-height: 1.35; font-weight: 600; text-align: center; color: var(--text); min-height: 1.35em; }
.hstage.is-sent .status { color: var(--blue); }
.hfoot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
/* the honest tag: a sticky note, taped on */
.soon { position: relative; display: inline-block; text-wrap: balance; text-align: left; font-family: var(--f-mono); font-weight: 500; font-size: 0.86rem; line-height: 1.4; letter-spacing: 0; color: var(--note-text); background: var(--note); border-radius: 2px; padding: 0.7rem 0.9rem 0.6rem; max-width: 19rem; transform: rotate(-1.2deg); }
.soon::before { content: ""; position: absolute; top: -9px; left: 50%; width: 58px; height: 18px; margin-left: -29px; background: var(--tape); transform: rotate(-4deg); clip-path: polygon(3% 0, 97% 5%, 100% 30%, 96% 55%, 100% 80%, 97% 100%, 2% 95%, 0 70%, 4% 45%, 0 20%); }
.ctl { min-width: 44px; height: 44px; padding: 0 0.9rem; display: inline-grid; place-items: center; background: var(--page); color: var(--text); border: 1.5px solid var(--line-3); border-radius: 999px; font-family: var(--f-ui); font-weight: 600; font-size: 0.92rem; }
.ctl.icon { width: 44px; padding: 0; }
.ctl svg { width: 14px; height: 14px; fill: currentColor; }
.ctl:hover { border-color: var(--text); }

/* ---------- section furniture ---------- */
.sec { padding-block: clamp(4rem, 9vw, 8rem); }
.sec-head { display: grid; gap: 0.9rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); justify-items: start; }
.sec h2 { font-weight: 400; font-size: clamp(2.6rem, 0.9rem + 5.6vw, 6.8rem); line-height: 0.98; letter-spacing: -0.024em; text-wrap: balance; }
.lede { font-size: clamp(1.3rem, 1rem + 1vw, 1.95rem); line-height: 1.3; font-style: italic; }

/* ---------- 2. the week: the whole band is the cream table ---------- */
.week { background: var(--table); color: var(--table-ink); --focus: var(--table-focus); }
.pieces { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
.piece { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.piece-label { font-family: var(--f-pen); font-size: clamp(2.2rem, 1.6rem + 1.4vw, 3.2rem); line-height: 0.9; color: var(--table-ink); }
.p-car { grid-column: span 7; }
.p-vid { grid-column: span 5; }
.p-post { grid-column: span 5; }
.p-news { grid-column: span 7; }
.p-long { grid-column: span 12; }
.slide-frame { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.slide-frame img { width: 100%; height: 100%; object-fit: cover; }
.car-ctl { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.icon-btn { width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid var(--table-ink); background: var(--clear); color: var(--table-ink); display: grid; place-items: center; transition: transform 160ms var(--ease); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--table-ink); color: var(--table); }
.icon-btn:active { transform: scale(0.92); }
.car-count { font-family: var(--f-ui); font-weight: 600; font-size: 1rem; color: var(--table-ink); min-width: 5.5em; text-align: center; }
.looks { display: flex; margin-bottom: clamp(1.1rem, 2.4vw, 1.9rem); }
.brands { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.brands-label { font-family: var(--f-pen); font-size: 2rem; line-height: 1; color: var(--table-ink); margin-right: 0.3rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 52px; padding: 0.25rem 1rem 0.25rem 0.3rem; border-radius: 999px; border: 2px solid var(--table-ink); background: var(--clear); color: var(--table-ink); font-family: var(--f-ui); font-size: 1rem; font-weight: 600; }
.chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chip[aria-pressed="true"] { background: var(--table-blue); border-color: var(--table-blue); color: var(--table-blue-text); }
.slide-frame img.flip { animation: flip 380ms var(--ease); }
@keyframes flip { from { transform: translateX(14px) rotate(1deg); } to { transform: none; } }

.vid-frame { position: relative; aspect-ratio: 9 / 16; width: min(100%, 24rem); border-radius: 8px; overflow: hidden; background: var(--table-ink); }
.vid-frame video { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.55rem; min-height: 56px; padding: 0 1.5rem 0 1.15rem; border-radius: 999px; border: 0; background: var(--table-sheet); color: var(--table-ink); font-family: var(--f-ui); font-weight: 600; font-size: 1.08rem; white-space: nowrap; }
.play svg { width: 18px; height: 18px; fill: currentColor; }

.sheet { background: var(--table-sheet); border-radius: 8px; padding: 1.1rem 1.2rem; font-family: var(--f-ui); color: var(--table-ink); }
.sheet .who { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.6rem; }
.sheet .who i { width: 30px; height: 30px; border-radius: 50%; background: var(--table-ink); display: block; }
.sheet p { font-size: 1.08rem; line-height: 1.45; }
.sheet p + p { margin-top: 0.4rem; }
.post-img { aspect-ratio: 1; border-radius: 8px 8px 0 0; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.p-post .sheet { border-radius: 0 0 8px 8px; }
.news-frame { border-radius: 8px; overflow: hidden; }
.news-frame img { width: 100%; height: auto; }
.long { background: var(--table-sheet); border-radius: 8px; padding: clamp(1.25rem, 3.5vw, 2.75rem); display: grid; gap: 0.9rem; }
.long h3 { font-family: var(--f-text); font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.12; color: var(--table-ink); max-width: 22em; }
.long p { font-family: var(--f-text); font-size: 1.15rem; line-height: 1.6; color: var(--table-ink-2); max-width: 38em; }
.long .fade { display: grid; gap: 0.6rem; margin-top: 0.3rem; max-width: 38em; }
.long .fade span { display: block; height: 0.6rem; border-radius: 3px; background: var(--table); }
.long .fade span:nth-child(2) { width: 92%; } .long .fade span:nth-child(3) { width: 84%; } .long .fade span:nth-child(4) { width: 60%; }

/* ---------- 3. the check, behind a tape of struck phrases ---------- */
.check { padding-top: 0; }
.tape { background: var(--bar); color: var(--bar-text-2); border-block: 4px solid var(--bar-pen); overflow: hidden; margin-bottom: clamp(3.5rem, 8vw, 7rem); }
.tape-row { display: flex; width: max-content; padding-block: 0.7rem; animation: tape 70s linear infinite; }
.tape-row + .tape-row { border-top: 1px solid var(--bar-line); animation-direction: reverse; animation-duration: 90s; }
.tape-row span { flex: none; font-family: var(--f-text); font-size: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); line-height: 1.2; white-space: nowrap; padding-inline: 1.1rem; text-decoration: line-through; text-decoration-color: var(--bar-pen); text-decoration-thickness: 0.09em; }
.tape-row span::after { content: ""; display: inline-block; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--bar-pen); margin-left: 2.2rem; vertical-align: middle; }
.tape-row + .tape-row span { font-family: var(--f-mono); font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.25rem); color: var(--bar-text-2); text-decoration-thickness: 2px; }
@keyframes tape { to { transform: translateX(-50%); } }

.check-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start; }
.tester { border: 2px solid var(--line-3); border-radius: 18px; background: var(--raised); padding: clamp(1rem, 2.4vw, 1.8rem); }
.tester-row { display: flex; gap: 0.6rem; align-items: stretch; }
.tester textarea {
  flex: 1; min-width: 0; resize: none; min-height: 3.2em; field-sizing: content;
  font: inherit; font-family: var(--f-text); font-size: 1.3rem; line-height: 1.4;
  color: var(--text); background: var(--page); border: 2px solid var(--line-3); border-radius: 10px; padding: 0.7rem 0.9rem;
}
.tester textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.run { flex: none; min-height: 56px; padding: 0 1.4rem; border-radius: 10px; border: 0; background: var(--blue); color: var(--on-blue); font-family: var(--f-ui); font-weight: 600; font-size: 1.08rem; transition: transform 160ms var(--ease); }
.run:active { transform: scale(0.96); }
.marked { margin-top: 1.4rem; font-size: clamp(1.6rem, 1rem + 2vw, 2.7rem); line-height: 1.45; min-height: 1.45em; overflow-wrap: anywhere; }
.marked s { text-decoration: none; position: relative; color: var(--text-2); }
.marked s::after { content: ""; position: absolute; left: -0.05em; right: -0.05em; top: 52%; height: 0.11em; background: var(--pen); border-radius: 2px; transform-origin: left center; animation: strike 520ms var(--ease) both; }
.marked .ring { position: relative; white-space: nowrap; color: var(--pen-text); }
.marked .ring::before { content: ""; position: absolute; inset: -0.06em -0.28em -0.02em; border: 3px solid var(--pen); border-radius: 50%; animation: pop 420ms var(--ease) both; }
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { transform: scale(0.7) rotate(-8deg); } to { transform: scale(1); } }
.verdict { margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--line-2); display: flex; gap: 0.8rem; align-items: baseline; flex-wrap: wrap; font-size: 1.2rem; }
.verdict .mark { font-family: var(--f-pen); font-size: 3rem; line-height: 0.7; color: var(--pen-text); }
.verdict.is-clean .mark { color: var(--gold-text); }
.try-clean { margin-top: 0.6rem; background: var(--clear); border: 0; padding: 0.3rem 0; color: var(--text-2); font-family: var(--f-ui); font-size: 1rem; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.try-clean:hover { color: var(--text); }

.rules { display: grid; gap: 1.8rem; }
.marks-line { font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); line-height: 1.25; }
.marks-line .gold { color: var(--gold-text); }
.twenty-h { font-family: var(--f-pen); font-size: 2.2rem; line-height: 1; color: var(--pen-text); margin-bottom: 0.7rem; }
.twenty { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; }
.twenty li { font-family: var(--f-mono); font-size: 0.82rem; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.2rem 0.65rem; text-decoration: line-through; text-decoration-color: var(--pen); text-decoration-thickness: 1.5px; }
.num-rule { display: flex; align-items: center; gap: 1.6rem; font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.6rem); line-height: 1.3; }
.ring-num { position: relative; color: var(--pen-text); font-size: clamp(3rem, 2rem + 2.6vw, 4.6rem); line-height: 1; padding: 0.12em 0.18em 0; flex: none; }
.ring-num::before { content: ""; position: absolute; inset: -0.08em -0.2em; border: 3px solid var(--pen); border-radius: 50%; transform: rotate(-6deg); }
.small { font-family: var(--f-mono); font-size: 0.82rem; line-height: 1.6; color: var(--text-2); max-width: 34em; }

/* ---------- 4. say yes from your phone: the blue pencil band ---------- */
.yesband { background: var(--bb); color: var(--bb-text); --focus: var(--bb-text); }
.yesband .soon { --note: var(--table-sheet); --note-text: var(--table-ink); transform: rotate(1.5deg); margin-bottom: 0.4rem; }
.yesband .pen-yes { color: var(--bb-text); }
.phone-grid { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.phone-wrap { display: grid; gap: 0.9rem; justify-items: center; }
.phone {
  --focus: var(--scr-focus);
  width: min(100%, 24rem); min-height: 34rem;
  background: var(--scr); color: var(--scr-text);
  border: 3px solid var(--bar); border-radius: 40px;
  padding: 0.65rem 0.7rem 1rem;
  font-family: var(--f-ui);
  display: flex; flex-direction: column;
}
.k .log:focus-visible { outline: none; }
.log { display: grid; gap: 0.6rem; padding: 0.9rem 0.25rem 0.2rem; align-content: start; }
.msg { max-width: 86%; padding: 0.62rem 0.8rem; border-radius: 18px; font-size: 1rem; line-height: 1.4; animation: msg-in 260ms var(--ease) both; }
.msg-kavi { justify-self: start; background: var(--scr-2); border: 1px solid var(--scr-line); border-bottom-left-radius: 6px; }
.msg-you { justify-self: end; background: var(--scr-blue); color: var(--scr-on-blue); font-weight: 600; border-bottom-right-radius: 6px; }
.msg-first { max-width: 94%; animation: none; }
@keyframes msg-in { from { transform: translateY(8px); } to { transform: none; } }
.mini { margin-top: 0.55rem; background: var(--table-sheet); color: var(--table-ink); border-radius: 12px; padding: 0.75rem 0.85rem 0.8rem; }
.mini-who { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.mini-who i { width: 24px; height: 24px; border-radius: 50%; background: var(--table-ink); display: block; flex: none; }
.mini-body p { font-size: 1rem; line-height: 1.42; }
.mini-body p + p { margin-top: 0.25rem; }
.mini-ok { margin-top: 0.6rem; display: inline-flex; align-items: center; gap: 0.35rem; color: var(--table-gold); font-weight: 600; font-size: 0.82rem; border: 1.5px solid var(--table-gold); border-radius: 999px; padding: 0.12rem 0.6rem 0.12rem 0.45rem; }
.mini-ok svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wait { justify-self: center; display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--scr-text-2); padding: 0.35rem 0 0.1rem; text-align: center; }
.wait::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--scr-blue); flex: none; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.typing { display: inline-flex; gap: 4px; padding: 0.8rem 0.9rem; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--scr-text-2); animation: blink 900ms ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 150ms; } .typing span:nth-child(3) { animation-delay: 300ms; }
.out { margin-top: 0.55rem; display: grid; border-top: 1px solid var(--scr-line); }
.out li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; align-items: center; gap: 0.4rem; padding: 0.42rem 0 0.38rem; border-bottom: 1px solid var(--scr-line); font-weight: 500; }
.out li:last-child { border-bottom: 0; padding-bottom: 0; }
.out svg { width: 20px; height: 16px; fill: none; stroke: var(--scr-gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.out svg path { stroke-dasharray: 30; animation: draw 420ms var(--ease) both; }
.out li:nth-child(2) svg path { animation-delay: 120ms; } .out li:nth-child(3) svg path { animation-delay: 240ms; }
@keyframes draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
.out .dash { width: 12px; height: 1.5px; background: var(--scr-text-2); }
.out .no { color: var(--scr-text-2); font-weight: 400; }
.out .no em { font-style: normal; font-size: 0.85rem; }

/* the record of a yes: a small paper slip, printed under Kavi's answer */
.slip { justify-self: stretch; margin: 0.35rem 0.4rem 0.2rem; background: var(--table-sheet); color: var(--table-ink); font-family: var(--f-mono); padding: 0.75rem 0.9rem 1.2rem; border-top: 3px dotted var(--table-line); transform: rotate(-1.4deg); transform-origin: top center; animation: print 700ms var(--ease) both; display: flex; align-items: center; gap: 0.4rem 0.9rem; flex-wrap: wrap;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 95% calc(100% - 7px), 90% 100%, 85% calc(100% - 7px), 80% 100%, 75% calc(100% - 7px), 70% 100%, 65% calc(100% - 7px), 60% 100%, 55% calc(100% - 7px), 50% 100%, 45% calc(100% - 7px), 40% 100%, 35% calc(100% - 7px), 30% 100%, 25% calc(100% - 7px), 20% 100%, 15% calc(100% - 7px), 10% 100%, 5% calc(100% - 7px), 0% 100%); }
.slip-yes { font-family: var(--f-pen); font-size: 2.4rem; line-height: 1; color: var(--table-blue); border: 2.5px solid var(--table-blue); border-radius: 50%; padding: 0.3rem 0.55rem 0.1rem; transform: rotate(-9deg); }
.slip-row { display: flex; flex-wrap: wrap; gap: 0.15rem 0.55rem; font-size: 0.8rem; line-height: 1.4; }
.slip-row span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--table-pen); margin-right: 0.55rem; vertical-align: middle; }
@keyframes print { from { transform: translateY(-10px) rotate(-1.4deg); } to { transform: rotate(-1.4deg); } }

.replies { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem; padding: 0.9rem 0.25rem 0; }
.replies button { min-height: 46px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--scr-blue); background: var(--clear); color: var(--scr-blue); font-weight: 600; font-size: 0.98rem; }
.replies button:hover { background: var(--scr-blue); color: var(--scr-on-blue); }
.again { margin: auto auto 0; padding: 0.9rem 0.6rem 0; min-height: 44px; background: var(--clear); border: 0; color: var(--scr-text-2); font-family: var(--f-ui); font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; }
.again:hover { color: var(--scr-text); }
.replies[hidden], .again[hidden] { display: none; }
.phone-note { font-family: var(--f-mono); font-size: 0.8rem; color: var(--bb-text-2); text-align: center; }

/* the five plain lines: cream paper strips, all alike, taped to the blue.
   Answer the chat and a blue tick is drawn on each line your answer proves. */
.bars { display: grid; gap: 1.1rem; padding-top: 0.5rem; }
.bars li { position: relative; justify-self: start; background: var(--table-sheet); color: var(--table-ink); font-size: clamp(1.35rem, 0.95rem + 1.3vw, 2.2rem); line-height: 1.18; padding: 0.7rem 3.6rem 0.75rem 1.1rem; max-width: 18.5em; text-wrap: balance; transform: rotate(var(--r, -0.8deg)); transition: transform 360ms var(--ease); }
.bars li::before { content: ""; position: absolute; top: -9px; left: 1.4rem; width: 54px; height: 18px; background: var(--tape); transform: rotate(var(--tr, -5deg)); clip-path: polygon(3% 0, 97% 5%, 100% 30%, 96% 55%, 100% 80%, 97% 100%, 2% 95%, 0 70%, 4% 45%, 0 20%); }
.bars li:nth-child(2) { --r: 0.9deg; --tr: 6deg; } .bars li:nth-child(3) { --r: -0.4deg; } .bars li:nth-child(4) { --r: 0.7deg; --tr: -8deg; } .bars li:nth-child(5) { --r: -1deg; }
.bars .tk { position: absolute; right: 0.8rem; top: 50%; width: 2.3rem; height: 2rem; margin-top: -1.05rem; overflow: visible; }
.bars .tk path { fill: none; stroke: var(--table-blue); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; }
.bars li.lit { transform: rotate(0deg) translateX(8px); }
.bars li.lit .tk path { stroke-dashoffset: 0; transition: stroke-dashoffset 500ms var(--ease) 150ms; }
/* the pens act the lines out: the yes struck in red, the record underlined in pencil */
.pen-u, .pen-x { position: relative; white-space: nowrap; }
.pen-u svg, .pen-x svg { position: absolute; overflow: visible; pointer-events: none; max-width: none; }
.pen-u svg { left: -0.04em; bottom: -0.16em; width: calc(100% + 0.08em); height: 0.3em; }
.pen-x svg { left: -0.12em; top: 0.18em; width: calc(100% + 0.24em); height: 0.6em; }
.pen-u path, .pen-x path { fill: none; stroke-width: 2.8px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.pen-u path { stroke: var(--table-blue); }
.pen-x { color: var(--table-ink-2); }
.pen-x path { stroke: var(--table-pen); }
.bars-small { margin-top: 1.5rem; display: grid; gap: 0.4rem; font-family: var(--f-mono); font-size: 0.85rem; line-height: 1.5; color: var(--bb-text-2); }

/* ---------- 4b. every place, one window: back on the cream table ---------- */
.win { background: var(--table); color: var(--table-ink); --focus: var(--table-focus); }
.wnd-wrap { position: relative; }
/* two strips of paper tape hold the screen to the table */
.wnd-wrap::before, .wnd-wrap::after { content: ""; position: absolute; z-index: 2; top: -10px; width: 74px; height: 20px; background: var(--tape); clip-path: polygon(3% 0, 97% 5%, 100% 30%, 96% 55%, 100% 80%, 97% 100%, 2% 95%, 0 70%, 4% 45%, 0 20%); }
.wnd-wrap::before { left: 2.2rem; transform: rotate(-6deg); }
.wnd-wrap::after { right: 2.2rem; transform: rotate(5deg); }
.wnd {
  --focus: var(--scr-focus);
  background: var(--scr); color: var(--scr-text);
  border: 3px solid var(--bar); border-radius: 20px; overflow: hidden;
  font-family: var(--f-ui);
}
.wnd-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 1rem; border-bottom: 1px solid var(--scr-line); background: var(--bar); }
.wnd-bar .ph-mark { width: 28px; height: 28px; } .wnd-bar .ph-mark svg { width: 20px; height: 20px; }
.wnd-title { font-family: var(--f-mono); font-size: 0.85rem; color: var(--scr-text-2); letter-spacing: 0.02em; }
.wnd-body { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }

/* the places: a list of buttons, each with a gold tick; the chosen one gets a blue pencil ring */
.wnd-places { padding: 1.2rem 0.9rem 1.4rem; border-right: 1px solid var(--scr-line); }
.wnd-h { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--scr-text-2); padding: 0 0.6rem 0.7rem; }
.places { display: grid; gap: 0.2rem; }
.place { position: relative; display: flex; align-items: center; gap: 0.65rem; width: fit-content; min-height: 48px; padding: 0 1rem 0 0.7rem; border: 0; border-radius: 12px; background: var(--clear); color: var(--scr-text); font-weight: 500; font-size: 1.08rem; text-align: left; transition: background 200ms var(--ease); }
.place { border: 1px solid var(--scr-line-2); }
.place[aria-pressed="true"] { border-color: var(--clear); }
.place:hover { background: var(--scr-2); }
.place .gt { width: 18px; height: 14px; flex: none; fill: none; stroke: var(--scr-gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.place .nm { position: relative; }
/* the blue pencil: a loose loop drawn round the chosen place */
.place .ring { position: absolute; left: -5px; top: -4px; width: calc(100% + 10px); height: calc(100% + 8px); max-width: none; overflow: visible; pointer-events: none; opacity: 0; clip-path: inset(-6px 100% -6px -6px); }
.place .ring path { fill: none; stroke: var(--scr-blue); stroke-width: 2.6px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.place[aria-pressed="true"] { background: var(--scr-2); font-weight: 600; }
.place[aria-pressed="true"] .ring { opacity: 1; clip-path: inset(-6px); transition: clip-path 520ms var(--ease); }

/* how it did: three big plain numbers, a week of bars, the best piece */
.wnd-did { padding: 1.4rem clamp(1rem, 2.6vw, 2.2rem) 1.6rem; display: grid; gap: 1.5rem; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--scr-line-2); border-bottom: 1px solid var(--scr-line-2); }
.tile { padding: 0.9rem 0.9rem 1rem; display: grid; align-content: space-between; gap: 0.5rem; min-width: 0; }
.tile + .tile { border-left: 1px solid var(--scr-line-2); }
.tile:first-child { padding-left: 0; }
.tile-l { font-size: 0.95rem; line-height: 1.25; color: var(--scr-text-2); }
.tile-n { font-family: var(--f-text); font-size: clamp(2.2rem, 1rem + 2.6vw, 3.9rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wchart { display: grid; gap: 0.6rem; }
.wbars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; height: 12rem; align-items: end; border-bottom: 1.5px solid var(--scr-line-2); }
/* the value label sits above its bar, in space kept free at the top of every column, so 100% is the same height for every bar */
.wbar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; padding: 1.3rem 18% 0; }
.wb { position: relative; display: block; flex: none; width: 100%; background: var(--scr-blue); border-radius: 4px 4px 0 0; transition: height 560ms var(--ease); }
/* the bars' resting heights: a class per whole percent of the view's tallest bar (no style attribute
   under the site's policy). The page's own markup draws the All view with them; home.js moves the bars
   for the other places through el.style.height. */
.wb.h0 { height: 0%; }
.wb.h1 { height: 1%; }
.wb.h2 { height: 2%; }
.wb.h3 { height: 3%; }
.wb.h4 { height: 4%; }
.wb.h5 { height: 5%; }
.wb.h6 { height: 6%; }
.wb.h7 { height: 7%; }
.wb.h8 { height: 8%; }
.wb.h9 { height: 9%; }
.wb.h10 { height: 10%; }
.wb.h11 { height: 11%; }
.wb.h12 { height: 12%; }
.wb.h13 { height: 13%; }
.wb.h14 { height: 14%; }
.wb.h15 { height: 15%; }
.wb.h16 { height: 16%; }
.wb.h17 { height: 17%; }
.wb.h18 { height: 18%; }
.wb.h19 { height: 19%; }
.wb.h20 { height: 20%; }
.wb.h21 { height: 21%; }
.wb.h22 { height: 22%; }
.wb.h23 { height: 23%; }
.wb.h24 { height: 24%; }
.wb.h25 { height: 25%; }
.wb.h26 { height: 26%; }
.wb.h27 { height: 27%; }
.wb.h28 { height: 28%; }
.wb.h29 { height: 29%; }
.wb.h30 { height: 30%; }
.wb.h31 { height: 31%; }
.wb.h32 { height: 32%; }
.wb.h33 { height: 33%; }
.wb.h34 { height: 34%; }
.wb.h35 { height: 35%; }
.wb.h36 { height: 36%; }
.wb.h37 { height: 37%; }
.wb.h38 { height: 38%; }
.wb.h39 { height: 39%; }
.wb.h40 { height: 40%; }
.wb.h41 { height: 41%; }
.wb.h42 { height: 42%; }
.wb.h43 { height: 43%; }
.wb.h44 { height: 44%; }
.wb.h45 { height: 45%; }
.wb.h46 { height: 46%; }
.wb.h47 { height: 47%; }
.wb.h48 { height: 48%; }
.wb.h49 { height: 49%; }
.wb.h50 { height: 50%; }
.wb.h51 { height: 51%; }
.wb.h52 { height: 52%; }
.wb.h53 { height: 53%; }
.wb.h54 { height: 54%; }
.wb.h55 { height: 55%; }
.wb.h56 { height: 56%; }
.wb.h57 { height: 57%; }
.wb.h58 { height: 58%; }
.wb.h59 { height: 59%; }
.wb.h60 { height: 60%; }
.wb.h61 { height: 61%; }
.wb.h62 { height: 62%; }
.wb.h63 { height: 63%; }
.wb.h64 { height: 64%; }
.wb.h65 { height: 65%; }
.wb.h66 { height: 66%; }
.wb.h67 { height: 67%; }
.wb.h68 { height: 68%; }
.wb.h69 { height: 69%; }
.wb.h70 { height: 70%; }
.wb.h71 { height: 71%; }
.wb.h72 { height: 72%; }
.wb.h73 { height: 73%; }
.wb.h74 { height: 74%; }
.wb.h75 { height: 75%; }
.wb.h76 { height: 76%; }
.wb.h77 { height: 77%; }
.wb.h78 { height: 78%; }
.wb.h79 { height: 79%; }
.wb.h80 { height: 80%; }
.wb.h81 { height: 81%; }
.wb.h82 { height: 82%; }
.wb.h83 { height: 83%; }
.wb.h84 { height: 84%; }
.wb.h85 { height: 85%; }
.wb.h86 { height: 86%; }
.wb.h87 { height: 87%; }
.wb.h88 { height: 88%; }
.wb.h89 { height: 89%; }
.wb.h90 { height: 90%; }
.wb.h91 { height: 91%; }
.wb.h92 { height: 92%; }
.wb.h93 { height: 93%; }
.wb.h94 { height: 94%; }
.wb.h95 { height: 95%; }
.wb.h96 { height: 96%; }
.wb.h97 { height: 97%; }
.wb.h98 { height: 98%; }
.wb.h99 { height: 99%; }
.wb.h100 { height: 100%; }
.wbar:nth-child(2) .wb { transition-delay: 45ms; }
.wbar:nth-child(3) .wb { transition-delay: 90ms; }
.wbar:nth-child(4) .wb { transition-delay: 135ms; }
.wbar:nth-child(5) .wb { transition-delay: 180ms; }
.wbar:nth-child(6) .wb { transition-delay: 225ms; }
.wbar:nth-child(7) .wb { transition-delay: 270ms; }
.wv { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); padding-bottom: 0.35rem; white-space: nowrap; font-family: var(--f-mono); font-size: 0.78rem; color: var(--scr-text-2); line-height: 1; font-variant-numeric: tabular-nums; }
.wbars-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; font-family: var(--f-mono); font-size: 0.8rem; color: var(--scr-text-2); }
.wcap { font-size: 0.92rem; color: var(--scr-text-2); }
.best { display: flex; align-items: baseline; gap: 0.4rem 0.9rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--scr-line); }
.best-l { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--scr-text-2); }
.best-n { font-family: var(--f-text); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); line-height: 1.15; }
.wnd-did .swap { animation: swap 320ms var(--ease); }
@keyframes swap { from { transform: translateY(6px); } to { transform: none; } }
.win-notes { margin-top: 1.4rem; display: grid; gap: 0.35rem; font-family: var(--f-mono); font-size: 0.85rem; line-height: 1.5; color: var(--table-ink-2); }
.win-notes p:first-child { font-size: 1rem; font-weight: 600; color: var(--table-ink); }

/* ---------- 5. the honest line ---------- */
.honest { padding-block: clamp(4rem, 9vw, 7.5rem); }
.honest p { font-size: clamp(2rem, 0.9rem + 3.8vw, 4.8rem); line-height: 1.08; letter-spacing: -0.018em; max-width: 17em; text-wrap: balance; }
.honest .pen { font-family: var(--f-pen); color: var(--blue); font-size: 1.3em; line-height: 0.6; display: inline-block; transform: rotate(-3deg); }

/* ---------- 6. the ask ---------- */
.band { background: var(--band); color: var(--band-text); --focus: var(--band-text); padding-block: clamp(4rem, 9vw, 7.5rem); }
.band .inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: end; }
.band h2 { font-weight: 400; font-size: clamp(3rem, 1rem + 5.4vw, 6.8rem); line-height: 0.96; text-wrap: balance; letter-spacing: -0.025em; }
.addr-row { margin-top: 2rem; display: flex; align-items: stretch; gap: 0.6rem; flex-wrap: wrap; }
.addr { font-family: var(--f-mono); font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.55rem); padding: 0.7rem 1rem; border: 2px dashed var(--band-text); border-radius: 10px; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; min-width: 0; }
.copy { min-height: 58px; padding: 0 1.6rem; border-radius: 10px; border: 0; background: var(--band-btn); color: var(--band-btn-text); font-family: var(--f-ui); font-weight: 600; font-size: 1.1rem; transition: transform 160ms var(--ease); }
.copy:hover { transform: rotate(-2deg); }
.copy:active { transform: scale(0.95); }
.copied { margin-top: 0.6rem; min-height: 1.6em; font-family: var(--f-pen); font-size: 2rem; line-height: 1; }
.band .sign { display: grid; gap: 0.4rem; justify-items: start; container-type: inline-size; min-width: 0; }
/* sized to its own column, so the word never runs past the edge */
.band .ta { font-size: clamp(3rem, 19cqi, 8.5rem); line-height: 1.15; white-space: nowrap; }
.band .ta-say { font-size: 1.3rem; font-style: italic; }
.band .poem { margin-top: 0.8rem; font-family: var(--f-mono); font-size: 0.95rem; letter-spacing: 0.03em; }

/* ---------- footer: the live site's own footer, in this page's look ---------- */
.site-foot { padding-block: clamp(2.5rem, 5vw, 3.5rem) 2.5rem; border-top: 1px solid var(--line-2); }
.site-foot .inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem 3rem; flex-wrap: wrap; }
.foot-brand { display: grid; gap: 0.45rem; justify-items: start; }
.site-foot .brand { display: block; width: 140px; height: 35px; color: var(--text); margin-bottom: 0.4rem; border-radius: 4px; }
.site-foot .brand-logo { width: 140px; height: 35px; }
.foot-tag { font-family: var(--f-pen); font-size: 1.9rem; line-height: 1; color: var(--text); }
.foot-brand .addr, .foot-made { font-family: var(--f-mono); font-size: 0.85rem; line-height: 1.5; color: var(--text-2); }
.foot-brand .addr { padding: 0; border: 0; border-radius: 0; }
.foot-nav { display: grid; gap: 0.1rem; font-family: var(--f-ui); }
.foot-h { font-family: var(--f-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); margin: 0 0 0.35rem; }
.foot-nav a { display: flex; align-items: center; min-height: 44px; color: var(--text); font-size: 1rem; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.foot-nav a:hover { text-decoration-color: var(--text); }

/* ---------- narrower screens ---------- */
@media (max-width: 1080px) {
  .hero .inner, .check-grid, .phone-grid, .band .inner { grid-template-columns: minmax(0, 1fr); }
  .hero .inner { max-width: 40rem; }
  .phone-wrap { justify-items: start; }
  .p-car, .p-news, .p-long { grid-column: span 12; }
  .p-vid, .p-post { grid-column: span 6; }
}
@media (max-width: 600px) {
  .masthead .inner { height: 60px; }
  .hero { min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); padding-block: 1rem 1.5rem; align-items: start; }
  .hero .inner { gap: 1.1rem; }
  .who-for { font-size: 0.86rem; margin-bottom: 0.8rem; padding: 0.3rem 0.6rem; }
  .hero h1 { font-size: 2.2rem; line-height: 1.04; }
  .hero h1 > span + span { margin-top: 0.22em; }
  .k .kolam-bg { display: none; }   /* on a phone only fragments would show, so the line is left out */
  .hphone { border-radius: 32px; padding: 0.45rem 0.6rem 0.7rem; }
  .speaker { margin-bottom: 0.4rem; height: 5px; }
  .ph-top { padding-bottom: 0.5rem; }
  .ph-mark { width: 30px; height: 30px; } .ph-mark svg { width: 22px; height: 22px; }
  .ph-body { padding-top: 0.55rem; gap: 0.45rem; }
  .hmsg { font-size: 0.98rem; padding: 0.42rem 0.75rem; }
  .post { padding: 0.65rem 0.8rem; }
  .post-who { margin-bottom: 0.35rem; }
  .avatar { width: 28px; height: 28px; }
  .post-body { font-size: 0.98rem; line-height: 1.4; }
  .pen-note { font-size: 1.6rem; }
  .tick { width: 52px; height: 42px; right: 0.6rem; bottom: 0.25rem; }
  .yes { min-height: 66px; font-size: 3.3rem; margin-top: 0.55rem; border-radius: 20px; }
  .status { font-size: 1rem; }
  .p-vid, .p-post { grid-column: span 12; }
  .vid-frame { width: min(100%, 17rem); margin-inline: auto; }
  .brands { width: 100%; }
  .brands-label { flex-basis: 100%; margin-bottom: 0.1rem; }
  .tester-row { flex-direction: column; }
  .run { align-self: flex-start; }
  .num-rule { gap: 1.2rem; padding-left: 0.5rem; }
  .phone-wrap { justify-items: center; }
  .phone { min-height: 0; border-radius: 32px; padding-inline: 0.55rem; }
  .bars li { padding-right: 3rem; }
  .wnd-wrap::before { left: 1.2rem; } .wnd-wrap::after { right: 1.2rem; }
  .wnd { border-radius: 16px; }
  .wnd-body { grid-template-columns: minmax(0, 1fr); }
  .wnd-places { border-right: 0; border-bottom: 1px solid var(--scr-line); }
  .wnd-places { padding: 0.9rem 0.8rem 0.6rem; }
  .wnd-h { padding: 0 0.1rem 0.55rem; }
  .places { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .place { width: auto; min-height: 44px; padding: 0 0.85rem 0 0.7rem; font-size: 1rem; border: 1px solid var(--scr-line-2); border-radius: 999px; gap: 0.45rem; }
  .place[aria-pressed="true"] { border-color: var(--clear); }
  .wnd-did { padding: 1.1rem 0.9rem 1.2rem; gap: 1.2rem; }
  .tile { padding: 0.75rem 0.55rem 0.8rem; }
  .tile-l { font-size: 0.82rem; }
  .tile-n { font-size: 1.85rem; }
  .wbars { height: 9rem; }
  .wbar { padding-inline: 12%; }
  .wv { font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .k *, .k *::before, .k *::after { animation: none !important; transition: none !important; }
}
