/* Scholargrowth marketing site */

/* ---------- Tokens ---------- */
:root {
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --surface-2: #F3EEE5;
  --ink: #17122B;
  --ink-2: #4A4560;
  --ink-3: #6B6680;
  --line: #E7E0D4;
  --line-2: #D8CFC0;
  --brand: #5B3DF5;
  --brand-2: #4A2EE0;
  --brand-soft: #ECE8FF;
  --brand-ink: #FFFFFF;
  --sun: #FFB020;
  --sun-ink: #1D1400;
  --coral: #F2552C;
  --ok: #17895A;
  --deep: #17122B;         /* ink sections stay dark in both themes */
  --deep-2: #231C3D;
  --deep-line: #3A3158;
  --on-deep: #F4F1FA;
  --on-deep-2: #BDB6D3;
  --shadow: 0 1px 2px rgba(23, 18, 43, .06), 0 12px 32px -12px rgba(23, 18, 43, .18);
  --shadow-lg: 0 30px 80px -30px rgba(40, 20, 120, .35);
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --f-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --shell: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0C1C;
    --surface: #17132A;
    --surface-2: #1E1935;
    --ink: #F4F1FA;
    --ink-2: #C9C3DC;
    --ink-3: #9C95B3;
    --line: #2D2745;
    --line-2: #3B3458;
    --brand: #8C75FF;
    --brand-2: #A594FF;
    --brand-soft: #2A2254;
    --brand-ink: #120C2E;
    --deep: #1B1633;
    --deep-2: #251F44;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0C1C;
  --surface: #17132A;
  --surface-2: #1E1935;
  --ink: #F4F1FA;
  --ink-2: #C9C3DC;
  --ink-3: #9C95B3;
  --line: #2D2745;
  --line-2: #3B3458;
  --brand: #8C75FF;
  --brand-2: #A594FF;
  --brand-soft: #2A2254;
  --brand-ink: #120C2E;
  --deep: #1B1633;
  --deep-2: #251F44;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sun); color: var(--sun-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .shell { padding: 0 32px; } }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.h2, h1 { font-family: var(--f-display); letter-spacing: -.025em; line-height: 1.04; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
.h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.kicker {
  font: 500 .75rem/1 var(--f-mono);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--brand); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.kicker--pill { background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; color: var(--ink-2); letter-spacing: .06em; text-transform: none; font-family: var(--f-body); font-weight: 600; font-size: .85rem; }
.kicker--pill::before { display: none; }
.kicker--light { color: var(--sun); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ok) 0%, transparent); } }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after { content: ''; position: absolute; left: -1%; right: -1%; bottom: -.06em; height: .16em; background: var(--sun); z-index: -1; transform-origin: left; animation: hl 1s .4s var(--ease) both; border-radius: 3px; }
@keyframes hl { from { transform: scaleX(0); } }
.textlink { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.textlink:hover { text-decoration-thickness: 3px; }
u { text-decoration-color: var(--coral); text-decoration-thickness: .12em; text-underline-offset: .12em; }
.swap { font-style: normal; color: var(--brand); display: inline-block; transition: opacity .25s, transform .25s var(--ease); }
.swap.is-out { opacity: 0; transform: translateY(8px); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--r); border: 1.5px solid var(--b);
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  background: transparent;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--brand { background: var(--brand); --b: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn--brand:hover { background: var(--brand-2); --b: var(--brand-2); }
.btn--sun { background: var(--sun); --b: var(--sun); color: var(--sun-ink); }
.btn--ghost { background: var(--surface); }
.btn--ghost:hover { --b: var(--ink); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.04rem; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-btn--light { background: transparent; border-color: var(--deep-line); color: var(--on-deep); font-size: 1.1rem; }
.icon-btn--light:hover { border-color: var(--on-deep); }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-align: left; }
.linkish:hover { text-decoration: underline; }

/* ---------- Top bar ---------- */
.scroll-meter { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.scroll-meter span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand), var(--sun)); transform-origin: left; transform: scaleX(var(--p, 0)); }

.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.is-stuck { border-bottom-color: var(--line); }
.topbar__row { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.2rem/1 var(--f-display); letter-spacing: -.02em; }
.logo b { color: var(--brand); font-weight: 800; }
.logo__mark { width: 28px; height: 28px; fill: var(--brand); flex: none; }
.topbar--app .btn { white-space: nowrap; }
@media (max-width: 420px) { .topbar--app .logo span { display: none; } }
.logo__mark rect:nth-child(2) { fill: color-mix(in srgb, var(--brand) 70%, var(--sun)); }
.logo__mark rect:nth-child(3) { fill: var(--sun); }
.logo:hover .logo__mark rect { animation: grow .6s var(--ease) both; transform-origin: bottom; transform-box: fill-box; }
.logo:hover .logo__mark rect:nth-child(2) { animation-delay: .08s; }
.logo:hover .logo__mark rect:nth-child(3) { animation-delay: .16s; }
@keyframes grow { from { transform: scaleY(.3); } }
.topbar__nav { display: flex; gap: 2px; margin-left: 8px; }
.topbar__nav a { padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; font-weight: 500; color: var(--ink-2); font-size: .95rem; }
.topbar__nav a:hover, .topbar__nav a[aria-current] { color: var(--ink); background: var(--surface-2); }
.topbar__actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.topbar__burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.topbar__nav-extra { display: none; }
.topbar__burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-open .topbar__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .topbar__burger span:nth-child(2) { opacity: 0; }
.nav-open .topbar__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .topbar__burger { display: inline-flex; }
  .topbar__cta { display: none; }
  .topbar__nav {
    position: fixed; top: 72px; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px);
    margin: 0; flex-direction: column; gap: 0; overflow-y: auto;
    background: var(--bg); padding: 8px 16px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .topbar__nav-extra { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
  .topbar__nav .topbar__nav-extra a { border-bottom: 1.5px solid var(--b); border-radius: var(--r); font-size: 1rem; padding: 0 20px; min-height: 52px; }
  .topbar__nav .topbar__nav-extra .btn--brand, .topbar__nav .topbar__nav-extra .btn--brand:hover { background: var(--brand); color: var(--brand-ink); }
  .topbar__nav .topbar__nav-extra .btn--ghost, .topbar__nav .topbar__nav-extra .btn--ghost:hover { background: var(--surface); color: var(--ink); }
  .nav-open { overflow: hidden; }
  .topbar__nav a { padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-open .topbar__nav { transform: none; opacity: 1; visibility: visible; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tint { background: var(--surface-2); }
.section--ink { background: var(--deep); color: var(--on-deep); }
.section--ink .lede { color: var(--on-deep-2); }
.sec-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.sec-head .lede { margin-top: 18px; }
.sec-head--split { max-width: none; display: grid; gap: 18px; align-items: end; }
@media (min-width: 860px) { .sec-head--split { grid-template-columns: 1.2fr 1fr; } .sec-head--split .lede { margin: 0; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); position: relative; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
}
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1020px) { .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.hero__title { margin: 22px 0 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 32px; color: var(--ink-3); font-size: .92rem; }
.hero__facts b { color: var(--ink); font-weight: 700; }
.hero__facts li { display: flex; gap: 6px; align-items: baseline; }

/* Workspace mock */
.ws { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.ws__chrome { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ws__dots { display: flex; gap: 6px; }
.ws__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.ws__url { flex: 1; font: 500 .75rem var(--f-mono); color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 5px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws__play { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .6rem; letter-spacing: -1px; color: var(--ink-2); }
.ws__body { display: grid; grid-template-columns: 138px 1fr; min-height: 340px; }
.ws__rail { border-right: 1px solid var(--line); padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.ws__rail button { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: var(--r-sm); border: 0; background: none; cursor: pointer; font-size: .86rem; font-weight: 500; color: var(--ink-2); text-align: left; position: relative; overflow: hidden; }
.ws__rail button span { width: 18px; text-align: center; color: var(--ink-3); }
.ws__rail button:hover { background: var(--surface-2); }
.ws__rail button[aria-selected="true"] { background: var(--brand-soft); color: var(--ink); font-weight: 700; }
.ws__rail button[aria-selected="true"] span { color: var(--brand); }
.ws__rail button[aria-selected="true"]::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--brand); transform-origin: left; animation: tick var(--tour, 3.6s) linear both; }
.ws:not(.is-auto) .ws__rail button::after { display: none; }
@keyframes tick { from { transform: scaleX(0); } }
.ws__stage { padding: 20px; position: relative; }
.ws__panel { animation: panel .45s var(--ease) both; }
@keyframes panel { from { opacity: 0; transform: translateY(10px); } }
.ws__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.ws__eyebrow { font: 500 .7rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 4px; }
.ws__head h3 { font: 700 1.25rem/1.2 var(--f-body); letter-spacing: -.01em; }
.ws__caption { font-size: .75rem; color: var(--ink-3); padding: 8px 14px; border-top: 1px solid var(--line); }
@media (max-width: 560px) {
  .ws__body { grid-template-columns: 1fr; }
  .ws__rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .ws__rail button { flex: none; }
}

.pill { display: inline-flex; align-items: center; font: 600 .72rem/1 var(--f-body); padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-style: normal; white-space: nowrap; }
.pill--brand { background: var(--brand-soft); color: var(--brand); }
.pill--sun { background: color-mix(in srgb, var(--sun) 25%, transparent); color: color-mix(in srgb, var(--sun) 40%, var(--ink)); }
.pill--ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pill--hot { background: color-mix(in srgb, var(--coral) 16%, transparent); color: var(--coral); }

.timeline { position: relative; padding-left: 22px; display: grid; gap: 14px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.timeline li::before { content: ''; position: absolute; left: -22px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.timeline li.is-now::before { background: var(--sun); border-color: var(--sun); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 30%, transparent); }
.timeline span { color: var(--ink-3); font-size: .82rem; }

.mini-kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini-kanban div { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 180px; }
.mini-kanban p { font: 600 .7rem var(--f-body); color: var(--ink-3); margin-bottom: 2px; }
.mini-kanban i { height: 30px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); animation: panel .4s var(--ease) both; }
.mini-kanban i:nth-of-type(2) { animation-delay: .06s; } .mini-kanban i:nth-of-type(3) { animation-delay: .12s; } .mini-kanban i:nth-of-type(4) { animation-delay: .18s; }
.mini-kanban .i--hot { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }

.meter { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.meter span { display: block; height: 100%; width: 64%; background: linear-gradient(90deg, var(--brand), var(--sun)); border-radius: inherit; animation: fill 1s var(--ease) both; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } }
.tasks { display: grid; gap: 8px; }
.tasks li { display: flex; align-items: center; gap: 10px; font-size: .9rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.tasks li::before { content: ''; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-2); flex: none; }
.tasks li.is-done { color: var(--ink-3); text-decoration: line-through; }
.tasks li.is-done::before { background: var(--brand); border-color: var(--brand); }
.tasks em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--ink-3); text-decoration: none; }

.people, .inv { display: grid; gap: 8px; }
.people li, .inv li { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .9rem; }
.people em, .inv em { margin-left: auto; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font: 700 .7rem var(--f-body); }

.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 170px; align-items: end; }
.bars span { position: relative; height: 100%; }
.bars span::before, .bars span::after { content: ''; position: absolute; bottom: 0; width: 45%; border-radius: 4px 4px 0 0; animation: fill-y .8s var(--ease) both; transform-origin: bottom; }
.bars span::before { left: 0; height: var(--i); background: var(--brand); }
.bars span::after { right: 0; height: var(--x); background: var(--sun); }
.bars span:nth-child(1) { --i: 52%; --x: 30%; } .bars span:nth-child(2) { --i: 61%; --x: 28%; } .bars span:nth-child(3) { --i: 48%; --x: 35%; }
.bars span:nth-child(4) { --i: 70%; --x: 31%; } .bars span:nth-child(5) { --i: 66%; --x: 40%; } .bars span:nth-child(6) { --i: 82%; --x: 33%; }
@keyframes fill-y { from { transform: scaleY(0); } }
.legend { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .78rem; color: var(--ink-3); }
.legend i { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.legend i:first-child { margin-left: 0; }
.k-in { background: var(--brand); } .k-out { background: var(--sun); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis div { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 12px; }
.kpis b { display: block; font: 800 1.9rem/1 var(--f-display); letter-spacing: -.03em; margin-bottom: 6px; }
.kpis span { font-size: .78rem; color: var(--ink-3); }
@media (max-width: 420px) { .kpis { grid-template-columns: 1fr; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 700 1.15rem var(--f-display); color: var(--ink-3); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: '✦'; color: var(--sun); font-size: .9rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Scattered vs connected ---------- */
.connect-sec__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .connect-sec__grid { grid-template-columns: 1fr 1fr; } }
.switch { display: inline-flex; align-items: center; gap: 12px; margin: 30px 0 22px; font-weight: 600; }
.switch__btn { width: 60px; height: 34px; border-radius: 99px; border: 0; background: var(--line-2); position: relative; cursor: pointer; transition: background .25s; }
.switch__btn span { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.switch__btn[aria-checked="true"] { background: var(--brand); }
.switch__btn[aria-checked="true"] span { transform: translateX(26px); }
.pains { display: grid; gap: 10px; }
.pains li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); animation: panel .4s var(--ease) both; }
.pains li::before { content: '✕'; color: var(--coral); font-weight: 700; }
.pains--good li::before { content: '✓'; color: var(--ok); }
.pains li:nth-child(2) { animation-delay: .06s; } .pains li:nth-child(3) { animation-delay: .12s; }

.connect { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin: 0 auto; }
.connect__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.connect__lines line { stroke: var(--brand); stroke-width: 2; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .5s .35s; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }
.connect[data-state="connected"] .connect__lines line { opacity: .6; }
.connect__hub { position: absolute; left: 50%; top: 50%; width: 17%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0); border-radius: 24%; background: var(--brand); display: grid; place-items: center; box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 15%, transparent); transition: transform .5s var(--ease) .15s; z-index: 1; }
.connect__hub svg { width: 52%; height: 52%; fill: #fff; }
.connect[data-state="connected"] .connect__hub { transform: translate(-50%, -50%) scale(1); }
.tool {
  position: absolute; z-index: 2; width: 34%; left: var(--x); top: var(--y);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; box-shadow: var(--shadow);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  transition: left .7s var(--ease), top .7s var(--ease), transform .7s var(--ease), border-color .4s;
}
.tool b { display: block; font: 500 .74rem var(--f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool span { font-size: .78rem; color: var(--ink-3); }
.connect[data-state="connected"] .tool { left: var(--cx); top: var(--cy); --r: 0deg; border-color: var(--brand); }
/* Scattered (x, y, tilt) and connected (cx, cy) centres, as % of the square.
   The connected centres match the line end points in the SVG. */
.t1 { --x: 32%; --y: 16%; --r: -8deg; --cx: 50%; --cy: 13%; }
.t2 { --x: 76%; --y: 30%; --r: 7deg;  --cx: 80%; --cy: 40%; }
.t3 { --x: 66%; --y: 80%; --r: -5deg; --cx: 71%; --cy: 86%; }
.t4 { --x: 24%; --y: 66%; --r: 10deg; --cx: 29%; --cy: 86%; }
.t5 { --x: 54%; --y: 50%; --r: 3deg;  --cx: 20%; --cy: 40%; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .bento { grid-template-columns: repeat(4, 1fr); } .tile--wide { grid-column: span 2; } }
.tile--full { grid-column: 1 / -1; }
.tile.tile--full .spark { height: 120px; margin-top: 12px; }
@media (min-width: 860px) {
  .tile.tile--full { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 56px; row-gap: 12px; min-height: 0; }
  .tile--full > :not(.spark) { grid-column: 1; }
  .tile.tile--full .spark { grid-column: 2; grid-row: 1 / -1; height: 100%; min-height: 150px; margin: 0; }
}
.tile {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 12px; min-height: 230px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
}
.tile:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 10%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; }
.tile:hover::after { opacity: 1; }
.tile__no { font: 500 .75rem var(--f-mono); color: var(--brand); }
.tile h3 { font-size: 1.35rem; }
.tile p:not(.tile__no) { color: var(--ink-2); font-size: .96rem; }
.tile__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tile__chips span { font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); }
.tile--brand { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tile--brand p:not(.tile__no), .tile--brand .tile__no { color: color-mix(in srgb, var(--brand-ink) 82%, transparent); }
.tile--dark { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.tile--dark p:not(.tile__no) { color: var(--on-deep-2); }
.tile--dark .tile__no { color: var(--sun); }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: auto; }
.spark i { flex: 1; background: linear-gradient(var(--sun), color-mix(in srgb, var(--sun) 30%, transparent)); border-radius: 3px 3px 0 0; height: var(--h); transform-origin: bottom; transition: transform .6s var(--ease); }
.spark i:nth-child(1) { --h: 30%; } .spark i:nth-child(2) { --h: 45%; } .spark i:nth-child(3) { --h: 38%; } .spark i:nth-child(4) { --h: 60%; }
.spark i:nth-child(5) { --h: 52%; } .spark i:nth-child(6) { --h: 74%; } .spark i:nth-child(7) { --h: 68%; } .spark i:nth-child(8) { --h: 88%; }
.tile--dark:hover .spark i { transform: scaleY(1.08); }

/* ---------- Pipeline board ---------- */
.board { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(210px, 1fr)); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.board__col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; scroll-snap-align: start; display: flex; flex-direction: column; }
.board__col header { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 12px; }
.board__col h3 { font-size: .95rem; }
.board__col header span { font: 500 .75rem var(--f-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; }
.board__col--won { background: color-mix(in srgb, var(--ok) 9%, var(--surface-2)); }
.board__drop { flex: 1; display: grid; align-content: start; gap: 8px; min-height: 220px; border-radius: var(--r); transition: background .2s, outline-color .2s; outline: 2px dashed transparent; outline-offset: -2px; }
.board__drop.is-over { background: color-mix(in srgb, var(--brand) 8%, transparent); outline-color: var(--brand); }
.lead {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 12px 14px;
  cursor: grab; user-select: none; touch-action: none; box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative;
}
.lead::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c, var(--brand)); }
.lead:hover { border-color: var(--line-2); }
.lead:focus-visible { outline-offset: 2px; }
.lead b { display: block; font-size: .92rem; }
.lead span { font-size: .8rem; color: var(--ink-3); }
.lead em { font-style: normal; font: 500 .8rem var(--f-mono); float: right; color: var(--ink-2); }
.lead.is-dragging { cursor: grabbing; box-shadow: var(--shadow-lg); z-index: 20; position: fixed; pointer-events: none; transform: rotate(2deg); margin: 0; }
.lead.is-won { --c: var(--ok); }
.lead.is-won span::after { content: ' · customer ✓'; color: var(--ok); font-weight: 600; }
.lead-ghost { border: 2px dashed var(--line-2); border-radius: var(--r); background: transparent; }
.board__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; flex-wrap: wrap; }
.board__foot b { font: 800 1.3rem var(--f-body); margin-left: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--deep); color: var(--on-deep); padding: 14px 18px; border-radius: var(--r); box-shadow: var(--shadow-lg); z-index: 70; font-weight: 500; max-width: calc(100vw - 32px); animation: toast .35s var(--ease) both; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Journey ---------- */
.journey { display: grid; gap: 32px; }
@media (min-width: 960px) { .journey { grid-template-columns: 340px 1fr; gap: 48px; } }
.journey__steps { display: grid; gap: 4px; counter-reset: s; }
.journey__steps button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r); border: 1px solid transparent; background: none; color: var(--on-deep-2); cursor: pointer; font-weight: 600; text-align: left; transition: background .2s, color .2s, border-color .2s; }
.journey__steps i { font: 500 .75rem var(--f-mono); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--deep-line); font-style: normal; flex: none; transition: all .2s; }
.journey__steps button:hover { color: var(--on-deep); }
.journey__steps button[aria-selected="true"] { background: var(--deep-2); color: var(--on-deep); border-color: var(--deep-line); }
.journey__steps button[aria-selected="true"] i, .journey__steps button.is-past i { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.journey__view { background: var(--deep-2); border: 1px solid var(--deep-line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; min-height: 380px; }
.record { flex: 1; }
.record__type { font: 500 .75rem var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--sun); margin-bottom: 12px; }
.record__title { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 14px; }
.record__text { color: var(--on-deep-2); max-width: 56ch; font-size: 1.05rem; }
.record__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.record__links span { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--deep-line); animation: panel .35s var(--ease) both; }
.record__links span::before { content: '⛓'; font-size: .75rem; opacity: .7; }
.record__links span.is-new { border-color: var(--sun); color: var(--sun); }
.record.is-swapping > * { animation: panel .4s var(--ease) both; }
.journey__nav { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.journey__bar { flex: 1; height: 4px; background: var(--deep-line); border-radius: 99px; overflow: hidden; }
.journey__bar span { display: block; height: 100%; background: var(--sun); width: 0; transition: width .5s var(--ease); }

/* ---------- Audience ---------- */
.aud { display: grid; gap: 28px; }
@media (min-width: 900px) { .aud { grid-template-columns: 280px 1fr; } }
.aud__tabs { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
@media (min-width: 900px) { .aud__tabs { flex-direction: column; } }
.aud__tabs button { padding: 14px 18px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; text-align: left; transition: all .2s; }
.aud__tabs button:hover { border-color: var(--ink); }
.aud__tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.aud__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.aud__panel > div { display: grid; gap: 22px; animation: panel .4s var(--ease) both; }
.aud__lead { font: 600 clamp(1.2rem, 2vw, 1.55rem)/1.35 var(--f-display); letter-spacing: -.01em; }

.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%; transform: translateY(3px); background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.2 2.2 4.8-5' fill='none' stroke='%235B3DF5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.ticks--light li::before { background-color: color-mix(in srgb, var(--sun) 25%, transparent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.2 2.2 4.8-5' fill='none' stroke='%23FFB020' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ticks--cross li::before { background: color-mix(in srgb, var(--coral) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m5 5 6 6m0-6-6 6' fill='none' stroke='%23F2552C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.ticks--cross { font-size: 1.05rem; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); position: relative; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: relative; overflow: hidden; }
.steps li::after { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.steps li.is-in::after { transform: scaleX(1); }
.steps span { font: 500 .8rem var(--f-mono); color: var(--brand); }
.steps h3 { font-size: 1.1rem; margin: 18px 0 6px; }
.steps p { color: var(--ink-2); font-size: .92rem; }

/* ---------- Finder ---------- */
.finder { display: grid; gap: 28px; }
@media (min-width: 960px) { .finder { grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; } }
.finder fieldset { border: 0; padding: 0; margin: 28px 0 0; }
.finder legend { font-weight: 700; margin-bottom: 12px; font-size: 1.05rem; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 600; transition: all .2s; }
.seg input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.seg input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 3px; }
.seg label:hover span { border-color: var(--ink); }
.finder__result { background: var(--deep); color: var(--on-deep); border-radius: var(--r-lg); padding: 32px; position: sticky; top: 96px; }
.finder__label { font: 500 .75rem var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--on-deep-2); }
.finder__name { font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--f-display); letter-spacing: -.03em; margin: 12px 0 8px; }
.finder__name.is-pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.06); color: var(--sun); } }
.finder__price { color: var(--on-deep-2); margin-bottom: 22px; }
.finder__price b { font: 800 1.6rem var(--f-body); color: var(--on-deep); }
.finder__result .ticks { margin-bottom: 26px; font-size: .95rem; color: var(--on-deep-2); }
.finder__small { font-size: .8rem; color: var(--on-deep-2); margin-top: 14px; text-align: center; }

/* ---------- Flip cards ---------- */
.flips { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 900px) { .flips { grid-template-columns: repeat(3, 1fr); } }
.flip { position: relative; min-height: 170px; border: 0; padding: 0; background: none; cursor: pointer; perspective: 1000px; text-align: left; }
.flip > span { position: absolute; inset: 0; border-radius: var(--r-lg); padding: 24px; display: flex; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .6s var(--ease); }
.flip__f { background: var(--surface); border: 1px solid var(--line); font: 700 1.35rem/1.2 var(--f-display); align-items: flex-end; }
.flip__f::before { content: '✕'; position: absolute; top: 20px; left: 24px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral); font-size: .9rem; }
.flip__b { background: var(--ink); color: var(--bg); transform: rotateY(180deg); align-items: center; font-size: 1rem; line-height: 1.5; }
.flip[aria-pressed="true"] .flip__f { transform: rotateY(-180deg); }
.flip[aria-pressed="true"] .flip__b { transform: rotateY(0); }
@media (hover: hover) {
  .flip:hover .flip__f { transform: rotateY(-180deg); }
  .flip:hover .flip__b { transform: rotateY(0); }
}
.flips__hint { margin-top: 16px; font-size: .85rem; color: var(--ink-3); }

/* ---------- Q&A ---------- */
.faq-teaser { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-teaser { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font: 700 1.08rem/1.35 var(--f-display); position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; position: absolute; right: 4px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%236B6680' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--brand); }
.qa > div { padding: 0 0 22px; color: var(--ink-2); display: grid; gap: 10px; max-width: 70ch; }
.qa[open] > div { animation: panel .35s var(--ease); }
mark { background: color-mix(in srgb, var(--sun) 45%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }

/* ---------- Page heroes ---------- */
.page-hero { padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { margin-bottom: 20px; max-width: 20ch; text-wrap: balance; }
.page-hero .lede { margin-bottom: 8px; }
.page-hero--pricing, .page-hero--about { background: linear-gradient(180deg, var(--brand-soft), var(--bg)); }
.page-hero--legal h1, .page-hero--help h1 { max-width: none; }
.page-hero .chips { margin-top: 28px; }
.meta { font: 500 .8rem var(--f-mono); color: var(--ink-3); margin-top: 10px; }
.lost { border: 0; min-height: 60vh; display: grid; align-content: center; }

/* ---------- Pricing ---------- */
.plans-wrap { padding: 48px 16px 24px; }
@media (min-width: 720px) { .plans-wrap { padding: 56px 32px 24px; } }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; padding-top: 14px; }
.plan { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; position: relative; display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.plan:hover, .plan.is-target { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.plan.is-target { border-color: var(--brand); }
.plan--feature { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.plan__tag { position: absolute; top: -13px; left: 24px; background: var(--sun); color: var(--sun-ink); font: 700 .75rem var(--f-body); padding: 6px 12px; border-radius: 99px; }
.plan__name { font-size: 1.5rem; }
.plan__for { color: var(--ink-2); font-size: .94rem; line-height: 1.5; min-height: 4.5em; }
.plan__price { display: flex; align-items: baseline; gap: 2px; margin: 4px 0 6px; }
.plan__cur { font: 700 1.6rem var(--f-body); align-self: flex-start; margin-top: .35em; }
.plan__num { font: 800 3.4rem/1 var(--f-display); letter-spacing: -.04em; }
.plan__per { color: var(--ink-3); margin-left: 6px; }
.plan__equiv { color: var(--ink-3); font-size: .88rem; margin-top: -10px; }
.finder__price span { font-size: .9rem; }
.plan__lead { font: 500 .75rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-top: 8px; }
.plan .ticks { font-size: .93rem; }
.plan__lead { min-height: 2.6em; }
.plans__more { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; margin-top: 28px; }
.plans__more span { color: var(--ink-3); font-size: .9rem; }
.guarantee { display: flex; gap: 20px; align-items: flex-start; margin-top: 28px; padding: 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface); }
.guarantee svg { width: 44px; height: 44px; flex: none; fill: var(--brand-soft); stroke: var(--brand); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.guarantee h2 { font: 700 1.2rem var(--f-display); margin-bottom: 6px; }
.guarantee p { color: var(--ink-2); }

.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.matrix { width: 100%; border-collapse: collapse; min-width: 680px; }
.matrix th, .matrix td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: center; transition: background .2s; }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.matrix tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.matrix thead th { font: 700 1.05rem var(--f-display); cursor: pointer; vertical-align: bottom; }
.matrix thead th small { display: block; font: 500 .75rem var(--f-mono); color: var(--ink-3); margin-top: 4px; }
.matrix .yes { color: var(--brand); font-size: 1.1rem; }
.matrix .no { color: var(--line-2); }
.matrix .is-col { background: var(--brand-soft); }
.matrix tbody tr:hover > * { background: var(--surface-2); }
.matrix tbody tr:hover > .is-col { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); }

.billing { display: grid; gap: 32px; }
@media (min-width: 900px) { .billing { grid-template-columns: 1fr 2fr; } }
.billing__list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.billing__list div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.billing__list dt { font: 700 1.05rem var(--f-display); margin-bottom: 8px; }
.billing__list dd { color: var(--ink-2); font-size: .95rem; }
.pricing-help { text-align: center; display: grid; justify-items: center; gap: 14px; }

/* ---------- About ---------- */
.principles { display: grid; gap: 24px; }
@media (min-width: 900px) { .principles { grid-template-columns: 320px 1fr; gap: 48px; } }
.principles__list { display: grid; gap: 6px; align-content: start; }
.principles__list button { display: flex; gap: 16px; align-items: baseline; padding: 16px 18px; border-radius: var(--r); border: 1.5px solid transparent; background: none; cursor: pointer; font: 700 1.3rem var(--f-display); color: var(--ink-3); text-align: left; transition: all .2s; }
.principles__list button span { font: 500 .75rem var(--f-mono); color: var(--brand); }
.principles__list button:hover { color: var(--ink); }
.principles__list button[aria-selected="true"] { color: var(--ink); background: var(--surface); border-color: var(--line); }
.principles__card { background: var(--deep); color: var(--on-deep); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); min-height: 300px; display: flex; align-items: flex-end; position: relative; overflow: hidden; }
.principles__card::before { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 70%, transparent), transparent 70%); }
.principles__card > div { position: relative; animation: panel .45s var(--ease) both; }
.principles__card h2 { font: 800 clamp(2rem, 4vw, 3rem)/1 var(--f-display); letter-spacing: -.03em; margin-bottom: 16px; color: var(--sun); }
.principles__card p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 48ch; color: var(--on-deep); }
.about-doc { padding-bottom: 0; }
.about-doc .lede { margin-top: 16px; }
.about-doc__chips { margin-top: 20px; }
.about-doc .legal { padding-top: 48px; }
.twocol { display: grid; gap: 28px; }
@media (min-width: 900px) { .twocol { grid-template-columns: 1fr 1.4fr; gap: 64px; } }
.prose { display: grid; gap: 16px; color: var(--ink-2); font-size: 1.04rem; }

/* ---------- Contact ---------- */
.page-hero--contact { background: linear-gradient(160deg, var(--brand-soft), var(--bg) 60%); }
.contact { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } }
.contact__facts { display: grid; gap: 14px; margin: 32px 0; }
.contact__facts li { display: grid; gap: 2px; }
.contact__facts span { font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.contact__facts a { font-weight: 600; }
.contact__facts .contact__emails { font: inherit; text-transform: none; letter-spacing: 0; color: inherit; line-height: 1.7; }
.contact__note { font-size: .9rem; color: var(--ink-3); border-left: 3px solid var(--sun); padding-left: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.form { padding: clamp(22px, 4vw, 36px); display: grid; gap: 20px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-weight: 700; margin-bottom: 12px; }
.seg--wrap { display: flex; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field small { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field__meta { font: 500 .75rem var(--f-mono); color: var(--ink-3); text-align: right; }
.field__err { display: none; color: var(--coral); font-size: .85rem; font-weight: 600; }
.field.is-bad input, .field.is-bad textarea { border-color: var(--coral); }
.field.is-bad .field__err, .field__err--consent.is-shown { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-bad { color: var(--coral); }
.form.is-sent { text-align: center; place-items: center; padding: 56px 32px; }
.sent-mark { width: 72px; height: 72px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 15%, transparent); display: grid; place-items: center; color: var(--ok); font-size: 2rem; animation: pop .5s var(--ease); }

/* ---------- Checkout + welcome ---------- */

.btn.is-loading { opacity: .75; cursor: progress; }
.notice { margin-bottom: 20px; padding: 14px 18px; border-radius: var(--r); background: color-mix(in srgb, var(--sun) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sun) 45%, var(--line)); font-weight: 600; }
.welcome { border: 0; min-height: 70vh; display: grid; align-content: center; }
.welcome__grid { display: grid; justify-items: center; }
.welcome__card { width: 100%; max-width: 620px; padding: clamp(28px, 5vw, 48px); display: grid; gap: 16px; justify-items: start; }
.welcome__card .h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.welcome__card .kicker { margin-bottom: 0; }
.welcome__form { padding: 24px 0 0; width: 100%; border-top: 1px solid var(--line); margin-top: 8px; }
.welcome__step { font: 700 1.2rem var(--f-display); }
.field input[readonly] { background: var(--surface-2); color: var(--ink-2); }
.sent-mark--wait { background: color-mix(in srgb, var(--sun) 20%, transparent); }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.checkout { min-height: 0; align-content: start; }
.checkout__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.checkout__summary { padding: clamp(24px, 4vw, 36px); display: grid; gap: 14px; position: sticky; top: 96px; }
.checkout__summary .kicker { margin-bottom: 0; }
.checkout__summary .plan__price { margin: 0; }
.checkout__note { font-size: .92rem; color: var(--ink-2); }
.checkout__pay { padding: clamp(12px, 2vw, 20px); min-height: 420px; display: grid; }
.checkout__pay .spinner { place-self: center; }
@media (max-width: 860px) {
  .checkout__grid { grid-template-columns: minmax(0, 1fr); }
  .checkout__summary { position: static; }
}

/* ---------- Sign in + dashboard ---------- */
.topbar__signin { font-weight: 600; text-decoration: none; color: var(--ink-2); padding: 8px 6px; }
.topbar__signin:hover { color: var(--ink); }
.auth__links { display: grid; gap: 6px; font-size: .92rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 18px; width: 100%; }
.app-body { background: var(--surface-2); }
.topbar--app { background: var(--surface); }
.dash__bar { padding: 0 20px; height: 64px; }
.dash__who { font-weight: 600; color: var(--ink-2); margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.dash__side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 12px; }
.dash__nav { display: grid; gap: 2px; position: sticky; top: 84px; }
.dash__nav a, .dash__soon { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; font-size: .94rem; color: var(--ink-2); }
.dash__nav a[aria-current] { background: var(--brand-soft); color: var(--ink); }
.dash__nav a[aria-current] span { color: var(--brand); }
.dash__soon { color: var(--ink-3); opacity: .75; cursor: default; }
.dash__soon em { margin-left: auto; font: 500 .66rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; font-style: normal; background: var(--surface-2); padding: 3px 6px; border-radius: 4px; }
.dash__main { padding: clamp(20px, 3vw, 40px); display: grid; align-content: start; gap: 24px; min-width: 0; }
.dash__main > [data-d-state="ready"] { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.dash__main > [data-d-state="ready"] > * { min-width: 0; }
@media (max-width: 600px) { .dash__search { min-width: 0; flex: 1 1 100%; } .dash__actions { width: 100%; } }
.dash__main > [data-d-state="ready"][hidden] { display: none; }
.dash__loading { display: grid; justify-items: center; gap: 14px; padding: 80px 0; color: var(--ink-3); }
.dash__inactive { padding: clamp(24px, 4vw, 44px); display: grid; gap: 14px; max-width: 680px; }
.dash__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dash__head .kicker { margin-bottom: 8px; }
.plan-chip { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px 8px 8px; font-size: .92rem; }
.plan-chip span:last-child { color: var(--ink-3); }
.dash__stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: grid; gap: 6px; }
.stat span { font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.stat b { font: 800 1.9rem/1 var(--f-body); letter-spacing: -.02em; }
.stat--brand { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.stat--brand span { color: color-mix(in srgb, var(--brand-ink) 80%, transparent); }
.dash__panels { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.dash__panel { padding: 20px; box-shadow: none; }
.dash__panel h2, .dash__account h2 { font: 700 1.05rem var(--f-display); margin-bottom: 12px; }
.dash__list { display: grid; }
.dash__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.dash__list li:first-child { border-top: 0; }
.dash__list small { display: block; color: var(--ink-3); font-size: .8rem; }
.dash__list em { font-style: normal; font-size: .8rem; color: var(--ink-3); white-space: nowrap; text-transform: capitalize; }
.dash__empty { color: var(--ink-3); font-size: .9rem; padding: 8px 0; }
.dash__account { padding: 20px; box-shadow: none; display: grid; gap: 12px; }
.dash__account dl { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.dash__account dt { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.dash__account dd { font-weight: 600; }
.dash__account p { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 820px) {
  .dash { grid-template-columns: 1fr; }
  .dash__side { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; overflow-x: auto; }
  .dash__nav { grid-auto-flow: column; position: static; }
  .dash__soon em { display: none; }
  .dash__who { display: none; }
}
@media (max-width: 420px) { .topbar__signin { display: none; } }

/* ---------- Workspace components ---------- */
.btn--xs { min-height: 32px; padding: 0 12px; font-size: .84rem; border-radius: var(--r-sm); }
.btn--quiet { border-color: transparent; background: transparent; color: var(--ink-3); }
.btn--quiet:hover { color: var(--coral); --b: transparent; }
.dash__nav a.is-locked { color: var(--ink-3); }
.dash__nav a.is-locked em { margin-left: auto; font: 500 .62rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; font-style: normal; background: var(--surface-2); padding: 3px 6px; border-radius: 4px; }
.dash__sub { color: var(--ink-3); margin-top: 6px; max-width: 60ch; }
.dash__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dash__search { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); min-width: 220px; }
.dash__search:focus { outline: none; border-color: var(--brand); }
.dash__panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.dash__panel-head h2 { margin: 0; }
.dash__panel .chips { margin-bottom: 14px; }
.dash__panels--2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.dash__note { font-size: .82rem; color: var(--ink-3); margin-top: 12px; }
a.stat { text-decoration: none; transition: border-color .2s, transform .2s; }
a.stat:hover { border-color: var(--brand); transform: translateY(-2px); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font: 600 .75rem var(--f-body); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tbl .num { text-align: right; }
.tbl select { min-height: 32px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); padding: 0 8px; }
.cell-main { display: grid; gap: 2px; text-align: left; }
.cell-main small { color: var(--ink-3); font-size: .8rem; }
.row-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.is-late { color: var(--coral); font-weight: 600; }
.is-done { text-decoration: line-through; color: var(--ink-3); }
.toast--bad { background: var(--coral); color: #fff; }
.modal-open { overflow: hidden; }
.modal-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(15, 12, 28, .55); display: grid; place-items: center; padding: 16px; animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }
.modal__box { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: panel .3s var(--ease) both; }
.modal__box--wide { max-width: 860px; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal__head h2 { font: 700 1.2rem var(--f-display); }
.mform { padding: 20px 22px; display: grid; gap: 18px; }
.mform__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field--full { grid-column: 1 / -1; }
.mform__foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.mform__foot .form__status { margin-right: auto; }
.items__label { font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.items__rows { display: grid; gap: 8px; }
.items__row { display: grid; grid-template-columns: 1fr 80px 110px 90px 36px; gap: 8px; align-items: center; }
.items__row input { min-height: 42px; padding: 0 10px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); width: 100%; }
.items__row .icon-btn { width: 36px; height: 36px; }
.items__sum { text-align: right; font-weight: 600; font-size: .9rem; }
.items__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.items__foot p { font-weight: 700; }
@media (max-width: 600px) { .items__row { grid-template-columns: 1fr 64px 90px 36px; } .items__sum { display: none; } }
.sheet__body { padding: 20px 22px; display: grid; gap: 26px; }
.sheet__body h2 { font: 700 1.05rem var(--f-display); }
.sheet__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sheet__row label { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .9rem; }
.sheet__row select, .sheet__row input { min-height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); padding: 0 8px; }
.sheet__muted { color: var(--ink-3); font-size: .9rem; }
.inv-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--ink-3); font-size: .9rem; }
.inv-total { text-align: right; font-size: 1.05rem; }
.inv-total b { font-size: 1.3rem; margin-left: 8px; }
.kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.kanban .kcard__foot .btn--xs { padding: 0 8px; }
.kanban .kcard__foot select { flex: 1 1 100%; }
.kanban__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; transition: border-color .2s, background .2s; }
.kanban__col.is-over { border-color: var(--brand); background: var(--brand-soft); }
.kanban__col header { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; }
.kanban__col h2 { font: 700 .95rem var(--f-display); }
.kanban__col header span { font: 500 .75rem var(--f-mono); background: var(--surface-2); border-radius: 99px; padding: 2px 8px; }
.kanban__drop { display: grid; gap: 8px; align-content: start; min-height: 120px; flex: 1; }
.kcard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 6px; cursor: grab; }
.kcard.is-drag { opacity: .5; }
.kcard small { color: var(--ink-3); font-size: .8rem; }
.kcard .pill { justify-self: start; }
.kcard__foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.kcard__foot select { min-height: 32px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); padding: 0 6px; font-size: .84rem; }
.proj-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.proj { text-align: left; padding: 20px; display: grid; gap: 8px; cursor: pointer; border: 1px solid var(--line); box-shadow: none; transition: border-color .2s, transform .2s; font: inherit; color: inherit; }
.proj:hover { border-color: var(--brand); transform: translateY(-2px); }
.proj__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-3); }
.proj h2 { font: 700 1.15rem var(--f-display); }
.proj p { color: var(--ink-3); font-size: .9rem; }
.proj .meter { margin: 4px 0 0; }
.proj .meter span { animation: none; }
.proj small { color: var(--ink-3); font-size: .8rem; }
.checklist { display: grid; gap: 4px; margin-bottom: 10px; }
.checklist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.checklist label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.checklist input { width: 18px; height: 18px; accent-color: var(--brand); }
.inline-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.inline-add input:not([type=file]) { flex: 1; min-width: 200px; min-height: 38px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); }
.reports { display: grid; gap: 20px; }
.vbars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; height: 220px; align-items: end; padding-top: 10px; }
.vbars__col { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; text-align: center; font-size: .78rem; color: var(--ink-3); }
.vbars__pair { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 100%; }
.vbars__pair i { width: min(22px, 40%); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .6s var(--ease); }
.vbars__in { background: var(--brand); }
.vbars__out { background: var(--sun); }
.hbars { display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.hbars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hbars__track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.hbars__track span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--sun))); border-radius: inherit; }

/* ---------- Search palette + account ---------- */
.dash__searchbtn { display: flex; align-items: center; gap: 10px; margin: 0 auto 0 24px; min-width: 280px; max-width: 420px; flex: 1; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink-3); cursor: pointer; font-size: .92rem; text-align: left; }
.dash__searchbtn:hover { border-color: var(--brand); color: var(--ink-2); }
.dash__searchbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.dash__searchbtn span { flex: 1; }
.dash__searchbtn kbd, .palette kbd { font: 500 .72rem var(--f-mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--ink-3); }
@media (max-width: 820px) { .dash__searchbtn { min-width: 0; margin-left: 12px; } .dash__searchbtn span, .dash__searchbtn kbd { display: none; } .dash__searchbtn { flex: 0 0 42px; justify-content: center; padding: 0; } }
.modal-wrap--top { align-items: start; padding-top: 12vh; }
.palette { width: 100%; max-width: 640px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: panel .25s var(--ease) both; }
.palette__bar { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 1.3rem; color: var(--ink-3); }
.palette__input { flex: 1; border: 0; background: none; min-height: 60px; font-size: 1.08rem; outline: none; color: var(--ink); min-width: 0; }
.palette__list { max-height: 52vh; overflow: auto; padding: 8px; }
.palette__group { font: 500 .7rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 10px 10px 6px; }
.palette__item { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-sm); cursor: pointer; }
.palette__item.is-active { background: var(--brand-soft); }
.palette__type { font: 600 .74rem var(--f-body); color: var(--brand); }
.palette__label { display: grid; font-weight: 600; min-width: 0; }
.palette__label small { font-weight: 400; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__go { color: var(--ink-3); opacity: 0; }
.palette__item.is-active .palette__go { opacity: 1; }
.palette__empty { padding: 18px 10px; color: var(--ink-3); }
.palette__foot { font-size: .76rem; color: var(--ink-3); padding: 10px 18px; border-top: 1px solid var(--line); }
.kcard.is-flash { animation: flash 1.6s ease 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 45%, transparent); } }
.kv { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 8px; }
.kv dt { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.kv dd { font-weight: 600; margin-top: 2px; }
.form__status.is-ok { color: var(--ok); }

/* ---------- Help centre ---------- */
.search { display: flex; align-items: center; gap: 12px; margin-top: 32px; max-width: 640px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-lg); padding: 0 16px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 15%, transparent); }
.search svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; border: 0; background: none; min-height: 58px; font-size: 1.05rem; outline: none; min-width: 0; }
.search kbd { font: 500 .75rem var(--f-mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 2px 7px; color: var(--ink-3); }
.help { padding-top: 40px; padding-bottom: 96px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: none; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip--static { cursor: default; }
.chip--static:hover { border-color: var(--line); }
.help__intro { color: var(--ink-3); max-width: 70ch; margin-top: 12px; font-size: .95rem; }
.sec-head__link { margin-top: 16px; }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.help__count { font: 500 .8rem var(--f-mono); color: var(--ink-3); margin: 24px 0 8px; }
.faq-group { margin-top: 32px; }
.faq-group h2 { font: 800 1.5rem var(--f-display); letter-spacing: -.02em; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.help__empty { text-align: center; padding: 56px 0; display: grid; justify-items: center; gap: 16px; color: var(--ink-2); }

/* ---------- Legal ---------- */
.legal { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 96px; }
@media (min-width: 1000px) { .legal { grid-template-columns: 280px 1fr; gap: 64px; } }
.legal__toc details { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; max-height: calc(100vh - 120px); overflow: auto; }
.legal__toc summary { font: 500 .75rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); cursor: pointer; padding: 4px; }
.legal__toc ol { margin-top: 10px; display: grid; gap: 2px; }
.legal__toc a { display: block; padding: 6px 10px; border-radius: var(--r-sm); text-decoration: none; font-size: .88rem; color: var(--ink-2); border-left: 2px solid transparent; }
.legal__toc a:hover { background: var(--surface-2); color: var(--ink); }
.legal__toc a.is-here { color: var(--brand); border-left-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.legal__body { max-width: 72ch; }
.legal__body > p:first-child { font-size: 1.1rem; color: var(--ink); }
.legal__sec { padding-top: 16px; display: grid; gap: 14px; }
.legal__sec h2, .legal__contact h2 { font: 700 1.35rem/1.25 var(--f-display); color: var(--ink); display: flex; gap: 12px; align-items: baseline; margin-top: 12px; }
.legal__sec h2 span { font: 500 .8rem var(--f-mono); color: var(--brand); min-width: 22px; }
.legal__contact { margin-top: 32px; padding: 24px; border-radius: var(--r-lg); background: var(--surface-2); display: grid; gap: 10px; }
.legal__contact a { color: var(--brand); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: var(--on-deep-2); padding: 72px 0 32px; margin-top: 0; }
.footer a { text-decoration: none; }
.footer a:hover, .footer .linkish:hover { color: var(--on-deep); text-decoration: underline; }
.footer__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 48px; border-bottom: 1px solid var(--deep-line); }
.footer__big { font: 800 clamp(2rem, 5vw, 3.6rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--on-deep); }
.footer__grid { display: grid; gap: 32px; padding: 48px 0; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.footer__brand { grid-column: 1 / -1; max-width: 380px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer__brand { grid-column: auto; } }
.logo--footer { color: var(--on-deep); margin-bottom: 16px; }
.footer__brand p { font-size: .92rem; }
.footer h2 { font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--on-deep); margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; font-size: .94rem; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--deep-line); font-size: .85rem; }
.footer__note { font-size: .78rem; margin-top: 16px; max-width: 90ch; opacity: .85; }

/* ---------- Cookie consent ---------- */
.consent { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 80; max-width: 440px; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px; animation: toast-up .4s var(--ease) both; }
@keyframes toast-up { from { opacity: 0; transform: translateY(16px); } }
.consent h2 { font: 700 1.1rem var(--f-display); margin-bottom: 6px; }
.consent p { font-size: .9rem; color: var(--ink-2); }
.consent__opts { display: grid; gap: 10px; margin: 16px 0 4px; }
.consent__opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); font-size: .9rem; }
.consent__opt small { display: block; color: var(--ink-3); font-size: .8rem; }
.consent__opt input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.consent__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.consent__btns .btn { flex: 1 1 auto; min-height: 42px; font-size: .9rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
