/* Sello static site. Tokens and effects mirror src/app/globals.css in the Next.js app. */
:root {
  --background: oklch(0.99 0.005 90);
  --foreground: oklch(0.18 0.02 260);
  --card: oklch(1 0 0);
  --primary: oklch(0.55 0.18 162);
  --primary-foreground: oklch(0.99 0.01 162);
  --secondary: oklch(0.96 0.01 260);
  --muted: oklch(0.96 0.005 260);
  --muted-foreground: oklch(0.50 0.02 260);
  --accent: oklch(0.94 0.04 162);
  --border: oklch(0.92 0.005 260);
  --maker: oklch(0.68 0.21 41);
  --chat-bg: oklch(0.97 0.005 120);
  --emerald: #10b981;
  --cyan: #06b6d4;
  --radius: 0.65rem;
  --shadow-lg: 0 30px 60px -30px oklch(0.30 0.08 162 / 0.35);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: oklch(0.14 0.015 260);
    --foreground: oklch(0.97 0.005 90);
    --card: oklch(0.18 0.02 260);
    --primary: oklch(0.70 0.16 162);
    --primary-foreground: oklch(0.15 0.04 162);
    --secondary: oklch(0.25 0.02 260);
    --muted: oklch(0.22 0.015 260);
    --muted-foreground: oklch(0.70 0.02 260);
    --accent: oklch(0.28 0.06 162);
    --border: oklch(0.27 0.02 260);
    --maker: oklch(0.72 0.20 42);
    --chat-bg: oklch(0.16 0.015 260);
    --shadow-lg: 0 30px 60px -30px oklch(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --background: oklch(0.14 0.015 260);
  --foreground: oklch(0.97 0.005 90);
  --card: oklch(0.18 0.02 260);
  --primary: oklch(0.70 0.16 162);
  --primary-foreground: oklch(0.15 0.04 162);
  --secondary: oklch(0.25 0.02 260);
  --muted: oklch(0.22 0.015 260);
  --muted-foreground: oklch(0.70 0.02 260);
  --accent: oklch(0.28 0.06 162);
  --border: oklch(0.27 0.02 260);
  --maker: oklch(0.72 0.20 42);
  --chat-bg: oklch(0.16 0.015 260);
  --shadow-lg: 0 30px 60px -30px oklch(0 0 0 / 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "rlig" 1, "calt" 1, "ss01" 1;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }
::selection { background: color-mix(in oklch, var(--primary) 35%, transparent); }
a { color: var(--primary); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
svg { flex: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

/* ── Backdrops (from the app) ───────────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--foreground) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--foreground) 6%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-radial-fade {
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
}
.backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb {
  position: absolute; left: 50%; top: 0; z-index: -1; pointer-events: none;
  width: min(900px, 140vw); height: 600px; transform: translate(-50%, -38%);
  border-radius: 50%; filter: blur(64px);
  background: radial-gradient(closest-side, oklch(0.72 0.18 162 / 0.42), transparent 75%);
}
.stage { position: relative; isolation: isolate; overflow: hidden; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  background: color-mix(in oklch, var(--card) 70%, transparent);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--foreground); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 18px; }
.brand-maker { white-space: nowrap; margin-top: 4px; font-size: 9px; font-weight: 400; letter-spacing: 0.04em; color: var(--muted-foreground); }
.brand-maker b { font-family: "Zen Dots", "Inter", sans-serif; font-weight: 400; color: var(--foreground); }
.brand-maker b span { color: var(--maker); }

.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { color: var(--muted-foreground); text-decoration: none; transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--foreground); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--primary-foreground); }
.nav .hide-sm { display: none; }
@media (min-width: 760px) { .nav .hide-sm { display: inline; } }
@media (max-width: 420px) { .nav { gap: 16px; } }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .2s, transform .15s, filter .15s;
}
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 16px; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 8px 24px -10px color-mix(in oklch, var(--primary) 70%, transparent); }
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 12px 28px -10px color-mix(in oklch, var(--primary) 85%, transparent); }
.btn-outline { background: color-mix(in oklch, var(--card) 80%, transparent); color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { background: var(--muted); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Type ───────────────────────────────────────────────── */
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.03; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.gradient-text { background: linear-gradient(90deg, var(--emerald), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.125rem; color: var(--muted-foreground); margin: 20px 0 0; max-width: 40rem; }
.muted { color: var(--muted-foreground); }
.section { padding: 80px 0; }
@media (min-width: 1024px) { .section { padding: 104px 0; } }
.section-head { max-width: 44rem; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
  background: color-mix(in oklch, var(--card) 60%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 500; color: var(--muted-foreground);
}
.eyebrow svg { width: 14px; height: 14px; color: var(--primary); }

/* ── Hero ───────────────────────────────────────────────── */
.hero .container { display: grid; gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
@media (min-width: 1024px) { .hero .container { grid-template-columns: 1.1fr 1fr; padding-top: 128px; padding-bottom: 120px; } }
.hero h1 { margin-top: 22px; }
.hero .sub { margin: 14px 0 0; font-size: 14px; font-weight: 500; color: color-mix(in oklch, var(--primary) 90%, transparent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 28rem; margin: 52px 0 0; }
.stats dt { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; }
.stats dd { margin: 4px 0 0; font-size: 14px; color: var(--muted-foreground); }

/* Chat preview */
.chat-wrap { position: relative; width: 100%; max-width: 440px; justify-self: center; }
.chat-wrap::before {
  content: ""; position: absolute; inset: -28px; z-index: -1; border-radius: 2.5rem; filter: blur(32px);
  background: linear-gradient(135deg, oklch(0.80 0.15 162 / 0.30), oklch(0.80 0.12 210 / 0.15) 50%, transparent);
}
.chat {
  margin: 0; border: 1px solid color-mix(in oklch, var(--border) 60%, transparent); border-radius: 2rem;
  background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald), var(--cyan)); display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 600; }
.chat-head .name { font-weight: 500; font-size: 14px; line-height: 1.25; }
.chat-head .status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--emerald); }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px; min-height: 320px; background: var(--chat-bg); }
.bubble { max-width: 78%; padding: 8px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; box-shadow: 0 1px 2px oklch(0 0 0 / 0.06); }
.bubble.user { align-self: flex-end; background: var(--emerald); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--card); border: 1px solid color-mix(in oklch, var(--border) 60%, transparent); border-bottom-left-radius: 4px; }
.chat.animated .bubble { display: none; }
.chat.animated .bubble.shown { display: block; animation: pop .28s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.typing { display: none; align-self: flex-start; gap: 4px; padding: 10px 12px; border-radius: 18px; border-bottom-left-radius: 4px; background: var(--card); border: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }
.typing.shown { display: inline-flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-foreground); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }
.composer .field { flex: 1; border-radius: 999px; background: var(--secondary); padding: 8px 16px; font-size: 12px; color: var(--muted-foreground); }
.composer .send { width: 32px; height: 32px; border-radius: 50%; background: var(--emerald); color: #fff; display: grid; place-items: center; }
.chat-tag {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--border) 60%, transparent); background: var(--card);
  font-size: 12px; color: var(--muted-foreground); box-shadow: 0 10px 30px -12px oklch(0 0 0 / 0.3);
}
.chat-tag svg { width: 14px; height: 14px; color: var(--primary); }

/* ── Cards ──────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; border: 1px solid color-mix(in oklch, var(--border) 60%, transparent); border-radius: 16px; background: var(--card); padding: 24px; }
.card p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted-foreground); }
.step { transition: transform .25s, box-shadow .25s, border-color .25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklch, var(--primary) 35%, var(--border)); }
.step-num { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in oklch, var(--primary) 12%, transparent); color: var(--primary); font-weight: 600; }

/* Feature grid with hairline dividers, like the app */
.feature-grid {
  margin-top: 56px; display: grid; gap: 1px; overflow: hidden; border-radius: 18px;
  border: 1px solid color-mix(in oklch, var(--border) 60%, transparent); background: var(--border);
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--card); padding: 26px 24px; transition: background-color .2s; }
.feature:hover { background: color-mix(in oklch, var(--accent) 35%, var(--card)); }
.feature p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted-foreground); }
.icon-chip { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in oklch, var(--primary) 12%, transparent); color: var(--primary); transition: transform .2s; }
.icon-chip svg { width: 20px; height: 20px; }
.feature:hover .icon-chip, .tier:hover .icon-chip { transform: scale(1.1); }
.tint-sky { color: #0ea5e9; background: color-mix(in oklch, #0ea5e9 12%, transparent); }
.tint-violet { color: #8b5cf6; background: color-mix(in oklch, #8b5cf6 12%, transparent); }
.tint-cyan { color: var(--cyan); background: color-mix(in oklch, #06b6d4 12%, transparent); }
.tint-amber { color: #f59e0b; background: color-mix(in oklch, #f59e0b 12%, transparent); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pills li { padding: 5px 13px; border-radius: 999px; border: 1px solid color-mix(in oklch, var(--border) 60%, transparent); background: color-mix(in oklch, var(--background) 60%, transparent); font-size: 14px; color: color-mix(in oklch, var(--foreground) 80%, transparent); }

.band {
  margin-top: 56px; border: 1px solid color-mix(in oklch, var(--border) 60%, transparent); border-radius: 18px; padding: 30px 24px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--emerald) 6%, var(--card)), var(--card) 50%, color-mix(in oklch, var(--cyan) 6%, var(--card)));
  display: grid; gap: 20px; align-items: center;
}
@media (min-width: 1024px) { .band { grid-template-columns: minmax(0, 28rem) 1fr; padding: 40px; } .band .pills { justify-content: flex-end; } }
.band h3 { font-size: 1.25rem; }
.band p { margin: 8px 0 0; font-size: 14px; color: var(--muted-foreground); }

.cta-box {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--border) 60%, transparent); border-radius: 28px; padding: 56px 24px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--emerald) 12%, var(--card)), var(--card) 50%, color-mix(in oklch, var(--cyan) 12%, var(--card)));
}
@media (min-width: 640px) { .cta-box { padding: 80px 64px; } }
.cta-box .backdrop { opacity: .5; }

/* ── Pricing ────────────────────────────────────────────── */
.pricing-head { text-align: center; max-width: 44rem; margin: 0 auto; }
.pricing-head h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-top: 22px; }
.pricing-head .lead { margin-left: auto; margin-right: auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--muted-foreground); border: 1px solid color-mix(in oklch, var(--border) 60%, transparent); background: color-mix(in oklch, var(--card) 70%, transparent); }
.chip svg { width: 14px; height: 14px; color: var(--primary); }

.tiers { display: grid; gap: 24px; margin-top: 64px; align-items: stretch; }
@media (min-width: 1024px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { display: flex; flex-direction: column; padding: 28px; transition: transform .25s, box-shadow .25s; }
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tier.highlight { border-color: color-mix(in oklch, var(--primary) 45%, transparent); box-shadow: 0 30px 60px -28px color-mix(in oklch, var(--primary) 45%, transparent); }
.tier.highlight::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 17px; filter: blur(2px); opacity: .85;
  background: linear-gradient(to bottom, color-mix(in oklch, var(--emerald) 45%, transparent), color-mix(in oklch, var(--cyan) 20%, transparent), transparent);
}
.tier.highlight::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, oklch(0.72 0.18 162 / 0.30), transparent 75%); filter: blur(20px);
}
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: var(--primary); color: var(--primary-foreground); font-size: 12px; font-weight: 500;
  padding: 4px 12px; border-radius: 999px; box-shadow: 0 6px 16px -6px color-mix(in oklch, var(--primary) 80%, transparent);
}
.badge .ping { position: relative; width: 6px; height: 6px; }
.badge .ping::before, .badge .ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--primary-foreground); }
.badge .ping::before { animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite; opacity: .7; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tier h2 { font-size: 1.3rem; letter-spacing: -0.015em; }
.tier .desc { margin-top: 8px; font-size: 14px; color: var(--muted-foreground); min-height: 3.2em; }
.prices { margin-top: 22px; display: grid; gap: 4px; }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price .amt { font-size: 2rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; white-space: nowrap; }
.price .amt small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted-foreground); }
.price .where { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); white-space: nowrap; }
.price.alt .amt { font-size: 1.15rem; letter-spacing: -0.02em; }
.divider { height: 1px; background: color-mix(in oklch, var(--border) 70%, transparent); margin: 22px 0 0; }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; font-size: 14px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%;
  background: color-mix(in oklch, var(--primary) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.tier .btn { margin-top: auto; width: 100%; }

.addon {
  margin-top: 48px; position: relative; isolation: isolate; overflow: hidden; padding: 28px;
  display: grid; gap: 24px; align-items: center;
  background: linear-gradient(135deg, color-mix(in oklch, var(--cyan) 6%, var(--card)), var(--card) 50%, color-mix(in oklch, var(--emerald) 6%, var(--card)));
}
.addon .backdrop { opacity: .3; }
@media (min-width: 1024px) { .addon { grid-template-columns: auto 1fr auto; padding: 32px; } }
.addon h2 { font-size: 1.15rem; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.addon p { max-width: 38rem; }
.addon .icon-chip { margin: 0; width: 44px; height: 44px; }
.addon-price { text-align: left; }
@media (min-width: 1024px) { .addon-price { text-align: right; } }
.addon-price .amt { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.addon-price .amt small { font-size: 14px; font-weight: 400; color: var(--muted-foreground); }
.addon-price .sub { font-size: 13px; color: var(--muted-foreground); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid color-mix(in oklch, var(--border) 60%, transparent); background: color-mix(in oklch, var(--background) 80%, transparent); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }

.fine { margin: 40px auto 0; max-width: 44rem; font-size: 14px; color: var(--muted-foreground); text-align: center; }
.fine p { margin: 4px 0; }

/* ── Legal / prose pages ────────────────────────────────── */
.page-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent); }
.page-hero .container { padding-top: 64px; padding-bottom: 48px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); margin-top: 18px; }
.page-hero .meta { margin: 14px 0 0; font-size: 14px; color: var(--muted-foreground); }
.page-hero .lead { margin-top: 14px; }

.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 24px; }
@media (min-width: 1024px) { .doc { grid-template-columns: 240px minmax(0, 46rem); justify-content: center; gap: 64px; } }
.doc-nav { font-size: 14px; }
@media (min-width: 1024px) { .doc-nav { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; } }
.doc-nav strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); margin-bottom: 10px; }
.doc-nav ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--border); }
.doc-nav li a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted-foreground); text-decoration: none; line-height: 1.45; }
.doc-nav li a:hover { color: var(--foreground); border-left-color: var(--primary); }
@media (max-width: 1023px) {
  .doc-nav { border: 1px solid color-mix(in oklch, var(--border) 60%, transparent); border-radius: 14px; background: var(--card); padding: 16px 18px; }
  .doc-nav ol { border: 0; columns: 2; column-gap: 20px; }
  .doc-nav li a { padding-left: 0; border: 0; }
}
@media (max-width: 480px) { .doc-nav ol { columns: 1; } }

.prose h2 { font-size: 1.35rem; margin: 44px 0 12px; scroll-margin-top: 84px; letter-spacing: -0.02em; }
.prose > h2:first-child, .prose > .callout:first-child { margin-top: 0; }
.prose h3 { font-size: 1.02rem; margin: 26px 0 6px; scroll-margin-top: 84px; }
.prose p, .prose li { color: color-mix(in oklch, var(--foreground) 85%, var(--muted-foreground)); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--primary); }
.callout {
  border: 1px solid color-mix(in oklch, var(--primary) 30%, var(--border)); border-radius: 14px; padding: 18px 20px; margin: 0 0 28px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--emerald) 8%, var(--card)), var(--card));
}
.callout p { margin: 0; }
.callout p + p { margin-top: 10px; }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid color-mix(in oklch, var(--border) 70%, transparent); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent); vertical-align: top; }
th { background: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.contact-grid { display: grid; gap: 16px; padding-top: 40px; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { display: flex; gap: 16px; align-items: flex-start; transition: transform .25s, box-shadow .25s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-card .icon-chip { margin: 0; }
.contact-card h2 { font-size: 1rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.contact-card p { margin: 0; font-size: 15px; color: var(--foreground); }
.contact-card p.muted { font-size: 13px; margin-top: 6px; color: var(--muted-foreground); }
address { font-style: normal; }
.note { margin-top: 28px; font-size: 14px; color: var(--muted-foreground); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid color-mix(in oklch, var(--border) 60%, transparent); margin-top: 96px; padding: 44px 0; font-size: 14px; color: var(--muted-foreground); }
.site-footer .container { display: grid; gap: 24px; }
@media (min-width: 900px) { .site-footer .container { grid-template-columns: 1fr auto; align-items: start; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-links a { color: var(--muted-foreground); text-decoration: none; }
.footer-links a:hover { color: var(--foreground); }
.legal-line { font-size: 13px; margin: 10px 0 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ── Motion (enabled by site.js only) ───────────────────── */
.js-motion [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--d, 0s); }
.js-motion [data-reveal].in { opacity: 1; transform: none; }
.rise { animation: rise .6s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ══ Design pass 2: header controls, product visuals, motion ══════════ */

/* Header: theme toggle + mobile menu */
.nav .nav-link { display: none; }
@media (min-width: 860px) { .nav .nav-link { display: inline; } }
.theme-toggle {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; cursor: pointer;
  border: 1px solid color-mix(in oklch, var(--border) 70%, transparent); background: transparent; color: var(--muted-foreground);
  transition: color .15s, background-color .15s;
}
.theme-toggle:hover { color: var(--foreground); background: var(--muted); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu { position: relative; }
@media (min-width: 860px) { .menu { display: none; } }
.menu summary {
  list-style: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; cursor: pointer;
  border: 1px solid color-mix(in oklch, var(--border) 70%, transparent); color: var(--foreground);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 18px; height: 18px; }
.menu[open] summary { background: var(--muted); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; padding: 8px; border-radius: 14px;
  border: 1px solid color-mix(in oklch, var(--border) 70%, transparent); background: var(--card); box-shadow: var(--shadow-lg);
  display: grid; animation: pop .18s ease-out both;
}
.nav .menu-panel a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--foreground); font-size: 15px; }
.nav .menu-panel a:hover { background: var(--muted); }
@media (max-width: 420px) { .nav { gap: 8px; } .nav .btn-sm { padding: 0 11px; } }

/* Hero: phone + floating app cards */
.hero-visual { position: relative; width: 100%; max-width: 520px; justify-self: center; padding: 8px 0 24px; }
.hero-visual::before {
  content: ""; position: absolute; inset: 4% 8%; z-index: -1; border-radius: 3rem; filter: blur(40px);
  background: linear-gradient(135deg, oklch(0.80 0.15 162 / 0.35), oklch(0.80 0.12 210 / 0.18) 55%, transparent);
}
.phone {
  position: relative; width: min(340px, 100%); margin: 0 auto; padding: 10px; border-radius: 2.6rem;
  background: linear-gradient(160deg, color-mix(in oklch, var(--foreground) 14%, var(--card)), var(--card));
  border: 1px solid color-mix(in oklch, var(--border) 80%, transparent); box-shadow: var(--shadow-lg), inset 0 1px 0 oklch(1 0 0 / .06);
}
.phone .chat { border-radius: 2rem; box-shadow: none; }
.phone .chat-head { padding-top: 26px; }
.phone .chat-body { min-height: 340px; }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 20px; border-radius: 999px; background: color-mix(in oklch, var(--foreground) 85%, black); z-index: 2; opacity: .9; }

.float {
  position: absolute; z-index: 3; padding: 12px 14px; border-radius: 16px; font-size: 12px;
  border: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
  background: color-mix(in oklch, var(--card) 86%, transparent);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 24px 48px -24px oklch(0 0 0 / .45);
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-8px); } }
.float-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 12px; margin-bottom: 8px; }
.float-title .count { font-weight: 500; color: var(--muted-foreground); }
.float-usage { width: 196px; right: -48px; top: 150px; animation-delay: -3s; }
.usage-num b { font-size: 22px; letter-spacing: -0.02em; }
.usage-num small { color: var(--muted-foreground); }
.meter { height: 6px; border-radius: 999px; background: var(--muted); margin: 8px 0 8px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--emerald), var(--cyan)); animation: fill 1.6s cubic-bezier(.22, 1, .36, 1) .6s both; }
@keyframes fill { from { width: 0 !important; } }
@media (max-width: 640px) {
  .float-usage { display: none; }
  .float-source { left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 0; }
}

/* Pro card: animated gradient border */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.tier.highlight {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    conic-gradient(from var(--angle), color-mix(in oklch, var(--emerald) 90%, transparent), color-mix(in oklch, var(--cyan) 70%, transparent), color-mix(in oklch, var(--border) 60%, transparent) 40%, color-mix(in oklch, var(--border) 60%, transparent) 60%, color-mix(in oklch, var(--emerald) 90%, transparent)) border-box;
  animation: spin-border 6s linear infinite;
}
@keyframes spin-border { to { --angle: 360deg; } }

/* Parallax-ready orb + nicer type rhythm */
.orb { will-change: transform; }
h2 + .lead { margin-top: 18px; }
.section-head h2 { max-width: 20ch; }
.feature h3, .card h3 { margin-top: 2px; }
.orb { transform: translate(calc(-50% + var(--px, 0px)), calc(-38% + var(--py, 0px))); }

/* Hero card placement: keep cards off the conversation itself */
.phone .chat-head { padding-top: 36px; }
.phone .chat-body { min-height: 400px; }
.float-usage { right: -118px; top: 84px; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }
.phone .chat-body { min-height: 360px; }
.phone-notch { background: oklch(0.13 0.012 260); opacity: 1; }

/* Hero knowledge-source card and 3-column feature grid */
.float-source { left: -72px; bottom: 44px; display: flex; align-items: center; gap: 10px; animation-delay: -5s; }
.float-source b, .float-source small { display: block; line-height: 1.35; }
.src-icon { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; color: var(--primary); background: color-mix(in oklch, var(--primary) 14%, transparent); }
.src-icon svg { width: 16px; height: 16px; }
@media (max-width: 1180px) { .float-source { left: -20px; } .float-usage { right: -40px; } }
@media (min-width: 1024px) { .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .float-source { left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 0; } }

/* Region pricing: one currency per visitor, like the app (CF country; default International) */
:root:not([data-geo="sl"]) [data-region="sl"],
:root[data-geo="sl"] [data-region="intl"] { display: none !important; }
:root.region-pending [data-region] { visibility: hidden; }
.tier .prices { min-height: 2.6rem; }
.fine { margin-top: 28px; font-size: 12px; line-height: 1.5; opacity: .75; }
.fine p { margin: 0; }
