/* ============================================================
   toplanti.ai — landing page styles
   Crisp neutral type (Geist), indigo accent, dark+light.
   ============================================================ */

/* ---- Theme tokens ---- */
:root {
  /* accent is overridden by the Tweaks panel at runtime */
  --accent: #4f46e5;
  --accent-ink: #ffffff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* DARK (default) */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #08080b;
  --bg-grid:   rgba(255,255,255,.035);
  --panel:     #0e0e14;
  --surface:   #121219;
  --surface-2: #17171f;
  --surface-3: #1d1d27;
  --border:    rgba(255,255,255,.08);
  --border-2:  rgba(255,255,255,.14);
  --text:      #f3f3f6;
  --text-2:    #b3b3bf;
  --text-3:    #76767f;
  --shadow:    0 30px 80px -20px rgba(0,0,0,.65);
  --glow:      color-mix(in oklab, var(--accent) 55%, transparent);
  --tint:      color-mix(in oklab, var(--accent) 12%, transparent);
  --accent-soft: color-mix(in oklab, var(--accent) 22%, var(--surface));
  --on-accent: #ffffff;
}

/* LIGHT */
:root[data-theme="light"] {
  color-scheme: light;
  --bg:        #f7f7f9;
  --bg-grid:   rgba(10,10,25,.045);
  --panel:     #ffffff;
  --surface:   #ffffff;
  --surface-2: #f4f4f7;
  --surface-3: #ecedf1;
  --border:    rgba(12,12,30,.10);
  --border-2:  rgba(12,12,30,.16);
  --text:      #111118;
  --text-2:    #51515c;
  --text-3:    #87878f;
  --shadow:    0 30px 70px -28px rgba(20,20,50,.28);
  --glow:      color-mix(in oklab, var(--accent) 38%, transparent);
  --tint:      color-mix(in oklab, var(--accent) 8%, transparent);
  --accent-soft: color-mix(in oklab, var(--accent) 12%, #ffffff);
  --on-accent: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Suppress all transitions during a theme switch so var-based backgrounds
   repaint instantly instead of stalling on a pending transition. */
html.theme-switching, html.theme-switching * { transition: none !important; }

html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  letter-spacing: -0.011em;
  transition: background .4s var(--ease), color .4s var(--ease);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { position: relative; padding: 120px 0; }
@media (max-width: 760px){ .section { padding: 84px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: 100px;
  background: var(--tint);
  white-space: nowrap;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }

.sec-head { max-width: 680px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.04; letter-spacing: -0.03em; font-weight: 600;
  margin: 20px 0 16px;
}
.sec-head p { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); line-height: 1.55; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px;
  border-radius: 11px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 30px -10px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 16px 40px -10px var(--glow); }
.btn-secondary {
  background: var(--surface-2); color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover { transform: translateY(-2px); background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 13px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 9px; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.nav-links { display: flex; align-items: center; gap: 28px; margin: 0 auto; }
.nav-links a {
  font-size: 14.5px; color: var(--text-2); font-weight: 450;
  transition: color .18s; position: relative; padding: 4px 0;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .login { font-size: 14.5px; color: var(--text-2); font-weight: 450; white-space: nowrap; }
.nav-cta .login:hover { color: var(--text); }

/* ---- Logo / wordmark ---- */
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(150deg, color-mix(in oklab, var(--accent) 88%, white) 0%, var(--accent) 55%, color-mix(in oklab, var(--accent) 70%, black) 100%);
  display: grid; place-items: center;
  box-shadow: 0 4px 16px -4px var(--glow), 0 0 0 1px rgba(255,255,255,.12) inset;
  position: relative; flex: none;
}
.logo .mark::before { /* outer ring */
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.55);
}
.logo .mark::after { /* center dot */
  content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.9);
}
.logo .word { font-size: 19px; letter-spacing: -0.03em; }
.logo .word .dim { color: var(--text-3); font-weight: 500; }
.logo .mark.pulse::after { animation: dotpulse 2.6s var(--ease) infinite; }
@keyframes dotpulse { 0%,100%{ transform: scale(1); opacity:1 } 50%{ transform: scale(1.5); opacity:.7 } }

.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border:1px solid var(--border-2); background: var(--surface-2); color: var(--text); align-items:center; justify-content:center; }
.menu-btn svg { width: 20px; height: 20px; }

@media (max-width: 900px){
  .nav-links { display: none; }
  .nav-cta .login { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 84px 0 60px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -10% 0 auto 0; height: 760px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(680px 420px at 50% -8%, var(--glow), transparent 70%),
    radial-gradient(900px 500px at 80% 0%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 72%);
  opacity: .9;
}
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--bg-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { text-align: center; max-width: 880px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(40px, 6.6vw, 78px);
  line-height: 0.98; letter-spacing: -0.045em; font-weight: 600;
  margin: 26px 0 22px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--text), color-mix(in oklab, var(--accent) 70%, var(--text)));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .sub { font-size: clamp(17px, 1.9vw, 21px); color: var(--text-2); max-width: 620px; margin: 0 auto; line-height: 1.55; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-note { position: relative; z-index: 3; margin-top: 18px; font-size: 13.5px; color: var(--text-3); display:flex; gap: 16px; justify-content:center; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--accent); }

/* ---- App window mock over blurred call ---- */
.stage { position: relative; margin: 104px auto 0; max-width: 1060px; z-index: 1; }
.call-bg {
  position: absolute; inset: -6% -4% 8% -4%; z-index: 0;
  border-radius: 24px; overflow: hidden;
  filter: blur(14px) saturate(115%); opacity: .55; transform: scale(1.02);
}
.call-grid { position:absolute; inset:0; display:grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(2,1fr); gap: 10px; padding: 12px; }
.call-tile { border-radius: 14px; background: var(--surface-2); position: relative; overflow:hidden; }
.call-tile::after { content:""; position:absolute; inset:0; background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 30%, transparent), transparent 60%); }
.call-tile .av { position:absolute; left:50%; top:46%; transform:translate(-50%,-50%); width:34%; aspect-ratio:1; border-radius:50%; background: var(--surface-3); }
.call-tile:nth-child(2)::after { background: linear-gradient(135deg, color-mix(in oklab, #22d3a7 30%, transparent), transparent 60%); }
.call-tile:nth-child(4)::after { background: linear-gradient(135deg, color-mix(in oklab, #f59e0b 26%, transparent), transparent 60%); }
.call-tile:nth-child(5)::after { background: linear-gradient(135deg, color-mix(in oklab, #ec4899 26%, transparent), transparent 60%); }

.app-window {
  position: relative; z-index: 2; width: min(620px, 92%); margin-left: auto; margin-right: 6%;
  background: color-mix(in oklab, var(--panel) 86%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--border-2);
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.aw-bar { display:flex; align-items:center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.traffic { display: flex; gap: 7px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; display:block; }
.traffic i:nth-child(1){ background:#ff5f57 } .traffic i:nth-child(2){ background:#febc2e } .traffic i:nth-child(3){ background:#28c840 }
.aw-title { font-size: 12.5px; color: var(--text-3); font-family: var(--font-mono); letter-spacing: .02em; }
.rec-pill { margin-left: auto; display:inline-flex; align-items:center; gap:7px; font-size:12px; color: var(--text-2);
  padding: 4px 10px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--border); font-family: var(--font-mono); }
.rec-pill .live { width:7px; height:7px; border-radius:50%; background:#ff5f57; box-shadow:0 0 0 0 rgba(255,95,87,.5); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0%{box-shadow:0 0 0 0 rgba(255,95,87,.5)} 70%{box-shadow:0 0 0 7px rgba(255,95,87,0)} 100%{box-shadow:0 0 0 0 rgba(255,95,87,0)} }

.aw-body { padding: 22px 22px 26px; }
.aw-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing:.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.aw-h { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 16px; }
.aw-sum { font-size: 14px; color: var(--text-2); line-height: 1.6; min-height: 60px; }
.aw-cursor { display:inline-block; width: 2px; height: 1.05em; background: var(--accent); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50%{ opacity: 0 } }

.aw-divider { height:1px; background: var(--border); margin: 18px 0; }
.aw-sub { font-size: 12px; font-family: var(--font-mono); letter-spacing:.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.aw-action { display:flex; align-items:flex-start; gap: 11px; font-size: 14px; padding: 7px 0; opacity: 0; transform: translateY(6px); }
.aw-action.in { opacity: 1; transform: none; transition: all .5s var(--ease); }
.aw-check { width:18px; height:18px; border-radius: 6px; border: 1.5px solid var(--accent); flex:none; margin-top:1px; display:grid; place-items:center; color: var(--accent); }
.aw-check svg{ width:11px;height:11px; opacity:0; transition: opacity .3s .2s; }
.aw-action.in .aw-check svg { opacity: 1; }
.aw-action .who { color: var(--text-3); }

/* floating chips around window */
.float-chip {
  position: absolute; z-index: 3; display:inline-flex; align-items:center; gap:8px;
  padding: 9px 13px; border-radius: 12px; font-size: 13px; font-weight: 500;
  background: color-mix(in oklab, var(--panel) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
}
.float-chip svg { width: 15px; height: 15px; color: var(--accent); }
.float-chip.fc1 { left: -2%; top: 30%; }
.float-chip.fc2 { left: 4%; bottom: 14%; }
.float-chip.fc3 { right: 60%; top: -3%; }
@media (max-width: 720px){ .float-chip{ display:none; } .app-window{ margin: 0 auto; width: 96%; } .call-bg{ inset:-4% 0 6% 0; } }

.floaty { animation: floaty 7s ease-in-out infinite; }
.floaty.d1 { animation-delay: -2s; } .floaty.d2 { animation-delay: -4s; }
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }

/* ---- marquee trust strip ---- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.trust-inner { display:flex; align-items:center; gap: 40px; justify-content: center; flex-wrap: wrap; }
.trust-item { display:flex; align-items:center; gap: 10px; color: var(--text-2); font-size: 14.5px; }
.trust-item svg { width: 18px; height: 18px; color: var(--accent); }
.trust-item strong { color: var(--text); font-weight: 600; }

/* ============================================================
   How it works
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 860px){ .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden;
}
.step::before { /* connecting flow accent top */
  content:""; position:absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity:.6;
}
.step .num {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  width: 38px; height: 38px; border-radius: 10px; display:grid; place-items:center;
  background: var(--tint); border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  margin-bottom: 22px;
}
.step h3 { font-size: 20px; letter-spacing: -0.02em; font-weight: 600; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.step .visual { margin-top: 22px; height: 116px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); position: relative; overflow:hidden; }

/* step visuals */
.sv-rows { padding: 14px; display:flex; flex-direction:column; gap:9px; }
.sv-row { height: 9px; border-radius: 5px; background: var(--surface-3); }
.sv-row.a { width: 86%; } .sv-row.b{ width: 64%; } .sv-row.c{ width: 74%; background: color-mix(in oklab, var(--accent) 40%, var(--surface-3)); }
.sv-wave { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:5px; }
.sv-wave i { width: 5px; border-radius: 4px; background: var(--accent); opacity:.85; animation: wave 1.3s ease-in-out infinite; }
@keyframes wave { 0%,100%{ height: 14px } 50%{ height: 52px } }
.sv-badge { position:absolute; inset:0; display:grid; place-items:center; }
.sv-badge .b { padding: 8px 14px; border-radius: 100px; background: var(--tint); border:1px solid color-mix(in oklab, var(--accent) 30%, transparent); color: var(--accent); font-size: 13px; font-family: var(--font-mono); display:inline-flex; gap:8px; align-items:center; }

/* ============================================================
   Bento feature grid
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; gap: 18px; }
.card {
  position: relative; border-radius: var(--radius-lg); padding: 26px;
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.card .icon { width: 40px; height: 40px; border-radius: 11px; display:grid; place-items:center; background: var(--tint); color: var(--accent); border:1px solid color-mix(in oklab, var(--accent) 24%, transparent); margin-bottom: 16px; }
.card .icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.card .glow { position:absolute; width: 280px; height: 280px; border-radius:50%; background: radial-gradient(circle, var(--glow), transparent 70%); opacity:0; transition: opacity .4s; pointer-events:none; }
.card:hover .glow { opacity: .5; }

.c-wide { grid-column: span 4; }
.c-tall { grid-column: span 2; grid-row: span 2; }
.c-2 { grid-column: span 2; }
.c-3 { grid-column: span 3; }
@media (max-width: 980px){
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .c-wide,.c-tall,.c-2,.c-3 { grid-column: span 1; grid-row: auto; }
}
@media (max-width: 560px){ .bento { grid-template-columns: 1fr; } }

/* feature card — privacy hero (tall) */
.privacy-card { display:flex; flex-direction: column; }
.privacy-card .shield { margin: auto 0; display:flex; align-items:center; justify-content:center; padding: 14px 0; }
.shield-ring { position: relative; width: 150px; height: 150px; border-radius: 50%; display:grid; place-items:center; }
.shield-ring::before,.shield-ring::after { content:""; position:absolute; border-radius:50%; border:1px solid color-mix(in oklab, var(--accent) 40%, transparent); inset:0; }
.shield-ring::after { inset: 22px; border-color: color-mix(in oklab, var(--accent) 55%, transparent); animation: spin 14s linear infinite; border-style: dashed; }
.shield-core { width: 64px; height: 64px; border-radius: 18px; background: var(--accent); display:grid; place-items:center; color:#fff; box-shadow: 0 0 30px var(--glow); }
.shield-core svg { width: 30px; height: 30px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* mini export logos row */
.export-row { display:flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.export-pill { display:inline-flex; align-items:center; gap:8px; padding: 8px 13px; border-radius: 100px; background: var(--surface-2); border:1px solid var(--border); font-size: 13px; color: var(--text-2); }
.export-pill .swatch { width: 16px; height: 16px; border-radius: 5px; }

.lang-flags { display:flex; gap:8px; flex-wrap:wrap; margin-top: 14px; }
.lang-flags span { font-size: 13px; font-family: var(--font-mono); color: var(--text-2); padding: 5px 10px; border-radius: 8px; background: var(--surface-2); border:1px solid var(--border); }

/* ============================================================
   Privacy by design
   ============================================================ */
.privacy { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.privacy-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 880px){ .privacy-grid { grid-template-columns: 1fr; gap: 40px; } }
.privacy-points { display:flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.pp { display:flex; gap: 16px; }
.pp .pico { width: 42px; height: 42px; flex:none; border-radius: 12px; background: var(--tint); border:1px solid color-mix(in oklab, var(--accent) 26%, transparent); display:grid; place-items:center; color: var(--accent); }
.pp .pico svg { width: 21px; height: 21px; }
.pp h4 { font-size: 16.5px; font-weight: 600; margin-bottom: 5px; letter-spacing: -0.01em; }
.pp p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

/* data-flow diagram */
.flow {
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface);
  padding: 30px; position: relative; overflow: hidden;
}
.flow-track { display:flex; flex-direction: column; gap: 0; }
.flow-node { display:flex; align-items:center; gap: 16px; padding: 16px; border-radius: 14px; background: var(--surface-2); border:1px solid var(--border); position: relative; }
.flow-node .fn-ic { width: 44px; height:44px; border-radius: 12px; display:grid; place-items:center; flex:none; }
.flow-node .fn-ic svg { width: 22px; height: 22px; }
.flow-node h5 { font-size: 15px; font-weight: 600; }
.flow-node p { font-size: 13px; color: var(--text-3); font-family: var(--font-mono); }
.flow-node.device .fn-ic { background: var(--tint); color: var(--accent); border:1px solid color-mix(in oklab, var(--accent) 30%, transparent); }
.flow-node.secure .fn-ic { background: color-mix(in oklab, #22d3a7 16%, var(--surface-2)); color: #22d3a7; border:1px solid color-mix(in oklab, #22d3a7 30%, transparent); }
.flow-connector { height: 38px; margin-left: 38px; width: 2px; background: linear-gradient(var(--accent), color-mix(in oklab,var(--accent) 30%, transparent)); position: relative; }
.flow-connector .label { position:absolute; left: 16px; top:50%; transform: translateY(-50%); font-size: 12px; font-family: var(--font-mono); color: var(--text-2); white-space: nowrap; padding: 4px 10px; background: var(--surface); border:1px solid var(--border); border-radius: 100px; }
.flow-connector .pkt { position:absolute; left:-3px; width:8px; height:8px; border-radius:50%; background: var(--accent); box-shadow:0 0 10px var(--glow); animation: travel 2.4s var(--ease) infinite; }
@keyframes travel { 0%{ top: -4px; opacity:0 } 15%{opacity:1} 85%{opacity:1} 100%{ top: 100%; opacity:0 } }
.flow-cross { position:absolute; right: 22px; top: 92px; font-size: 12px; font-family: var(--font-mono); color: #ff6b6b; display:inline-flex; align-items:center; gap:6px; padding: 5px 11px; border-radius: 100px; background: color-mix(in oklab, #ff6b6b 14%, var(--surface)); border:1px solid color-mix(in oklab, #ff6b6b 34%, transparent); }
.flow-cross svg{ width:13px; height:13px; }

/* ============================================================
   Pricing
   ============================================================ */
.bill-toggle { display:inline-flex; align-items:center; gap: 4px; padding: 5px; border-radius: 100px; background: var(--surface-2); border:1px solid var(--border); margin: 0 auto 12px; }
.bill-toggle button { border:0; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; padding: 9px 20px; border-radius: 100px; transition: all .25s var(--ease); display:inline-flex; align-items:center; gap:8px; }
.bill-toggle button.active { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px -8px var(--glow); }
.bill-toggle .save { font-size: 11px; font-family: var(--font-mono); padding: 2px 7px; border-radius: 100px; background: color-mix(in oklab, #22d3a7 22%, transparent); color: #22d3a7; }
.bill-toggle button.active .save { background: rgba(255,255,255,.2); color: #fff; }
.bill-note { text-align:center; font-size: 13px; color: var(--text-3); margin-bottom: 44px; }

.pricing-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1080px){ .pricing-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .pricing-grid { grid-template-columns: 1fr; } }
.tier {
  position: relative; display:flex; flex-direction: column;
  padding: 28px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease), border-color .3s;
}
.tier:hover { transform: translateY(-4px); }
.tier.popular {
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  background: color-mix(in oklab, var(--accent) 6%, var(--surface));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent), 0 24px 60px -28px var(--glow);
}
.tier.popular::before {
  content: ""; position:absolute; inset:-1px; border-radius: inherit; padding:1px;
  background: linear-gradient(140deg, var(--accent), transparent 50%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none; opacity:.6;
}
.ribbon {
  position:absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 11.5px; font-family: var(--font-mono); letter-spacing:.06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; background: var(--accent); color: var(--on-accent);
  white-space: nowrap; box-shadow: 0 6px 18px -6px var(--glow);
}
.tier .t-name { font-size: 17px; font-weight: 600; letter-spacing:-0.01em; }
.tier .t-target { font-size: 13px; color: var(--text-3); margin-top: 3px; min-height: 34px; }
.tier .t-price { display:flex; align-items:baseline; gap: 4px; margin: 18px 0 4px; }
.tier .t-price .amt { font-size: 38px; font-weight: 600; letter-spacing: -0.03em; }
.tier .t-price .per { font-size: 13px; color: var(--text-3); }
.tier .t-sub { font-size: 13.5px; color: var(--text-2); min-height: 38px; line-height:1.45; }
.tier .btn { width: 100%; margin: 20px 0 22px; }
.t-feats { display:flex; flex-direction: column; gap: 12px; }
.t-feats .head { font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing:.08em; color: var(--text-3); margin-bottom: 2px; }
.t-feat { display:flex; gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.t-feat svg { width: 17px; height: 17px; color: var(--accent); flex:none; margin-top: 1px; }
.tier.popular .t-feat svg { color: var(--accent); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 760px; margin: 0 auto; display:flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-q { width:100%; text-align:left; display:flex; align-items:center; justify-content: space-between; gap: 16px; padding: 20px 22px; background:transparent; border:0; color:var(--text); font-size: 16px; font-weight: 500; }
.faq-q .ic { width: 22px; height:22px; flex:none; color: var(--text-3); transition: transform .3s var(--ease); }
.faq-item.open .faq-q .ic { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 22px 20px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }

/* ============================================================
   CTA + Footer
   ============================================================ */
.cta-band { position: relative; overflow: hidden; }
.cta-box {
  position: relative; border-radius: var(--radius-xl); padding: 70px 40px; text-align:center; overflow:hidden;
  background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 18%, var(--surface)), var(--surface));
  border: 1px solid var(--border-2);
}
.cta-box::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 50% -20%, var(--glow), transparent 70%); opacity:.6; }
.cta-box .inner { position: relative; z-index:1; }
.cta-box h2 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing:-0.03em; font-weight:600; line-height:1.04; margin-bottom: 16px; }
.cta-box p { font-size: 18px; color: var(--text-2); max-width: 520px; margin: 0 auto 30px; }
.cta-box .hero-cta { margin-top: 0; }

.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.foot-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 760px){ .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-brand p { font-size: 14px; color: var(--text-2); line-height:1.6; margin-top: 16px; max-width: 280px; }
.foot-col h5 { font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing:.1em; color: var(--text-3); margin-bottom: 16px; }
.foot-col a { display:block; font-size: 14.5px; color: var(--text-2); padding: 6px 0; transition: color .18s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display:flex; align-items:center; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.foot-bottom p { font-size: 13.5px; color: var(--text-3); }
.foot-badges { display:flex; gap: 12px; flex-wrap: wrap; }
.foot-badge { display:inline-flex; align-items:center; gap: 7px; font-size: 12.5px; color: var(--text-2); padding: 6px 12px; border-radius: 100px; border:1px solid var(--border); background: var(--surface); font-family: var(--font-mono); }
.foot-badge svg { width: 14px; height: 14px; color: var(--accent); }

/* ============================================================
   Scroll reveal
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"]{ transition-delay: .08s; }
[data-reveal][data-delay="2"]{ transition-delay: .16s; }
[data-reveal][data-delay="3"]{ transition-delay: .24s; }
[data-reveal][data-delay="4"]{ transition-delay: .32s; }

html[data-motion="minimal"] [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
html[data-motion="minimal"] .floaty,
html[data-motion="minimal"] .sv-wave i,
html[data-motion="minimal"] .shield-ring::after,
html[data-motion="minimal"] .flow-connector .pkt,
html[data-motion="minimal"] .logo .mark.pulse::after { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .floaty, .sv-wave i, .shield-ring::after, .flow-connector .pkt { animation: none !important; }
}
