/* ===========================================================
   Atriomail — marketing site styles
   Direction: "Dark & Premium" — near-black cinematic hero &
   bookends, light editorial body, restrained purple→orange accent.
   No build step, no dependencies.
   =========================================================== */
:root {
  --purple-300:#c4b5fd; --purple-400:#a78bfa; --purple-500:#8b5cf6;
  --purple-600:#7c3aed; --purple-700:#6d28d9; --purple-800:#5b21b6;
  --orange-400:#a78bfa; --orange-500:#8b5cf6; --orange-600:#7c3aed; --orange-ink:#6d28d9;

  /* dark surfaces (hero, stats, pricing card, cta, footer) */
  --ink:#0a0613;
  --ink-2:#0f0a1f;
  --surface:#15102b;
  --surface-2:#1b1536;
  --line-dark:rgba(255,255,255,.10);
  --line-dark-2:rgba(255,255,255,.06);
  --on-dark:#f6f4ff;
  --on-dark-mut:#b7b0cf;
  --on-dark-faint:#7d7596;

  /* light body */
  --text:#1a1330;
  --muted:#5b5470;
  --muted-2:#8b86a0;
  --line:#ece8f6;
  --bg:#ffffff;
  --bg-soft:#f8f6fd;
  --bg-soft-2:#f2edfb;
  --bg-orange:#f4effe;

  --radius:18px; --radius-sm:12px; --radius-lg:26px;
  --shadow-sm:0 1px 2px rgba(26,18,51,.06), 0 4px 16px rgba(26,18,51,.05);
  --shadow:0 10px 40px rgba(40,20,80,.12);
  --shadow-lg:0 30px 80px rgba(30,12,60,.30);
  --grad:linear-gradient(120deg,#8b5cf6 0%,#a855f7 38%,#8b5cf6 100%);
  --grad-soft:linear-gradient(135deg,#f3eefe 0%,#ede7fd 100%);

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: "Sora", "Inter", system-ui, sans-serif; line-height: 1.08; color: var(--ink); letter-spacing: -.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--purple-700); text-decoration: none; }
img, svg { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.container.narrow { max-width: 840px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: gradflow 8s linear infinite; }
@keyframes gradflow { to { background-position: 200% center; } }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--purple-700); color:#fff; padding:.6rem 1rem; border-radius: 0 0 8px 0; z-index: 400; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .96rem; line-height: 1;
  padding: .85rem 1.35rem; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap; position: relative; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.04rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--grad); background-size: 160% auto; color: #fff; box-shadow: 0 12px 34px rgba(124,58,237,.40); }
.btn-primary:hover { transform: translateY(-2px); background-position: right center; box-shadow: 0 18px 46px rgba(124,58,237,.52); }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); }
.btn-primary:hover::after { animation: shine .9s var(--ease); }
@keyframes shine { to { left: 160%; } }
.btn-glass { background: rgba(255,255,255,.07); color: var(--on-dark); border-color: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--purple-700); border-color: var(--line); }
.btn-outline:hover { border-color: var(--purple-400); background: var(--bg-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--on-dark); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-light { background: #fff; color: var(--purple-700); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--grad); z-index: 300; will-change: transform; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 200; transition: background .3s, border-color .3s, box-shadow .3s; background: rgba(10,6,19,.55); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(10,6,19,.85); border-bottom-color: var(--line-dark-2); }
.nav { display: flex; align-items: center; gap: 1.6rem; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.3rem; color: #fff; letter-spacing: -.02em; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 4px 12px rgba(124,58,237,.5)); }
.brand-name { color: #fff; }
.nav-links { display: flex; gap: 1.7rem; margin-left: 1.2rem; }
.nav-links a { color: var(--on-dark-mut); font-weight: 500; font-size: .96rem; position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad); transition: width .25s var(--ease); }
.nav-links a:hover { color: #fff; } .nav-links a:hover::after { width: 100%; }
.nav-actions { margin-left: auto; display: flex; gap: .6rem; align-items: center; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.mobile-menu { display: none; flex-direction: column; gap: .25rem; padding: 1rem 26px 1.5rem; background: var(--ink-2); border-bottom: 1px solid var(--line-dark-2); }
.mobile-menu a { padding: .7rem .25rem; color: var(--on-dark); font-weight: 500; }
.mobile-menu .btn { margin-top: .4rem; }

/* Inner pages (legal): solid dark header, no hero pulled underneath */
.page-inner .site-header { background: var(--ink-2); border-bottom: 1px solid var(--line-dark-2); }

/* ============================================================
   HERO (dark)
   ============================================================ */
.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; margin-top: -74px; padding: calc(clamp(3.5rem,7vw,6.5rem) + 74px) 0 clamp(5rem,9vw,8rem); }
.hero-grid-bg { position: absolute; inset: 0; z-index: 0; opacity: .5; background-image: linear-gradient(var(--line-dark-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark-2) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%); }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none; opacity: .85; }
.aurora.a1 { width: 560px; height: 560px; top: -220px; right: -120px; background: radial-gradient(circle, rgba(139,92,246,.55), transparent 68%); animation: drift1 20s ease-in-out infinite; }
.aurora.a2 { width: 540px; height: 540px; top: -120px; left: -160px; background: radial-gradient(circle, rgba(124,58,237,.6), transparent 68%); animation: drift2 24s ease-in-out infinite; }
.aurora.a3 { width: 420px; height: 420px; bottom: -220px; left: 38%; background: radial-gradient(circle, rgba(168,85,247,.4), transparent 70%); animation: drift1 28s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px,30px) scale(1.14); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(44px,-28px) scale(1.1); } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr .96fr; gap: 3.2rem; align-items: center; }
/* min-width:0 lets the columns shrink so the monospace console line can't blow out the grid track (and clip the headline) on narrow screens */
.hero-copy, .hero-visual { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .84rem; color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); padding: .42rem .9rem; border-radius: 999px; margin-bottom: 1.4rem; backdrop-filter: blur(6px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 4px rgba(139,92,246,.2); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(139,92,246,.2); } 50% { box-shadow: 0 0 0 8px rgba(139,92,246,.03); } }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero .lead { font-size: clamp(1.08rem,1.6vw,1.24rem); color: var(--on-dark-mut); max-width: 35rem; margin-bottom: 1.9rem; }
.hero .lead strong { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 1.7rem; color: var(--on-dark-mut); font-size: .9rem; font-weight: 500; }
.hero-trust li { display: flex; align-items: center; gap: .4rem; }
.hero-trust .ck { color: var(--orange-400); font-weight: 800; }

/* hero console */
.hero-visual { position: relative; z-index: 1; }
.console { max-width: 100%; background: linear-gradient(180deg, rgba(27,21,54,.9), rgba(16,10,31,.92)); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; backdrop-filter: blur(10px); }
.console-top { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line-dark-2); background: rgba(255,255,255,.02); }
.tl { width: 11px; height: 11px; border-radius: 50%; } .tl.r{background:#ff5f57} .tl.y{background:#febc2e} .tl.g{background:#28c840}
.console-title { margin-left: .6rem; color: var(--on-dark-faint); font-size: .82rem; font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace; }
.console-badge { margin-left: auto; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(124,58,237,.35); border: 1px solid rgba(168,85,247,.4); padding: .25rem .6rem; border-radius: 999px; display: flex; align-items: center; gap: .35rem; }
.console-badge .lv { width: 6px; height: 6px; border-radius: 50%; background: var(--orange-400); animation: pulse 1.6s infinite; }
.console-body { padding: 1.2rem 1.3rem; font-family: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace; font-size: .85rem; min-height: 300px; overflow: hidden; }
.cmd { color: var(--on-dark-mut); overflow-wrap: anywhere; } .cmd .pr { color: var(--purple-300); } .cmd .dom { color: var(--orange-400); font-weight: 500; }
.cmd .cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--orange-400); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.prov-rows { margin-top: 1.1rem; display: grid; gap: .55rem; }
.prow { display: flex; align-items: center; gap: .7rem; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.prow.show { opacity: 1; transform: none; }
.prow .rec { color: var(--purple-300); font-weight: 700; min-width: 84px; }
.prow .desc { color: var(--on-dark-faint); flex: 1; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .st { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.prow .st.wait { border: 2px solid rgba(255,255,255,.2); border-top-color: var(--orange-400); animation: spin .7s linear infinite; }
.prow .st.ok { background: rgba(34,197,94,.16); color: #4ade80; font-size: .7rem; font-weight: 900; }
@keyframes spin { to { transform: rotate(360deg); } }
.prov-done { margin-top: 1.1rem; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 12px; background: linear-gradient(120deg, rgba(124,58,237,.18), rgba(139,92,246,.14)); border: 1px solid rgba(168,85,247,.3); color: #fff; font-size: .82rem; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); }
.prov-done.show { opacity: 1; transform: none; }
.prov-done .em { width: 24px; height: 24px; border-radius: 7px; background: var(--grad); display: grid; place-items: center; font-size: .8rem; font-weight: 900; flex: none; }
.prov-done b { color: var(--orange-400); font-weight: 700; }
.float-chip { position: absolute; background: rgba(21,16,43,.9); border: 1px solid var(--line-dark); box-shadow: var(--shadow); border-radius: 13px; padding: .6rem .85rem; font-size: .82rem; font-weight: 600; color: #fff; backdrop-filter: blur(8px); z-index: 2; display: flex; align-items: center; gap: .45rem; }
.float-chip .ic { font-size: 1rem; }
.chip-1 { top: -20px; left: -26px; animation: float 5s ease-in-out infinite; }
.chip-2 { bottom: 24px; right: -30px; animation: float 5s ease-in-out infinite .9s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* hero inbox card (dark) — shown below the console */
.inbox-card { margin-top: 1.1rem; background: linear-gradient(180deg, rgba(27,21,54,.9), rgba(16,10,31,.92)); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.25rem; backdrop-filter: blur(10px); }
.inbox-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-dark-2); }
.inbox-id { display: flex; align-items: center; gap: .7rem; }
.inbox-card .avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: "Sora", sans-serif; flex: none; }
.inbox-id strong { display: block; font-size: .95rem; color: #fff; }
.inbox-id small { color: var(--on-dark-faint); font-size: .8rem; }
.inbox-card .badge { font-size: .74rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; white-space: nowrap; }
.inbox-card .badge-ok { color: #4ade80; background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.25); }
.mail-row { display: flex; gap: .75rem; padding: .9rem 0; border-bottom: 1px solid var(--line-dark-2); }
.mail-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .5rem; background: var(--purple-400); flex: none; }
.mail-dot.alt { background: var(--orange-400); }
.mail-body { flex: 1; min-width: 0; }
.mail-line { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.mail-line strong { font-size: .92rem; color: #fff; }
.mail-body p { margin: .2rem 0 0; font-size: .84rem; color: var(--on-dark-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-card .tag { font-size: .72rem; font-weight: 700; padding: .22rem .5rem; border-radius: 7px; white-space: nowrap; }
.inbox-card .tag-accent { color: var(--orange-400); background: rgba(139,92,246,.16); }
.rep-meter { margin-top: 1rem; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark-2); border-radius: 14px; padding: .9rem 1rem; }
.rep-head { display: flex; justify-content: space-between; font-size: .85rem; color: var(--on-dark-mut); }
.rep-head strong { color: var(--orange-400); }
.rep-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin: .55rem 0; }
.rep-bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.rep-foot { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .76rem; color: var(--on-dark-mut); font-weight: 600; }

/* logo strip */
.logos { position: relative; z-index: 1; border-top: 1px solid var(--line-dark-2); margin-top: clamp(3rem,6vw,5rem); padding-top: 2rem; }
.logos-label { text-align: center; color: var(--on-dark-faint); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; gap: .6rem; width: max-content; animation: scroll 36s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-track span { white-space: nowrap; font-size: .84rem; font-weight: 600; color: var(--on-dark-mut); background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); padding: .5rem .9rem; border-radius: 10px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { background: var(--ink-2); color: var(--on-dark); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; padding: 2.4rem 26px; }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--line-dark-2); }
.stat strong { display: block; font-family: "Sora", sans-serif; font-size: clamp(1.7rem,3.2vw,2.3rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--on-dark-mut); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem,8vw,7rem) 0; }
.section-head { text-align: center; max-width: 740px; margin: 0 auto clamp(2.4rem,4vw,3.4rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-600); margin-bottom: .9rem; }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.kicker.center { justify-content: center; }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: minmax(150px,auto); gap: 1.1rem; }
.tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .3s; pointer-events: none; background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(124,58,237,.10), transparent 60%); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e2d8fa; }
.tile:hover::before { opacity: 1; }
.tile .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-soft); color: var(--purple-600); display: grid; place-items: center; margin-bottom: 1rem; transition: transform .3s var(--ease); }
.tile:hover .ic { transform: translateY(-2px) scale(1.06) rotate(-4deg); }
.tile .ic svg { width: 23px; height: 23px; }
.tile h3 { margin-bottom: .4rem; }
.tile p { color: var(--muted); margin: 0; font-size: .95rem; }
.tile-lg { grid-column: span 2; grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.tile-lg h3 { font-size: 1.5rem; }
.bp { margin-top: 1.3rem; background: var(--grad-soft); border: 1px solid #ece1fb; border-radius: 14px; padding: 1.1rem; }
.bp-top { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.bp-logo { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: "Sora"; font-weight: 800; }
.bp-top small { color: var(--muted); font-size: .8rem; display: block; }
.bp-top strong { font-size: .92rem; color: var(--ink); }
.bp-rows { display: grid; gap: .45rem; }
.bp-row { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); }
.bp-row code { font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-weight: 700; color: var(--purple-700); background: #fff; padding: .1rem .4rem; border-radius: 6px; font-size: .72rem; min-width: 52px; text-align: center; }
.bp-row .ok { margin-left: auto; color: #16a34a; font-weight: 800; }
.codeblk { background: var(--ink); border-radius: 14px; margin-top: 1.1rem; overflow: hidden; border: 1px solid var(--line-dark); }
.codeblk-top { display: flex; gap: .4rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line-dark-2); }
.codeblk-top .tl { width: 9px; height: 9px; }
.codeblk pre { margin: 0; padding: .9rem 1rem; overflow-x: auto; font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: .78rem; line-height: 1.65; color: #cfc7e8; }
.c-k { color: var(--purple-300); font-weight: 700; } .c-s { color: var(--orange-400); } .c-n { color: #fbbf24; } .c-m { color: var(--on-dark-faint); } .c-ok { color: #4ade80; font-weight: 700; }

/* ---------- Feature deep-dive rows (light) ---------- */
.feature-rows { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: clamp(1.5rem,4vw,2.5rem) 0; }
.frow-copy, .frow-visual { min-width: 0; }
.frow + .frow { border-top: 1px solid var(--line); margin-top: 1rem; }
.frow.reverse .frow-copy { order: 2; }
.ticks { display: grid; gap: .65rem; margin-top: 1.1rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--text); font-size: .98rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; background: var(--grad); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: 1rem; }
.panel-note { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }
.dns-row { display: flex; align-items: center; gap: .7rem; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--bg-soft); font-size: .9rem; color: var(--text); }
.dns-row:last-of-type { border-bottom: 0; }
.dns-row code { background: var(--bg-soft-2); color: var(--purple-700); font-weight: 700; padding: .15rem .45rem; border-radius: 6px; font-size: .78rem; min-width: 48px; text-align: center; font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; }
.dns-row span:nth-child(2) { flex: 1; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: .72rem; font-weight: 700; padding: .22rem .5rem; border-radius: 7px; white-space: nowrap; }
.tag-accent { color: var(--orange-ink); background: rgba(139,92,246,.13); }
.brand-preview { display: flex; align-items: center; gap: 1rem; background: var(--grad-soft); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.bp-logo-lg { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: "Sora"; font-weight: 800; font-size: 1.2rem; flex: none; }
.bp-bars { flex: 1; display: grid; gap: 7px; }
.bp-bars span { height: 9px; border-radius: 6px; background: #e3dbf6; }
.bp-bars span:nth-child(1){ width: 70%; } .bp-bars span:nth-child(2){ width: 90%; background: #d9c9f8; } .bp-bars span:nth-child(3){ width: 55%; }
.code-card { background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line-dark); }
.code-head { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-head .dot { width: 11px; height: 11px; border-radius: 50%; }
.code-head .dot.r{background:#ff5f57} .code-head .dot.y{background:#febc2e} .code-head .dot.g{background:#28c840}
.code-head em { margin-left: auto; color: #b3a8cf; font-style: normal; font-size: .8rem; }
.code-card pre { margin: 0; padding: 1.2rem 1.3rem; overflow-x: auto; }
.code-card code { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.7; color: #d7d0ec; }
.c-key { color: #c4b5fd; font-weight: 700; } .c-mut { color: #b3a8cf; } .c-str { color: #fdba74; } .c-num { color: #fbbf24; } .c-ok2 { color: #4ade80; font-weight: 700; }
.provider-marquee { overflow: hidden; width: 100%; max-width: 100%; margin-top: 1.3rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pm-track { display: flex; gap: .5rem; width: max-content; animation: marquee 34s linear infinite; }
.provider-marquee:hover .pm-track { animation-play-state: paused; }
.pm-track span { white-space: nowrap; font-size: .82rem; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: .4rem .7rem; border-radius: 9px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- How it works (sticky rail) ---------- */
.how { background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.how-wrap { max-width: 760px; margin: 0 auto; }
.steps { position: relative; padding-left: 3.4rem; }
.steps::before { content: ""; position: absolute; left: 18px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.steps .rail { position: absolute; left: 18px; top: 8px; width: 2px; background: var(--grad); height: 0; transition: height .2s linear; }
.step { position: relative; padding: 0 0 2.6rem; }
.step:last-child { padding-bottom: 0; }
.step-num { position: absolute; left: -3.4rem; top: -4px; width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 2px solid var(--line); color: var(--muted-2); display: grid; place-items: center; font-family: "Sora"; font-weight: 800; transition: .35s var(--ease); z-index: 1; }
.step.active .step-num { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 24px rgba(124,58,237,.4); transform: scale(1.08); }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Pricing ---------- */
.pricing { background: #fff; }
.price-wrap { display: grid; grid-template-columns: minmax(320px,400px) 1fr; gap: 2.4rem; align-items: stretch; max-width: 980px; margin: 0 auto; }
.plan { position: relative; background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); padding: 2.2rem 2rem; overflow: hidden; }
.plan::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 80% 0%, rgba(139,92,246,.3), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(124,58,237,.4), transparent 60%); opacity: .9; }
.plan > * { position: relative; z-index: 1; }
.plan-flag { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid var(--line-dark); color: #fff; font-size: .74rem; font-weight: 700; padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.1rem; }
.plan h3 { color: var(--on-dark-mut); font-family: "Inter"; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; margin-bottom: .6rem; }
.price { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .4rem; }
.price .amt { font-family: "Sora"; font-size: 3.4rem; font-weight: 800; color: #fff; }
.price .per { color: var(--on-dark-mut); font-size: .92rem; }
.plan .sub { color: var(--on-dark-mut); font-size: .92rem; margin-bottom: 1.4rem; }
.plan .btn { margin-bottom: 1.1rem; }
.storage { background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: 13px; padding: .9rem 1rem; font-size: .85rem; color: var(--on-dark-mut); }
.storage strong { color: var(--orange-400); }
.storage em { display: block; margin-top: .35rem; color: var(--on-dark-faint); font-style: normal; font-size: .8rem; }
.feats { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.feats h4 { font-family: "Sora"; font-size: 1.05rem; margin-bottom: 1.1rem; }
.feats ul { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.4rem; }
.feats li { position: relative; padding-left: 1.7rem; font-size: .92rem; color: var(--text); }
.feats li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--grad); width: 1.2rem; height: 1.2rem; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 900; }
.addon { max-width: 980px; margin: 1.6rem auto 0; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; background: var(--grad-soft); border: 1px solid #ecdffb; border-radius: var(--radius); padding: 1.3rem 1.7rem; }
.addon strong { display: block; color: var(--ink); font-family: "Sora"; }
.addon span { color: var(--muted); font-size: .9rem; }
.pricing-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 2rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-soft); }
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; margin: 0; transition: transform .3s var(--ease), box-shadow .3s; }
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stars { color: var(--orange-500); letter-spacing: 2px; margin-bottom: .7rem; }
.quote blockquote { margin: 0 0 1.2rem; font-size: 1rem; color: var(--ink); line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: .7rem; }
.qa { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.quote figcaption strong { display: block; font-size: .92rem; color: var(--ink); }
.quote figcaption small { color: var(--muted-2); font-size: .82rem; }

/* ---------- Comparison ---------- */
.compare { background: #fff; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp th, .cmp td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.cmp thead th { font-family: "Sora", sans-serif; color: var(--ink); background: var(--bg-soft); }
.cmp th.hi, .cmp td.hi { background: rgba(124,58,237,.06); color: var(--purple-700); font-weight: 600; text-align: center; }
.cmp tbody td:not(.hi):nth-child(2) { color: var(--muted-2); }
.cmp tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); }
.accordion { display: grid; gap: .75rem; }
.accordion details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.accordion summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.4rem; color: var(--orange-600); font-weight: 400; transition: transform .25s; line-height: 1; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.ac-body { padding: 0 1.3rem 1.2rem; }
.ac-body p { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); position: relative; overflow: hidden; padding: clamp(4rem,8vw,6rem) 0; color: #fff; }
.cta-band .aurora.a1 { top: -160px; right: 8%; }
.cta-band .aurora.a2 { bottom: -200px; left: 5%; top: auto; }
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: var(--on-dark-mut); font-size: 1.12rem; margin-bottom: 1.7rem; }
.cta-inner .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: var(--on-dark); padding-top: 3.4rem; border-top: 1px solid var(--line-dark-2); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.6rem; }
.footer-brand .brand { margin-bottom: .9rem; }
.footer-brand p { color: var(--on-dark-mut); font-size: .92rem; max-width: 23rem; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-faint); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--on-dark-mut); font-size: .93rem; padding: .32rem 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 26px; border-top: 1px solid var(--line-dark-2); color: var(--on-dark-faint); font-size: .86rem; }
.footer-social { display: flex; gap: 1.1rem; }
.footer-social a { color: var(--on-dark-mut); font-weight: 600; }
.footer-social a:hover { color: #fff; }

/* ---------- Legal pages ---------- */
.legal-hero { background: var(--grad-soft); border-bottom: 1px solid var(--line); padding: clamp(2.5rem,5vw,3.5rem) 0; }
.legal-hero h1 { font-size: clamp(2rem,4vw,2.7rem); margin: 0 0 .3rem; }
.legal-hero p { color: var(--muted); margin: 0; }
.legal-wrap { max-width: 800px; margin: 0 auto; padding: clamp(2rem,4vw,3.2rem) 26px 4rem; }
.legal-wrap h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; padding-top: .4rem; }
.legal-wrap h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.legal-wrap p, .legal-wrap li { color: var(--muted); }
.legal-wrap ul, .legal-wrap ol { list-style: disc; padding-left: 1.4rem; margin: 0 0 1rem; }
.legal-wrap ol { list-style: decimal; }
.legal-wrap li { margin-bottom: .4rem; }
.legal-wrap a { color: var(--purple-700); text-decoration: underline; }
.legal-toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem; }
.legal-toc strong { display: block; font-family: "Sora"; color: var(--ink); margin-bottom: .5rem; font-size: .9rem; }
.legal-toc ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.legal-toc a { font-size: .9rem; display: inline-block; padding: .15rem 0; }
.callout { background: var(--bg-orange); border: 1px solid #e2d8fa; border-radius: 12px; padding: 1rem 1.2rem; font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.callout strong { color: var(--orange-ink); }

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

/* ---------- Cookie consent ---------- */
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 350; width: min(420px, calc(100vw - 40px)); background: var(--surface); color: var(--on-dark); border: 1px solid var(--line-dark); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 1.2rem 1.3rem; animation: cookie-up .4s var(--ease); }
.cookie-banner strong { display: block; font-family: "Sora"; color: #fff; font-size: .98rem; margin-bottom: .35rem; }
.cookie-banner p { font-size: .88rem; color: var(--on-dark-mut); margin: 0 0 .9rem; }
.cookie-banner a { color: var(--purple-300); }
.cookie-banner .cb-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-banner .cb-btn { padding: .6rem 1.1rem; font-size: .9rem; }
.cookie-banner .btn-outline { background: transparent; color: var(--on-dark); border-color: var(--line-dark); }
.cookie-banner .btn-outline:hover { background: rgba(255,255,255,.06); border-color: var(--on-dark-mut); }
@keyframes cookie-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu.open { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 520px; }
  .console { transform: none; }
  .bento { grid-template-columns: repeat(2,1fr); }
  .tile-lg { grid-column: span 2; grid-row: auto; }
  .frow, .frow.reverse { grid-template-columns: 1fr; gap: 1.6rem; }
  .frow.reverse .frow-copy { order: 0; }
  .price-wrap { grid-template-columns: 1fr; max-width: 520px; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  /* tighter hero headline so long words never clip on small screens */
  h1 { font-size: clamp(2.1rem, 8.5vw, 2.7rem); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .stat:nth-child(odd)::before { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile-lg, .tile-wide { grid-column: auto; }
  .feats ul { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .legal-toc ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .7rem; }
  .chip-1 { left: 0; } .chip-2 { right: 0; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .console { transform: none; }
}
