/* ScamCheck website. Same palette as the app (ui/theme/Color.kt): one brand blue, cool greys, and red / amber /
   green kept for verdicts only, so a coloured panel always means "this is what we found".
   Layout: a safety leaflet. One left-aligned column of running text (max 66ch) with wider "demo" blocks that
   break out of it: the phone mock, the link reader, the quiz and the impact board. */

:root {
  color-scheme: light;
  --bg: #F3F5FA; --surface: #FFFFFF; --surface-2: #EEF0F6; --surface-3: #E2E4EA;
  --fg: #191C20; --muted: #44474F; --faint: #74777F; --line: #C4C6D0; --line-soft: #E0E2EC;
  --brand: #1F55C4; --on-brand: #FFFFFF; --brand-soft: #DCE3FF; --on-brand-soft: #001849;
  --danger: #BA1A1A; --danger-soft: #FFDAD6; --on-danger-soft: #410002;
  --caution: #8A5200; --caution-soft: #FFE4C2; --on-caution-soft: #2B1700;
  --ok: #1B6B3A; --ok-soft: #C2EFCB; --on-ok-soft: #00210E;
  --quiet: #555F71; --quiet-soft: #E8EAF0; --on-quiet-soft: #191C20;
  --chat-bg: #E6E9F0; --bubble: #FFFFFF;
  --shadow: 0 1px 2px rgba(25, 28, 32, .06), 0 10px 30px rgba(25, 28, 32, .10);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, sans-serif;
  --hindi: "IBM Plex Sans Devanagari", "Noto Sans Devanagari", "Kohinoor Devanagari", "Mangal", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 16px; --radius-s: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  /* Motion: one easing family, four durations, 70 ms staggers. All of it is off under prefers-reduced-motion. */
  --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-snap: cubic-bezier(.3, .7, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 120ms; --t-base: 220ms; --t-slow: 450ms;
  /* A faint jaali (stone lattice) behind the hero: square, diamond and a dot, in the brand colour */
  --jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%231F55C4' stroke-opacity='.085' stroke-width='1.2'%3E%3Cpath d='M28 2L54 28 28 54 2 28Z'/%3E%3Crect x='10' y='10' width='36' height='36'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3C/g%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E1014; --surface: #181B20; --surface-2: #22262C; --surface-3: #2C3036;
    --fg: #E2E2E9; --muted: #C4C6D0; --faint: #8E9099; --line: #44474F; --line-soft: #2C3036;
    --brand: #B4C5FF; --on-brand: #002A78; --brand-soft: #2B4FA6; --on-brand-soft: #DCE3FF;
    --danger: #FFB4AB; --danger-soft: #7A0010; --on-danger-soft: #FFDAD6;
    --caution: #FFC77A; --caution-soft: #5A3A00; --on-caution-soft: #FFDDB3;
    --ok: #8ED6A2; --ok-soft: #0F5128; --on-ok-soft: #C2EFCB;
    --quiet: #BEC6DC; --quiet-soft: #262A30; --on-quiet-soft: #E2E2E9;
    --chat-bg: #111419; --bubble: #262A30;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .5);
    --jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23B4C5FF' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M28 2L54 28 28 54 2 28Z'/%3E%3Crect x='10' y='10' width='36' height='36'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3C/g%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1014; --surface: #181B20; --surface-2: #22262C; --surface-3: #2C3036;
  --fg: #E2E2E9; --muted: #C4C6D0; --faint: #8E9099; --line: #44474F; --line-soft: #2C3036;
  --brand: #B4C5FF; --on-brand: #002A78; --brand-soft: #2B4FA6; --on-brand-soft: #DCE3FF;
  --danger: #FFB4AB; --danger-soft: #7A0010; --on-danger-soft: #FFDAD6;
  --caution: #FFC77A; --caution-soft: #5A3A00; --on-caution-soft: #FFDDB3;
  --ok: #8ED6A2; --ok-soft: #0F5128; --on-ok-soft: #C2EFCB;
  --quiet: #BEC6DC; --quiet-soft: #262A30; --on-quiet-soft: #E2E2E9;
  --chat-bg: #111419; --bubble: #262A30;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .5);
  --jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23B4C5FF' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M28 2L54 28 28 54 2 28Z'/%3E%3Crect x='10' y='10' width='36' height='36'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; line-height: 1.02; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; line-height: 1.12; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
ul, ol { margin: 0; padding-left: 1.25em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.eyebrow { font: 600 0.78rem/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 66ch; margin-top: 12px; }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  font-weight: 600; font-size: 0.98rem; line-height: 1.2; padding: 12px 18px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease-snap), box-shadow var(--t-base) var(--ease-out), background-color var(--t-base), border-color var(--t-base), color var(--t-base), opacity var(--t-base);
}
.btn:active { transform: scale(.97); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 32%, transparent); }
.btn.primary.soon:hover { transform: none; box-shadow: none; }
.btn.primary { background: var(--brand); color: var(--on-brand); }
.btn.primary.soon { cursor: default; opacity: .85; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { padding: 8px 14px; font-size: 0.9rem; }
.btn.big { padding: 14px 24px; font-size: 1.05rem; }
.btn.danger-btn { background: var(--danger-soft); color: var(--on-danger-soft); }
.btn.ok-btn { background: var(--ok-soft); color: var(--on-ok-soft); }
.btn:disabled { opacity: .55; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  cursor: pointer; background: var(--surface); color: var(--fg); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 13px; font-size: 0.92rem; font-weight: 500; line-height: 1.2;
}
.chip { transition: background-color var(--t-base), border-color var(--t-base), color var(--t-base), transform var(--t-fast) var(--ease-snap); }
.chip:hover { border-color: var(--brand); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--brand-soft); color: var(--on-brand-soft); border-color: var(--brand); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; gap: 18px;
  padding: 10px var(--gutter); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft); transition: box-shadow .3s var(--ease-out);
}
.top.scrolled { box-shadow: 0 2px 18px rgba(25, 28, 32, .07); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font: 800 1.15rem var(--display); }
.nav { position: relative; display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
/* The highlight behind the active section glides between links (site.js nav()) */
.nav-ind { position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: 8px; background: var(--surface-2); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease-out), width .4s var(--ease-out), opacity .25s; }
.nav-ind.on { opacity: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; z-index: 1; white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; padding: 8px 10px; border-radius: 8px; transition: color var(--t-base), background-color var(--t-base); }
.nav a:hover { color: var(--fg); background: var(--surface-2); }
.nav a.active { color: var(--fg); }
@media (max-width: 720px) {
  .top { flex-wrap: wrap; gap: 8px 12px; }
  .logo { order: 1; }
  .top > .btn { order: 2; margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; }
}

/* Sections */
main { padding: 0 var(--gutter); max-width: 1120px; margin: 0 auto; }
.section { padding-block: clamp(56px, 9vw, 104px); border-top: 1px solid var(--line-soft); scroll-margin-top: 80px; }
.section > h2 + p, .h2-later { margin-top: 12px; }
.h2-later { margin-top: clamp(48px, 7vw, 80px); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 8vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); background: var(--jaali); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 92%); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 92%);
}
.hero > * { position: relative; }
.hero.intro .hero-text > * { animation: rise .6s var(--ease-out) both; }
.hero.intro .hero-text > :nth-child(2) { animation-delay: .07s; }
.hero.intro .hero-text > :nth-child(3) { animation-delay: .14s; }
.hero.intro .hero-text > :nth-child(4) { animation-delay: .21s; }
.hero.intro .hero-text > :nth-child(5) { animation-delay: .28s; }
.hero.intro .hero-text > :nth-child(6) { animation-delay: .35s; }
.hero.intro .phone-wrap { animation: hero-phone .8s var(--ease-out) .15s both; }
.hero.intro::before { animation: fade-in 1.4s ease both; }
.h1-hi { font: 600 clamp(1.25rem, 2.6vw, 1.75rem)/1.45 var(--hindi); color: var(--brand); margin-top: 12px; }
.hi { font-family: var(--hindi); line-height: 1.6; }
.rule-hi { display: block; margin-top: 6px; font: 500 1rem/1.65 var(--hindi); color: var(--muted); }
.saved-intro .hi { font-size: 1.08rem; font-weight: 500; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); margin-top: 20px; max-width: 34em; }
.hero-points { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 10px; color: var(--muted); }
.hero-points li { padding-left: 28px; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft); }
/* The tick is a mask filled with a theme colour, so it stays visible on the dark soft-blue too */
.hero-points li::after {
  content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; background: var(--on-brand-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 11px no-repeat;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

/* Phone mock */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: min(330px, 100%); aspect-ratio: 9 / 18; max-height: 640px; position: relative; overflow: hidden; border-radius: 34px;
  background: var(--chat-bg); border: 8px solid var(--fg); box-shadow: var(--shadow); font-size: 0.86rem; line-height: 1.4;
}
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.phone-bar .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); flex: none; }
.phone-bar b { display: block; font-weight: 600; }
.phone-bar small { color: var(--faint); font-size: 0.78rem; }
.chat { padding: 16px 12px; }
.bubble { background: var(--bubble); border-radius: 12px 12px 12px 3px; padding: 10px 12px 18px; max-width: 86%; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble time { position: absolute; right: 9px; bottom: 4px; font-size: 0.7rem; color: var(--faint); }
.fake-link { color: var(--brand); text-decoration: underline; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 14px 18px;
  box-shadow: 0 -8px 30px rgba(0,0,0,.18); display: grid; gap: 12px;
}
.sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto; }
.sheet-actions { display: flex; gap: 8px; }
.sheet-actions .btn { flex: 1; padding: 10px 8px; font-size: 0.86rem; }
.sheet p { margin-top: 2px; }

/* The hero story (site.js play()): messages arrive one by one, the sheet slides up, Meera keeps her composure */
.play { width: min(360px, 100%); display: grid; gap: 14px; }
.play-phone { display: flex; flex-direction: column; width: min(330px, 100%); margin: 0 auto; }
.play-phone .phone-bar { flex: none; }
.play-chat { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 28px; }
.play-chat::-webkit-scrollbar { display: none; }
.play-chat.swap { animation: fade-in .4s ease both; }
.play-phone.sheet-open .play-chat { padding-bottom: 300px; }
.play-chat .bubble { animation: pop .26s ease both; }
.bubble.out { align-self: flex-end; background: var(--brand-soft); color: var(--on-brand-soft); border-radius: 12px 12px 3px 12px; }
.bubble.out time { color: inherit; opacity: .6; }
.bubble.file { display: grid; grid-template-columns: 38px 1fr; gap: 6px 10px; align-items: center; }
.bubble.file .file-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; font: 600 .6rem/1 var(--mono); color: var(--muted); }
.bubble.file b { display: block; font-weight: 600; }
.bubble.file small { color: var(--faint); font-size: .76rem; }
.bubble.file p { grid-column: 1 / -1; margin: 0; }
.typing { display: inline-flex; gap: 4px; padding: 13px 14px; background: var(--bubble); border-radius: 12px 12px 12px 3px; animation: pop .2s ease both; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.pill { align-self: center; font-size: .74rem; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 4px 11px; text-align: center; animation: pop .26s ease both; }
.pill.good { background: var(--ok-soft); color: var(--on-ok-soft); font-weight: 600; }
.fake-link { position: relative; }
.fake-link.tapped::after { content: ""; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 2px solid var(--brand); animation: ripple .6s ease-out both; pointer-events: none; }
.play-sheet { transform: translateY(105%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.play-sheet.open { transform: none; }
.play-sheet .btn { transition: transform .12s ease, opacity .12s ease; }
.play-sheet .btn.pressed { transform: scale(.94); opacity: .8; }
/* Story picker and the channel looks (WhatsApp, Telegram, email, SMS, call) */
.play-chips { position: relative; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.play-chips::-webkit-scrollbar { display: none; }
.play-chips .chip { flex: none; font-size: 0.86rem; padding: 6px 12px; }
.play-phone .phone-bar > div { min-width: 0; }
.ch-badge { margin-left: auto; align-self: flex-start; flex: none; white-space: nowrap; font-size: 0.68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 3px 8px; }
.ch-whatsapp .avatar { background: var(--ok-soft); }
.ch-telegram .avatar { background: var(--brand-soft); }
.ch-email .avatar { background: var(--caution-soft); }
.ch-call .avatar { background: var(--surface-3); box-shadow: 0 0 0 4px var(--brand-soft); }
.bubble .from { display: block; font-size: 0.72rem; font-weight: 600; color: var(--brand); margin-bottom: 2px; }
.bubble .fwd { display: block; font-size: 0.7rem; color: var(--faint); font-style: italic; margin-bottom: 2px; }
.bubble.call { font-style: italic; border-radius: 12px; background: var(--surface-2); max-width: 92%; padding-bottom: 10px; }
.bubble.mail, .bubble.pay { max-width: 100%; width: 100%; border-radius: 12px; display: grid; gap: 6px; padding-bottom: 22px; }
.mail-from { color: var(--faint); font-size: 0.74rem; overflow-wrap: anywhere; }
.mail-subject { display: block; font-weight: 600; }
.mail-btn { display: inline-block; justify-self: start; background: var(--brand); color: var(--on-brand); border-radius: 7px; padding: 7px 12px; font-weight: 600; text-decoration: none; }
.mail-target { color: var(--faint); font-family: var(--mono); font-size: 0.72rem; overflow-wrap: anywhere; }
.msg-body.mail .mail-subject { margin-bottom: 4px; }
.pay-amt { font: 700 1.5rem/1.1 var(--display); }
.pay-btns { display: flex; gap: 8px; margin-top: 4px; }
.pay-btns .btn { flex: 1; padding: 8px 6px; font-size: 0.82rem; }
.bubble.qr-wrap { display: grid; justify-items: center; gap: 6px; padding: 12px 14px 20px; }
.bubble.qr-wrap small { color: var(--faint); }
.qr { width: 84px; height: 84px; border-radius: 6px; background:
  repeating-linear-gradient(0deg, var(--fg) 0 6px, transparent 6px 12px), repeating-linear-gradient(90deg, var(--fg) 0 7px, var(--bubble) 7px 13px); background-blend-mode: multiply; opacity: .85; }
.notice { align-self: stretch; display: flex; gap: 8px; align-items: flex-start; background: var(--brand-soft); color: var(--on-brand-soft); border-radius: 10px; padding: 8px 10px; font-size: 0.78rem; line-height: 1.35; animation: pop .26s ease both; }
.notice svg { flex: none; margin-top: 1px; }
.play-caption { display: grid; gap: 10px; }
.play-caption p { min-height: 3.1em; font-size: .98rem; color: var(--muted); transition: opacity .22s ease; }
.play-caption p.fade { opacity: 0; }
.play-caption p b { color: var(--fg); }
.play-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.tally { display: inline-flex; align-items: baseline; gap: 6px; font-size: .88rem; color: var(--muted); }
.tally b { display: inline-block; font: 700 1.15rem/1 var(--display); color: var(--fg); font-variant-numeric: tabular-nums; }
.tally b.bump { animation: bump .35s ease; }
.tally .zero { color: var(--ok); }
.play-row .btn { margin-left: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@keyframes ripple { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
@keyframes bump { 50% { transform: scale(1.3); } }

/* Verdict panels: red / amber / green / grey. Same four as the app. */
.verdict { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-s); background: var(--quiet-soft); color: var(--on-quiet-soft); }
.verdict svg { flex: none; margin-top: 2px; color: var(--quiet); }
.verdict b { display: block; font-weight: 600; }
.verdict p { margin-top: 2px; font-size: 0.95em; }
.verdict.danger { background: var(--danger-soft); color: var(--on-danger-soft); } .verdict.danger svg { color: var(--danger); }
.verdict.caution { background: var(--caution-soft); color: var(--on-caution-soft); } .verdict.caution svg { color: var(--caution); }
.verdict.official { background: var(--ok-soft); color: var(--on-ok-soft); } .verdict.official svg { color: var(--ok); }
.reasons { list-style: none; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: 0.95em; }
.reasons li { padding-left: 18px; position: relative; }
.reasons li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.reasons li.strong::before { background: var(--danger); }
.reasons li { animation: rise-sm .35s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }

/* What this page sees */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 24px; }
.fact { background: var(--surface); border-radius: var(--radius-s); padding: 12px 14px; display: grid; gap: 2px; animation: rise-sm .4s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.fact-k { font-size: 0.74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fact-v { font-weight: 600; overflow-wrap: anywhere; }
.sees-row { margin-top: 16px; display: grid; gap: 8px; max-width: 66ch; }
/* Cookie banner demo */
.cookie-demo { margin-top: 40px; display: grid; gap: 12px; }
.cookie-demo > p { max-width: 66ch; }
.cookie-demo .hi { display: block; margin-top: 4px; }
.cookie-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; max-width: 640px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out); }
.cookie-banner p { margin: 0; flex: 1 1 260px; }
.cookie-banner.done { opacity: .6; transform: scale(.98); }
.cookie-actions { display: flex; gap: 8px; }
.cookie-h { margin: 18px 0 0; font-size: 0.8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cookie-demo .facts { margin-top: 10px; }
.cookie-demo .fact { align-content: start; }
.fact.warn { background: var(--caution-soft); color: var(--on-caution-soft); }
.fact.warn .fact-k { color: inherit; opacity: .8; }
.fact-s { font-size: 0.82rem; color: var(--muted); }
.fact.warn .fact-s { color: inherit; opacity: .85; }
.cookie-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; max-width: 66ch; }
.cookie-foot p { margin: 0; flex: 1 1 280px; }
.allow-list { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 8px; max-width: 66ch; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.98rem; }
.check input { accent-color: var(--brand); width: 18px; height: 18px; margin: 3px 0 0; flex: none; }
.hero.intro .hero-text > :nth-child(7) { animation-delay: .4s; }
#hero-note:empty { display: none; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--on-brand-soft); display: grid; place-items: center; transition: transform .3s var(--ease-spring); }
.feature-icon svg { width: 24px; height: 24px; }
.feature .small { color: var(--muted); }
.more-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--line); }
.more-features div { display: grid; gap: 4px; font-size: 0.95rem; }
.more-features span { color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } .more-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .more-features { grid-template-columns: 1fr; } }

/* Link reader */
.tool { margin-top: 28px; background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.field > span { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; min-width: 0;
}
#link-input { font-family: var(--mono); font-size: 0.95rem; }
.field input:focus, .field select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.result { display: grid; gap: 14px; padding-top: 6px; }
/* Grid children default to min-width:auto, so a no-wrap box would widen the column and make the page scroll sideways */
.tool > *, .result > *, .quiz > *, .panel > *, .saved > *, .saved-form > *, .guide > *, .feature > *, .tile > *, .msg-card > * { min-width: 0; }
.anatomy { min-width: 0; max-width: 100%; font-family: var(--mono); font-size: clamp(0.95rem, 2.4vw, 1.25rem); line-height: 1.5; padding: 14px 16px; background: var(--bg); border-radius: var(--radius-s); overflow-x: auto; white-space: nowrap; }
.anatomy .dim { color: var(--faint); }
.anatomy .sub { color: var(--muted); }
.result.show { animation: rise-sm .35s var(--ease-out) both; }
.anatomy .site { font-weight: 600; color: var(--fg); position: relative; padding-bottom: 1px; }
.anatomy .site::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 2px; background: var(--brand); transform-origin: left; animation: draw .55s var(--ease-out) .12s both; }
.anatomy.danger .site { color: var(--danger); } .anatomy.danger .site::after { background: var(--danger); }
.anatomy.caution .site::after { background: var(--caution); }
.anatomy.official .site { color: var(--ok); } .anatomy.official .site::after { background: var(--ok); }
.anatomy .decoy { text-decoration: line-through; color: var(--danger); }
.site-line { font-size: 1.05rem; }
.site-line b { font-family: var(--mono); font-weight: 600; }

/* Clean copy (Untracker) and link parts (URLCheck) */
.unwrap-note { margin: 0; background: var(--caution-soft); color: var(--on-caution-soft); border-radius: var(--radius-s); padding: 10px 14px; font-size: 0.95rem; }
.clean-box { border: 1.5px solid var(--line-soft); background: var(--bg); border-radius: var(--radius-s); padding: 14px 16px; display: grid; gap: 10px; }
.clean-box.stop { background: var(--danger-soft); color: var(--on-danger-soft); border-color: transparent; }
.clean-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.clean-head b { font-weight: 600; }
.clean-head span { color: var(--muted); }
.clean-box.stop .clean-head span { color: inherit; }
.clean-url { display: block; font-family: var(--mono); font-size: 0.92rem; background: var(--surface); border-radius: 8px; padding: 9px 11px; overflow-wrap: anywhere; user-select: all; }
.clean-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.clean-tags:empty { display: none; }
.tag { font: 500 0.78rem var(--mono); background: var(--surface-2); color: var(--muted); border-radius: 6px; padding: 2px 7px; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.cta-row.compact { margin-top: 0; gap: 8px; }
.short-box { border: 1.5px solid var(--caution-soft); background: var(--bg); border-radius: var(--radius-s); padding: 14px 16px; display: grid; gap: 10px; justify-items: start; }
.short-box.dead { border-color: var(--line-soft); }
.short-box b { font-weight: 600; }
.chain { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; justify-self: stretch; }
.chain li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 0 0 12px 22px; animation: rise-sm .35s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
.chain li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--caution); }
.chain li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: calc(.45em + 13px); bottom: 0; width: 2px; background: var(--line); }
.chain li.end { padding-bottom: 0; }
.chain li.end::before { background: var(--caution); }
.chain code { background: none; padding: 0; font-size: 0.9rem; overflow-wrap: anywhere; min-width: 0; }
.chain span { font-size: 0.8rem; color: var(--muted); }
.follow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.follow-row:has(#untrack-follow[hidden]):has(#untrack-follow-note:empty) { display: none; }
.untrack-text mark.opened { box-shadow: inset 0 -2px 0 var(--brand); }
.parts { border: 1.5px solid var(--line-soft); border-radius: var(--radius-s); padding: 0 16px; }
.parts > summary { cursor: pointer; padding: 12px 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.parts[open] > summary { border-bottom: 1px solid var(--line-soft); }
.parts-list { margin: 0; }
.part { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 4px 14px; padding: 9px 0; border-bottom: 1px dotted var(--line); }
.part dt { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.part dd { margin: 0; display: grid; gap: 4px; min-width: 0; }
.part code { background: none; padding: 0; overflow-wrap: anywhere; }
.part.removed code { text-decoration: line-through; color: var(--faint); }
.part.warn dt, .part-note { color: var(--caution); }
.part-note { font-size: 0.86rem; }
.pstate { font-size: 0.78rem; color: var(--faint); }
.part-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.linkish { cursor: pointer; border: 0; background: none; padding: 0; font: 600 0.86rem var(--body); color: var(--brand); text-decoration: underline; text-underline-offset: 2px; justify-self: start; }
.struck { text-decoration: line-through; color: var(--danger); }
.parts #parts-strip { margin: 12px 0 14px; }
@media (max-width: 520px) { .part { grid-template-columns: 1fr; gap: 2px; } }
#read .tool + .tool { margin-top: 16px; }
.untrack-head { display: grid; gap: 6px; }
.untrack-out { display: grid; gap: 10px; }
.untrack-text { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border-radius: var(--radius-s); padding: 12px 14px; line-height: 1.7; }
.untrack-text mark { border-radius: 4px; padding: 1px 3px; font-family: var(--mono); font-size: 0.9em; }
.untrack-text mark.clean { background: var(--ok-soft); color: var(--on-ok-soft); }
.untrack-text mark.same { background: var(--surface-2); color: var(--fg); }
.untrack-text mark.bad { background: var(--danger-soft); color: var(--on-danger-soft); text-decoration: line-through; }
.bad-note { color: var(--danger); font-weight: 600; }
.credit { margin-top: 14px; max-width: 72ch; }

/* Quiz */
.quiz { margin-top: 28px; background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; max-width: 640px; }
.quiz-progress { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.msg-card { background: var(--chat-bg); border-radius: var(--radius-s); padding: 14px; display: grid; gap: 10px; }
.msg-card.enter { animation: slide-in .38s var(--ease-out) both; }
.quiz .verdict { animation: rise-sm .3s var(--ease-out) both; }
.quiz-done { animation: rise .45s var(--ease-out) both; }
.bump { animation: bump .35s var(--ease-spring); }
.msg-head { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.msg-head .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); flex: none; display: grid; place-items: center; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.msg-head b { color: var(--fg); font-family: var(--mono); font-weight: 500; }
.msg-head .kind { margin-left: auto; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .06em; }
.msg-body { background: var(--bubble); border-radius: 12px 12px 12px 3px; padding: 12px 14px; max-width: 92%; font-size: 1rem; line-height: 1.5; white-space: pre-line; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.msg-body.call { border-radius: 12px; font-style: italic; }
.msg-body .u { text-decoration: underline; color: var(--brand); }
.quiz-actions { display: flex; gap: 12px; }
.quiz-actions .btn { flex: 1; }
.quiz-next { display: flex; justify-content: flex-end; }
.quiz-done { display: grid; gap: 10px; }
.score-big { font: 800 clamp(2rem, 5vw, 3rem)/1 var(--display); }

/* The family game: big buttons, big text, hearts; Calm mode makes everything larger and drops the clock */
.game { margin-top: 28px; background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); max-width: 640px; }
.game.shake { animation: shake .4s ease; }
.g-screen { display: grid; gap: 16px; }
.g-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.g-who button { cursor: pointer; display: grid; justify-items: center; gap: 4px; background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 8px; font: inherit; color: inherit; }
.g-who button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--on-brand-soft); }
.g-who .g-ico { font-size: 2rem; line-height: 1; }
.g-who b { font-weight: 600; }
.g-who small { color: var(--muted); font-size: 0.8rem; text-align: center; line-height: 1.3; }
.g-who button[aria-pressed="true"] small { color: inherit; opacity: .8; }
.g-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.95rem; }
.g-opts label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.g-opts input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.g-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-float { position: absolute; right: 0; top: -6px; font: 700 1.1rem var(--display); color: var(--ok); pointer-events: none; animation: float-up .9s var(--ease-out) both; }
.g-screen { animation: rise-sm .35s var(--ease-out) both; }
.g-hearts { color: var(--danger); font-size: 1.5rem; line-height: 1; letter-spacing: 2px; }
.g-hearts .h { display: inline-block; transition: color .3s; }
.g-hearts .lost { color: var(--line); }
.g-hearts .break { animation: heart-break .55s var(--ease-out) both; }
.g-timer { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.g-timer div { height: 100%; width: 100%; background: var(--brand); border-radius: 4px; transition: background-color .4s; }
.g-timer.late div { background: var(--caution); }
.g-card { background: var(--chat-bg); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; min-height: 160px; align-content: start; }
.g-card.in { animation: slide-in .38s var(--ease-out) both; }
.g-from { font: 500 0.85rem var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.g-text { font-size: 1.35rem; line-height: 1.45; font-weight: 500; }
.g-read { justify-self: start; }
.g-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-btn { cursor: pointer; border: 0; border-radius: var(--radius); min-height: 80px; display: grid; justify-items: center; align-content: center; gap: 2px; font: inherit; transition: transform .08s ease; }
.g-btn b { font-size: 1.3rem; font-weight: 700; }
.g-btn span { font-family: var(--hindi); font-size: 1rem; opacity: .85; }
.g-btn.scam { background: var(--danger-soft); color: var(--on-danger-soft); }
.g-btn.ok { background: var(--ok-soft); color: var(--on-ok-soft); }
.g-btn:hover { filter: brightness(.97); }
.g-btn:active { transform: scale(.97); }
.g-btn.hit { animation: pulse-ring .6s var(--ease-out); }
.g-why { border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 6px; animation: pop .25s ease both; }
.g-why.right { background: var(--ok-soft); color: var(--on-ok-soft); }
.g-why.wrong { background: var(--danger-soft); color: var(--on-danger-soft); }
.g-why b { font-size: 1.1rem; }
.g-why .hi { font-size: 1.02rem; }
.g-why .btn { justify-self: start; margin-top: 6px; }
.g-stars { font-size: 2.6rem; line-height: 1; letter-spacing: 4px; color: var(--caution); }
.g-stars span { display: inline-block; animation: star-pop .6s var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 150ms); }
.g-stars .dim { color: var(--line); }
.g-missed li .hi { display: block; font-size: 0.95rem; }
.g-is-calm .g-text { font-size: 1.65rem; line-height: 1.5; }
.g-is-calm .g-from { font-size: 1rem; }
.g-is-calm .g-btn { min-height: 96px; }
.g-is-calm .g-btn b { font-size: 1.5rem; }
.g-is-calm .g-btn span { font-size: 1.15rem; }
.g-is-calm .g-why { font-size: 1.1rem; }
.g-is-calm .g-why .hi { font-size: 1.15rem; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@media (max-width: 720px) { .g-keys { display: none; } }
@media (max-width: 520px) {
  .g-who { grid-template-columns: 1fr; }
  .g-who button { grid-template-columns: auto 1fr; justify-items: start; gap: 2px 12px; text-align: left; padding: 12px 14px; }
  .g-who .g-ico { grid-row: span 2; font-size: 1.7rem; }
  .g-who small { text-align: left; }
}

/* Rules and guide */
.rules { margin-top: 28px; display: grid; gap: 14px; padding-left: 0; counter-reset: rule; list-style: none; max-width: 66ch; }
.rules li { position: relative; padding-left: 52px; counter-increment: rule; }
.rules li::before {
  content: counter(rule); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--on-brand-soft); font: 700 1.05rem var(--display);
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tabs button { cursor: pointer; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 15px; font-weight: 500; font-size: 0.95rem; transition: background-color var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-fast) var(--ease-snap); }
.tabs button:active { transform: scale(.96); }
.guide.enter { animation: rise-sm .32s var(--ease-out) both; }
.tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.guide-panels { margin-top: 16px; }
.guide { background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.guide h4 { margin: 0 0 6px; font: 600 0.78rem/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.guide p { font-size: 0.98rem; }
.guide .do { border-left: 3px solid var(--ok); padding-left: 14px; }
@media (max-width: 760px) { .guide { grid-template-columns: 1fr; } }
.tip-card { margin-top: 28px; background: var(--brand-soft); color: var(--on-brand-soft); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: grid; gap: 6px; max-width: 66ch; }
.tip-card .eyebrow { color: inherit; opacity: .8; margin-bottom: 4px; }
/* New scams going around: one card per alert, the newest with a red edge */
.alerts { margin-top: clamp(48px, 7vw, 80px); }
.alert-list { margin-top: 20px; display: grid; gap: 16px; }
.alert { background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; }
.alert.latest { box-shadow: inset 4px 0 0 var(--danger); }
.alert header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; }
.alert header > div { min-width: 0; flex: 1 1 24ch; }
.alert h3 { margin: 0; font: 700 clamp(1.15rem, 2vw, 1.35rem)/1.25 var(--display); }
.alert-meta { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; color: var(--faint); font-size: 0.9rem; white-space: nowrap; }
.chip.new { background: var(--danger-soft); color: var(--on-danger-soft); border-color: transparent; padding: 3px 10px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: default; }
.alert .guide { padding: 0; background: none; border-radius: 0; }
.alert-actions { margin: 0; }
.rescue { margin-top: clamp(48px, 7vw, 80px); }
.steps { margin-top: 24px; display: grid; gap: 14px; max-width: 66ch; }
.steps li::marker { font-weight: 700; color: var(--brand); }
.helplines { margin-top: 8px; font-size: 0.95rem; }
.helplines summary { cursor: pointer; color: var(--brand); font-weight: 500; }
.helplines ul { list-style: none; padding: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.helplines li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted var(--line); padding-bottom: 4px; }
@media (max-width: 520px) { .helplines ul { grid-template-columns: 1fr; } }

/* Impact */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.tile { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 4px; }
.tile.glow { animation: glow 1.4s var(--ease-out); }
.tile-label { font-size: 0.85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tile-value { font: 800 clamp(2rem, 4.5vw, 3rem)/1.05 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tile-sub { font-size: 0.88rem; color: var(--faint); }
@media (max-width: 700px) { .tiles { grid-template-columns: 1fr; } }
.impact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 14px; align-content: start; }
@media (max-width: 760px) { .impact-grid { grid-template-columns: 1fr; } }
/* One series, one hue: a bar list reads like a table, so every row carries its value. */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: end; font-size: 0.95rem; }
.bar-row .bar-label { color: var(--fg); }
.bar-row .bar-value { font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; white-space: nowrap; }
.bar-row .bar-value b { color: var(--fg); font-weight: 600; }
.bar-track { grid-column: 1 / -1; height: 10px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 4px; background: var(--brand); transition: width .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.bar-row:hover .bar-fill { opacity: .8; }
.feed { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.feed li { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; border-bottom: 1px dotted var(--line); padding-bottom: 8px; animation: rise-sm .4s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.feed time { color: var(--faint); font-size: 0.85rem; white-space: nowrap; }

/* I got saved */
.saved { position: relative; overflow: hidden; margin-top: 32px; background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 36px); display: grid; gap: 24px; border: 2px solid var(--brand-soft); }
.saved-form, .saved-done { animation: rise .45s var(--ease-out) both; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.saved-intro { display: grid; gap: 12px; max-width: 60ch; }
.saved-intro .btn { justify-self: start; margin-top: 6px; }
.saved-form { display: grid; gap: 22px; }
.saved-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.saved-form legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.amount-row { display: grid; gap: 12px; }
.field.amount { position: relative; max-width: 260px; }
.field.amount .rupee { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.field.amount input { padding-left: 32px; font-variant-numeric: tabular-nums; }
#saved-state { max-width: 320px; }
.preview { background: var(--bg); border-radius: var(--radius-s); padding: 18px 20px; display: grid; gap: 10px; }
.preview .eyebrow { margin-bottom: 0; }
.preview-row { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.preview-row > div { display: grid; grid-template-columns: auto auto; gap: 2px 10px; align-items: baseline; }
.preview-label { grid-column: 1 / -1; font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.preview-row b { font: 700 1.6rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.delta { font-size: 0.85rem; font-weight: 600; color: var(--on-ok-soft); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; }
.status { min-height: 1.5em; font-size: 0.95rem; }
.status.bad { color: var(--danger); }
.saved-done { display: grid; gap: 10px; max-width: 60ch; }
.saved-done .cta-row { margin-top: 8px; }

/* Sub pages (review.html, 404.html): the same header and footer, a shorter heading, a two-column body */
.h1-sub { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
.page-head { border-top: 0; padding-bottom: clamp(24px, 4vw, 40px); }
.page-head .lede { margin-top: 16px; }
.not-found { padding-bottom: clamp(80px, 14vw, 160px); }
.review-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: start; padding-bottom: clamp(56px, 9vw, 104px); }
.review-form { margin-top: 0; gap: 20px; }
.review-side { display: grid; gap: 16px; }
.tool fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.tool legend { padding: 0; margin-bottom: 8px; font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.field > span em { font-style: normal; color: var(--faint); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 500; font-size: 0.95rem; }
.radio-row label:has(:checked) { background: var(--brand-soft); color: var(--on-brand-soft); border-color: var(--brand); }
.radio-row input { margin: 0; accent-color: var(--brand); }
.see { display: grid; gap: 10px; }
.see .site-line { font-size: 1rem; }
.steps.small { margin-top: 0; gap: 10px; font-size: 0.95rem; }
.note-card { background: var(--brand-soft); color: var(--on-brand-soft); border-radius: var(--radius); padding: 18px 20px; font-size: 0.95rem; }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }

/* Footer */
.foot { border-top: 1px solid var(--line-soft); padding: 40px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; max-width: 1120px; margin: 0 auto; color: var(--muted); font-size: 0.95rem; }
.foot b { color: var(--fg); font-family: var(--display); font-size: 1.05rem; }
.foot p { margin-top: 8px; max-width: 60ch; }
.foot-links { list-style: none; padding: 0; display: grid; gap: 8px; align-content: start; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* Scroll reveals: site.js adds js-reveal on the root and .reveal (with --i for stagger) on blocks; nothing hides without it */
.js-reveal .reveal:not(.in) { opacity: 0; transform: translateY(18px); }
.reveal.in { animation: rise var(--t-slow) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal:not(.in) { opacity: 1; transform: none; } }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-sm { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-phone { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes star-pop { 0% { opacity: 0; transform: scale(.3) rotate(-25deg); } 70% { opacity: 1; transform: scale(1.18) rotate(5deg); } 100% { opacity: 1; transform: none; } }
@keyframes heart-break { 0% { transform: scale(1); } 35% { transform: scale(1.45) rotate(-10deg); } 100% { transform: scale(.9); } }
@keyframes float-up { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-30px); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
@keyframes glow { 0% { background-color: var(--brand-soft); } 100% { background-color: var(--surface); } }
