/* TunTun design system. Tokens first, then base, layout, components, pages. See BRAND.md. */
:root {
  --ink: #0f2a30;          /* night evergreen: header, footer, headings */
  --ink-2: #17393f;
  --ink-3: #224a51;
  --teal: #0b7a75;         /* clinical teal: primary actions, links */
  --teal-700: #08605c;
  --teal-50: #e3f3f1;
  --coral: #e8614a;        /* heartbeat coral: brand accent, graphics */
  --coral-700: #b93a25;    /* coral for text and filled buttons (AA on white) */
  --coral-50: #fdece8;
  --cream: #faf6f0;        /* page background */
  --sand: #f2eadf;
  --sand-2: #e7dccd;
  --paper: #ffffff;
  --text: #1b2a2e;
  --muted: #52646a;
  --line: #e4dccf;
  --ok: #1d7448; --ok-50: #e2f3e9;
  --watch: #94570a; --watch-50: #fdf0d9;
  --na: #5d6b70; --na-50: #eef1f1;
  --on-ink: #eef6f5;
  --on-ink-muted: #b7cccb;
  --radius: 14px; --radius-lg: 22px; --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(15, 42, 48, .06), 0 2px 8px rgba(15, 42, 48, .05);
  --shadow-2: 0 2px 6px rgba(15, 42, 48, .06), 0 14px 40px rgba(15, 42, 48, .10);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* language visibility: content carries lang="es" or lang="en" */
html[lang="es"] [lang="en"]:not(html), html[lang="en"] [lang="es"]:not(html) { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 16px/1.6 var(--font-ui); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-700); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 600; font-variation-settings: "opsz" 96, "SOFT" 50; }
h1 { font-size: clamp(2.1rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-variation-settings: "opsz" 36; }
h4 { font-size: 1.05rem; font-family: var(--font-ui); letter-spacing: 0; font-weight: 650; }
p { margin: 0 0 1em; }
.num, .tabular { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip:focus { top: 8px; }
.hidden { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section.tight { padding: 40px 0; }
.section.sand { background: var(--sand); }
.section.ink { background: var(--ink); color: var(--on-ink); }
.section.ink h2, .section.ink h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 650 .78rem/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--coral-700); margin-bottom: 14px; }
.section.ink .eyebrow { color: #ffb4a6; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
@media (min-width: 900px) { .lead { font-size: 1.25rem; } }
.section.ink .lead { color: var(--on-ink-muted); }
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .g4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 64px; } .split.rev > :first-child { order: 2; } }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 42, 48, .97); color: var(--on-ink); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 1.32rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand:hover { color: #fff; }
.brand svg { width: 32px; height: 32px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links { display: none; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--on-ink-muted); text-decoration: none; font-weight: 500; font-size: .94rem; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
@media (min-width: 1080px) { .nav-links { display: flex; } }
.lang-toggle { display: inline-flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px; margin-left: 6px; }
.lang-toggle button { background: none; border: 0; color: var(--on-ink-muted); font: 600 .78rem/1 var(--font-ui); padding: 7px 10px; border-radius: 999px; cursor: pointer; min-width: 36px; min-height: 30px; }
.lang-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; color: #fff; border-radius: 12px; cursor: pointer; }
.menu-btn:hover { background: rgba(255, 255, 255, .08); }
@media (min-width: 1080px) { .menu-btn { display: none; } }
.btn.header-cta { display: none; }
@media (min-width: 600px) { .btn.header-cta { display: inline-flex; } }
.mobile-nav { display: none; border-top: 1px solid rgba(255, 255, 255, .08); padding: 8px 0 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; color: var(--on-ink); text-decoration: none; padding: 12px var(--gutter); font-weight: 500; }
.mobile-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
@media (min-width: 1080px) { .mobile-nav, .mobile-nav.open { display: none; } }

/* buttons */
.btn { --b: var(--teal); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent; font: 600 .98rem/1 var(--font-ui); text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s, box-shadow .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--coral-700); color: #fff; box-shadow: 0 6px 18px rgba(185, 58, 37, .25); }
.btn-primary:hover { background: #a3311e; color: #fff; box-shadow: 0 8px 24px rgba(185, 58, 37, .32); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--sand-2); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--teal-50); color: var(--ink); }
.btn-on-ink { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-on-ink:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.btn.recording .dot { animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

/* cards, pills */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-1); }
.card.flat { box-shadow: none; }
.card.hover { transition: transform .18s ease, box-shadow .18s ease; }
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card h3 { margin-bottom: .35em; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); margin-bottom: 16px; }
.icon-tile.coral { background: var(--coral-50); color: var(--coral-700); }
.icon-tile svg { width: 26px; height: 26px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem/1 var(--font-ui); padding: 6px 10px; border-radius: 999px; background: var(--na-50); color: var(--na); white-space: nowrap; }
.pill.ok { background: var(--ok-50); color: var(--ok); }
.pill.watch { background: var(--watch-50); color: var(--watch); }
.pill.teal { background: var(--teal-50); color: var(--teal-700); }
.pill.coral { background: var(--coral-50); color: var(--coral-700); }
.pill.dark { background: rgba(255, 255, 255, .12); color: #fff; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.nodot::before { display: none; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--watch-50); color: #5c3a06; border: 1px solid #f1d9ab; font-size: .95rem; }
.banner svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.banner.info { background: var(--teal-50); color: var(--ink); border-color: #c4e3df; }
.badge-demo { display: inline-flex; align-items: center; gap: 6px; background: #ffd9a8; color: #5c3a06; font: 700 .72rem/1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }

/* forms */
label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field .hint { font-size: .84rem; color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="number"], select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--sand-2); background: var(--paper); color: var(--text); font: 400 1rem/1.4 var(--font-ui); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11, 122, 117, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.seg { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: 600 .9rem/1 var(--font-ui); color: var(--muted); cursor: pointer; min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
.form-msg { margin-top: 12px; font-weight: 500; }
.form-msg.ok { color: var(--ok); } .form-msg.err { color: var(--coral-700); }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: 13px 16px; border-radius: 14px; box-shadow: var(--shadow-2); font-weight: 500; display: flex; gap: 10px; align-items: center; animation: toastIn .25s ease; }
.toast.ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6fe0a6; flex: none; }
.toast.err::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff8a73; flex: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* empty states */
.empty { text-align: center; padding: 40px 20px; border: 1.5px dashed var(--sand-2); border-radius: var(--radius-lg); color: var(--muted); background: rgba(255, 255, 255, .5); }
.empty svg { width: 96px; height: 96px; margin: 0 auto 12px; }
.empty h3 { color: var(--ink); }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(232, 97, 74, .16), transparent 60%), radial-gradient(900px 600px at 0% 110%, rgba(11, 122, 117, .18), transparent 60%), var(--ink); color: var(--on-ink); overflow: hidden; position: relative; }
.hero .wrap { padding-top: 48px; padding-bottom: 56px; }
@media (min-width: 900px) { .hero .wrap { padding-top: 88px; padding-bottom: 96px; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: #ffb4a6; font-variation-settings: "opsz" 144, "SOFT" 100; }
.hero .lead { color: var(--on-ink-muted); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: var(--on-ink-muted); font-size: .9rem; }
.trust span { display: inline-flex; gap: 8px; align-items: center; }
.trust svg { width: 18px; height: 18px; color: #7fd6cc; }
.beat-line { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; opacity: .25; pointer-events: none; }
.page-hero { background: var(--ink); color: var(--on-ink); padding: 56px 0 48px; }
@media (min-width: 900px) { .page-hero { padding: 88px 0 72px; } }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.3rem); }
.page-hero .lead { color: var(--on-ink-muted); }

/* steps */
.steps { counter-reset: s; display: grid; gap: 18px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 600 .85rem/1 var(--font-ui); color: var(--coral-700); letter-spacing: .1em; display: block; margin-bottom: 14px; }
.step .art { height: 120px; margin: -6px -6px 14px; border-radius: 16px; background: var(--sand); display: grid; place-items: center; overflow: hidden; }
.step .art svg { height: 100%; width: auto; }

/* stat band */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }

.stat { padding: 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.stat b { display: block; font: 600 2rem/1.1 var(--font-display); color: #fff; }
.stat span { color: var(--on-ink-muted); font-size: .9rem; }

/* detection lists */
.detect-card { display: grid; gap: 16px; }
.detect-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.detect-card li { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.detect-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.detect-card .confirm { font-size: .9rem; color: var(--muted); }
.detect-card .confirm b { color: var(--teal-700); font-weight: 600; }

/* quote */
.quote { font: 500 clamp(1.3rem, 2.6vw, 1.85rem)/1.35 var(--font-display); color: var(--ink); max-width: 820px; margin: 0 auto; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--muted); }

/* footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 56px 0 32px; font-size: .92rem; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-grid h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-brand { grid-column: auto; } }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* analysis UI shared by demo, app and vet */
.wave-box { background: var(--ink); border-radius: var(--radius); padding: 14px; position: relative; }
.wave-box canvas { width: 100%; height: 120px; }
.wave-box .wave-meta { display: flex; justify-content: space-between; color: var(--on-ink-muted); font-size: .78rem; margin-top: 6px; }
.vitals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vital { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.vital .k { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.vital .v { font: 600 2rem/1.1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.vital .v small { font: 500 .85rem var(--font-ui); color: var(--muted); margin-left: 4px; }
.vital .r { font-size: .8rem; color: var(--muted); }
.flag-groups { display: grid; gap: 12px; }
@media (min-width: 900px) { .flag-groups.cols { grid-template-columns: repeat(3, 1fr); } }
.flag-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.flag-group h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.flag-group h4 .gi { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--coral-50); color: var(--coral-700); }
.flag-group h4 .gi svg { width: 16px; height: 16px; }
.flag { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.flag:first-of-type { border-top: 0; }
.flag .fv { color: var(--muted); font-size: .8rem; display: block; }
.disclaimer { font-size: .85rem; color: var(--muted); }
.drop { border: 2px dashed var(--sand-2); border-radius: var(--radius-lg); padding: 24px; text-align: center; background: rgba(255, 255, 255, .6); transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--teal); background: var(--teal-50); }
.meter { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--coral)); transition: width .1s linear; }
.progress-ring { font-variant-numeric: tabular-nums; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* app shell */
.app-body { background: #f6f2ec; }
.app-header { background: var(--ink); color: var(--on-ink); }
.app-header .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.app-header .who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--on-ink-muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.app-main { padding: 28px 0 80px; }
.app-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.app-tabs a { padding: 12px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.app-tabs a[aria-current="page"] { color: var(--ink); border-color: var(--coral); }
.list { display: grid; gap: 12px; }
.list-item { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; cursor: pointer; width: 100%; text-align: left; font: inherit; }
.list-item:hover { border-color: var(--teal); box-shadow: var(--shadow-1); color: var(--text); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 650; color: var(--ink); }
.list-item .sub { font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item.unread { border-left: 4px solid var(--coral); }
.pet-dot { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); flex: none; color: var(--ink); }
.pet-dot svg { width: 26px; height: 26px; }
.thread { display: grid; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; background: var(--sand); }
.msg.vet { background: var(--teal-50); border: 1px solid #c4e3df; }
.msg.me { margin-left: auto; background: var(--ink); color: #fff; }
.msg .meta { font-size: .75rem; opacity: .75; margin-bottom: 2px; font-weight: 600; }
.code-card { background: linear-gradient(135deg, var(--ink), var(--ink-3)); color: #fff; border-radius: var(--radius-lg); padding: 22px; }
.code-card .code { font: 600 2rem/1.1 var(--font-display); letter-spacing: .08em; margin: 6px 0 10px; }
.layout-2 { display: grid; gap: 24px; }
@media (min-width: 980px) { .layout-2 { grid-template-columns: 360px 1fr; align-items: start; } .layout-2.wide-left { grid-template-columns: 1fr 340px; } }
.signin { max-width: 440px; margin: 40px auto; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--ink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; scroll-behavior: auto !important; } }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal { max-width: 760px; }
@media (max-width: 599px) { .hide-sm { display: none; } .app-header .pill.dark { display: none; } }
.list-item { min-width: 0; } .list, .list > *, .layout-2 > * { min-width: 0; }
