/* Self-hosted fonts (Inter, Sora: SIL Open Font License). Variable weights, latin and latin-ext only. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(fonts/sora-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(fonts/sora-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Genrati design system.
   Motion rules: the landing + login pages go big; the dashboard stays calm.
   Everything decorative is disabled under prefers-reduced-motion. */

@property --beam { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --shine { syntax: "<percentage>"; initial-value: -40%; inherits: false; }

:root {
  --navy: #0C0B2B; --navy-2: #12113a; --navy-3: #1a1950; --ink: #07061c;
  --gold: #E4AE27; --gold-2: #FFD766; --violet: #6d5efc; --teal: #2dd4bf; --rose: #ff5c93;
  --paper: #F4F3FA; --muted: #9c9bc4; --line: rgba(var(--fg-rgb),.09); --line-2: rgba(var(--fg-rgb),.16);
  --ok: #3ecf8e; --bad: #ff6b7d;
  --fg-rgb: 255,255,255; --bg-rgb: 12,11,43; --on-gold: #0C0B2B; --gold-text: #E4AE27; --warn-text: #ffd98a;
  --card-a: rgba(28,27,80,.7); --card-b: rgba(15,14,46,.8); --panel-a: #1c1b52; --panel-b: #0f0e33; --text-soft: #d6d5ee;
  --g1: #FFD766; --g2: #E4AE27; --g3: #ff5c93; --stat-a: #fff; --stat-b: #FFD766;
  color-scheme: dark;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: linear(0, .5 8%, 1.06 22%, .97 38%, 1.01 54%, 1);
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--navy); color: var(--paper);
  font: 16px/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.08; margin: 0; }
a { color: var(--gold-text); }
img, svg { max-width: 100%; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Cross-document page transitions (Chrome 126+, Safari 18.2+; ignored elsewhere) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms var(--ease-out) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px) scale(.995); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  --pad: 13px 24px;
  position: relative; display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: var(--pad); border: 0; border-radius: 999px; cursor: pointer;
  font: 700 .95rem/1 var(--body); text-decoration: none; color: var(--on-gold);
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 45%, #f6c651);
  box-shadow: 0 0 0 1px rgba(var(--fg-rgb),.25) inset, 0 10px 30px -8px rgba(228,174,39,.55);
  transition: transform .5s var(--spring), box-shadow .3s, filter .3s;
  overflow: hidden; isolation: isolate;
}
.btn::after { /* shimmer sweep */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgba(var(--fg-rgb),.65) 50%, transparent 70%);
  transition: transform .8s var(--ease-out);
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 0 1px rgba(var(--fg-rgb),.3) inset, 0 16px 44px -8px rgba(228,174,39,.8); }
  .btn:hover::after { transform: translateX(120%); }
}
.btn:active { transform: scale(.97); }
.btn svg { transition: transform .4s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn.sm { --pad: 9px 18px; font-size: .86rem; }
.btn.ghost { background: rgba(var(--fg-rgb),.05); color: var(--paper); box-shadow: 0 0 0 1px var(--line-2) inset; backdrop-filter: blur(8px); }
.btn.ghost::after { display: none; }
.btn.ghost:hover { background: rgba(var(--fg-rgb),.1); box-shadow: 0 0 0 1px rgba(228,174,39,.6) inset; }
.btn.danger { background: linear-gradient(120deg, #ff8595, var(--bad)); color: #2a0610; box-shadow: 0 10px 30px -10px rgba(255,107,125,.6); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; filter: grayscale(.4); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 14px 0 auto 0; z-index: 50; display: flex; justify-content: center; padding: 0 16px; pointer-events: none;
}
.nav-inner {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(1080px, 100%); padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(var(--bg-rgb),.55); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 40px -12px rgba(0,0,0,.6);
  transition: background .3s, border-color .3s;
}
.nav.scrolled .nav-inner { background: rgba(var(--bg-rgb),.82); border-color: var(--line-2); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); font: 800 1.15rem var(--display); letter-spacing: -.03em; }
.brand .logo-mark { filter: drop-shadow(0 0 12px rgba(228,174,39,.55)); transition: transform .8s var(--spring); }
.brand:hover .logo-mark { transform: rotate(-12deg) scale(1.12); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .93rem; transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover { color: var(--paper); background: rgba(var(--fg-rgb),.06); }
.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; color: var(--muted); font: 500 .93rem var(--body); cursor: pointer; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
button.link:hover { color: var(--paper); background: rgba(var(--fg-rgb),.06); }

/* ── Backgrounds ─────────────────────────────────────────────────────── */
.bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora i {
  position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; filter: blur(95px); opacity: .34;
  background: var(--c); animation: drift 22s ease-in-out infinite alternate; will-change: transform;
}
.aurora i:nth-child(1) { --c: var(--gold); top: -30%; left: -14%; }
.aurora i:nth-child(2) { --c: var(--violet); right: -22%; top: -10%; animation-delay: -7s; animation-duration: 26s; }
.aurora i:nth-child(3) { --c: var(--rose); bottom: -40%; left: 28%; opacity: .2; animation-delay: -13s; }
@keyframes drift { 50% { transform: translate(9vw, 6vh) scale(1.15) rotate(20deg); } to { transform: translate(-6vw, 10vh) scale(.95); } }
.grid-bg {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.grain::after { content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
#constellation { position: absolute; inset: 0; width: 100%; height: 100%; }
.cursor-glow { position: fixed; z-index: 1; width: 520px; height: 520px; left: 0; top: 0; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(228,174,39,.13), transparent 62%); opacity: 0; transition: opacity .4s; will-change: transform; }
.cursor-glow.on { opacity: 1; }

/* ── Layout ──────────────────────────────────────────────────────────── */
main { flex: 1; position: relative; z-index: 2; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
section { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.grad-text { background: linear-gradient(100deg, var(--g1), var(--g2) 40%, var(--g3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: gradslide 6s linear infinite; }
@keyframes gradslide { to { background-position: -200% 0; } }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 170px 0 90px; overflow: clip; min-height: 100svh; display: flex; align-items: center; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill {
  --a: var(--beam); display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; font-size: .85rem; color: var(--paper);
  border: 1px solid transparent; animation: beamspin 5s linear infinite;
  background: linear-gradient(var(--navy-2), var(--navy-2)) padding-box, conic-gradient(from var(--beam), transparent 65%, var(--gold) 85%, transparent) border-box;
}
@keyframes beamspin { to { --beam: 360deg; } }
.pill .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); }
.pill .dot svg { width: 13px; height: 13px; }
.hero h1 { font-size: clamp(2.3rem, 4.9vw, 4.1rem); font-weight: 800; margin: 22px 0 22px; }
.hero h1 .line { display: block; white-space: nowrap; }
@media (max-width: 520px) { .hero h1 .line { white-space: normal; } }
.hero p.lead { font-size: clamp(1.02rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 33em; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 34px; color: var(--muted); font-size: .88rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--ok); }
.rotator { display: inline-block; position: relative; min-width: 3.2ch; }

/* Floating mock UI */
.stage { position: relative; height: 560px; perspective: 1200px; }
.mock {
  position: absolute; border-radius: 22px; padding: 16px; background: linear-gradient(160deg, rgba(34,32,92,.85), rgba(16,15,52,.9));
  border: 1px solid var(--line-2); backdrop-filter: blur(14px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(var(--fg-rgb),.03) inset;
  transform-style: preserve-3d; will-change: transform;
}
.mock .row { display: flex; align-items: center; gap: 10px; }
.mock small { color: var(--muted); font-size: .75rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(from 200deg, var(--gold), var(--rose), var(--violet), var(--gold)); flex: none; }
.m-post { width: 300px; left: 4%; top: 2%; z-index: 2; }
.m-post .img { height: 150px; border-radius: 14px; margin: 12px 0; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 30%, var(--gold) 0, transparent 40%), radial-gradient(circle at 80% 70%, var(--violet), transparent 55%), var(--navy-3); }
.m-post .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(var(--fg-rgb),.25) 50%, transparent 60%); transform: translateX(-100%); animation: sweep 4.5s var(--ease-out) infinite; }
@keyframes sweep { 55%, 100% { transform: translateX(100%); } }
.bar { height: 8px; border-radius: 6px; background: rgba(var(--fg-rgb),.1); margin: 7px 0; }
.bar.w60 { width: 60%; } .bar.w85 { width: 85%; }
.approve { display: flex; gap: 8px; margin-top: 12px; }
.chip { flex: 1; text-align: center; padding: 8px; border-radius: 10px; font: 700 .8rem var(--body); }
.chip.yes { background: rgba(62,207,142,.16); color: var(--ok); border: 1px solid rgba(62,207,142,.4); animation: pulse-ok 2.6s ease-in-out infinite; }
.chip.no { background: rgba(var(--fg-rgb),.05); color: var(--muted); border: 1px solid var(--line); }
@keyframes pulse-ok { 50% { box-shadow: 0 0 0 6px rgba(62,207,142,.0), 0 0 22px rgba(62,207,142,.35); } }
.m-reply { width: 290px; right: 0; top: 30%; z-index: 3; }
.bubble { background: rgba(var(--fg-rgb),.06); border-radius: 12px 12px 12px 4px; padding: 10px 12px; font-size: .82rem; margin: 10px 0 8px; }
.bubble.draft { background: linear-gradient(135deg, rgba(228,174,39,.18), rgba(109,94,252,.18)); border: 1px solid rgba(228,174,39,.35); border-radius: 12px 12px 4px 12px; }
.typing::after { content: "▍"; color: var(--gold-text); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.m-stat { width: 230px; left: 14%; bottom: 0; z-index: 4; }
.spark { width: 100%; height: 56px; }
.spark path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.4s var(--ease-out) .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.float-a { animation: bob 7s ease-in-out infinite; } .float-b { animation: bob 8.5s ease-in-out -2s infinite reverse; } .float-c { animation: bob 6.5s ease-in-out -4s infinite; }
@keyframes bob { 50% { translate: 0 -14px; } }

/* ── Marquee ─────────────────────────────────────────────────────────── */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: rgba(var(--fg-rgb),.02);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; width: max-content; gap: 64px; animation: scroll 32s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track span { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font: 600 1.05rem var(--display); white-space: nowrap; transition: color .3s; }
.track span:hover { color: var(--gold-text); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── Bento ───────────────────────────────────────────────────────────── */
.block { padding: 120px 0 20px; }
.block h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; margin: 14px 0 14px; max-width: 16em; }
.block .sub { color: var(--muted); max-width: 36em; font-size: 1.08rem; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 46px; }
.tile { grid-column: span 2; }
.tile.wide { grid-column: span 4; }
.spot { /* cursor-following spotlight (shared by tiles and cards) */
  position: relative; border-radius: 24px; padding: 28px; overflow: hidden; isolation: isolate;
  background: linear-gradient(165deg, var(--card-a), var(--card-b)); border: 1px solid var(--line);
  transition: border-color .3s, transform .6s var(--spring);
}
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(228,174,39,.16), transparent 60%); }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; opacity: 0; transition: opacity .35s; pointer-events: none;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(255,215,102,.9), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@media (hover: hover) { .spot:hover::before, .spot:hover::after { opacity: 1; } .spot:hover { transform: translateY(-4px); } }
.tile h3 { font-size: 1.35rem; margin: 18px 0 8px; }
.tile p { color: var(--muted); margin: 0; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--gold-text); background: rgba(228,174,39,.1); border: 1px solid rgba(228,174,39,.25); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 22px; }
.bars b { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--gold-2), rgba(228,174,39,.2)); transform-origin: bottom; }
.flow { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.flow .node { padding: 8px 14px; border-radius: 999px; background: rgba(var(--fg-rgb),.06); border: 1px solid var(--line); font-size: .82rem; }
.flow .node.hot { background: rgba(62,207,142,.14); color: var(--ok); border-color: rgba(62,207,142,.45); }
.flow .arrow { color: var(--gold-text); opacity: .8; }
.lock { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; color: var(--teal); background: rgba(45,212,191,.08); border: 1px solid rgba(45,212,191,.25); border-radius: 12px; padding: 12px 14px; margin-top: 22px; word-break: break-all; }

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.steps svg.thread { position: absolute; left: 0; top: 42px; width: 100%; height: 40px; z-index: 0; overflow: visible; }
.steps svg.thread path { fill: none; stroke: url(#tg); stroke-width: 2; stroke-dasharray: 8 8; }
.step { position: relative; z-index: 1; }
.step .num { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font: 800 1.9rem var(--display); color: var(--on-gold);
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 0 0 8px rgba(228,174,39,.1), 0 0 40px rgba(228,174,39,.4); }
.step h3 { margin: 22px 0 8px; font-size: 1.3rem; } .step p { color: var(--muted); margin: 0; max-width: 21em; }

/* ── Stats + final CTA ───────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 90px; }
.stat { text-align: center; padding: 34px 20px; }
.stat b { display: block; font: 800 clamp(2.6rem, 5vw, 4rem) var(--display); background: linear-gradient(180deg, var(--stat-a), var(--stat-b)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.04em; }
.stat > span { color: var(--muted); font-size: .95rem; }
.final { margin: 130px 0 90px; }
.final-card { --beam: 0deg; text-align: center; padding: 76px 28px; border-radius: 34px; position: relative; overflow: hidden; border: 1px solid transparent;
  background: linear-gradient(160deg, var(--panel-a), var(--panel-b)) padding-box, conic-gradient(from var(--beam), rgba(var(--fg-rgb),.06) 60%, var(--gold) 85%, rgba(var(--fg-rgb),.06)) border-box; animation: beamspin 7s linear infinite; }
.final-card h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; max-width: 14em; margin: 0 auto 18px; }
.final-card p { color: var(--muted); margin: 0 auto 32px; max-width: 30em; }
.final-card .bg { opacity: .8; }

/* ── Forms / auth ────────────────────────────────────────────────────── */
.auth { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; overflow: clip; }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 60px; overflow: hidden; border-right: 1px solid var(--line); }
.auth-art h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 800; position: relative; z-index: 2; max-width: 12em; }
.auth-art p { color: var(--muted); position: relative; z-index: 2; max-width: 26em; }
.auth-art .logo-big { position: absolute; top: 44px; left: 60px; z-index: 2; }
.beam-lines { position: absolute; inset: 0; z-index: 1; }
.beam-lines span { position: absolute; top: -10%; width: 2px; height: 42%; background: linear-gradient(180deg, transparent, var(--gold), transparent); opacity: .5; animation: fall 6s linear infinite; }
@keyframes fall { to { transform: translateY(280%); } }
.auth-form { position: relative; z-index: 2; display: grid; place-items: center; padding: 40px 24px; }
.form-card { width: min(410px, 100%); }
.form-card h1 { font-size: 2.2rem; font-weight: 800; }
.form-card .muted, .muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.field { position: relative; }
.field input { width: 100%; padding: 22px 16px 8px; border-radius: 14px; font: 500 1rem var(--body); color: var(--paper); background: rgba(var(--fg-rgb),.04); border: 1px solid var(--line-2); transition: border-color .25s, box-shadow .25s, background .25s; }
.field label { position: absolute; left: 16px; top: 15px; color: var(--muted); font-size: 1rem; pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease-out), color .25s; }
.field input:focus, .field input:not(:placeholder-shown) { background: rgba(var(--fg-rgb),.07); }
.field input:focus { border-color: var(--gold-text); box-shadow: 0 0 0 4px rgba(228,174,39,.14), 0 0 30px -6px rgba(228,174,39,.4); outline: none; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-9px) scale(.74); color: var(--gold-text); }
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.flash { padding: 13px 18px; border-radius: 14px; margin: 0 0 18px; border: 1px solid var(--line); background: rgba(var(--fg-rgb),.04); animation: flashin .6s var(--spring) both; }
.flash.ok { border-color: rgba(62,207,142,.5); color: var(--ok); background: rgba(62,207,142,.08); }
.flash.error { border-color: rgba(255,107,125,.5); color: var(--bad); background: rgba(255,107,125,.08); }
@keyframes flashin { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.toast-zone { position: fixed; top: 84px; left: 50%; translate: -50% 0; width: min(560px, 100% - 32px); z-index: 60; }

/* ── Dashboard (deliberately calm) ───────────────────────────────────── */
.dash { padding: 116px 0 60px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.dash-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
.dash-head p { margin: 6px 0 0; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.kpi { padding: 20px 22px; border-radius: 18px; background: rgba(var(--fg-rgb),.035); border: 1px solid var(--line); }
.kpi small { color: var(--muted); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.kpi b { display: block; font: 800 2rem var(--display); margin-top: 4px; letter-spacing: -.03em; }
.kpi b.ok { color: var(--ok); }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 14px; }
.section-title h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.acct { padding: 22px; }
.acct-top { display: flex; align-items: center; gap: 14px; }
.brand-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.brand-ico.instagram { background: linear-gradient(45deg, #f9a13a, #e1306c 55%, #8a3ab9); }
.brand-ico.youtube { background: #e62117; }
.acct h3 { font: 700 1.05rem var(--display); letter-spacing: -.01em; }
.acct .sub2 { color: var(--muted); font-size: .84rem; }
.status { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: .82rem; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; }
.status.active { color: var(--ok); } .status.active::before { animation: live 2.4s ease-out infinite; }
.status.needs_reauth, .status.revoked { color: var(--bad); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(62,207,142,.6); } 100% { box-shadow: 0 0 0 9px rgba(62,207,142,0); } }
.acct form { margin-top: 16px; }
.connect { display: flex; flex-direction: column; gap: 6px; }
.connect .brand-ico { margin-bottom: 8px; }
.connect p { color: var(--muted); font-size: .9rem; margin: 0 0 16px; flex: 1; }
.empty { grid-column: 1 / -1; text-align: center; padding: 44px 20px; border-radius: 22px; color: var(--muted);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(var(--fg-rgb),.02) 10px 20px); border: 1px dashed var(--line-2); }
.empty b { display: block; color: var(--paper); font: 700 1.1rem var(--display); margin-bottom: 4px; }
details.danger-zone { margin-top: 40px; border: 1px solid var(--line); border-radius: 18px; padding: 4px 20px; background: rgba(var(--fg-rgb),.02); }
details.danger-zone summary { cursor: pointer; padding: 16px 0; color: var(--muted); font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.danger-zone summary::after { content: "+"; transition: transform .3s var(--spring); }
details[open].danger-zone summary::after { transform: rotate(45deg); }
details.danger-zone .body { padding: 0 0 20px; max-width: 460px; }
.reveal-dash { animation: rise .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ── Prose / footer ──────────────────────────────────────────────────── */
.prose { max-width: 720px; padding: 130px 0 40px; overflow-wrap: anywhere; }   /* long URLs in the legal pages wrap on phones */
.prose h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 16px; } .prose h2 { font-size: 1.3rem; margin: 30px 0 8px; }
.prose li { margin: .45em 0; color: var(--text-soft); } .prose p { color: var(--text-soft); }
.draft { border: 1px dashed var(--gold); padding: 12px 16px; border-radius: 14px; color: var(--gold-text); background: rgba(228,174,39,.06); }
footer { position: relative; z-index: 1; display: flex; gap: 26px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 30px 20px 36px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; transition: color .2s; } footer span a { text-decoration: underline; text-underline-offset: 3px; } footer a:hover { color: var(--gold-text); }

/* ── Reveal helpers (initial state is set by JS so no-JS users see everything) ── */
.js .rv { opacity: 0; transform: translateY(36px); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { padding-top: 130px; } .hero .wrap { grid-template-columns: 1fr; } .stage { height: 500px; max-width: 520px; margin: 10px auto 0; }
  .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile.wide { grid-column: span 2; }
  .steps, .stats, .kpis { grid-template-columns: 1fr; } .steps svg.thread { display: none; }
  .auth { grid-template-columns: 1fr; } .auth-art { display: none; }
  .nav-links a.hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .track { animation: none; }
}


/* ══ v2: shader hero, curtain, cursor, progress ═════════════════════════════ */
#gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease .2s;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.hero.gl-on #gl { opacity: 1; } .hero.gl-on .aurora { opacity: 0; transition: opacity 1s; }

.curtain { display: none; }
.js .curtain { display: grid; position: fixed; inset: 0; z-index: 200; place-items: center; background: var(--ink); }
.curtain-inner { display: grid; justify-items: center; gap: 14px; font: 800 1.5rem var(--display); letter-spacing: -.03em; }
.curtain-inner .logo-mark { filter: drop-shadow(0 0 26px rgba(228,174,39,.7)); }
.curtain-inner i { display: block; width: 120px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform-origin: left; transform: scaleX(0); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--violet), var(--gold), var(--rose)); box-shadow: 0 0 14px rgba(228,174,39,.6); }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; will-change: transform; }
.cur-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: #fff; }
.cur-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid #fff; transition: width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring), background .3s; }
.cur-ring.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(var(--fg-rgb),.14); }
@media (hover: none) { .cur-dot, .cur-ring { display: none; } }

.marquee { padding: 18px 0; display: grid; gap: 14px; }
.track.rev { animation-direction: reverse; animation-duration: 46s; }
.track span.soft { font: 800 1.9rem var(--display); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(var(--fg-rgb),.6); transition: color .3s, -webkit-text-stroke-color .3s; }
.track span.soft:hover { color: var(--gold-text); -webkit-text-stroke-color: var(--gold-text); }

/* ══ manifesto (word-by-word scrub) ═════════════════════════════════════════ */
.manifesto { padding: 150px 0 40px; }
.manifesto p { margin: 0; max-width: 20em; font: 800 clamp(1.9rem, 4.6vw, 3.6rem)/1.14 var(--display); letter-spacing: -.03em; }
.manifesto .w { display: inline-block; opacity: 1; }
.js .manifesto .w { opacity: .14; }
.manifesto em, .manifesto strong { font-style: normal; }
.manifesto strong .w { color: var(--gold-text); }

/* ══ pinned product tour ════════════════════════════════════════════════════ */
.tour { position: relative; height: 560vh; margin-top: 60px; }
.tour-sticky { position: sticky; top: 0; height: 100svh; padding-top: 72px; display: flex; align-items: center; overflow: clip; }
.tour-sticky::before { content: ""; position: absolute; inset: 10% -10% auto auto; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(110px); opacity: .22; background: radial-gradient(circle, var(--violet), transparent 65%); pointer-events: none; }
.tour-grid { position: relative; display: grid; grid-template-columns: 1fr 380px; gap: 70px; align-items: center; width: min(1120px, 100% - 40px); margin: 0 auto; }
.tour-copy h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 800; margin: 14px 0 34px; max-width: 12em; }
.tour-steps { list-style: none; margin: 0; padding: 0 0 0 26px; display: grid; gap: 4px; position: relative; }
.tour-steps li { padding: 14px 18px; border-radius: 16px; border: 1px solid transparent; opacity: .38; transition: opacity .5s, background .5s, border-color .5s, transform .6s var(--spring); }
.tour-steps li b { display: block; font: 700 1.15rem var(--display); letter-spacing: -.02em; }
.tour-steps li span { display: block; color: var(--muted); font-size: .95rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease-out), opacity .5s; }
.tour-steps li.on { opacity: 1; background: rgba(var(--fg-rgb),.05); border-color: var(--line-2); transform: translateX(6px); }
.tour-steps li.on span { max-height: 4.5em; opacity: 1; margin-top: 4px; }
.tour-rail { position: absolute; left: max(20px, calc((100vw - 1120px) / 2 + 2px)); top: 50%; width: 3px; height: 300px; margin-top: -140px; border-radius: 3px; background: var(--line); overflow: hidden; display: none; }
.tour-rail i { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, var(--gold), var(--rose)); transform-origin: top; transform: scaleY(0); }
.tour-steps::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: var(--line); border-radius: 2px; }
.phone-wrap { display: grid; justify-items: center; align-content: start; gap: 12px; }
.phone-wrap .phone { transform-origin: top center; }
.phone { position: relative; width: 300px; height: 590px; border-radius: 46px; padding: 12px; background: linear-gradient(160deg, #262566, #0e0d33); border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -30px rgba(0,0,0,.85), 0 0 0 8px rgba(var(--fg-rgb),.03), 0 0 80px -10px rgba(228,174,39,.25); transform: rotate(-4deg); will-change: transform; }
.phone::before { content: ""; position: absolute; inset: 12px; border-radius: 36px; background: #0a0928; }
.notch { position: absolute; z-index: 5; top: 20px; left: 50%; width: 96px; height: 24px; margin-left: -48px; border-radius: 14px; background: #000; }
.screen { position: absolute; inset: 12px; border-radius: 36px; padding: 58px 18px 22px; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .5s, transform .7s var(--spring); pointer-events: none; }
.screen.on { opacity: 1; transform: none; }
.screen.center { align-items: center; justify-content: center; text-align: center; padding-top: 22px; }
.s-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.s-head em { font-style: normal; font-size: .72rem; color: var(--gold-text); padding: 3px 10px; border-radius: 99px; background: rgba(228,174,39,.12); border: 1px solid rgba(228,174,39,.3); }
.s-img { height: 190px; border-radius: 18px; background: radial-gradient(circle at 28% 32%, var(--gold) 0, transparent 42%), radial-gradient(circle at 82% 72%, var(--violet), transparent 58%), radial-gradient(circle at 60% 20%, var(--rose), transparent 40%), var(--navy-3); }
.s-img.short { height: 130px; }
.cap { display: grid; gap: 7px; } .cap i { display: block; height: 9px; border-radius: 6px; background: rgba(var(--fg-rgb),.14); transform-origin: left; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; } .tags u { text-decoration: none; font-size: .7rem; color: var(--teal); background: rgba(45,212,191,.09); border: 1px solid rgba(45,212,191,.25); border-radius: 99px; padding: 3px 9px; }
.s-actions { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-top: auto; }
.s-actions b { text-align: center; padding: 11px 0; border-radius: 12px; font-size: .84rem; background: rgba(var(--fg-rgb),.06); border: 1px solid var(--line); color: var(--muted); }
.s-actions b.approve-btn { background: rgba(62,207,142,.16); color: var(--ok); border-color: rgba(62,207,142,.5); }
.tapper { position: absolute; left: 34%; bottom: 66px; width: 34px; height: 34px; margin: -17px; border-radius: 50%; background: rgba(var(--fg-rgb),.35); box-shadow: 0 0 0 0 rgba(var(--fg-rgb),.5); opacity: 0; }
.okring { width: 132px; height: 132px; overflow: visible; }
.okring .ring { stroke-dasharray: 264; stroke-dashoffset: 264; } .okring .tick { stroke-dasharray: 80; stroke-dashoffset: 80; }
.screen.center h4 { margin: 18px 0 2px; font: 800 1.6rem var(--display); } .screen.center small { color: var(--muted); }
.burst { position: absolute; left: 50%; top: 38%; } .burst i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: 0; } .burst i:nth-child(3n) { background: var(--rose); } .burst i:nth-child(3n+1) { background: var(--violet); }
.screen .bubble { background: rgba(var(--fg-rgb),.07); border-radius: 14px 14px 14px 4px; padding: 11px 13px; font-size: .84rem; }
.screen .bubble.draft { background: linear-gradient(135deg, rgba(228,174,39,.2), rgba(109,94,252,.2)); border: 1px solid rgba(228,174,39,.35); border-radius: 14px 14px 4px 14px; min-height: 64px; }
.lbl { color: var(--muted); font-size: .72rem; margin-top: 6px; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 230px; padding: 10px 4px 0; border-bottom: 1px solid var(--line); }
.chart b { flex: 1; height: var(--h); border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, var(--gold-2), rgba(228,174,39,.15)); transform-origin: bottom; }
.insight { padding: 14px; border-radius: 14px; background: rgba(var(--fg-rgb),.05); border: 1px solid var(--line); font-size: .86rem; } .insight small { display: block; color: var(--muted); margin-top: 4px; }
.illus { color: var(--muted); font-size: .75rem; }

/* ══ swipe deck ═════════════════════════════════════════════════════════════ */
.deck-block { padding-top: 130px; }
.deck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.deck-score { display: flex; gap: 18px; margin-top: 26px; color: var(--muted); } .deck-score span { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(var(--fg-rgb),.03); } .deck-score b { color: var(--paper); margin-left: 6px; font-family: var(--display); }
.deck-col { display: grid; justify-items: center; gap: 22px; }
.deck { position: relative; width: min(340px, 100%); height: 430px; }
.dcard { position: absolute; inset: 0; border-radius: 26px; padding: 16px; display: flex; flex-direction: column; gap: 12px; touch-action: pan-y; user-select: none; cursor: grab;
  background: linear-gradient(165deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -24px rgba(0,0,0,.8); will-change: transform; }
.dcard:active { cursor: grabbing; }
.d-top { display: flex; justify-content: space-between; align-items: center; } .d-top em { font-style: normal; font-weight: 700; } .d-top small { color: var(--muted); }
.d-img { flex: 1; border-radius: 16px; min-height: 0; }
.g1 { background: radial-gradient(circle at 25% 30%, var(--gold), transparent 45%), radial-gradient(circle at 80% 75%, var(--violet), transparent 55%), var(--navy-3); }
.g2 { background: radial-gradient(circle at 70% 30%, var(--rose), transparent 45%), radial-gradient(circle at 20% 80%, var(--teal), transparent 55%), var(--navy-3); }
.g3 { background: radial-gradient(circle at 40% 20%, var(--violet), transparent 50%), radial-gradient(circle at 75% 80%, var(--gold), transparent 50%), var(--navy-3); }
.dcard p { margin: 0; font-size: .95rem; color: var(--text-soft); }
.stamp { position: absolute; top: 22px; padding: 6px 14px; border: 3px solid; border-radius: 10px; font: 800 1.2rem var(--display); letter-spacing: .06em; opacity: 0; pointer-events: none; }
.stamp.ok { right: 20px; color: var(--ok); transform: rotate(10deg); } .stamp.skip { left: 20px; color: var(--muted); transform: rotate(-10deg); }
.deck-end { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; border-radius: 26px; border: 1px dashed var(--line-2); z-index: 0; }
.deck-end b { font: 800 2rem var(--display); } .deck-end p { color: var(--muted); margin: 0 0 12px; }
.deck-btns { display: flex; gap: 26px; }
.round { width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb),.05); color: var(--paper); cursor: pointer; display: grid; place-items: center; transition: transform .4s var(--spring), background .3s, color .3s, box-shadow .3s; }
.round:hover { transform: scale(1.12); } .round:active { transform: scale(.94); }
.round.yes:hover { background: rgba(62,207,142,.18); color: var(--ok); box-shadow: 0 0 30px rgba(62,207,142,.4); } .round.no:hover { background: rgba(255,107,125,.14); color: var(--bad); box-shadow: 0 0 30px rgba(255,107,125,.3); }

/* ══ FAQ ════════════════════════════════════════════════════════════════════ */
.narrow-w { width: min(780px, 100% - 40px); }
.faq { margin-top: 34px; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: rgba(var(--fg-rgb),.03); padding: 0 22px; transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(228,174,39,.4); background: rgba(228,174,39,.04); }
.faq summary { cursor: pointer; padding: 20px 0; font: 700 1.05rem var(--display); letter-spacing: -.01em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--gold-text); transition: transform .5s var(--spring); flex: none; }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .ans { overflow: hidden; } .faq .ans p { margin: 0 0 20px; color: var(--muted); max-width: 40em; }
.faq details[open] .ans { animation: ansin .5s var(--ease-out); } @keyframes ansin { from { opacity: 0; transform: translateY(-8px); } }

/* ══ closing wordmark ═══════════════════════════════════════════════════════ */
.wordmark { text-align: center; font: 800 clamp(3rem, 17vw, 18rem)/1 var(--display); letter-spacing: -.06em; margin: 0 0 -0.12em; padding: .06em 0 0; user-select: none; overflow: hidden;
  color: transparent; -webkit-text-stroke: 1.5px rgba(var(--fg-rgb),.14);
  background: linear-gradient(180deg, var(--g1) 0%, var(--g3) 45%, transparent 100%) 0 var(--wm, 120%) / 100% 220% no-repeat; -webkit-background-clip: text; background-clip: text; }

@media (max-width: 960px) {
  .tour { height: 480vh; } .tour-grid { grid-template-columns: 1fr; gap: 20px; justify-items: center; text-align: left; }
  .tour-copy h2 { margin-bottom: 18px; } .tour-steps { padding-left: 0; } .tour-steps::before { display: none; }
  .tour-steps li:not(.on) { display: none; } .tour-steps li.on { transform: none; }
  .deck-grid { grid-template-columns: 1fr; gap: 30px; } .deck-col { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .tour { height: auto; } .tour-sticky { position: static; height: auto; padding: 60px 0; } .curtain { display: none !important; }
  .js .manifesto .w { opacity: 1; } .wordmark { --wm: 0%; }
}

/* ── Legal pages ───────────────────────────────────────────────────── */
.legal { max-width: 760px; }
.legal .meta { color: var(--muted); margin: -4px 0 26px; font-size: .92rem; }
.legal h2 { font: 700 1.25rem var(--display); margin: 34px 0 10px; scroll-margin-top: 96px; }
.legal p, .legal li { color: var(--text-soft); }
.legal ul, .legal ol { padding-left: 1.3em; } .legal a { text-underline-offset: 3px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.toc a { font-size: .82rem; text-decoration: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.toc a:hover { color: var(--gold-text); border-color: rgba(228,174,39,.5); background: rgba(228,174,39,.06); }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-soft); }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; background: rgba(var(--fg-rgb),.03); }
tr:last-child td { border-bottom: 0; } code { font: .85em ui-monospace, Menlo, monospace; color: var(--teal); }
.fine { font-size: .8rem; color: var(--muted); margin: -4px 0 0; }

/* ── Clerk mount ───────────────────────────────────────────────────── */
.clerk-mount { margin-top: 26px; min-height: 120px; }
.clerk-loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 18px 0; }
.clerk-loading i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--gold-text); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#clerk-error { margin-top: 14px; }


/* ══ Mobile ═════════════════════════════════════════════════════════════════
   Tuned at 360-430px. Layout is re-composed (not just shrunk); heavy effects are
   lighter (see motion.js / webgl.js); tap targets are >= 44px. */
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  body { font-size: 15.5px; }
  .wrap { width: calc(100% - 32px); }

  .nav { inset: 10px 0 auto 0; padding: 0 12px; }
  .nav-inner { padding: 7px 8px 7px 14px; gap: 10px; }
  .brand { font-size: 1.05rem; } .brand .logo-mark { width: 24px; height: 24px; }
  .nav-links { gap: 2px; } .nav-links a:not(.btn), button.link { padding: 10px 10px; font-size: .9rem; }
  .btn { --pad: 14px 22px; min-height: 46px; } .btn.sm { --pad: 10px 16px; min-height: 42px; }

  .hero { padding: 104px 0 56px; min-height: auto; align-items: flex-start; }
  .hero .wrap { gap: 26px; }
  .pill { font-size: .76rem; padding: 6px 12px 6px 6px; }
  .hero h1 { font-size: clamp(2.05rem, 9.6vw, 2.6rem); line-height: 1.08; margin: 18px 0 16px; }
  .hero h1 .line { white-space: normal; }
  .hero p.lead { font-size: 1rem; margin-bottom: 24px; }
  .cta-row { gap: 10px; } .cta-row .btn { flex: 1 1 100%; }
  .trust { gap: 8px 16px; margin-top: 22px; font-size: .82rem; }

  /* hero stage: recompose the three mock cards inside the column width */
  .stage { height: 440px; max-width: 100%; margin: 0; perspective: none; }
  .m-post { width: 64%; left: 0; top: 0; padding: 12px; } .m-post .img { height: 110px; margin: 10px 0; }
  .m-reply { width: 66%; right: 0; top: 30%; padding: 12px; } .m-reply .bubble { font-size: .74rem; padding: 8px 10px; }
  .m-stat { width: 52%; left: 6%; bottom: 0; padding: 12px; }
  .mock { border-radius: 18px; } .chip { padding: 7px; font-size: .74rem; }

  .marquee { padding: 14px 0; gap: 10px; } .track { gap: 40px; } .track span { font-size: .95rem; } .track span.soft { font-size: 1.45rem; }

  .manifesto { padding: 90px 0 10px; } .manifesto p { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .block { padding: 84px 0 10px; } .block h2 { font-size: clamp(1.75rem, 8vw, 2.3rem); }
  .block .sub { font-size: 1rem; }
  .bento { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; } .tile, .tile.wide { grid-column: auto; }
  .spot { padding: 22px; border-radius: 20px; } .tile h3 { font-size: 1.2rem; }

  /* pinned tour */
  .tour { height: 440vh; margin-top: 30px; }
  .tour-sticky { padding-top: 64px; align-items: flex-start; }
  .tour-grid { gap: 8px; }
  .tour-copy .eyebrow { display: none; }
  .tour-copy h2 { font-size: 1.55rem; margin: 6px 0 10px; }
  .tour-steps { gap: 0; } .tour-steps li { padding: 10px 14px; }
  .tour-steps li.on span { max-height: 6em; } .tour-steps li b { font-size: 1.05rem; }
  .phone-wrap { margin-top: 2px; } .illus { display: none; }

  /* deck */
  .deck-block { padding-top: 84px; } .deck { width: min(320px, 100%); height: 400px; }
  .deck-score { margin-top: 18px; flex-wrap: wrap; gap: 10px; } .round { width: 66px; height: 66px; }

  .steps { gap: 30px; margin-top: 36px; } .step .num { width: 64px; height: 64px; font-size: 1.5rem; }
  .stats { margin-top: 50px; gap: 12px; } .stat { padding: 24px 16px; }
  .faq summary { padding: 18px 0; font-size: 1rem; } .faq details { padding: 0 16px; border-radius: 16px; }
  .final { margin: 80px 0 50px; } .final-card { padding: 50px 20px; border-radius: 26px; }
  .wordmark { font-size: 17vw; }
  footer { gap: 8px 18px; padding: 24px 16px 30px; font-size: .85rem; } footer a { padding: 6px 2px; }

  /* auth */
  .auth-form { padding: 84px 16px 40px; align-items: start; }
  .form-card h1 { font-size: 1.85rem; }
  .field input, input { font-size: 16px; }   /* stops iOS zooming into inputs */

  /* dashboard: keep the three numbers side by side, cards one per row */
  .dash { padding: 92px 0 40px; }
  .dash-head h1 { font-size: 1.7rem; } .dash-head p { font-size: .88rem; overflow-wrap: anywhere; }
  .kpis { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
  .kpi { padding: 12px 12px; border-radius: 14px; } .kpi small { font-size: .62rem; letter-spacing: .02em; } .kpi b { font-size: 1.45rem; }
  .grid { grid-template-columns: 1fr; gap: 10px; } .acct { padding: 18px; }
  .section-title { margin: 26px 0 10px; }
  .toast-zone { top: 70px; }

  .prose { padding-top: 104px; } .prose h1 { font-size: 2rem; } .legal h2 { font-size: 1.12rem; }
  .toc a { padding: 9px 12px; }
}
@media (max-width: 380px) { .hero h1 { font-size: 1.95rem; } .kpi small { font-size: .58rem; } }

.nb { white-space: nowrap; }

/* Gradient text must survive SplitText wrapping words in child elements: paint the
   gradient on every descendant, not just the parent (background-clip:text does not
   reach transformed / inline-block children reliably). */
.grad-text > *, .grad-text .sw { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }

.auth-brand { display: none; margin-bottom: 26px; }
@media (max-width: 960px) { .auth-brand { display: inline-flex; } }


/* ══ Cross-posting: composer, targets, sheet, status ═══════════════════════ */
.brand-ico.facebook_page, .brand-ico.facebook { background: #1877f2; }
.planpill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; color: var(--gold-text); background: rgba(228,174,39,.12); border: 1px solid rgba(228,174,39,.3); vertical-align: 1px; }
.grid.one { grid-template-columns: 1fr; max-width: 640px; }

.compose { padding-top: 116px; padding-bottom: 130px; max-width: 720px; }
.c-stack { display: grid; gap: 14px; }
.c-card { position: relative; padding: 22px; border-radius: 22px; background: linear-gradient(165deg, var(--card-a), var(--card-b)); border: 1px solid var(--line); }
.c-card h2 { font: 700 1.1rem var(--display); margin: 0 0 14px 40px; min-height: 28px; display: flex; align-items: center; }
.c-step { position: absolute; left: 20px; top: 20px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 .82rem var(--display); color: var(--on-gold); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.c-row { display: flex; justify-content: space-between; gap: 12px; margin: -8px 2px 14px; }
.c-row .over { color: var(--bad); font-weight: 700; }
.field textarea, .field select { width: 100%; padding: 24px 16px 10px; border-radius: 14px; font: 500 1rem var(--body); color: var(--paper); background: rgba(var(--fg-rgb),.04); border: 1px solid var(--line-2); resize: vertical; min-height: 120px; transition: border-color .25s, box-shadow .25s; }
.field select { min-height: 0; appearance: none; padding-top: 24px; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: #111; }
.field textarea:focus, .field select:focus { border-color: var(--gold-text); box-shadow: 0 0 0 4px rgba(228,174,39,.14); outline: none; }
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field select + label { transform: translateY(-9px) scale(.74); color: var(--gold-text); }
.field { margin-bottom: 14px; }
.hint { font-size: .8rem; color: var(--muted); margin: -4px 2px 4px; }

.drop { width: 100%; display: grid; place-items: center; min-height: 190px; padding: 24px; border-radius: 18px; cursor: pointer; color: var(--paper); font: inherit;
  border: 1.5px dashed var(--line-2); background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(var(--fg-rgb),.02) 12px 24px); transition: border-color .25s, background .25s, transform .4s var(--spring); }
.drop:hover { border-color: rgba(228,174,39,.7); background-color: rgba(228,174,39,.05); }
.drop:active { transform: scale(.985); }
.drop-empty { display: grid; gap: 6px; justify-items: center; text-align: center; }
.drop-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--on-gold); background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 10px 30px -8px rgba(228,174,39,.6); margin-bottom: 4px; }
.drop-empty small { color: var(--muted); }
.preview video { width: 100%; max-height: 420px; border-radius: 16px; background: #000; display: block; }
.vmeta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; color: var(--muted); font-size: .85rem; }
.link.small { padding: 8px 10px; color: var(--gold-text); }
.notes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.notes li { font-size: .86rem; padding: 10px 12px; border-radius: 12px; }
.notes li.warn { color: var(--warn-text); background: rgba(228,174,39,.08); border: 1px solid rgba(228,174,39,.25); }
.notes li.bad { color: var(--bad); background: rgba(255,107,125,.08); border: 1px solid rgba(255,107,125,.3); }

.targets { display: grid; gap: 10px; }
.target { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; cursor: pointer; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb),.03); transition: border-color .25s, background .25s, transform .4s var(--spring); -webkit-user-select: none; user-select: none; }
.target input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.target .t-text { display: grid; flex: 1; min-width: 0; } .target b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .target small { color: var(--muted); }
.t-check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); color: transparent; transition: all .3s var(--spring); flex: none; }
.target:has(input:checked) { border-color: var(--gold-text); background: rgba(228,174,39,.08); }
.target:has(input:checked) .t-check { background: var(--gold); border-color: var(--gold-text); color: var(--on-gold); transform: scale(1.08); }
.target:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.target:active { transform: scale(.985); }
.target.off { opacity: .5; cursor: not-allowed; } .target.off input { cursor: not-allowed; }

.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px max(16px, calc((100vw - 720px) / 2)) calc(12px + env(safe-area-inset-bottom)); background: rgba(var(--bg-rgb),.88); backdrop-filter: blur(16px) saturate(140%); border-top: 1px solid var(--line-2); }
body:has(.actionbar) footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }   /* footer sits below main (z 1 < 2) so the fixed bar stays clickable; keep its links clear of the bar */
.bar-info { display: grid; min-width: 0; } .bar-info b { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .bar-info b { white-space: normal; font-size: .86rem; line-height: 1.3; } .compose h2 small { flex-basis: 100%; font-size: .8rem; margin-top: 2px; } }
.compose h2 { flex-wrap: wrap; column-gap: 6px; }   /* 'Video (optional …)': a space on desktop, its own line on phones */   /* phones: show the whole "Needs …" hint, on two lines if needed */ .bar-info small { color: var(--muted); font-size: .76rem; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(4,3,20,.7); backdrop-filter: blur(6px); animation: fade .25s ease both; }
.sheet-backdrop[hidden] { display: none; }
.sheet { width: min(520px, 100%); max-height: 92dvh; overflow: auto; padding: 14px 22px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: linear-gradient(170deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--line-2); border-bottom: 0; animation: sheetup .5s var(--spring) both; }
.sheet .grip { width: 44px; height: 5px; border-radius: 4px; background: var(--line-2); margin: 0 auto 16px; }
.sheet h2 { font: 800 1.4rem var(--display); margin-bottom: 4px; }
.sheet-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.sheet-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(var(--fg-rgb),.05); border: 1px solid var(--line); }
.sheet-list small { color: var(--muted); }
.sheet-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin: 16px 0 10px; }
.progress-line { position: relative; height: 40px; border-radius: 12px; overflow: hidden; background: rgba(var(--fg-rgb),.06); border: 1px solid var(--line); margin: 6px 0 4px; }
.progress-line[hidden] { display: none; }
.progress-line i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, rgba(228,174,39,.55), rgba(255,215,102,.85)); transition: transform .2s linear; }
.progress-line span { position: relative; display: grid; height: 100%; place-items: center; font-size: .85rem; font-weight: 600; }
@keyframes sheetup { from { transform: translateY(100%); } } @keyframes fade { from { opacity: 0; } }

.posts { display: grid; gap: 10px; }
.postrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; text-decoration: none; color: inherit; border-radius: 18px; }
.pr-main { display: grid; min-width: 0; } .pr-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-badge { flex: none; font-size: .74rem; font-weight: 700; padding: 4px 11px; border-radius: 99px; background: var(--line); }
.pr-badge.published { color: var(--ok); background: rgba(62,207,142,.12); } .pr-badge.publishing { color: var(--gold-text); background: rgba(228,174,39,.12); } .pr-badge.failed { color: var(--bad); background: rgba(255,107,125,.12); }

.delivery { display: grid; gap: 4px; }
.d-state { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: .9rem; }
.d-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.d-state.queued .d-dot { background: var(--muted); } .d-state.publishing { color: var(--gold-text); } .d-state.publishing .d-dot { background: var(--gold); animation: live-gold 1.4s ease-out infinite; }
.d-state.published { color: var(--ok); } .d-state.published .d-dot { background: var(--ok); } .d-state.failed { color: var(--bad); } .d-state.failed .d-dot { background: var(--bad); }
@keyframes live-gold { 0% { box-shadow: 0 0 0 0 rgba(228,174,39,.6); } 100% { box-shadow: 0 0 0 9px rgba(228,174,39,0); } }
.d-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; } .d-link[hidden], .d-err[hidden], .d-retry[hidden] { display: none; }
.d-err { color: var(--bad); font-size: .86rem; margin: 8px 0 0; } .d-retry { margin-top: 12px; justify-self: start; }

.fab { display: none; }

/* ══ Site-wide mobile & touch optimisation ═════════════════════════════════ */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, label, input, select, textarea { touch-action: manipulation; }   /* no 300ms tap delay / double-tap zoom */
body { overscroll-behavior-y: none; }
.nav { top: max(14px, env(safe-area-inset-top)); }
footer { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
@media (max-width: 960px) {
  /* backdrop blur and giant blurred blobs are the costly bits on phone GPUs: keep them light */
  .nav-inner { backdrop-filter: blur(10px); } .mock { backdrop-filter: blur(6px); }
  .aurora i { filter: blur(60px); width: 70vmax; height: 70vmax; } .aurora i:nth-child(3) { display: none; }
  .tour-sticky::before { filter: blur(70px); }
}
@media (max-width: 640px) {
  .nav { top: max(10px, env(safe-area-inset-top)); }
  input, textarea, select { font-size: 16px; }                                   /* stops iOS zooming into fields */
  .compose { padding-top: 92px; padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .c-card { padding: 18px; border-radius: 20px; } .c-step { left: 18px; top: 18px; } .c-card h2 { margin-left: 38px; }
  .drop { min-height: 170px; } .preview video { max-height: 52vh; }
  .actionbar { padding-inline: 16px; } .actionbar .btn { --pad: 14px 20px; }
  .sheet { border-radius: 24px 24px 0 0; }
  .dash-head { align-items: center; } .dash-head .btn { flex: none; }
  .dash-head .btn:not(.ghost) { position: static; }
  .postrow { padding: 14px 16px; }
  .fab { display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; padding: 15px 20px; border-radius: 99px; text-decoration: none; font-weight: 800; color: var(--on-gold);
    background: linear-gradient(120deg, var(--gold-2), var(--gold)); box-shadow: 0 14px 34px -8px rgba(228,174,39,.7), 0 0 0 1px rgba(var(--fg-rgb),.25) inset; }
  .dashpage main { padding-bottom: 90px; }
  .grid.one { max-width: none; }
}
@media (hover: none) { .btn:hover { transform: none; } .target:hover, .drop:hover { border-color: var(--line-2); } }
@media (orientation: landscape) and (max-height: 500px) { .hero { min-height: auto; padding-top: 96px; } .tour-sticky { padding-top: 60px; } .phone-wrap { display: none; } .tour-grid { grid-template-columns: 1fr; } }

/* Auth entrance is pure CSS so a form can never be stuck invisible (background tabs, slow JS). */
.rv-a { animation: rise .9s var(--ease-out) both; }
.auth-art .rv-a:nth-of-type(1), .auth-art h2.rv-a { animation-delay: .1s; } .auth-art p.rv-a { animation-delay: .22s; } .form-card.rv-a { animation-delay: .15s; }

@media (max-width: 640px) { .dashpage .dash-head .btn { display: none; } }

[hidden] { display: none !important; }   /* author display rules must never beat the hidden attribute */


/* ══ Reels -> Shorts ═══════════════════════════════════════════════════════ */
.syncwrap { max-width: 760px; }
.info { padding: 16px 18px; border-radius: 16px; font-size: .92rem; color: var(--text-soft); background: rgba(228,174,39,.06); border: 1px solid rgba(228,174,39,.22); margin-bottom: 8px; }
.info b { color: var(--gold-text); }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 8px; margin-left: 8px; border-radius: 99px; font: 700 .78rem var(--body); color: var(--on-gold); background: var(--gold); vertical-align: 2px; }
.reels { display: grid; gap: 12px; }
.reel { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px; border-radius: 20px; }
.thumb { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 30% 30%, var(--gold), transparent 50%), radial-gradient(circle at 80% 80%, var(--violet), transparent 55%), var(--navy-3); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .tag { position: absolute; left: 6px; top: 6px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.reel-body { display: grid; align-content: start; gap: 6px; min-width: 0; }
.reel .cap { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--paper); }
.reel-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.rule { display: grid; gap: 14px; padding: 20px; }
.rule h3 { margin: 0; }
.rule-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip-acct { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; font-weight: 600; font-size: .9rem; background: rgba(var(--fg-rgb),.06); border: 1px solid var(--line); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-acct.ig svg { color: #e1306c; } .chip-acct.yt svg { color: #ff3b30; }
.rule .arrow { color: var(--gold-text); display: grid; }
.rule-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rule-status .d-state { margin: 0; }
.rule-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rule-opts .field, .rule .field { margin-bottom: 0; }
.rule-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.danger-text { color: var(--bad); }
.modes { display: grid; gap: 10px; }
.mode { position: relative; display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; cursor: pointer; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb),.03); transition: border-color .25s, background .25s; }
.mode input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mode span { display: grid; gap: 2px; padding-left: 30px; position: relative; }
.mode span::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); transition: all .25s; }
.mode:has(input:checked) { border-color: var(--gold-text); background: rgba(228,174,39,.08); }
.mode:has(input:checked) span::before { border-color: var(--gold-text); background: radial-gradient(circle, var(--gold) 0 45%, transparent 50%); }
.mode:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.mode small { color: var(--muted); }
.dashlinks { display: flex; gap: 10px; flex-wrap: wrap; margin: -8px 0 26px; }
.linkcard { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; text-decoration: none; color: var(--paper); font-weight: 600; background: rgba(var(--fg-rgb),.04); border: 1px solid var(--line); transition: border-color .25s, background .25s, transform .4s var(--spring); }
.linkcard:hover { border-color: rgba(228,174,39,.5); background: rgba(228,174,39,.06); }
.linkcard svg { color: var(--gold-text); }
@media (max-width: 640px) {
  .reel { grid-template-columns: 78px 1fr; gap: 12px; padding: 12px; }
  .reel-actions .btn { flex: 1 1 100%; }
  .rule-opts { grid-template-columns: 1fr; }
  .rule-actions .btn { flex: 1 1 auto; }
  .dashlinks .linkcard { flex: 1 1 100%; }
}


/* ══ Light theme ═══════════════════════════════════════════════════════════
   Dark is the default look; everything above is written against tokens, so light is a token swap.
   Surfaces meant to stay dark (device mock, hero cards) re-pin the dark tokens below. */
:root[data-theme="light"] {
  color-scheme: light;
  --fg-rgb: 12,11,43; --bg-rgb: 246,245,251;
  --navy: #F6F5FB; --navy-2: #FFFFFF; --navy-3: #ECEAF7; --ink: #F6F5FB;
  --paper: #14133d; --muted: #5d5c88; --text-soft: #34335c;
  --line: rgba(12,11,43,.11); --line-2: rgba(12,11,43,.2);
  --gold-text: #8a5f00; --warn-text: #7a5400; --ok: #0a784f; --bad: #c01f43;   /* #0d8a5a (4.37:1) and #d1234a (4.49:1) were under 4.5:1 on light surfaces */
  --card-a: rgba(255,255,255,.96); --card-b: rgba(246,244,253,.96); --panel-a: #ffffff; --panel-b: #f1effa;
  --g1: #C58A00; --g2: #E0621B; --g3: #C2255C; --stat-a: #14133d; --stat-b: #8a5f00;
}
:root[data-theme="light"] body { background: var(--navy); }
:root[data-theme="light"] .aurora i { opacity: .26; }
:root[data-theme="light"] .grain::after { opacity: .04; mix-blend-mode: multiply; }
:root[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(228,174,39,.16), transparent 62%); }
:root[data-theme="light"] .spot, :root[data-theme="light"] .c-card, :root[data-theme="light"] .kpi, :root[data-theme="light"] .faq details { box-shadow: 0 1px 2px rgba(20,19,61,.05), 0 12px 30px -16px rgba(20,19,61,.18); }
:root[data-theme="light"] .nav-inner { background: rgba(255,255,255,.72); box-shadow: 0 8px 30px -14px rgba(20,19,61,.25); }
:root[data-theme="light"] .nav.scrolled .nav-inner { background: rgba(255,255,255,.9); }
:root[data-theme="light"] .btn.ghost { background: rgba(var(--fg-rgb),.04); }
:root[data-theme="light"] .final-card { background: linear-gradient(160deg, var(--panel-a), var(--panel-b)) padding-box, conic-gradient(from var(--beam), rgba(12,11,43,.08) 60%, var(--gold) 85%, rgba(12,11,43,.08)) border-box; }
:root[data-theme="light"] .wordmark { -webkit-text-stroke-color: rgba(12,11,43,.16); }
:root[data-theme="light"] .brand .logo-mark, :root[data-theme="light"] .curtain-inner .logo-mark { filter: drop-shadow(0 0 10px rgba(228,174,39,.45)); }
:root[data-theme="light"] .btn:not(.ghost) { box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 10px 26px -10px rgba(190,130,0,.55); }
:root[data-theme="light"] .btn.ghost { box-shadow: 0 0 0 1px var(--line-2) inset; }
:root[data-theme="light"] .btn.danger { color: #fff; background: linear-gradient(120deg, #e5566f, var(--bad)); }
:root[data-theme="light"] .sheet-backdrop { background: rgba(20,19,61,.45); }
:root[data-theme="light"] .actionbar { background: rgba(255,255,255,.9); }
:root[data-theme="light"] .field option { color: #14133d; }
:root[data-theme="light"] .d-state.queued .d-dot { background: #9a99bd; }
:root[data-theme="light"] .info { background: rgba(228,174,39,.1); }
:root[data-theme="light"] .draft { background: rgba(228,174,39,.12); }
:root[data-theme="light"] .lock { color: #0a7a6d; }
:root[data-theme="light"] code { color: #0a7a6d; }
:root[data-theme="light"] .tags u { color: #0a7a6d; }
:root[data-theme="light"] .tour-sticky::before { opacity: .12; }

/* Surfaces that are dark in BOTH themes: pin the dark tokens so their text/overlays stay readable. */
.mock, .phone, .stage, .thumb .tag, .btn:not(.ghost), .fab, .brand-ico, .c-step, .count, .step .num, .cur-dot, .cur-ring {
  --fg-rgb: 255,255,255; --bg-rgb: 12,11,43; --paper: #F4F3FA; --muted: #9c9bc4; --text-soft: #d6d5ee;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16); --gold-text: #E4AE27; --ok: #3ecf8e; --bad: #ff6b7d;
}
.mock, .phone { color: #F4F3FA; }

/* Theme toggle */
.theme-toggle { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--paper);
  background: rgba(var(--fg-rgb),.06); border: 1px solid var(--line); transition: transform .5s var(--spring), background .25s, border-color .25s; }
.theme-toggle:hover { background: rgba(var(--fg-rgb),.12); border-color: rgba(228,174,39,.5); }
.theme-toggle:active { transform: scale(.9) rotate(20deg); }
.theme-toggle .i-sun { display: none; } .theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; } :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.theme-toggle svg { transition: transform .6s var(--spring); } .theme-toggle:hover svg { transform: rotate(-18deg) scale(1.1); }
.theme-fab { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 60; }
/* smooth colour change when toggling (not on first paint) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .35s ease, border-color .35s ease, color .35s ease, fill .35s ease !important; }
.table-wrap table { min-width: 560px; }   /* scroll sideways on phones instead of crushing the columns */


/* ══ Comment automations ═══════════════════════════════════════════════════ */
.kwrow { display: flex; flex-wrap: wrap; gap: 6px; }
.kw { padding: 4px 11px; border-radius: 99px; font-size: .82rem; font-weight: 600; color: var(--gold-text); background: rgba(228,174,39,.1); border: 1px solid rgba(228,174,39,.28); }
.kw.any { color: var(--muted); background: rgba(var(--fg-rgb),.05); border-color: var(--line); }
.small-p { margin: 0; font-size: .86rem; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 14px; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch .track { position: relative; width: 46px; height: 28px; border-radius: 99px; background: var(--line-2); transition: background .25s; flex: none; }
.switch .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .35s var(--spring); }
.switch input:checked + .track { background: var(--gold); } .switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 3px; }
.mediagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.mtile { position: relative; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--navy-3); color: var(--paper); text-align: left; font: inherit; }
.mtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mtile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: .68rem; line-height: 1.2; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mtile.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(228,174,39,.3); }
#mediaPick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 14px; } #mediaPick .mediagrid { flex-basis: 100%; }
.preview-chat { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: rgba(var(--fg-rgb),.04); border: 1px solid var(--line); }
.preview-chat b { display: block; font-size: .78rem; margin-bottom: 2px; }
.pc-comment, .pc-reply { padding: 10px 14px; border-radius: 14px; font-size: .9rem; background: rgba(var(--fg-rgb),.06); max-width: 88%; }
.pc-reply { margin-left: 22px; background: rgba(228,174,39,.12); border: 1px solid rgba(228,174,39,.25); }
.pc-dm { justify-self: end; max-width: 88%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; font-size: .9rem; color: #fff; background: linear-gradient(135deg, #6d5efc, #b44cf3); white-space: pre-wrap; overflow-wrap: anywhere; }
.pc-dm small { display: block; opacity: .75; margin-bottom: 4px; font-size: .72rem; }
@media (max-width: 640px) { .rule-actions .btn { flex: 1 1 calc(50% - 8px); } }

.brand-ico.linkedin { background: #0a66c2; } .brand-ico.facebook { background: #1877f2; }


/* ══ Dashboard v2: calm, list-based ═══════════════════════════════════════ */
.dashpage .dash { padding: 112px 0 56px; max-width: 920px; }
.dh { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.dh h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; }
.dh p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.alert { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 14px 18px; margin-bottom: 18px; border-radius: 14px;
  background: rgba(255,107,125,.09); border: 1px solid rgba(255,107,125,.32); color: var(--bad); font-size: .92rem; }
.alert span { color: var(--text-soft); }
.ds-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; background: rgba(var(--fg-rgb),.03); margin-bottom: 14px; }
.ds-stat { padding: 18px 22px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ds-stat + .ds-stat { border-left: 1px solid var(--line); }
.ds-stat small { color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.ds-stat b { font: 800 1.9rem/1.15 var(--display); letter-spacing: -.03em; }
.ds-stat b i { font: 600 1rem var(--body); color: var(--muted); letter-spacing: 0; font-style: normal; }
.ds-hint { font-size: .84rem; color: var(--muted); }
.ds-hint.ok { color: var(--ok); } .ds-hint.bad { color: var(--bad); }
.ds-hint.link { text-decoration: none; font-weight: 600; color: var(--gold-text); } .ds-hint.link:hover { text-decoration: underline; }
.meter { height: 6px; border-radius: 99px; background: var(--line); margin-top: 10px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shortcut { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; text-decoration: none; color: var(--paper);
  background: rgba(var(--fg-rgb),.03); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.shortcut:hover { border-color: rgba(228,174,39,.5); background: rgba(228,174,39,.05); }
.si { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--gold-text); background: rgba(228,174,39,.1); }
.st { display: grid; gap: 2px; min-width: 0; } .st b { font-size: .98rem; } .st small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.dashpage .section-title { margin: 32px 0 12px; }
.dashpage .section-title h2 { font-size: 1rem; }
.section-title .muted { font-size: .84rem; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: rgba(var(--fg-rgb),.03); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-decoration: none; color: inherit; }
.row + .row, .row + .empty-state { border-top: 1px solid var(--line); }
a.row { transition: background .2s; } a.row:hover { background: rgba(var(--fg-rgb),.04); }
.row .brand-ico { width: 40px; height: 40px; border-radius: 12px; }
.brand-ico.linkedin { background: #0a66c2; } .brand-ico.facebook { background: #1877f2; } .brand-ico.facebook_page { background: #1877f2; }
.r-main { display: grid; gap: 1px; min-width: 0; flex: 1; }
.r-main b { font-size: .96rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-main small { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.r-main small.warn { color: var(--bad); }
.r-actions { display: flex; gap: 8px; align-items: center; flex: none; } .r-actions form { margin: 0; }
.acct-row .status { margin: 0; flex: none; }
.chev { color: var(--muted); font-size: 1.4rem; line-height: 1; }
.empty-state { display: grid; justify-items: center; gap: 6px; padding: 34px 20px; text-align: center; color: var(--muted); font-size: .92rem; }
.empty-state b { color: var(--paper); font: 700 1.02rem var(--display); }
.empty-state .btn { margin-top: 10px; }
.dashpage details.danger-zone { margin-top: 36px; }
@media (max-width: 760px) {
  .dashpage .dash { padding: 92px 0 40px; }
  .dh .btn { display: none; }
  .ds-stats { grid-template-columns: 1fr; }
  .ds-stat { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; flex-wrap: wrap; }
  .ds-stat + .ds-stat { border-left: 0; border-top: 1px solid var(--line); }
  .ds-stat small { flex: 1 1 100%; } .ds-stat b { font-size: 1.5rem; }
  .meter { flex: 1 1 100%; margin-top: 4px; }
  .shortcuts { grid-template-columns: 1fr; }
  .acct-row { flex-wrap: wrap; } .acct-row .r-main { flex: 1 1 calc(100% - 60px); }
  .acct-row .status { margin: 2px 0 0 54px; flex: 1 1 100%; } .acct-row .r-actions { margin: 0 0 0 54px; flex: 1 1 100%; }
  .row:not(.acct-row):not(.post-row) { flex-wrap: wrap; } .row:not(.acct-row):not(.post-row) .r-actions { margin-left: 54px; width: 100%; }
}

/* Toasts float over page content: they need an opaque surface or the text underneath shows through. */
.toast-zone .flash { background-color: var(--navy-2); box-shadow: 0 14px 40px -14px rgba(0,0,0,.45); }
.toast-zone .flash.ok { background-image: linear-gradient(rgba(62,207,142,.1), rgba(62,207,142,.1)); }
.toast-zone .flash.error { background-image: linear-gradient(rgba(255,107,125,.1), rgba(255,107,125,.1)); }


/* ── automations: rule templates + delivery log ─────────────────────── */
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.preset { text-align: left; display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; cursor: pointer; font: inherit; color: inherit;
  border: 1px solid var(--line-2); background: rgba(var(--fg-rgb),.03); transition: border-color .2s, background .2s, transform .2s; }
.preset:hover { border-color: var(--gold-text); transform: translateY(-1px); }
.preset.on { border-color: var(--gold-text); background: rgba(228,174,39,.08); }
.preset:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.preset small { color: var(--muted); font-size: .78rem; }
.linkwarn { color: var(--gold-text); font-weight: 600; }

.logbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.logbar label { display: grid; gap: 4px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.logbar select { min-width: 150px; padding: 9px 12px; border-radius: 12px; font: 500 .9rem var(--body); text-transform: none; letter-spacing: 0; color: inherit;
  background: rgba(var(--fg-rgb),.05); border: 1px solid var(--line-2); }
.logrow { align-items: flex-start; }
.logerr { color: var(--bad); white-space: normal; }
.logbadges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pager { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 6px; }
@media (max-width: 640px) { .logrow { flex-direction: column; } .logbadges { justify-content: flex-start; } .logbar select { min-width: 0; width: 100%; } .logbar label { flex: 1 1 140px; } }

/* ══ Dashboard v3: airy cards, KPI row, activity chart ═══════════════════ */
.dashpage .dash.d3 { max-width: 1080px; position: relative; }
.d3::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 24px; height: 340px; pointer-events: none;
  background: radial-gradient(520px 220px at 12% 30%, rgba(228,174,39,.16), transparent 70%), radial-gradient(480px 220px at 88% 10%, rgba(109,94,252,.13), transparent 70%); }
.d3-card { background: var(--navy-2); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(20,19,61,.04), 0 14px 34px -20px rgba(20,19,61,.22); }
:root:not([data-theme="light"]) .d3-card { background: rgba(var(--fg-rgb),.04); box-shadow: none; }

.d3-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.d3-eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold-text); }
.d3-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.d3-sub { margin: 8px 0 0; color: var(--muted); font-size: .98rem; }
.d3-cta { display: flex; gap: 10px; flex: none; }

.d3-pill { font-size: .76rem; font-weight: 700; padding: 4px 11px; border-radius: 99px; color: var(--gold-text); background: rgba(228,174,39,.12); border: 1px solid rgba(228,174,39,.3); }
.d3-start { margin-bottom: 14px; padding: 20px 22px 8px; background-image: linear-gradient(135deg, rgba(228,174,39,.08), rgba(109,94,252,.06)); }
.d3-start-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d3-start-head h2, .d3-ch h2 { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.d3-meter { height: 6px; border-radius: 99px; background: var(--line); margin: 12px 0 4px; overflow: hidden; }
.d3-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .8s var(--ease-out); }
.d3-steps { list-style: none; margin: 0; padding: 0; }
.d3-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.d3-steps li:first-child { border-top: 0; }
.d3-steps li div { flex: 1; display: grid; gap: 1px; min-width: 0; } .d3-steps b { font-size: .96rem; } .d3-steps small { color: var(--muted); font-size: .84rem; }
.d3-tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; color: transparent; border: 2px solid var(--line-2); }
.d3-steps li.done .d3-tick { color: #fff; background: var(--ok); border-color: var(--ok); }
.d3-steps li.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }

.d3-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.d3-kpi { display: flex; align-items: center; gap: 16px; padding: 18px 18px; min-width: 0; }
.d3-kt { display: grid; gap: 1px; min-width: 0; }
.d3-kt small { color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.d3-kt strong { font: 800 1.7rem/1.15 var(--display); letter-spacing: -.03em; }
.d3-kt span { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.d3-kt span.ok, .d3-kt em.ok { color: var(--ok); } .d3-kt span.bad, .d3-kt em.bad { color: var(--bad); font-style: normal; font-weight: 600; }
.d3-ring { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; }
.d3-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.d3-ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.d3-ring .trk { stroke: var(--line); }
.d3-ring .val { stroke: var(--gold); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); animation: ringin 1.1s var(--ease-out) both; }
.d3-ring b { font: 800 1.05rem var(--display); letter-spacing: -.02em; }
@keyframes ringin { from { stroke-dashoffset: 100; } }
.d3-kicon { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 16px; color: var(--gold-text); background: rgba(228,174,39,.12); }
.d3-kicon.ok { color: var(--ok); background: rgba(13,138,90,.12); } .d3-kicon.sm { width: 40px; height: 40px; border-radius: 12px; }
.d3-stack { display: flex; flex: none; } .d3-stack .brand-ico { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--navy-2); margin-left: -10px; } .d3-stack .brand-ico:first-child { margin-left: 0; }

.d3-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.d3-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.d3-ch { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; } .d3-ch .muted { font-size: .84rem; }
.d3-link { display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; font-weight: 700; color: var(--gold-text); text-decoration: none; } .d3-link:hover { text-decoration: underline; }

.d3-chart { margin: 0; }
.d3-chart .bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 8px; height: 150px; align-items: end; padding-bottom: 22px; border-bottom: 1px dashed var(--line-2); position: relative; }
.d3-chart .cb { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.d3-chart .cb i { display: block; width: 100%; max-width: 30px; height: max(calc(var(--h) * 1%), 8px); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); transform-origin: bottom; animation: barin .7s var(--ease-out) both; }
.d3-chart .cb.zero i { background: var(--line); height: 8px; }
.d3-chart .cb.today i { background: linear-gradient(180deg, #8f7bff, var(--violet)); }
.d3-chart .cb span { position: absolute; bottom: -22px; font-size: .7rem; color: var(--muted); }
.d3-chart .cb:hover i { filter: brightness(1.08); }
@keyframes barin { from { transform: scaleY(.04); opacity: .4; } }

.d3-empty { display: grid; justify-items: center; gap: 6px; padding: 18px 10px 8px; text-align: center; color: var(--muted); font-size: .92rem; }
.d3-empty b { color: var(--paper); font: 700 1.02rem var(--display); } .d3-empty .btn { margin-top: 10px; }
.d3-empty svg .e1 { fill: rgba(228,174,39,.28); } .d3-empty svg .e2 { fill: rgba(109,94,252,.28); } .d3-empty svg .plane { fill: var(--gold); animation: fly 3.2s ease-in-out infinite; transform-origin: 104px 14px; }
@keyframes fly { 50% { transform: translate(4px, -5px) rotate(-6deg); } }

.d3-post { display: flex; align-items: center; gap: 14px; padding: 14px 8px; margin: 0 -8px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; border-radius: 12px; transition: background .2s; }
.d3-ch + .d3-post { border-top: 0; } .d3-post:hover { background: rgba(var(--fg-rgb),.04); }
.d3-pt { display: grid; gap: 1px; min-width: 0; flex: 1; } .d3-pt b { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .d3-pt small { color: var(--muted); font-size: .82rem; }
.d3-targets { display: flex; gap: 6px; flex: none; }
.d3-target { position: relative; display: inline-flex; } .d3-target .brand-ico { width: 28px; height: 28px; border-radius: 50%; }
.d3-target i { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--navy-2); background: var(--muted); }
.d3-target.published i { background: var(--ok); } .d3-target.failed i { background: var(--bad); } .d3-target.publishing i { background: var(--gold); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.d3-auto { display: flex; align-items: center; gap: 14px; padding: 12px 10px; margin: 0 -10px; border-radius: 14px; text-decoration: none; color: inherit; transition: background .2s; }
.d3-auto:hover { background: rgba(var(--fg-rgb),.04); }
.d3-at { display: grid; gap: 1px; min-width: 0; flex: 1; } .d3-at b { font-size: .95rem; } .d3-at small { color: var(--muted); font-size: .82rem; }
.d3-state { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; color: var(--muted); background: var(--line); } .d3-state.on { color: var(--ok); background: rgba(13,138,90,.12); }

.d3-acct { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.d3-ch + .d3-acct { border-top: 0; }
.d3-acct .brand-ico { width: 38px; height: 38px; border-radius: 12px; }
.d3-acct .status { margin: 0; font-size: .76rem; flex: none; }
.d3-acct .status.active { display: none; }
.d3-x { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.15rem; line-height: 1; color: var(--muted); background: transparent; opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.d3-acct:hover .d3-x, .d3-x:focus-visible { opacity: 1; } .d3-x:hover { background: rgba(209,35,74,.1); color: var(--bad); }
@media (hover: none) { .d3-x { opacity: .7; } }
.d3-add { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); } .d3-add > small { display: block; margin-bottom: 10px; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.d3-add-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.d3-tile b { min-width: 0; } .d3-acct { flex-wrap: wrap; }   /* 320px phones: tiles and the reconnect row must fit */
@media (max-width: 360px) { .d3-add-grid { grid-template-columns: minmax(0, 1fr); } }
.d3-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: inherit; border: 1px dashed var(--line-2); transition: border-color .2s, background .2s, transform .2s; }
.d3-tile:hover { border-color: var(--gold-text); background: rgba(228,174,39,.06); transform: translateY(-1px); }
.d3-tile .brand-ico { width: 28px; height: 28px; border-radius: 9px; } .d3-tile b { font-size: .88rem; flex: 1; } .d3-tile .plus { color: var(--muted); display: grid; } .d3-tile.off { opacity: .55; border-style: solid; } .d3-tile.off small { color: var(--muted); font-size: .72rem; }

@media (max-width: 980px) { .d3-kpis { grid-template-columns: repeat(2, 1fr); } .d3-grid { grid-template-columns: minmax(0, 1fr); } }   /* plain 1fr can't shrink below its content: cards overflowed phones */
@media (max-width: 760px) {
  .d3-head { align-items: flex-start; } .d3-cta { display: none; }
  .d3-card { padding: 16px 16px; border-radius: 18px; } .d3-kpi { padding: 14px 14px; gap: 12px; }
  .d3-kpis { gap: 10px; } .d3-kt strong { font-size: 1.4rem; } .d3-ring { width: 54px; height: 54px; } .d3-kicon { width: 42px; height: 42px; }
  .d3-stack .brand-ico { width: 28px; height: 28px; }
  .d3-targets { display: none; } .d3-chart .bars { gap: 5px; height: 120px; }
  .d3-steps li { flex-wrap: wrap; } .d3-steps li .btn { margin-left: 40px; }
}
@media (max-width: 560px) { .d3-kpis { grid-template-columns: 1fr 1fr; } .d3-kpi { flex-direction: column; align-items: flex-start; gap: 10px; } .d3-kt strong { font-size: 1.3rem; } }
@media (prefers-reduced-motion: reduce) { .d3-ring .val, .d3-chart .cb i, .d3-empty svg .plane, .d3-target.publishing i { animation: none; } }
.d3::before { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.dashpage .d3 details.danger-zone { margin-top: 28px; background: var(--navy-2); border-radius: 18px; box-shadow: 0 1px 2px rgba(20,19,61,.04); }
:root:not([data-theme="light"]) .dashpage .d3 details.danger-zone { background: rgba(var(--fg-rgb),.03); box-shadow: none; }

/* ══ Pricing ═════════════════════════════════════════════════════════════ */
.d3-up { color: var(--paper); text-decoration: none; padding: 2px 9px; border-radius: 99px; background: rgba(228,174,39,.18); border: 1px solid rgba(228,174,39,.4); letter-spacing: .02em; text-transform: none; font-size: .78rem; }
.d3-up:hover { background: rgba(228,174,39,.3); }
.pricepage .pr { padding: 120px 0 64px; max-width: 1080px; position: relative; }
.pricepage .pr.narrow { max-width: 560px; }
.pr::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 40px; height: 380px; pointer-events: none;
  background: radial-gradient(520px 240px at 50% 20%, rgba(228,174,39,.17), transparent 70%), radial-gradient(420px 220px at 85% 30%, rgba(109,94,252,.12), transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.pr-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.pr-eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.pr-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.08; }
.pr-head p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 1.04rem; }
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.pr-card { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 24px; background: var(--navy-2); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20,19,61,.04), 0 16px 40px -22px rgba(20,19,61,.25); }
:root:not([data-theme="light"]) .pr-card { background: rgba(var(--fg-rgb),.04); box-shadow: none; }
.pr-card.featured { border: 1.5px solid var(--gold); transform: translateY(-8px); box-shadow: 0 2px 4px rgba(228,174,39,.1), 0 26px 56px -24px rgba(228,174,39,.55); background-image: linear-gradient(180deg, rgba(228,174,39,.07), transparent 40%); }
.pr-flag { position: absolute; top: -13px; left: 24px; padding: 5px 13px; border-radius: 99px; font-size: .74rem; font-weight: 800; letter-spacing: .03em; color: var(--on-gold); background: linear-gradient(90deg, var(--gold-2), var(--gold)); box-shadow: 0 6px 16px -6px rgba(228,174,39,.7); }
.pr-card h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.pr-tag { margin: 6px 0 0; color: var(--muted); font-size: .92rem; min-height: 2.7em; }
.pr-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 18px 0 20px; }
.pr-now { font: 800 3rem/1 var(--display); letter-spacing: -.05em; } .pr-now i { font-style: normal; font-size: 1.5rem; letter-spacing: 0; margin-right: 2px; vertical-align: .6em; color: var(--muted); } .pr-now.small { font-size: 1.7rem; }
.pr-per { color: var(--muted); font-size: .95rem; } .pr-was { color: var(--muted); font-size: 1rem; margin-left: 4px; }
.pr-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; flex: 1; }
.pr-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--text-soft); line-height: 1.4; }
.pr-list li svg { flex: none; margin-top: 2px; color: var(--ok); }
.pr-list li.hl { color: var(--paper); } .pr-list li.hl b { color: var(--gold-text); }
.pr-list b { font-weight: 800; }
.pr-cta { width: 100%; justify-content: center; text-align: center; } .pr-cta.current { cursor: default; opacity: .75; } .pr-cta.spacer { height: 44px; }
.pr-note { max-width: 640px; margin: 34px auto 0; text-align: center; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.pr-card.upgrade { text-align: center; align-items: center; transform: none; padding-top: 38px; gap: 6px; }
.pr-card.upgrade h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.pr-card.upgrade p { color: var(--text-soft); margin: 8px 0 18px; }
.pr-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 920px) { .pr-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } .pr-card.featured { transform: none; order: -1; } .pr-tag { min-height: 0; } }
@media (max-width: 760px) { .pricepage .pr { padding: 96px 0 48px; } }


/* ══ Landing: real product screens (not mock-ups) ═══════════════════════ */
.mock.shot { padding: 0; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid rgba(var(--fg-rgb), .14); aspect-ratio: 390 / 690; backdrop-filter: none; }
.mock.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.m-post.shot { width: 215px; left: 4%; top: 2%; }
.m-reply.shot { width: 220px; right: 0; top: 22%; }
.m-stat.shot { width: 250px; left: 18%; bottom: 0; aspect-ratio: 16 / 10; }
.m-stat.shot img { object-position: top 36%; }
.phone { width: 332px; }
.screen.shot { padding: 0; gap: 0; background: #fff; }
.screen.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (max-width: 760px) {
  .m-post.shot { width: 44%; left: 0; padding: 0; } .m-reply.shot { width: 46%; right: 0; top: 18%; padding: 0; } .m-stat.shot { width: 56%; left: 12%; padding: 0; }
  .phone { width: 300px; }
}
.mock.shot img { height: auto; transform: translateY(-9.5%); } .m-post.shot img { transform: translateY(-17%); }          /* hero cards drop the app's top bar and show the content */
.m-stat.shot { aspect-ratio: 16 / 11; } .m-stat.shot img { transform: translateY(-9.5%); }

/* ══ Brand logos are bare cutouts: no tile or colour block behind them ═══ */
.brand-ico, .brand-ico.instagram, .brand-ico.youtube, .brand-ico.linkedin, .brand-ico.facebook, .brand-ico.facebook_page,
.row .brand-ico, .d3-acct .brand-ico, .d3-tile .brand-ico, .d3-target .brand-ico, .d3-stack .brand-ico {
  background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; width: auto !important; height: auto !important; min-width: 0; margin: 0 !important; }
.brand-ico svg { display: block; }
.d3-stack { gap: 8px; align-items: center; }
.d3-logo { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.d3-acct .brand-ico { width: 34px !important; display: grid; place-items: center; }
.d3-target .brand-ico { display: grid; }
.d3-target i { right: -4px; bottom: -3px; }
.chip-acct svg { color: inherit; }
.d3-kicon, .d3-kicon.ok, .d3-kicon.sm { background: none !important; border-radius: 0; width: 40px; height: 40px; }
.d3-kicon svg { width: 34px; height: 34px; }

/* ══ Hero: the connected apps, as they look when the post lands ══════════ */
.mock.app-shot { width: 200px; }
.mock.app-shot img { height: 100%; transform: none; object-position: center; }
.m-ig { left: 0; top: 0; z-index: 2; }
.m-yt { right: 0; top: 4%; z-index: 2; }
.m-li { left: 9%; bottom: -36px; z-index: 4; }
.m-fb { right: 5%; bottom: -18px; z-index: 5; }
@media (max-width: 760px) {
  .mock.app-shot { width: 42%; }
  .m-ig { left: 0; top: 0; } .m-yt { right: 0; top: 4%; } .m-li { left: 4%; bottom: 0; } .m-fb { right: 4%; bottom: 0; }
}
@media (max-width: 900px) { .stage { width: 100%; } }

/* ══ UX pass: no overlaps, bigger tap targets, readable text, safe actions ═ */
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* app pages: the top bar is solid enough that content never shows through it */
body:not(.landing) .nav-inner, body:not(.landing) .nav.scrolled .nav-inner { background: rgba(var(--bg-rgb), .94); }
.nav-links a, .nav-links button { white-space: nowrap; }
.brand { padding: 8px 4px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
/* KPI cards are links */
a.d3-kpi { color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.d3-kpi:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 2px 4px rgba(20,19,61,.05), 0 18px 38px -18px rgba(20,19,61,.32); }
a.d3-kpi:focus-visible, .d3-post:focus-visible, .d3-auto:focus-visible, .d3-tile:focus-visible, .d3-link:focus-visible, .d3-x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* readable text */
.d3-kt small { font-size: .78rem; } .d3-chart .cb span { font-size: .75rem; }
:root[data-theme="light"] .d3-kt span.ok, :root[data-theme="light"] .d3-kt em.ok { color: #0a6b47; }
.d3-chart figcaption { margin-top: 10px; font-size: .84rem; color: var(--muted); } .d3-chart figcaption b { color: var(--paper); }
.d3-link { min-height: 36px; } .d3-ch { flex-wrap: wrap; row-gap: 4px; }
/* disconnect: always visible, big enough to hit, confirmed before it runs */
.d3-x { width: 36px; height: 36px; opacity: .55; font-size: 1.25rem; } .d3-acct:hover .d3-x, .d3-x:hover { opacity: 1; }
/* the header actions are real buttons on every screen size (no floating button covering content) */
.d3-cta .btn { min-height: 44px; }
.d3-stack { flex-wrap: wrap; gap: 6px 10px; max-width: 100%; }
@media (max-width: 760px) {
  .d3-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .d3-cta { display: flex; width: 100%; } .d3-cta .btn { flex: 1; justify-content: center; }
  .dashpage .dash.d3 { padding-bottom: 32px; }
}
@media (max-width: 380px) {
  .nav-links a:not(.btn), button.link { padding: 10px 6px; font-size: .86rem; } .nav-inner { padding: 8px 8px 8px 14px; gap: 8px; }
  .d3-stack svg { width: 22px; height: 22px; } .d3-kt strong { font-size: 1.2rem; }
  .d3-ch h2 { font-size: .98rem; }
}
.d3-add > small { font-size: .78rem; }
.brand svg, .brand .logo-mark { flex: none; }
@media (max-width: 400px) { .nav .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .nav-inner { gap: 4px; } }   /* logo mark only, still named for screen readers */
/* accounts logos sit in a compact 2x2 so the card never overflows at any width */
.d3-stack { display: grid; grid-template-columns: repeat(2, 26px); gap: 8px 12px; max-width: none; flex: none; align-items: center; justify-items: center; }
.pr-badge { font-size: .78rem; }
.nav-links a:not(.btn), .nav-links button.link { min-height: 40px; display: inline-flex; align-items: center; }
.d3-state { font-size: .78rem; }
.btn.sm { min-height: 40px; }
.section-title a { display: inline-flex; align-items: center; min-height: 36px; }

/* ══ Comment shield ══════════════════════════════════════════════════════ */
.sh-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border-radius: 16px; background: var(--navy-2); border: 1px solid var(--line); margin-bottom: 14px; }
.sh-meta { color: var(--muted); font-size: .9rem; flex: 1 1 240px; min-width: 0; }
.sh-actions-top { display: flex; gap: 8px; margin-left: auto; }
.sh-basic { margin: 0 0 14px; } .sh-engine { margin: 0 0 12px; }
.sh-queue { display: grid; gap: 12px; }
.sh-card { padding: 18px 20px; display: grid; gap: 10px; transition: opacity .28s, transform .28s; }
.sh-card.sh-gone { opacity: 0; transform: translateX(24px); }
.sh-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.sh-head b { font-size: 1rem; overflow-wrap: anywhere; }
.sh-chip, .sh-sev, .sh-rep { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--line); color: var(--text-soft); }
.sh-sev.sev-hi { color: var(--bad); background: rgba(209,35,74,.1); } .sh-sev.sev-mid { color: var(--gold-text); background: rgba(228,174,39,.14); }
.sh-rep { color: var(--bad); background: rgba(209,35,74,.08); border: 1px dashed rgba(209,35,74,.4); }
.sh-text { margin: 0; padding: 12px 14px; border-left: 3px solid var(--line-2); border-radius: 4px 12px 12px 4px; background: rgba(var(--fg-rgb), .04); font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.sh-why { margin: 0; font-size: .9rem; color: var(--text-soft); }
.sh-actions { display: flex; flex-wrap: wrap; gap: 8px; } .sh-actions .btn { min-width: 84px; justify-content: center; }
.sh-done { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sh-empty { padding: 26px 16px; }
.sh-settings { margin-top: 28px; padding: 6px 20px 20px; border-radius: 18px; background: var(--navy-2); border: 1px solid var(--line); }
.sh-settings summary { cursor: pointer; padding: 14px 0; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.sh-form { display: grid; gap: 18px; margin-bottom: 14px; }
.sh-set { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; } .sh-set legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.sh-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.sh-check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; cursor: pointer; border: 1px solid var(--line-2); min-height: 48px; }
.sh-check:has(input:checked) { border-color: var(--gold-text); background: rgba(228,174,39,.08); } .sh-check input { width: 18px; height: 18px; accent-color: #E4AE27; flex: none; }
.sh-check:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) { .sh-actions-top { margin-left: 0; width: 100%; } .sh-actions .btn { flex: 1; } .sh-card { padding: 16px; } }
.sh-actions .danger-text { color: var(--bad); border-color: rgba(209,35,74,.35); }
