/* playacar.dev. Same design language as Brain (brain.playacar.dev):
   deep navy dark by default, a clean light theme, soft indigo accent,
   small bold uppercase labels, thin borders, 8px rhythm. */

:root {
  --bg: #111827;
  --bg-alt: #0e1422;
  --bg-panel: #1a2234;
  --bg-raised: #212b40;
  --bg-input: #151d2e;
  --bg-hover: #243049;
  --line: #2a3550;
  --line-strong: #39466a;
  --text: #e8ebf4;
  --text-dim: #aeb6cc;
  --text-faint: #8e98b2;
  --accent: #5b64e8;
  --accent-text: #a2a9ff;
  --accent-ink: #fff;
  --accent-hover: #6870ef;
  --accent-soft: rgba(124, 132, 255, 0.16);
  --ok: #34d3b4;
  --new: #14b8a6;
  --new-ink: #04211d;
  --violet: #c4a6ff;
  --sun: #f5c46b;
  --glow-blue: rgba(47, 107, 255, 0.32);
  --glow-sun: rgba(245, 196, 107, 0.2);
  --grad-a: #6b93ff;
  --grad-b: #a594ff;
  --sun-a: #f5c46b;
  --sun-b: #ffa94d;
  --c-blue-t: #7aa2ff;
  --c-indigo-t: #a99fff;
  --c-teal-t: #5eead4;
  --c-gold-t: #f5c46b;
  --sun-text: #f5c46b;
  --word: #f1f5f9;
  --word-dim: #94a3b8;
  --warm: #f0a868;
  --danger: #ff9d97;
  --error-bg: rgba(110, 32, 32, 0.45);
  --error-line: #8c4340;
  --glow: rgba(91, 100, 232, 0.22);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --r-btn: 6px;
  --r-card: 10px;
  --caps: 0.06em;
  --dur: 0.15s;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1160px;
  --gutter: 32px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --bg: #f5f6fa; --bg-alt: #eceef5; --bg-panel: #fff; --bg-raised: #fff; --bg-input: #fff; --bg-hover: #f0f2f8;
    --line: #e2e5ee; --line-strong: #c9cfde; --text: #151a2d; --text-dim: #4a5269; --text-faint: #5e667d;
    --accent: #4f5ae8; --accent-text: #3d48d4; --accent-hover: #434ed9; --accent-soft: rgba(79, 90, 232, 0.1);
    --ok: #0b7a63; --violet: #6a3ed0; --sun-text: #855a00; --word: #0f172a; --word-dim: #64748b; --warm: #a8540f; --danger: #b3261e; --error-bg: #fde8e6; --error-line: #e0a7a2;
    --glow: rgba(79, 90, 232, 0.12); --shadow: 0 24px 60px rgba(21, 26, 45, 0.12);
    --glow-blue: rgba(47, 107, 255, 0.14); --glow-sun: rgba(245, 196, 107, 0.3); --grad-a: #2563eb; --grad-b: #5b4be0; --sun-a: #b45309; --sun-b: #c2410c; --c-blue-t: #1d4ed8; --c-indigo-t: #4338ca; --c-teal-t: #0f766e; --c-gold-t: #92400e;
    color-scheme: light;
  }
}

:root[data-theme='light'] {
  --bg: #f5f6fa; --bg-alt: #eceef5; --bg-panel: #fff; --bg-raised: #fff; --bg-input: #fff; --bg-hover: #f0f2f8;
  --line: #e2e5ee; --line-strong: #c9cfde; --text: #151a2d; --text-dim: #4a5269; --text-faint: #5e667d;
  --accent: #4f5ae8; --accent-text: #3d48d4; --accent-hover: #434ed9; --accent-soft: rgba(79, 90, 232, 0.1);
  --ok: #0b7a63; --violet: #6a3ed0; --sun-text: #855a00; --word: #0f172a; --word-dim: #64748b; --warm: #a8540f; --danger: #b3261e; --error-bg: #fde8e6; --error-line: #e0a7a2;
  --glow: rgba(79, 90, 232, 0.12); --shadow: 0 24px 60px rgba(21, 26, 45, 0.12);
  --glow-blue: rgba(47, 107, 255, 0.14); --glow-sun: rgba(245, 196, 107, 0.3); --grad-a: #2563eb; --grad-b: #5b4be0; --sun-a: #b45309; --sun-b: #c2410c; --c-blue-t: #1d4ed8; --c-indigo-t: #4338ca; --c-teal-t: #0f766e; --c-gold-t: #92400e;
  color-scheme: light;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--accent-text); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 10px 14px; border-radius: var(--r-btn); background: var(--accent); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.label { display: inline-block; color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: var(--caps); line-height: 1.4; text-transform: uppercase; }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--bg-hover); color: var(--text-dim); font-size: 10.5px; font-weight: 700; letter-spacing: var(--caps); text-transform: uppercase; white-space: nowrap; }
.badge.is-ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.badge.is-new { background: var(--new); color: var(--new-ink); }
.badge.is-sun { background: color-mix(in srgb, var(--sun) 18%, transparent); color: var(--sun-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun) 40%, transparent); }
.badge.is-accent { background: var(--accent-soft); color: var(--accent-text); }
.badge.is-violet { background: color-mix(in srgb, #a970ff 16%, transparent); color: var(--violet); }
.badge.is-muted { background: var(--bg-hover); color: var(--text-faint); }

/* ---------- buttons ---------- */

.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 4px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  background: transparent; color: var(--text);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur), border-color var(--dur), color var(--dur), transform var(--dur);
}
.btn:hover { background: var(--bg-hover); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn .ic { width: 17px; height: 17px; }
.btn-sm { --h: 36px; padding: 4px 14px; font-size: 12px; }
.btn-lg { --h: 48px; padding: 4px 22px; }
.btn-accent { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-quiet { border-color: transparent; color: var(--text-dim); }
.btn-quiet:hover { color: var(--text); }
.btn-icon { width: var(--h); padding: 0; }

/* ---------- header ---------- */

.site-head { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.head-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.mark { display: block; }
.brand { gap: 9px; }
.brand-name { color: var(--word); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.brand-name span { color: var(--word-dim); font-weight: 500; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: var(--r-btn); color: var(--text-dim); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; transition: color var(--dur), background-color var(--dur); }
.nav a:hover { background: var(--bg-hover); color: var(--text); }
.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.theme-toggle .ic-sun { display: none; }
:root[data-theme='light'] .theme-toggle .ic-sun { display: block; }
:root[data-theme='light'] .theme-toggle .ic-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .theme-toggle .ic-sun { display: block; }
  :root:not([data-theme='dark']) .theme-toggle .ic-moon { display: none; }
}

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 96px 0 104px; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 700px; background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); opacity: 0.6; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-panel); color: var(--text-dim); font-size: 12px; font-weight: 700; letter-spacing: var(--caps); text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 22%, transparent); }
h1 { font-size: clamp(38px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
.lede { max-width: 600px; margin-top: 24px; color: var(--text-dim); font-size: 18px; line-height: 1.65; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.promises { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; color: var(--text-dim); font-size: 14px; font-weight: 600; }
.promises li { display: inline-flex; align-items: center; gap: 8px; }
.promises .ic { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.4; }

.plan { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-panel); box-shadow: var(--shadow); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-title { margin-top: 16px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.plan-sub { margin-top: 4px; color: var(--text-dim); font-size: 14px; }
.plan-scope { display: grid; gap: 8px; margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-input); font-size: 14px; }
.plan-scope li { display: flex; gap: 10px; align-items: flex-start; }
.plan-scope .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--accent-text); stroke-width: 2.4; }
.plan-steps { position: relative; display: grid; gap: 4px; }
.plan-steps li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; min-height: 36px; font-size: 14px; }
.plan-steps li:not(:last-child)::after { content: ''; position: absolute; left: 10px; top: 26px; height: 20px; width: 2px; background: var(--line); }
.plan-steps li.is-done:not(:last-child)::after { background: var(--accent); }
.step-dot { width: 22px; height: 22px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--bg-panel); }
.is-done .step-dot { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.is-now .step-dot { border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.step-name { font-weight: 600; }
.is-now .step-name { color: var(--accent-text); }
.step-when { color: var(--text-faint); font-size: 12px; font-weight: 700; letter-spacing: var(--caps); text-transform: uppercase; }

/* ---------- sections ---------- */

.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
h2 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.section-sub { margin-top: 16px; color: var(--text-dim); font-size: 17px; line-height: 1.65; }
h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.35; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); transition: border-color var(--dur), background-color var(--dur); }
.card p { color: var(--text-dim); font-size: 15px; }
.card .icon-tile { margin-bottom: 4px; }
.card-cta { border-style: dashed; text-decoration: none; }
.card-cta:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--bg-raised); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; color: var(--accent-text); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.card-link .ic { width: 16px; height: 16px; transition: transform var(--dur); }
.card-cta:hover .card-link .ic { transform: translateX(3px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.icon-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); }
.icon-tile.is-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.icon-tile.is-violet { background: color-mix(in srgb, #a970ff 16%, transparent); color: var(--violet); }
.icon-tile.is-warm { background: color-mix(in srgb, #f4a261 16%, transparent); color: var(--warm); }
.icon-tile.is-neutral { background: var(--bg-hover); color: var(--text-dim); }

/* who we help */
.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-panel); }
.sizes li { position: relative; padding: 20px 24px; }
.sizes li + li { border-left: 1px solid var(--line); }
.sizes p { margin-top: 6px; color: var(--text-dim); font-size: 14px; }
.sizes li::before { content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px; background: var(--accent); opacity: 0.25; }
.sizes li:nth-child(2)::before { opacity: 0.45; }
.sizes li:nth-child(3)::before { opacity: 0.7; }
.sizes li:nth-child(4)::before { opacity: 1; }

/* how we work: timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.timeline::before { content: ''; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 25%, var(--line))); }
.tl-step { position: relative; display: flex; flex-direction: column; gap: 20px; }
.tl-num { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); color: var(--accent-text); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tl-step:first-child .tl-num { background: var(--accent); color: #fff; }
.tl-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-panel); }
.tl-body p { color: var(--text-dim); font-size: 14.5px; }
.commit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.commit-item { display: flex; gap: 14px; align-items: flex-start; padding: 4px 0; }
.commit-item .ic { width: 24px; height: 24px; margin-top: 2px; color: var(--ok); }
.commit-item h3 { font-size: 16px; }
.commit-item p { color: var(--text-dim); font-size: 14.5px; }

/* brain */
.brain-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.brain-tag { display: flex; align-items: center; gap: 10px; }
.brain-tag svg { display: block; }
.features { display: grid; gap: 14px; margin-top: 28px; }
.features li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-dim); font-size: 15.5px; }
.features strong { color: var(--text); font-weight: 650; }
.features .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--accent-text); }
.fine { margin-top: 12px; color: var(--text-faint); font-size: 13.5px; }

.device { position: relative; }
.device figcaption { margin-top: 12px; color: var(--text-faint); font-size: 13px; text-align: right; }
.device-frame { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--bg-panel); box-shadow: var(--shadow); }
.pv-side { display: flex; flex-direction: column; gap: 4px; padding: 6px; }
.pv-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.pv-primary, .pv-nav { padding: 8px 10px; border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pv-primary { margin-bottom: 8px; background: var(--accent); color: #fff; text-align: center; }
.pv-nav { color: var(--text-dim); }
.pv-nav.is-on { background: var(--accent-soft); color: var(--accent-text); }
.pv-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px; border-radius: 10px; background: var(--bg-alt); }
.pv-ask { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-panel); color: var(--text-dim); font-size: 12.5px; }
.pv-ask-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--accent-text); }
.pv-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-kpi { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-panel); }
.pv-kpi-label { color: var(--accent-text); font-size: 11.5px; font-weight: 600; }
.pv-num { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pv-chart { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-panel); }
.pv-chart i { flex: 1; border-radius: 2px 2px 0 0; background: var(--accent); }
.pv-chart i:nth-child(1) { height: 30%; } .pv-chart i:nth-child(2) { height: 18%; } .pv-chart i:nth-child(3) { height: 42%; }
.pv-chart i:nth-child(4) { height: 88%; } .pv-chart i:nth-child(5) { height: 70%; } .pv-chart i:nth-child(6) { height: 62%; }
.pv-chart i:nth-child(7) { height: 76%; } .pv-chart i:nth-child(8) { height: 40%; } .pv-chart i:nth-child(9) { height: 64%; }
.pv-chart i:nth-child(10) { height: 24%; } .pv-chart i:nth-child(11) { height: 66%; } .pv-chart i:nth-child(12) { height: 14%; opacity: 0.45; }
.pv-rows { border: 1px solid var(--line); border-radius: 8px; background: var(--bg-panel); font-size: 12.5px; }
.pv-rows li { display: grid; grid-template-columns: 1fr auto 70px; align-items: center; gap: 10px; padding: 8px 12px; }
.pv-rows li + li { border-top: 1px solid var(--line); }
.pv-rows li span:first-child { font-weight: 600; }
.pv-amt { color: var(--text-dim); text-align: right; font-variant-numeric: tabular-nums; }
.pv-pop { position: absolute; left: -28px; bottom: -28px; display: flex; flex-direction: column; gap: 4px; width: 220px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg-raised); box-shadow: var(--shadow); }
.pv-pop-title { color: var(--accent-text); font-size: 13px; font-weight: 650; }
.pv-pop-sub { color: var(--text-dim); font-size: 11.5px; line-height: 1.4; }
.pv-pop-stats { display: flex; gap: 16px; margin-top: 6px; color: var(--text-dim); font-size: 11px; }
.pv-pop-stats span { display: flex; flex-direction: column; }
.pv-pop-stats b { color: var(--text); font-size: 16px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: 104px; margin-bottom: 0; }
.faq { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-panel); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; border-radius: var(--r-card); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: 0 0 auto; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint); transform: rotate(45deg) translateY(-3px); transition: transform var(--dur); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq summary:hover h3 { color: var(--accent-text); }
.faq h3 { font-size: 16.5px; transition: color var(--dur); }
.faq details p { padding: 0 24px 22px; color: var(--text-dim); font-size: 15.5px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.contact-copy h2 { margin-top: 12px; }
.mail { display: inline-flex; align-items: center; gap: 14px; margin-top: 32px; padding: 14px 20px 14px 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); text-decoration: none; transition: border-color var(--dur); }
.mail:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.mail > span:last-child { display: flex; flex-direction: column; }
.mail-addr { font-size: 17px; font-weight: 650; }
.next { display: grid; gap: 12px; margin-top: 32px; color: var(--text-dim); font-size: 15px; }
.next li { display: flex; align-items: center; gap: 12px; }
.next b { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; }

.form { gap: 18px; padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; }
.opt { color: var(--text-faint); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg-input); color: var(--text); font-size: 15px; transition: border-color var(--dur), box-shadow var(--dur); }
.field textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.field select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e98b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid='true'] { border-color: var(--danger); }
.hint { color: var(--text-faint); font-size: 13px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.status { font-size: 14.5px; font-weight: 600; }
.status:empty { display: none; }
.status.is-ok { color: var(--ok); }
.status.is-error { color: var(--danger); }
.form.is-sent .form-row, .form.is-sent .field, .form.is-sent .form-foot .btn { display: none; }
.form.is-sent .status { padding: 8px 0; font-size: 17px; }

/* footer */
.site-foot { padding: 48px 0; border-top: 1px solid var(--line); }
.foot-row { display: grid; grid-template-columns: 1fr auto auto; gap: 32px; align-items: center; }
.foot-brand .brand-name { font-size: 17px; }
.foot-brand p { margin-top: 4px; color: var(--text-faint); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--text-dim); font-size: 14px; font-weight: 600; text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.copy { color: var(--text-faint); font-size: 14px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .nav { display: none; }
  .timeline { grid-template-columns: 1fr; gap: 12px; }
  .timeline::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 25%, var(--line))); }
  .tl-step { flex-direction: row; gap: 20px; }
  .tl-num { flex: 0 0 auto; }
}

@media (max-width: 960px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid, .brain-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-grid .section-head { position: static; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sizes li:nth-child(3) { border-left: 0; }
  .sizes li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .commit { grid-template-columns: 1fr; }
  .device { margin: 0 0 28px 28px; }
  .foot-row { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .head-row { gap: 12px; height: 60px; }
  .brand-name { font-size: 17px; }
  .btn-sm { --h: 44px; }
  .btn-icon { --h: 44px; }
  .hero { padding: 48px 0 56px; }
  .lede { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .grid-3, .sizes, .form-row { grid-template-columns: 1fr; }
  .sizes li + li { border-left: 0; border-top: 1px solid var(--line); }
  .sizes li::before { display: none; }
  .plan { padding: 20px; }
  .device { margin: 0 0 24px; }
  .device-frame { grid-template-columns: 1fr; padding: 10px; }
  .pv-side { display: none; }
  .pv-pop { position: static; width: auto; box-shadow: none; }
  .device figcaption { margin-top: 12px; }
  .faq summary { padding: 18px 16px; }
  .faq details p { padding: 0 16px 18px; }
  .form { padding: 20px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .form-foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.notfound { min-height: 100vh; border: 0; } .notfound h1 { margin-top: 12px; }

/* legal pages */
.legal { padding: 72px 0 104px; }
.legal .wrap { max-width: 800px; }
.legal h1 { margin-top: 12px; font-size: clamp(34px, 4.4vw, 48px); }
.legal .updated { margin-top: 12px; color: var(--text-faint); font-size: 14px; }
.legal .summary { margin-top: 32px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text-dim); }
.legal .summary strong { color: var(--text); }
.prose { margin-top: 40px; color: var(--text-dim); font-size: 16px; }
.prose h2 { margin: 48px 0 12px; font-size: 22px; letter-spacing: -0.015em; color: var(--text); }
.prose h3 { margin: 24px 0 8px; color: var(--text); font-size: 17px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.prose ul li::marker { color: var(--accent-text); }
.prose strong { color: var(--text); font-weight: 650; }
.placeholder { padding: 0 4px; border-radius: 4px; background: color-mix(in srgb, #f0c56b 22%, transparent); color: var(--text); font-weight: 700; }
.nf-label { display: block; margin-top: 48px; }

/* =================================================================
   Section rhythm (owner, 2026-11-16): navy hero, then light, bold blue
   band, light, near-black, light, deep indigo band, light, navy contact.
   Each tone re-declares the tokens, so cards and text follow it.
   ================================================================= */

.section[class*='tone-'], .contact { border-top: 0; }

.tone-light, .tone-white {
  --bg: #f3f5fa; --bg-alt: #eef1f7; --bg-panel: #fff; --bg-raised: #fff; --bg-input: #fff; --bg-hover: #eef1f8;
  --line: #e2e6ef; --line-strong: #cbd2e1; --text: #0f172a; --text-dim: #475069; --text-faint: #5b6479;
  --accent: #4f5ae8; --accent-text: #3d48d4; --accent-hover: #434ed9; --accent-soft: rgba(79, 90, 232, 0.1);
  --ok: #047857; --violet: #6d28d9; --sun-text: #8a5a00; --danger: #b3261e;
  --grad-a: #2563eb; --grad-b: #5b4be0;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  --card-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.05), 0 18px 40px rgba(15, 23, 42, 0.1);
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
}
.tone-white { --bg: #fff; --bg-panel: #f7f8fc; --bg-raised: #fff; }

.tone-ink {
  --bg: #0b0f17; --bg-alt: #0b0f17; --bg-panel: #121826; --bg-raised: #161d2e; --bg-input: #121826; --bg-hover: #1c2436;
  --line: #232c40; --line-strong: #323d57; --text: #eef1f8; --text-dim: #aeb6cc; --text-faint: #939cb5;
  --accent-text: #a5b4ff; --ok: #34d3b4; --grad-a: #6b93ff; --grad-b: #a594ff;
  --card-shadow: none; --card-shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
  background: var(--bg);
  color: var(--text);
}

.tone-blue, .tone-indigo {
  --bg-panel: rgba(255, 255, 255, 0.09); --bg-raised: rgba(255, 255, 255, 0.12); --bg-hover: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.2); --line-strong: rgba(255, 255, 255, 0.36);
  --text: #fff; --text-dim: rgba(255, 255, 255, 0.88); --text-faint: rgba(255, 255, 255, 0.8);
  --accent-text: #fff; --accent-soft: rgba(255, 255, 255, 0.14); --ok: #a7f3d0; --sun-text: #ffe2a3;
  --grad-a: #ffe9b8; --grad-b: #f5c46b;
  --card-shadow: none; --card-shadow-hover: 0 18px 40px rgba(8, 10, 40, 0.3);
  color-scheme: dark;
  position: relative;
  overflow: hidden;
  color: var(--text);
}
.tone-blue {
  background:
    radial-gradient(600px 400px at 92% 0%, rgba(245, 196, 107, 0.22), transparent 70%),
    radial-gradient(800px 500px at 0% 100%, rgba(99, 102, 241, 0.45), transparent 70%),
    linear-gradient(135deg, #1d4ed8 0%, #2448d8 45%, #4338ca 100%);
}
.tone-indigo {
  background:
    radial-gradient(700px 500px at 85% 30%, rgba(47, 107, 255, 0.35), transparent 70%),
    radial-gradient(500px 360px at 8% 0%, rgba(245, 196, 107, 0.14), transparent 70%),
    linear-gradient(160deg, #1e1b4b 0%, #2e2a7a 55%, #1e3a8a 100%);
}
.tone-blue .btn-accent, .tone-indigo .btn-accent { background: #fff; color: #1e1b4b; }
.tone-blue .btn-accent:hover, .tone-indigo .btn-accent:hover { background: #e9ebff; }

/* eyebrow labels: a color per section, with a short rule */
.eyebrow-label::before { content: ''; display: inline-block; width: 18px; height: 2px; margin: 0 8px 3px 0; border-radius: 2px; background: currentColor; vertical-align: middle; }
#replace .eyebrow-label { color: #b45309; }
#support .eyebrow-label { color: #ffe2a3; }
#build .eyebrow-label { color: #1d4ed8; }
#who .eyebrow-label { color: #5eead4; }
#process .eyebrow-label { color: #6d28d9; }
#brain .eyebrow-label { color: #fcd98a; }
#faq .eyebrow-label { color: #047857; }

/* one gradient phrase per heading */
.grad, .grad-sun { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.grad { color: var(--grad-a); }
.grad-sun { color: var(--sun-a); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad { background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .grad-sun { background: linear-gradient(90deg, var(--sun-a), var(--sun-b)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
}

/* color-coded icon tiles (light sections) */
.icon-tile.t-blue { background: #dbeafe; color: #1d4ed8; }
.icon-tile.t-indigo { background: #e0e7ff; color: #4338ca; }
.icon-tile.t-teal { background: #ccfbf1; color: #0f766e; }
.icon-tile.t-gold { background: #fef3c7; color: #92400e; }
.icon-tile.t-violet { background: #ede9fe; color: #6d28d9; }
.icon-tile.t-emerald { background: #d1fae5; color: #047857; }

/* cards: shadow on light, a subtle lift on hover */
.card { box-shadow: var(--card-shadow, none); transition: border-color var(--dur), background-color var(--dur), transform 0.2s ease, box-shadow 0.2s ease; }
.card:not(.form):hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover, var(--shadow)); }
.tone-light .card-cta, .tone-white .card-cta { background: transparent; box-shadow: none; }

/* ---------- hero ---------- */

.hero { padding: 88px 0 104px; }
.hero::before { inset: auto; left: 50%; top: 34%; width: 1200px; height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow-blue), color-mix(in srgb, var(--glow-blue) 40%, transparent) 55%, transparent); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); }
.hero-side .lede { margin-top: 0; font-size: 17.5px; }
.hero-side .cta-row { margin-top: 28px; }
.hero-side .promises { margin-top: 24px; }

.stage { position: relative; margin-top: 72px; padding-bottom: 190px; }
.stage::before { content: ''; position: absolute; right: -120px; top: -160px; width: 560px; height: 560px; background: radial-gradient(closest-side, var(--glow-sun), transparent); pointer-events: none; }
.app { position: relative; z-index: 1; width: calc(100% - 180px); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--bg-panel); box-shadow: var(--shadow), 0 50px 120px color-mix(in srgb, var(--glow-blue) 60%, transparent); }
.app-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.app-bar i:first-child { background: #f87171; } .app-bar i:nth-child(2) { background: #f5c46b; } .app-bar i:nth-child(3) { background: #34d399; }
.app-bar span { margin: 0 auto; padding: 3px 16px; border-radius: 6px; background: var(--bg-input); color: var(--text-faint); font-size: 11.5px; }
.app-body { display: grid; grid-template-columns: 176px minmax(0, 1fr); }
.app-side { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-right: 1px solid var(--line); }
.app-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px 22px 22px; background: var(--bg); }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-hello { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.app-sub { color: var(--text-dim); font-size: 12.5px; }
.app-tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-panel); }
.app-tabs span { padding: 5px 10px; border-radius: 5px; color: var(--text-dim); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.app-tabs .is-on { background: var(--accent); color: #fff; }
.app-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px 12px 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-panel); }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--k); }
.kpi-l { color: var(--kt); font-size: 11.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-v { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-d { color: var(--text-faint); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-d.up { color: var(--ok); }
.k-blue { --k: #2f6bff; --kt: var(--c-blue-t); }
.k-indigo { --k: #6d5cff; --kt: var(--c-indigo-t); }
.k-teal { --k: #14b8a6; --kt: var(--c-teal-t); }
.k-gold { --k: #f5c46b; --kt: var(--c-gold-t); }
.app-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 10px; }
.app-panel { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-panel); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 12.5px; font-weight: 650; }
.legend { display: flex; align-items: center; gap: 6px; color: var(--text-faint); font-size: 10.5px; font-weight: 600; }
.legend i { width: 8px; height: 8px; margin-left: 6px; border-radius: 2px; }
.lg-paid { background: linear-gradient(#5b8cff, #4f46e5); }
.lg-fc { background: #f5c46b; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 150px; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 25%; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #5b8cff, #4f46e5); }
.bars i.fc { background: repeating-linear-gradient(135deg, #f5c46b 0 6px, rgba(245, 196, 107, 0.55) 6px 12px); }
.bars i:nth-child(1) { height: 38%; } .bars i:nth-child(2) { height: 46%; } .bars i:nth-child(3) { height: 41%; }
.bars i:nth-child(4) { height: 58%; } .bars i:nth-child(5) { height: 52%; } .bars i:nth-child(6) { height: 66%; }
.bars i:nth-child(7) { height: 61%; } .bars i:nth-child(8) { height: 72%; } .bars i:nth-child(9) { height: 78%; }
.bars i:nth-child(10) { height: 82%; } .bars i:nth-child(11) { height: 88%; } .bars i:nth-child(12) { height: 94%; }
.app-moves ul { display: grid; }
.app-moves li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12px; }
.app-moves li:first-child { border-top: 0; padding-top: 2px; }
.app-moves li span { overflow: hidden; color: var(--text-dim); text-overflow: ellipsis; white-space: nowrap; }
.app-moves i { width: 8px; height: 8px; border-radius: 50%; }
.app-moves b { font-weight: 650; font-variant-numeric: tabular-nums; }
.app-moves b.pos { color: var(--ok); }
.mv-rose { background: #f87171; } .mv-indigo { background: #818cf8; } .mv-green { background: #34d399; } .mv-gold { background: #f5c46b; }

.plan-float { position: absolute; z-index: 2; right: 0; bottom: 0; width: 340px; padding: 20px; background: var(--bg-raised); }
.plan-float .plan-title { margin: 10px 0 14px; font-size: 16px; }
.chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-raised); box-shadow: var(--shadow); font-size: 13px; font-weight: 650; white-space: nowrap; }
.chip-a { left: -24px; top: 380px; }
.chip-b { right: 24px; top: 84px; }
.chip-dot { width: 10px; height: 10px; border-radius: 50%; }
.chip-dot.is-gold { background: #f5c46b; box-shadow: 0 0 0 4px rgba(245, 196, 107, 0.25); }
.chip-dot.is-rose { background: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.22); }
.stage-note { margin-top: -150px; color: var(--text-faint); font-size: 13px; }

/* ---------- replace ---------- */

.replace-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.replace-copy .section-head { margin-bottom: 32px; }
.idea { flex-direction: row; align-items: flex-start; gap: 16px; background: #fff; }
.idea .icon-tile { margin: 0; }
.idea p { margin-top: 6px; }
.idea .card-link { margin-top: 12px; }
.versus { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #e2e6ef; border-radius: 16px; box-shadow: 0 30px 70px rgba(15, 23, 42, 0.14); }
.vs-col { padding: 32px 28px; }
.vs-col ul { display: grid; gap: 16px; margin-top: 20px; }
.vs-col li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; font-weight: 550; line-height: 1.45; }
.vs-col .ic { width: 18px; height: 18px; margin-top: 2px; stroke-width: 2.4; }
.vs-old { background: #f1f3f8; color: #475069; }
.vs-old .label { color: #5b6479; }
.vs-old .ic { color: #b91c1c; }
.vs-new { background: radial-gradient(400px 260px at 100% 0%, rgba(245, 196, 107, 0.25), transparent 70%), linear-gradient(160deg, #111827, #1b2552 60%, #2a3aa8); color: #eef1f8; }
.vs-new .label { color: #ffe2a3; }
.vs-new .ic { color: #f5c46b; }

/* ---------- support (blue band) ---------- */

.support-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }
.support-copy .section-head { margin-bottom: 32px; }
.support-quote { margin-top: 20px; padding-left: 18px; border-left: 3px solid #f5c46b; color: #fff; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.points { display: grid; gap: 12px; }
.points li { display: flex; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-panel); transition: transform 0.2s ease, background-color var(--dur); }
.points li:hover { transform: translateY(-3px); background: var(--bg-raised); }
.point-ic { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); color: #ffe2a3; }
.points p { margin-top: 2px; color: var(--text-dim); font-size: 14.5px; }
.thread { padding: 24px; border-radius: 16px; background: #fff; color: #0f172a; box-shadow: 0 30px 80px rgba(8, 12, 40, 0.35); }
.thread-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.thread .label { color: #4338ca; }
.thread .badge.is-sun { background: #fef3c7; box-shadow: none; color: #8a5a00; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.msg + .msg { margin-top: 10px; }
.msg-who { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: var(--caps); text-transform: uppercase; }
.msg-in { background: #f1f3f8; color: #1f2937; }
.msg-in .msg-who { color: #5b6479; }
.msg-out { margin-left: auto; background: linear-gradient(135deg, #2457e6, #4338ca); color: #fff; }
.msg-out .msg-who { color: #ffe2a3; }
.thread-ship { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed #d5dae6; }
.ship-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 6px; background: #111827; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 0 0 3px rgba(245, 196, 107, 0.7); }
.ship-btn .ic { width: 15px; height: 15px; }
.ship-note { color: #475069; font-size: 13px; font-weight: 600; }

/* ---------- who (near-black) ---------- */

.examples .card { border-top: 3px solid var(--ex); }
.examples .card:nth-child(1) { --ex: #2f6bff; --ex-t: #8fb0ff; } .examples .card:nth-child(2) { --ex: #14b8a6; --ex-t: #5eead4; } .examples .card:nth-child(3) { --ex: #f5c46b; --ex-t: #f5c46b; }
.examples .card:nth-child(4) { --ex: #a78bfa; --ex-t: #c4b5fd; } .examples .card:nth-child(5) { --ex: #34d399; --ex-t: #6ee7b7; } .examples .card:nth-child(6) { --ex: #818cf8; --ex-t: #a5b4fc; }
.examples .card-top .label { color: var(--ex-t); }
.tone-ink .sizes li::before { background: linear-gradient(90deg, #2f6bff, #f5c46b); }

/* ---------- process (white): timeline in blue and gold ---------- */

.timeline::before { background: linear-gradient(90deg, #2f6bff, #6d5cff 60%, #f5c46b); }
.tl-num { border-color: #2f6bff; background: #fff; color: #1d4ed8; }
.tl-step:first-child .tl-num { border-color: transparent; background: linear-gradient(135deg, #2f6bff, #4f46e5); color: #fff; }
.tl-step:last-child .tl-num { border-color: #f5c46b; background: #fef3c7; color: #92400e; }
.timeline .label { color: #a15c00; }
.tl-body { box-shadow: var(--card-shadow); }

/* ---------- brain (indigo band) ---------- */

.brain .device {
  --bg: #111827; --bg-alt: #0e1422; --bg-panel: #1a2234; --bg-raised: #212b40; --bg-hover: #243049;
  --line: #2a3550; --line-strong: #39466a; --text: #e8ebf4; --text-dim: #aeb6cc; --text-faint: #8e98b2;
  --accent-text: #a2a9ff; --accent-soft: rgba(124, 132, 255, 0.16); --ok: #34d3b4; --violet: #c4a6ff;
  color: var(--text);
}
.brain .device-frame { box-shadow: 0 40px 100px rgba(6, 8, 30, 0.55); }
.brain .device figcaption { color: rgba(255, 255, 255, 0.8); }
.brain .features .ic { color: #ffe2a3; }

/* ---------- contact ---------- */

.contact { position: relative; overflow: hidden; }
.contact::before { content: ''; position: absolute; left: -200px; top: -240px; width: 800px; height: 600px; background: radial-gradient(closest-side, var(--glow-blue), transparent); pointer-events: none; }
.contact > .wrap { position: relative; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .timeline::before { background: linear-gradient(180deg, #2f6bff, #6d5cff 60%, #f5c46b); }
  .chip-a { left: 8px; }
}

@media (max-width: 960px) {
  .hero-top, .replace-grid, .support-grid { grid-template-columns: 1fr; gap: 32px; }
  .stage { margin-top: 56px; padding-bottom: 0; }
  .app { width: 100%; }
  .plan-float { position: relative; width: auto; max-width: 380px; margin: -48px 16px 0 auto; }
  .chip-a { top: -18px; left: 12px; }
  .chip-b { display: none; }
  .stage-note { margin-top: 12px; }
  .chip-a { top: -18px; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 64px; }
  .stage { margin-top: 44px; }
  .app-body { grid-template-columns: 1fr; }
  .app-side, .app-tabs, .app-moves, .app-bar span { display: none; }
  .app-main { padding: 14px 14px 40px; gap: 10px; }
  .app-hello { font-size: 17px; }
  .app-kpis, .app-row { grid-template-columns: 1fr 1fr; }
  .app-row { grid-template-columns: 1fr; }
  .kpi-v { font-size: 19px; }
  .bars { height: 100px; gap: 5px; }
  .plan-float { max-width: none; margin: -28px 10px 0; padding: 18px; }
  .chip { font-size: 12px; padding: 7px 12px; }
  .versus { grid-template-columns: 1fr; }
  .vs-col { padding: 24px 20px; }
  .support-quote { font-size: 19px; }
  .idea { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .card:not(.form):hover, .points li:hover { transform: none; }
}
