/* ==========================================================================
   Tandem OS — marketing site styles
   Brand system: Ink #0C1B23, Teal #12595F, Mist teal #7FB4B2 (dark marks),
   Amber #C8713C (used ONLY at the logo's point of overlap — never as a
   general accent), Off-white #EDEEEA. Newsreader display, Archivo body/UI,
   monospace for tabular data. Light and dark mode.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand — teal scale anchored on #12595F, mist #7FB4B2 */
  --teal-900: #06272b;
  --teal-800: #0d3d42;
  --teal-700: #12595f;   /* brand teal (primary) */
  --teal-600: #17707a;
  --teal-500: #2b8a92;
  --teal-400: #4ba3a6;
  --teal-300: #7fb4b2;   /* brand mist teal (dark-mode marks) */
  --teal-200: #b6d5d2;

  /* Amber — logo overlap ONLY */
  --amber-600: #b0642f;
  --amber-500: #c8713c;
  --amber-400: #d78f5f;

  /* Neutrals (ink-based, brand #0C1B23) */
  --ink-950: #06131a;
  --ink-900: #0c1b23;   /* brand ink */
  --ink-800: #142932;
  --slate-700: #2f4249;
  --slate-500: #566a70;
  --slate-400: #7a8a8e;
  --slate-300: #a7b6b6;
  --slate-200: #cdd6d2;
  --slate-100: #e2e6df;
  --slate-50:  #edeeea;  /* brand off-white */
  --white:     #ffffff;

  /* Semantic — light mode default */
  --bg: #f3f4ef;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #e9ebe3;
  --surface-sunken: #edeeea;
  --text: #0c1b23;
  --text-muted: #46555a;
  --text-subtle: #69787c;
  --border: #dcded4;
  --border-strong: #c6c9bd;
  --primary: var(--teal-700);
  --primary-hover: var(--teal-800);
  --primary-contrast: #ffffff;
  --accent: var(--teal-600);        /* eyebrows/ticks — kept in the teal family */
  --accent-soft: #dcebe9;
  --amber: var(--amber-500);        /* logo overlap only */
  --ring: rgba(18, 89, 95, 0.35);
  --shadow-sm: 0 1px 2px rgba(12, 27, 35, 0.06), 0 1px 3px rgba(12, 27, 35, 0.08);
  --shadow-md: 0 4px 12px rgba(12, 27, 35, 0.09), 0 2px 6px rgba(12, 27, 35, 0.06);
  --shadow-lg: 0 24px 48px -12px rgba(12, 27, 35, 0.22), 0 8px 20px -8px rgba(12, 27, 35, 0.14);
  --hero-glow: radial-gradient(60% 60% at 70% 20%, rgba(127,180,178,0.20), transparent 70%);

  /* Type */
  --font-display: "Newsreader", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --maxw: 1160px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(20px, 5vw, 48px);
}

:root[data-theme="dark"] {
  --bg: #0c1b23;              /* brand ink */
  --bg-elevated: #0f2129;
  --surface: #102229;
  --surface-2: #152a31;
  --surface-sunken: #091820;
  --text: #edeeea;           /* brand off-white */
  --text-muted: #a6b3b1;
  --text-subtle: #7b8a8a;
  --border: #1e3138;
  --border-strong: #2b424a;
  --primary: var(--teal-300);        /* mist teal marks on ink */
  --primary-hover: #9ac9c6;
  --primary-contrast: #08181e;
  --accent: var(--teal-300);
  --accent-soft: #123230;
  --amber: var(--amber-400);
  --ring: rgba(127, 180, 178, 0.45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 28px 56px -16px rgba(0, 0, 0, 0.6), 0 10px 24px -10px rgba(0,0,0,0.5);
  --hero-glow: radial-gradient(60% 60% at 70% 20%, rgba(127,180,178,0.14), transparent 70%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1b23;
    --bg-elevated: #0f2129;
    --surface: #102229;
    --surface-2: #152a31;
    --surface-sunken: #091820;
    --text: #edeeea;
    --text-muted: #a6b3b1;
    --text-subtle: #7b8a8a;
    --border: #1e3138;
    --border-strong: #2b424a;
    --primary: var(--teal-300);
    --primary-hover: #9ac9c6;
    --primary-contrast: #08181e;
    --accent: var(--teal-300);
    --accent-soft: #123230;
    --amber: var(--amber-400);
    --ring: rgba(127, 180, 178, 0.45);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 28px 56px -16px rgba(0, 0, 0, 0.6), 0 10px 24px -10px rgba(0,0,0,0.5);
    --hero-glow: radial-gradient(60% 60% at 70% 20%, rgba(127,180,178,0.14), transparent 70%);
  }
}

/* ---- Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
  font-optical-sizing: auto;
}

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 116px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section-sunken { background: var(--surface-sunken); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin-top: 16px; }
.lead { font-size: 1.18rem; color: var(--text-muted); line-height: 1.55; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  border: 1px solid transparent; transition: all 0.18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--primary-contrast); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-link { color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.btn-link .arrow { transition: transform 0.18s ease; }
.btn-link:hover { text-decoration: none; }
.btn-link:hover .arrow { transform: translateX(4px); }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; color: var(--text); font-size: 1.18rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .wordmark { font-family: var(--font-body); font-weight: 600; font-size: 1.24rem; letter-spacing: -0.03em; }
.brand .wordmark-os { font-family: var(--font-body); font-weight: 400; font-size: 1.24rem; letter-spacing: -0.03em; color: var(--text-subtle); margin-left: 0.28em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
  padding: 8px 13px; border-radius: 8px; transition: all 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-links a.active { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); display: inline-grid; place-items: center;
  transition: all 0.15s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg-elevated); border-bottom: 1px solid var(--border); padding: 12px var(--gutter) 20px;
    gap: 2px; transform: translateY(-140%); transition: transform 0.25s ease; box-shadow: var(--shadow-md); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px; font-size: 1.05rem; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav .btn.hide-mobile { display: none; }
}

/* ---- Logo mark ----------------------------------------------------------- */
.logo-mark { width: 30px; height: 30px; flex: none; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.hero-inner { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.02; letter-spacing: -0.025em; }
.hero h1 .accent { color: var(--primary); font-style: italic; }
.hero .lead { margin-top: 22px; max-width: 42ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--text-subtle); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 10px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: 0.82rem; color: var(--text-muted); font-weight: 500; margin-bottom: 22px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---- Cards --------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card .card-icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--primary); margin-bottom: 18px;
}
.card h3 { font-size: 1.28rem; margin-bottom: 9px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card .headline-quote { font-family: var(--font-display); font-style: italic; color: var(--text); font-size: 1.02rem; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---- Proof strip --------------------------------------------------------- */
.proof {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 8px;
}
@media (max-width: 620px) { .proof { grid-template-columns: 1fr; } }
.proof-item { background: var(--surface); padding: 28px 26px; }
.proof-item .figure { font-family: var(--font-display); font-size: 2.1rem; font-weight: 580; color: var(--primary); letter-spacing: -0.02em; }
.proof-item .figure .mono { font-family: var(--font-mono); font-size: 1.7rem; }
.proof-item .label { color: var(--text-muted); font-size: 0.95rem; margin-top: 6px; }

/* ---- Feature split rows -------------------------------------------------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(56px, 8vw, 104px); }
.feature-row.reverse .feature-visual { order: -1; }
@media (max-width: 900px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-visual { order: 0; }
}
.feature-copy h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.feature-copy .lead { font-size: 1.05rem; margin-bottom: 20px; }
.feature-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 0.98rem; }
.feature-list li .check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-top: 1px; }
:root[data-theme="dark"] .feature-list li .check { color: var(--teal-300); }

/* ---- Product mockups (CSS "screenshots") --------------------------------- */
.mock {
  border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
  background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-chrome { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.mock-url { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-subtle); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 4px 12px; max-width: 320px; margin-inline: auto; }
.mock-body { padding: 0; }

/* Dashboard mock */
.dash { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; }
@media (max-width: 520px) { .dash { grid-template-columns: 1fr; } .dash-side { display: none; } }
.dash-side { background: var(--surface-sunken); border-right: 1px solid var(--border); padding: 18px 14px; }
.dash-side .avatar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.dash-side .avatar .a-circle { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 0.85rem; }
.dash-side .avatar .a-meta strong { display: block; font-size: 0.86rem; color: var(--text); }
.dash-side .avatar .a-meta span { font-size: 0.72rem; color: var(--text-subtle); }
.dash-nav { list-style: none; padding: 0; display: grid; gap: 2px; }
.dash-nav li { padding: 8px 10px; border-radius: 7px; font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 9px; }
.dash-nav li.on { background: var(--surface); color: var(--primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.dash-nav li .d { width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: 0.6; }
.dash-main { padding: 18px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dash-head h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 650; }
.dash-head .tag { font-family: var(--font-mono); font-size: 0.66rem; color: var(--teal-500); background: var(--surface-2); padding: 3px 8px; border-radius: 5px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 11px 13px; }
.kpi .k-label { font-size: 0.66rem; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi .k-val { font-family: var(--font-mono); font-size: 1.12rem; font-weight: 600; color: var(--text); margin-top: 3px; font-feature-settings: "tnum"; }
.kpi .k-val .up { color: var(--teal-500); font-size: 0.7rem; }
.timeline { display: grid; gap: 9px; }
.tl-item { display: flex; gap: 11px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.tl-item .tl-ico { flex: none; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; }
.tl-ico.call { background: var(--accent-soft); color: var(--accent); }
.tl-ico.mail { background: #e2eef0; color: var(--teal-600); }
.tl-ico.doc  { background: #e8ebf2; color: #4a5aa8; }
:root[data-theme="dark"] .tl-ico.mail { background: #123037; color: var(--teal-300); }
:root[data-theme="dark"] .tl-ico.doc { background: #1c2440; color: #9aa8e0; }
.tl-item .tl-body { flex: 1; min-width: 0; }
.tl-item .tl-body strong { font-size: 0.82rem; font-weight: 600; display: block; }
.tl-item .tl-body p { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }
.tl-item .tl-time { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-subtle); flex: none; }
.tl-ai { font-size: 0.68rem; color: var(--teal-600); font-weight: 600; margin-top: 5px; display: inline-flex; align-items: center; gap: 5px; }
:root[data-theme="dark"] .tl-ai { color: var(--teal-300); }

/* Portfolio / asset map mock */
.pf { padding: 20px; }
.pf-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.pf-total .lab { font-size: 0.72rem; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.06em; }
.pf-total .val { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; color: var(--text); font-feature-settings: "tnum"; }
.pf-total .chg { font-family: var(--font-mono); font-size: 0.8rem; color: var(--teal-500); }
.pf-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.pf-legend span { font-size: 0.74rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.pf-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart { height: 130px; display: flex; align-items: flex-end; gap: 7px; padding: 10px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.chart .bar { flex: 1; background: linear-gradient(180deg, var(--teal-400), var(--teal-600)); border-radius: 4px 4px 0 0; opacity: 0.9; }
.allocation { display: grid; gap: 8px; }
.alloc-row { display: grid; grid-template-columns: 120px 1fr 56px; align-items: center; gap: 12px; font-size: 0.78rem; }
.alloc-row .a-name { color: var(--text-muted); }
.alloc-row .a-track { height: 8px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.alloc-row .a-fill { height: 100%; border-radius: 5px; }
.alloc-row .a-pct { font-family: var(--font-mono); text-align: right; color: var(--text); font-size: 0.74rem; }

/* Phone / portal mock */
.phone { width: 288px; max-width: 100%; margin-inline: auto; border-radius: 38px; border: 10px solid var(--ink-900); background: var(--ink-900); box-shadow: var(--shadow-lg); overflow: hidden; position: relative; }
:root[data-theme="dark"] .phone { border-color: #04121a; }
.phone-screen { background: var(--bg); border-radius: 28px; overflow: hidden; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 22px; background: var(--ink-900); border-radius: 0 0 14px 14px; z-index: 3; }
:root[data-theme="dark"] .phone-notch { background: #04121a; }
.phone-status { display: flex; justify-content: space-between; padding: 12px 20px 6px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-muted); }
.portal-head { padding: 6px 18px 14px; }
.portal-head .greet { font-size: 0.74rem; color: var(--text-subtle); }
.portal-head .name { font-family: var(--font-display); font-size: 1.15rem; }
.portal-card { margin: 0 14px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 15px; box-shadow: var(--shadow-sm); }
.portal-card.hero-val { background: linear-gradient(150deg, var(--teal-700), var(--teal-800)); border: none; color: #eaf6f8; }
.portal-card.hero-val .lab { font-size: 0.68rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.06em; }
.portal-card.hero-val .val { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 600; }
.portal-card.hero-val .chg { font-family: var(--font-mono); font-size: 0.72rem; color: var(--teal-200); }
.mini-chart { height: 44px; display: flex; align-items: flex-end; gap: 3px; margin-top: 10px; }
.mini-chart .b { flex: 1; background: rgba(179,224,230,0.5); border-radius: 2px 2px 0 0; }
.portal-card h5 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
.portal-card h5 .badge { font-family: var(--font-mono); font-size: 0.6rem; background: var(--accent); color: #fff; border-radius: 20px; padding: 2px 7px; }
.doc-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 0.76rem; }
.doc-row:first-of-type { border-top: none; }
.doc-row .d-ico { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); color: var(--primary); display: grid; place-items: center; flex: none; }
.doc-row .d-meta { flex: 1; min-width: 0; }
.doc-row .d-meta strong { font-weight: 600; display: block; font-size: 0.76rem; }
.doc-row .d-meta span { color: var(--text-subtle); font-size: 0.68rem; }
.portal-tabbar { display: flex; justify-content: space-around; padding: 10px 0 14px; border-top: 1px solid var(--border); background: var(--surface); }
.portal-tabbar span { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); }
.portal-tabbar span.on { background: var(--primary); }
.install-toast { margin: 0 14px 12px; background: var(--ink-900); color: #eaf6f8; border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 11px; font-size: 0.74rem; }
:root[data-theme="dark"] .install-toast { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.install-toast .i-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--teal-500); display: grid; place-items: center; flex: none; color: #fff; }
.install-toast .i-btn { margin-left: auto; background: var(--teal-400); color: #06222a; font-weight: 700; font-size: 0.68rem; padding: 6px 11px; border-radius: 7px; flex: none; }

/* Review doc mock */
.review-doc { background: var(--surface); padding: 26px; font-size: 0.8rem; }
.review-doc .rd-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--primary); padding-bottom: 12px; margin-bottom: 16px; }
.review-doc .rd-head .rd-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); }
.review-doc .rd-head .rd-sub { font-size: 0.7rem; color: var(--text-subtle); font-family: var(--font-mono); }
.review-doc .rd-badge { font-family: var(--font-mono); font-size: 0.6rem; color: var(--teal-600); border: 1px solid var(--teal-300); border-radius: 20px; padding: 3px 9px; }
:root[data-theme="dark"] .review-doc .rd-badge { color: var(--teal-300); border-color: var(--teal-600); }
.review-doc h6 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; color: var(--text-subtle); margin: 14px 0 7px; }
.review-doc .rd-line { height: 8px; background: var(--surface-2); border-radius: 4px; margin-bottom: 7px; }
.review-doc .rd-line.short { width: 62%; }
.review-doc .rd-line.mid { width: 82%; }
.rd-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 6px; }
.rd-figures .f { background: var(--surface-2); border-radius: 8px; padding: 10px; }
.rd-figures .f .fl { font-size: 0.6rem; color: var(--text-subtle); text-transform: uppercase; }
.rd-figures .f .fv { font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem; color: var(--text); margin-top: 2px; }

/* ---- Comparison table ---------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); }
table.compare th, table.compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
table.compare thead th { font-family: var(--font-body); font-weight: 600; color: var(--text-subtle); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: bottom; }
table.compare thead th.col-tandem { color: var(--primary); }
table.compare tbody th { font-weight: 500; color: var(--text); }
table.compare td.col-tandem { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); font-weight: 600; color: var(--text); }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: none; }
.tick { color: var(--teal-500); font-weight: 700; }
.cross { color: var(--text-subtle); }
:root[data-theme="dark"] .tick { color: var(--teal-300); }

/* ---- Callout / quote ----------------------------------------------------- */
.callout {
  border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 56px);
  background: linear-gradient(150deg, var(--teal-800), var(--teal-900));
  color: #eaf6f8; position: relative; overflow: hidden;
}
.callout::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(59,160,175,0.28), transparent 70%); }
.callout h2 { color: #fff; position: relative; }
.callout p { color: #c9e6ea; position: relative; margin-top: 14px; }
.callout .btn-primary { background: #fff; color: var(--teal-800); }
.callout .btn-primary:hover { background: #eaf6f8; }
.callout .btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.callout .btn-ghost:hover { border-color: #fff; color: #fff; }

/* ---- Honesty / note blocks ---------------------------------------------- */
.note {
  border-left: 3px solid var(--accent); background: var(--surface-2);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-muted); font-size: 0.95rem;
}
.note strong { color: var(--text); }

/* ---- Steps --------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .s-num { counter-increment: step; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); color: var(--primary); font-family: var(--font-mono); font-weight: 700; display: grid; place-items: center; }
.step .s-num::before { content: counter(step, decimal-leading-zero); }
.step h4 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 650; margin-bottom: 4px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ---- Forms --------------------------------------------------------------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; color: var(--text); }
.field label .opt { font-weight: 400; color: var(--text-subtle); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.98rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-success { display: none; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); border: 1px solid var(--accent); margin-bottom: 20px; }
.form-success.show { display: block; }
.form-note { font-size: 0.82rem; color: var(--text-subtle); margin-top: 12px; }

/* ---- FAQ / accordion ----------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.08rem; font-weight: 600; color: var(--text); font-family: var(--font-display); }
.faq-q .chev { flex: none; transition: transform 0.2s ease; color: var(--text-subtle); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-inner { padding-bottom: 20px; color: var(--text-muted); font-size: 0.98rem; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border); padding-block: 56px 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: 14px; max-width: 34ch; }
.footer-col h5 { font-family: var(--font-body); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-subtle); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text-muted); font-size: 0.94rem; }
.footer-col a:hover { color: var(--primary); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-subtle); font-size: 0.84rem; }

/* ---- Utility ------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
/* Reveal-on-scroll: only hide when JS is present to run the observer,
   so no-JS visitors always see the content. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
.badge-inline { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: 5px 11px; border-radius: 999px; }
.divider { height: 1px; background: var(--border); border: none; margin-block: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; }
.skip-link:focus { left: 0; }
