/* ============================================================
   OTeva Marketing Site: Design System
   Premium SaaS aesthetic, styled after the QAlchemy app/site:
   soft rounded cards, restrained shadows, glass nav, blue
   primary with the OTeva puzzle-piece colors as quiet accents.
   ============================================================ */
:root{
  --bg: #fdf3e7;
  --bg-subtle: #faead6;
  --surface: rgba(255,250,243,0.7);
  --surface-solid: #fffaf3;
  --border: rgba(120,72,20,0.13);
  --border-strong: rgba(120,72,20,0.2);
  --fg: #0f1524;
  --fg-muted: #5b6478;
  --fg-faint: #8892a4;

  --navy: #16345e;
  --blue: #2e7bd6;
  --red: #e0475a;
  --amber: #f0930b;
  --green: #2e9e52;

  --primary: var(--blue);
  --primary-dark: #235f9f;
  --primary-light: #cfe1f7;
  --primary-tint: #eef4fc;
  --accent-violet: oklch(0.6 0.19 300);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
  --shadow-md: 0 12px 28px -10px rgba(15,23,42,0.14), 0 2px 8px -2px rgba(15,23,42,0.06);
  --shadow-lg: 0 32px 64px -16px rgba(15,23,42,0.20), 0 8px 24px -6px rgba(15,23,42,0.10);
  --shadow-glow: 0 0 0 1px rgba(46,123,214,0.14), 0 16px 40px -12px rgba(46,123,214,0.35);

  --glass-bg: rgba(255,250,243,0.66);
  --glass-border: rgba(255,255,255,0.5);
  --glass-blur: 18px;

  --font-display: 'Manrope', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1240px;
  --nav-h: 72px;
  color-scheme: light;
}
:root[data-theme="dark"]{
  --bg: #0b0e17;
  --bg-subtle: #10141f;
  --surface: rgba(255,255,255,0.04);
  --surface-solid: #12172a;
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);
  --fg: #f2f4f9;
  --fg-muted: #a3aec4;
  --fg-faint: #6b7690;

  --primary: #6fa8e8;
  --primary-dark: #4a86cc;
  --primary-light: #22405f;
  --primary-tint: #182338;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 12px 28px -10px rgba(0,0,0,0.55);
  --shadow-lg: 0 32px 64px -16px rgba(0,0,0,0.65);
  --shadow-glow: 0 0 0 1px rgba(111,168,232,0.22), 0 16px 40px -12px rgba(111,168,232,0.45);

  --glass-bg: rgba(18,22,32,0.55);
  --glass-border: rgba(255,255,255,0.08);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg: #0b0e17; --bg-subtle: #10141f; --surface: rgba(255,255,255,0.04);
    --surface-solid: #12172a; --border: rgba(255,255,255,0.09); --border-strong: rgba(255,255,255,0.16);
    --fg: #f2f4f9; --fg-muted: #a3aec4; --fg-faint: #6b7690;
    --primary: #6fa8e8; --primary-dark: #4a86cc; --primary-light: #22405f; --primary-tint: #182338;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 12px 28px -10px rgba(0,0,0,0.55);
    --shadow-lg: 0 32px 64px -16px rgba(0,0,0,0.65);
    --shadow-glow: 0 0 0 1px rgba(111,168,232,0.22), 0 16px 40px -12px rgba(111,168,232,0.45);
    --glass-bg: rgba(18,22,32,0.55); --glass-border: rgba(255,255,255,0.08);
    color-scheme: dark;
  }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .25s ease, color .25s ease;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
::selection{ background: var(--primary-light); color: var(--fg); }
h1,h2,h3,h4{ font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
p{ margin: 0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; }
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 28px; }
#top{ scroll-margin-top: var(--nav-h); }

.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  html{ scroll-behavior: auto; }
}

/* ---------------- Nav ---------------- */
.site-nav{
  position: sticky; top: 0; z-index: 200; height: var(--nav-h); display: flex; align-items: center;
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap{ display:flex; align-items:center; justify-content:space-between; width:100%; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:1.1rem; font-family: var(--font-display); }
.brand img{ height:28px; width:28px; }
.brand .l1,.brand .l2{ color:var(--navy); }
:root[data-theme="dark"] .brand .l1, :root[data-theme="dark"] .brand .l2{ color:#7fa8d6; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .brand .l1, :root:not([data-theme="light"]) .brand .l2{ color:#7fa8d6; } }
.brand .l3{ color:var(--blue); }
.brand .l4{ color:var(--green); }
.brand .l5{ color:var(--amber); }
.nav-links{ display:flex; align-items:center; gap:6px; }
.nav-links a{ font-size:0.92rem; font-weight:500; color: var(--fg-muted); padding: 8px 14px; border-radius: 999px; transition: color .15s ease, background .15s ease; }
.nav-links a:hover{ color: var(--fg); background: var(--surface); }
.nav-links a.active{ color: var(--primary); background: var(--primary-tint); }
.nav-right{ display:flex; align-items:center; gap:10px; }
.nav-toggle{
  display:none; width:38px; height:38px; border-radius:10px; border:1px solid var(--border);
  background: var(--surface); align-items:center; justify-content:center; cursor:pointer; color: var(--fg); flex:none;
}
.nav-toggle svg{ width:18px; height:18px; }
.theme-btn{
  width:38px; height:38px; border-radius:10px; border:1px solid var(--border); background: var(--surface);
  display:flex; align-items:center; justify-content:center; cursor:pointer; color: var(--fg);
  transition: border-color .15s ease;
}
.theme-btn:hover{ border-color: var(--primary); }
.theme-btn svg{ width:17px; height:17px; }

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 12px 22px; border-radius: 12px; font-weight:600; font-size:0.95rem;
  border:1px solid transparent; cursor:pointer; white-space:nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active{ transform: scale(0.97); }
.btn-primary{ background: var(--primary); color:white; box-shadow: var(--shadow-glow); }
.btn-primary:hover{ background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost{ background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover{ border-color: var(--primary); color: var(--primary); }
.btn-lg{ padding: 15px 28px; font-size:1.02rem; border-radius:14px; }

/* ---------------- Hero ---------------- */
.hero{
  position: relative; overflow: hidden;
  padding: 56px 0 40px;
}
.hero::before{
  content:""; position:absolute; inset: -30% -10% auto -10%; height: 680px;
  background:
    radial-gradient(38% 50% at 20% 20%, color-mix(in srgb, var(--blue) 30%, transparent) 0%, transparent 70%),
    radial-gradient(34% 46% at 55% 10%, color-mix(in srgb, var(--red) 22%, transparent) 0%, transparent 70%),
    radial-gradient(34% 46% at 78% 24%, color-mix(in srgb, var(--amber) 26%, transparent) 0%, transparent 70%),
    radial-gradient(38% 50% at 92% 8%, color-mix(in srgb, var(--green) 24%, transparent) 0%, transparent 70%);
  opacity: .7; z-index:-1; filter: blur(10px);
}
.hero::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 15%, black 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 15%, black 0%, transparent 75%);
  opacity:.55;
}
.hero-grid{ display:grid; grid-template-columns: 44fr 56fr; gap:48px; align-items:center; }
.hero-copy{ max-width: 480px; }
.badge{
  display:inline-flex; align-items:center; gap:8px; padding:7px 16px;
  border:1px solid var(--border); border-radius:999px; font-size:0.82rem; font-weight:600;
  color: var(--fg-muted); background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-sm);
}
.badge .pieces{ display:flex; gap:3px; }
.badge .pieces span{ width:7px; height:7px; border-radius:2px; }
.badge .pieces span:nth-child(1){ background: var(--blue); }
.badge .pieces span:nth-child(2){ background: var(--red); }
.badge .pieces span:nth-child(3){ background: var(--amber); }
.badge .pieces span:nth-child(4){ background: var(--green); }
.hero h1{ margin-top:22px; font-size: clamp(2rem, 3.2vw, 2.9rem); font-weight:700; line-height:1.14; }
.hero p.lead{ margin-top:20px; font-size:1.08rem; color: var(--fg-muted); }
.hero-actions{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }
.hero-note{ margin-top:18px; font-size:0.85rem; color: var(--fg-faint); font-weight:500; }

.hero-visual{ position:relative; }
.hero-shot{
  border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--border);
  box-shadow: var(--shadow-lg); background: var(--surface-solid);
}
.hero-shot .browserbar{ display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid var(--border); background: var(--bg-subtle); }
.hero-shot .dots{ display:flex; gap:6px; }
.hero-shot .dots span{ width:10px; height:10px; border-radius:50%; background: var(--border-strong); }
.hero-shot .dots span:nth-child(1){ background: color-mix(in srgb, var(--red) 70%, white); }
.hero-shot .dots span:nth-child(2){ background: color-mix(in srgb, var(--amber) 70%, white); }
.hero-shot .dots span:nth-child(3){ background: color-mix(in srgb, var(--green) 70%, white); }
.hero-shot .urlbar{ flex:1; text-align:center; font-size:0.78rem; color: var(--fg-faint); font-family: ui-monospace, monospace; }
.hero-shot img{ width:100%; display:block; aspect-ratio: 1600/1000; object-fit: cover; object-position: top; background: var(--bg-subtle); }
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; text-align:center; }
  .hero-copy{ max-width: 640px; margin: 0 auto; }
  .hero-actions{ justify-content:center; }
  .badge{ margin: 0 auto; }
  .hero-visual{ margin-top: 40px; }
}

/* ---------------- Decorative OT/toy background ---------------- */
.deco-layer{ position:absolute; inset:0; overflow:hidden; z-index:0; pointer-events:none; }
.deco-icon{ position:absolute; opacity:0.22; }
:root[data-theme="dark"] .deco-icon{ opacity:0.26; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .deco-icon{ opacity:0.26; } }
.deco-icon svg{ width:100%; height:100%; display:block; }
@media (max-width: 760px){ .deco-icon{ display:none; } }
@media (prefers-reduced-motion: no-preference){
  .deco-icon.drift{ animation: deco-drift 9s ease-in-out infinite; }
  .deco-icon.drift-slow{ animation: deco-drift 13s ease-in-out infinite; }
}
@keyframes deco-drift{
  0%, 100%{ transform: translateY(0) rotate(var(--r, 0deg)); }
  50%{ transform: translateY(-14px) rotate(var(--r, 0deg)); }
}
.has-deco{ position:relative; }
.has-deco > .wrap{ position:relative; z-index:1; }
.hero{ position:relative; }
.hero-grid{ position:relative; z-index:1; }

/* ---------------- Sections ---------------- */
section{ padding: 100px 0; }
.section-head{ max-width: 700px; margin: 0 auto 52px; text-align:center; }
.section-head .kicker{ color: var(--primary); font-weight:700; font-size:0.8rem; letter-spacing:.08em; text-transform:uppercase; display:block; margin-bottom:14px; }
.section-head h2{ font-size: clamp(1.85rem, 3.4vw, 2.6rem); font-weight:700; }
.section-head p{ margin-top:16px; color: var(--fg-muted); font-size:1.05rem; }

/* ---------------- Fact strip ---------------- */
.fact-strip{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); background: var(--bg-subtle); }
.facts{ display:grid; grid-template-columns: repeat(4, 1fr); }
.fact{ padding: 30px 24px; text-align:center; border-left:1px solid var(--border); }
.fact:first-child{ border-left:none; }
.fact .n{ font-size:1.9rem; font-weight:800; font-family: var(--font-display); }
.fact:nth-child(1) .n{ color: var(--blue); }
.fact:nth-child(2) .n{ color: var(--red); }
.fact:nth-child(3) .n{ color: var(--amber); }
.fact:nth-child(4) .n{ color: var(--green); }
.fact .l{ margin-top:6px; font-size:0.88rem; color: var(--fg-muted); }
@media (max-width: 860px){
  .facts{ grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3){ border-left:none; }
  .fact{ border-bottom:1px solid var(--border); }
  .fact:nth-child(3),.fact:nth-child(4){ border-bottom:none; }
}

/* ---------------- Showcase (alternating rows) ---------------- */
.showcase-row{
  display:grid; grid-template-columns: 1fr 1fr; gap:64px; align-items:center; padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.showcase-row:last-child{ border-bottom:none; padding-bottom:0; }
.showcase-row:first-child{ padding-top:0; }
.showcase-row.reverse .showcase-text{ order:2; }
.showcase-row.reverse .showcase-media{ order:1; }
.showcase-text .kicker{ color: var(--primary); font-weight:700; font-size:0.78rem; letter-spacing:.08em; text-transform:uppercase; display:block; margin-bottom:12px; }
.showcase-row:nth-child(1) .showcase-text .kicker{ color: var(--blue); }
.showcase-row:nth-child(2) .showcase-text .kicker{ color: var(--red); }
.showcase-row:nth-child(3) .showcase-text .kicker{ color: var(--amber); }
.showcase-text h3{ font-size:1.6rem; font-weight:700; margin-bottom:14px; }
.showcase-text p{ color: var(--fg-muted); font-size:1.02rem; margin-bottom:18px; }
.showcase-list{ display:flex; flex-direction:column; gap:11px; }
.showcase-list li{ display:flex; gap:10px; align-items:flex-start; font-size:0.95rem; }
.showcase-list svg{ width:18px; height:18px; color: var(--primary); flex:none; margin-top:2px; }
@media (max-width: 900px){
  .showcase-row, .showcase-row.reverse{ grid-template-columns: 1fr; }
  .showcase-row.reverse .showcase-text, .showcase-row.reverse .showcase-media{ order:initial; }
}

.mock-card{
  border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--border); box-shadow: var(--shadow-lg);
  background: var(--surface-solid); transition: transform .3s ease, box-shadow .3s ease;
}
.mock-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.mock-head{ display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid var(--border); background: var(--bg-subtle); }
.mock-head .dots span{ width:9px; height:9px; border-radius:50%; background: var(--border-strong); display:inline-block; margin-right:5px; }
.mock-head .title{ font-size:0.8rem; color: var(--fg-faint); }
.mock-card img{ width:100%; display:block; aspect-ratio: 1600/1000; object-fit: cover; object-position: top; background: var(--bg-subtle); }

/* ---------------- Zoomable screenshots (click to preview) ---------------- */
.zoomable{ cursor: zoom-in; }
.lightbox{
  position: fixed; inset: 0; z-index: 1000; display:flex; align-items:center; justify-content:center;
  padding: 40px; background: rgba(10,12,18,0.82); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.lightbox.is-open{ opacity: 1; visibility: visible; }
.lightbox img{
  max-width: min(1100px, 100%); max-height: 100%; width:auto; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); background: var(--surface-solid);
  transform: scale(.97); transition: transform .2s ease;
}
.lightbox.is-open img{ transform: scale(1); }
.lightbox-caption{
  position:absolute; left:0; right:0; bottom:22px; text-align:center; color:rgba(255,255,255,0.75); font-size:0.85rem;
}
.lightbox-close{
  position:absolute; top:20px; right:24px; width:42px; height:42px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.lightbox-close svg{ width:18px; height:18px; }
@media (prefers-reduced-motion: reduce){ .lightbox, .lightbox img{ transition:none; } }

/* ---------------- Catalogs gallery ---------------- */
.gallery-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:20px; }
@media (max-width: 980px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .gallery-grid{ grid-template-columns: 1fr; } }
.gallery-card{
  border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--border); box-shadow: var(--shadow-sm);
  background: var(--surface-solid); transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-card .mock-head{ padding:10px 14px; }
.gallery-card .mock-head .title{ font-size:0.82rem; font-weight:600; color: var(--fg); }
.gallery-card img{ width:100%; display:block; aspect-ratio: 1600/1000; object-fit: cover; object-position: top; background: var(--bg-subtle); }
.gallery-cap{ padding:12px 14px 16px; font-size:0.85rem; color: var(--fg-muted); }

/* ---------------- Feature cards ---------------- */
.card-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; }
@media (max-width: 900px){ .card-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .card-grid{ grid-template-columns: 1fr; } }
.feature-card{
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  border:1px solid var(--glass-border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.feature-icon{ width:58px; height:58px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.feature-icon svg{ width:21px; height:21px; }
.feature-card.acc-blue .feature-icon{ background: rgba(46,123,214,0.12); color: var(--blue); }
.feature-card.acc-red .feature-icon{ background: rgba(224,71,90,0.12); color: var(--red); }
.feature-card.acc-amber .feature-icon{ background: rgba(240,147,11,0.14); color: var(--amber); }
.feature-card.acc-green .feature-icon{ background: rgba(46,158,82,0.12); color: var(--green); }
.feature-card h3{ font-size:1.08rem; font-weight:700; margin-bottom:8px; }
.feature-card p{ color: var(--fg-muted); font-size:0.94rem; }

/* ---------------- Steps ---------------- */
.steps{ display:grid; grid-template-columns: repeat(4, 1fr); gap:22px; }
@media (max-width: 900px){ .steps{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .steps{ grid-template-columns: 1fr; } }
.step{ position:relative; padding: 28px 22px; border:1px solid var(--border); border-radius: var(--radius-lg); background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); }
.step .num{
  width:36px; height:36px; border-radius:10px; color:white; font-weight:800;
  display:flex; align-items:center; justify-content:center; margin-bottom:16px; font-size:0.95rem; box-shadow: var(--shadow-sm);
}
.step:nth-child(1) .num{ background: var(--blue); }
.step:nth-child(2) .num{ background: var(--red); }
.step:nth-child(3) .num{ background: var(--amber); }
.step:nth-child(4) .num{ background: var(--green); }
.step h4{ font-size:1.02rem; font-weight:700; margin-bottom:8px; }
.step p{ color: var(--fg-muted); font-size:0.9rem; }

/* ---------------- Privacy panel ---------------- */
.privacy-panel{
  border-radius: var(--radius-xl); border:1px solid var(--border); background: var(--surface-solid);
  overflow:hidden; box-shadow: var(--shadow-md); position:relative;
}
.privacy-panel::before{
  content:""; position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--red) 25% 50%, var(--amber) 50% 75%, var(--green) 75% 100%);
}
.privacy-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 860px){ .privacy-grid{ grid-template-columns: 1fr; } }
.privacy-copy{ padding: 48px 44px; }
.privacy-copy .kicker{ color: var(--primary); font-weight:700; font-size:0.8rem; letter-spacing:.08em; text-transform:uppercase; display:block; margin-bottom:14px; }
.privacy-copy h2{ font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight:700; }
.privacy-copy p{ margin-top:14px; color: var(--fg-muted); font-size:1.02rem; max-width:52ch; }
.privacy-list{ border-left: 1px solid var(--border); padding: 48px 44px; background: var(--bg-subtle); }
@media (max-width: 860px){ .privacy-list{ border-left:none; border-top:1px solid var(--border); } }
.privacy-list li{ display:flex; gap:12px; align-items:flex-start; padding:14px 0; border-bottom:1px solid var(--border); font-size:0.95rem; color: var(--fg-muted); }
.privacy-list li:last-child{ border-bottom:none; }
.privacy-list svg{ width:18px; height:18px; color: var(--green); flex:none; margin-top:2px; }

/* ---------------- About teaser (homepage) ---------------- */
.about-teaser{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.about-teaser img{ width:48px; height:48px; flex:none; }
.about-teaser p{ flex:1; min-width:240px; color: var(--fg-muted); font-size:0.98rem; margin:0; }
.about-teaser .btn{ flex:none; white-space:nowrap; }

/* ---------------- About ---------------- */
.about-grid{ display:grid; grid-template-columns: auto 1fr; gap:36px; align-items:center; }
@media (max-width: 700px){ .about-grid{ grid-template-columns: 1fr; text-align:center; } }
.about-grid img{ width:110px; height:110px; margin:0 auto; }
.about-grid .kicker{ color: var(--primary); font-weight:700; font-size:0.8rem; letter-spacing:.08em; text-transform:uppercase; display:block; margin-bottom:12px; }
.about-grid h2{ font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight:700; margin-bottom:14px; }
.about-grid p{ color: var(--fg-muted); font-size:1.02rem; }

/* ---------------- Simple content pages (docs/privacy/terms/about/404) ---------------- */
.page-header{ padding: 64px 0 40px; border-bottom:1px solid var(--border); }
.page-header .kicker{ color: var(--primary); font-weight:700; font-size:0.8rem; letter-spacing:.08em; text-transform:uppercase; display:block; margin-bottom:14px; }
.page-header h1{ font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight:700; }
.page-header p{ margin-top:14px; color: var(--fg-muted); font-size:1.05rem; max-width:64ch; }
.page-header .updated{ margin-top:18px; font-size:0.85rem; color: var(--fg-faint); }

.content-shell{ display:grid; grid-template-columns: 240px 1fr; gap:48px; align-items:start; padding-top:56px; }
@media (max-width: 900px){ .content-shell{ grid-template-columns: 1fr; } }
.content-toc{ position: sticky; top: calc(var(--nav-h) + 24px); display:flex; flex-direction:column; gap:4px; }
@media (max-width: 900px){ .content-toc{ position:static; flex-direction:row; flex-wrap:wrap; gap:8px; margin-bottom:8px; } }
.content-toc a{ font-size:0.88rem; color: var(--fg-muted); padding:8px 12px; border-radius:10px; }
.content-toc a:hover{ color: var(--fg); background: var(--surface); }
.content-toc a.active{ color: var(--primary); background: var(--primary-tint); font-weight:600; }

.prose{ max-width: 760px; }
.prose section{ padding: 0 0 40px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h2{ font-size:1.35rem; font-weight:700; margin-bottom:14px; }
.prose h3{ font-size:1.08rem; font-weight:700; margin: 22px 0 10px; }
.prose p{ color: var(--fg-muted); font-size:1rem; margin-bottom:14px; }
.prose ul, .prose ol{ margin: 0 0 14px 22px; color: var(--fg-muted); list-style:disc; }
.prose ol{ list-style:decimal; }
.prose li{ margin-bottom:8px; }
.prose li strong, .prose p strong{ color: var(--fg); }
.prose a.link{ color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.callout{
  display:flex; gap:12px; background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  border:1px solid var(--border); border-left:3px solid var(--primary);
  padding:14px 16px; border-radius:12px; margin: 8px 0 20px; font-size:0.92rem; color: var(--fg-muted);
}
.callout svg{ width:18px; height:18px; color: var(--primary); flex:none; margin-top:2px; }

.step-card{
  border:1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-solid);
  padding: 20px 22px; margin-bottom:14px; box-shadow: var(--shadow-sm);
}
.step-card .step-title{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:1rem; margin-bottom:8px; }
.step-card .step-title .n{
  width:26px; height:26px; border-radius:8px; background: var(--primary-tint); color: var(--primary);
  display:flex; align-items:center; justify-content:center; font-size:0.82rem; font-weight:800; flex:none;
}
.step-card p{ margin-bottom:0; }

/* ---------------- Category table (docs) ---------------- */
.cat-table{
  border:1px solid var(--border); border-radius: var(--radius); overflow:hidden;
  background: var(--surface-solid); margin: 18px 0 6px;
}
.cat-row{
  display:grid; grid-template-columns: 1.4fr 0.5fr 2fr; gap:14px; padding:12px 16px;
  border-bottom:1px solid var(--border); font-size:0.9rem;
}
.cat-row:last-child{ border-bottom:none; }
.cat-row span:first-child{ font-weight:600; color: var(--fg); }
.cat-row span:nth-child(2){ color: var(--primary); font-weight:700; }
.cat-row span:last-child{ color: var(--fg-muted); }
.cat-row.cat-head{
  background: var(--bg-subtle); font-size:0.76rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color: var(--fg-faint);
}
.cat-row.cat-head span{ font-weight:700; color: var(--fg-faint) !important; }
@media (max-width: 640px){
  .cat-row{ grid-template-columns: 1fr; gap:4px; }
  .cat-row.cat-head{ display:none; }
  .cat-row span:first-child{ font-size:0.95rem; }
  .cat-row span:nth-child(2)::before{ content:"Questions: "; font-weight:600; color: var(--fg-faint); }
}

/* ---------------- 404 ---------------- */
.error-hero{ text-align:center; padding: 120px 0 80px; }
.error-hero .code{ font-family: var(--font-display); font-weight:800; font-size: clamp(4rem, 12vw, 7rem); line-height:1; color: var(--primary); }
.error-hero h1{ margin-top:8px; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight:700; }
.error-hero p{ margin-top:14px; color: var(--fg-muted); font-size:1.05rem; }
.error-hero .hero-actions{ justify-content:center; margin-top:28px; }
.error-pieces{ display:flex; justify-content:center; gap:8px; margin-bottom:24px; }
.error-pieces span{ width:14px; height:14px; border-radius:4px; }
.error-pieces span:nth-child(1){ background: var(--blue); }
.error-pieces span:nth-child(2){ background: var(--red); }
.error-pieces span:nth-child(3){ background: var(--amber); }
.error-pieces span:nth-child(4){ background: var(--green); }

/* ---------------- Footer ---------------- */
footer{ border-top:1px solid var(--border); padding: 52px 0 30px; background: var(--bg-subtle); }
.foot-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:32px; }
@media (max-width: 760px){ .foot-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .foot-grid{ grid-template-columns: 1fr; } }
.foot-col h5{ font-size:0.8rem; font-weight:700; margin-bottom:14px; color: var(--fg-faint); text-transform:uppercase; letter-spacing:.05em; }
.foot-col ul{ display:flex; flex-direction:column; gap:10px; }
.foot-col a{ color: var(--fg-muted); font-size:0.9rem; }
.foot-col a:hover{ color: var(--primary); }
.foot-bottom{
  margin-top:40px; padding-top:22px; border-top:1px solid var(--border);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; color: var(--fg-faint); font-size:0.83rem;
}
.foot-pieces{ display:flex; gap:4px; }
.foot-pieces span{ width:8px; height:8px; border-radius:2px; }
.foot-pieces span:nth-child(1){ background: var(--blue); }
.foot-pieces span:nth-child(2){ background: var(--red); }
.foot-pieces span:nth-child(3){ background: var(--amber); }
.foot-pieces span:nth-child(4){ background: var(--green); }

/* ---------------- Back to top ---------------- */
.back-to-top{
  position:fixed; right:24px; bottom:24px; z-index:250;
  width:46px; height:46px; border-radius:50%; border:1px solid var(--border);
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--fg); box-shadow: var(--shadow-md); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, border-color .15s ease;
}
.back-to-top.is-visible{ opacity:1; visibility:visible; transform: translateY(0); }
.back-to-top:hover{ border-color: var(--primary); color: var(--primary); }
.back-to-top svg{ width:20px; height:20px; }
@media (max-width: 760px){ .back-to-top{ right:16px; bottom:16px; width:42px; height:42px; } }

@media (max-width: 760px){
  .nav-links{
    display:none; position:absolute; top: var(--nav-h); left:0; right:0; flex-direction:column; align-items:stretch;
    background: var(--surface-solid); border-bottom:1px solid var(--border); padding: 10px 16px 16px; gap:2px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open{ display:flex; }
  .nav-links a{ padding:12px 14px; }
  .nav-toggle{ display:flex; }
}
