/* ==========================================================================
   ShopDrop marketing layer v3
   Loaded by the landing page, sign-in and the two documents. The dashboard and
   the phone flow never load this file — they get styles.css alone.
   ========================================================================== */

:root {
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --nav-h: 64px;
}

/* --------------------------------------------------------- page canvas */

/* The shader gradient lives here; before three.js arrives (or when it never
   does) the CSS gradient below is the design. */
.fx-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(900px 620px at 15% 10%, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.16), transparent 62%),
    radial-gradient(800px 560px at 88% 18%, rgba(194, 161, 115, 0.13), transparent 62%),
    radial-gradient(700px 500px at 60% 100%, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.08), transparent 66%),
    var(--bg);
}
:root[data-theme='light'] .fx-bg {
  background:
    radial-gradient(900px 620px at 15% 10%, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.11), transparent 62%),
    radial-gradient(800px 560px at 88% 18%, rgba(194, 161, 115, 0.11), transparent 62%),
    radial-gradient(700px 500px at 60% 100%, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.06), transparent 66%),
    var(--bg);
}
.fx-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.fx-bg canvas.fx-ready { opacity: 1; }
.no-fx .fx-bg canvas, .fx-failed { display: none; }

/* Fine grain over everything — the thing that stops flat colour looking flat. */
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: 0.55; mix-blend-mode: soft-light;
  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='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}
:root[data-theme='light'] .grain { opacity: 0.35; }

/* styles.css makes body a 100%-tall scroll container (overflow-x: hidden forces
   overflow-y to auto). The marketing pages want the *window* to scroll — fixed
   nav, scroll progress, anchor links — so body is a plain block here. */
body.site { background-image: none; overflow-x: clip; height: auto; min-height: 100%; }
.site main { position: relative; z-index: 1; }
/* Oversized canvases and blurred glows overhang their boxes on purpose. Clip
   them per section so they never widen the layout viewport on a phone — a
   clip on body alone propagates to the viewport and stops working there. */
.site main > section, .site .footer { overflow-x: clip; }
.hero-stage-v3 { overflow: clip; overflow-clip-margin: 6vw; }

/* ------------------------------------------------------------- nav */

.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 14px;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  width: 100%; max-width: 1180px; height: var(--nav-h);
  display: flex; align-items: center; gap: 6px; padding: 0 10px 0 16px;
  border-radius: 20px; border: 1px solid var(--glass-line);
  background: var(--glass); backdrop-filter: blur(20px) saturate(1.7); -webkit-backdrop-filter: blur(20px) saturate(1.7);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, var(--shadow-2);
  transition: max-width 520ms var(--ease), height 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms;
}
.nav.compact .nav-inner { max-width: 940px; height: 56px; box-shadow: var(--shadow-3); border-color: var(--glass-line); }
.nav .brand { font-size: 1.02rem; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
.nav-links a {
  position: relative; padding: 8px 12px; border-radius: 10px; color: var(--text-dim); font-size: 0.88rem; font-weight: 540;
  transition: color var(--fast), background var(--fast);
}
.nav-links a:hover { color: var(--text); background: var(--bg-hi); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-burger { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 49; background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: calc(var(--nav-h) + 34px) 22px 22px; display: none; flex-direction: column; gap: 6px;
}
.menu.open { display: flex; animation: fade-in var(--mid) var(--ease); }
.menu a { font-size: 1.5rem; font-weight: 640; letter-spacing: -0.02em; padding: 14px 6px; border-bottom: 1px solid var(--line-soft); color: var(--text); }
.menu a:hover { text-decoration: none; color: var(--accent); }
.menu .menu-foot { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta .hide-m { display: none; }
}

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--violet)); pointer-events: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: #04120f; font-weight: 640; }
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------- type */

.site h1, .site h2, .site h3 { letter-spacing: -0.03em; }
.display { font-family: var(--display); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 680; text-wrap: balance; }
.hero-title .display { font-size: 1.06em; color: var(--accent); }
.section-title { font-size: clamp(1.8rem, 3.8vw, 2.9rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--text-dim); text-wrap: pretty; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.kicker::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }

/* Word-by-word reveal. Words are wrapped by site.js; without JS the text is
   simply visible. */
.words .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.words .w > span { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform 900ms var(--ease), opacity 600ms; transition-delay: var(--d, 0ms); }
.words.in .w > span { transform: none; opacity: 1; }

/* -------------------------------------------------------------- hero */

.hero-v3 { position: relative; padding: calc(var(--nav-h) + 92px) 0 40px; min-height: 100svh; display: flex; align-items: center; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: center; width: 100%; }
.hero-copy { position: relative; z-index: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--text-faint); font-size: 0.84rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { color: var(--accent); }

.hero-stage-v3 { position: relative; aspect-ratio: 1.05; min-height: 380px; }
.hero-stage-v3 canvas { position: absolute; inset: -8% -12%; width: 124%; height: 116%; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-stage-v3 canvas.fx-ready { opacity: 1; }
/* Static composition shown until (or instead of) the 3D scene. */
.hero-static { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 900ms var(--ease); }
.hero-stage-v3 canvas.fx-ready ~ .hero-static { opacity: 0; }
.hero-static .blob {
  width: 74%; aspect-ratio: 1; border-radius: 50%; filter: blur(48px); opacity: 0.55;
  background: conic-gradient(from 210deg, var(--accent), var(--violet), var(--accent-deep), var(--accent));
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* floating UI chips over the 3D */
.float-card {
  position: absolute; z-index: 3; padding: 12px 14px; border-radius: 16px; min-width: 190px;
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-2);
  animation: floaty 7s var(--ease) infinite alternate;
}
.float-card.a { left: -4%; bottom: 14%; animation-delay: -2s; }
.float-card.b { right: -2%; top: 12%; animation-delay: -5s; min-width: 210px; }
.float-card .row { gap: 10px; }
@keyframes floaty { from { transform: translateY(-6px); } to { transform: translateY(8px); } }
@media (max-width: 980px) {
  .hero-v3 { padding-top: calc(var(--nav-h) + 60px); min-height: auto; }
  .hero-layout { grid-template-columns: 1fr; gap: 10px; }
  .hero-stage-v3 { min-height: 340px; aspect-ratio: 1.2; order: 2; }
  .float-card.a { left: 0; bottom: 6%; } .float-card.b { right: 0; top: 4%; }
}
@media (max-width: 560px) { .float-card { min-width: 0; padding: 10px 12px; font-size: 0.9rem; } .float-card.b { display: none; } }

/* -------------------------------------------------------------- marquee */

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-card); color: var(--text-dim); font-size: 0.86rem; white-space: nowrap; }
.marquee-item svg { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------- sections */

.sec { padding: 110px 0; position: relative; }
.sec-tight { padding: 70px 0; }
.sec-head { max-width: 680px; margin-bottom: 46px; }
.sec-head p { margin-top: 14px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .kicker::before { display: none; }

/* --------------------------------------------------------------- bento */

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.bento > * { grid-column: span 4; }
.bento .span-8 { grid-column: span 8; }
.bento .span-6 { grid-column: span 6; }
.bento .span-12 { grid-column: span 12; }
@media (max-width: 1000px) { .bento > *, .bento .span-8, .bento .span-6 { grid-column: span 6; } }
@media (max-width: 640px) { .bento > *, .bento .span-8, .bento .span-6 { grid-column: span 12; } }

/* Cards with a pointer-tracked spotlight and a lit border. */
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 26px; border-radius: 22px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-raised));
  border: 1px solid var(--line);
  transition: transform var(--slow) var(--ease), border-color var(--mid), box-shadow var(--slow) var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-3); }
.tile::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity var(--mid);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-ghost), transparent 60%);
}
.tile:hover::before { opacity: 1; }
.tile::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px; opacity: 0; transition: opacity var(--mid);
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), var(--accent-line), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.tile:hover::after { opacity: 1; }
.tile h3 { font-size: 1.12rem; margin: 14px 0 8px; }
.tile p { margin: 0; font-size: 0.94rem; line-height: 1.6; }
.tile-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-ghost); color: var(--accent); border: 1px solid var(--accent-line);
}
.tile-icon.violet { background: var(--violet-ghost); color: var(--violet); border-color: rgba(194,161,115,0.3); }
.tile-visual { margin-top: 20px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--bg-input); padding: 14px; }
.tile.dark { background: linear-gradient(160deg, #121614, #080a09); border-color: #242a27; color: #e7ebe8; }
.tile.dark p { color: #9aa5a0; }
.tile.accent { background: linear-gradient(150deg, var(--accent), var(--accent-deep)); border-color: transparent; color: #04120f; }
.tile.accent h3, .tile.accent p, .tile.accent .kicker { color: #04120f; }
.tile.accent .tile-icon { background: rgba(4,18,15,0.14); color: #04120f; border-color: rgba(4,18,15,0.18); }

/* pill row inside a tile (fake UI) */
.ui-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; background: var(--bg-card); border: 1px solid var(--line-soft); font-size: 0.86rem; }
.ui-row + .ui-row { margin-top: 7px; }
.ui-row .grow { flex: 1; min-width: 0; }
.ui-row .bar-track { margin-top: 5px; }

/* ---------------------------------------------------------- steps */

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.steps-list { display: flex; flex-direction: column; gap: 6px; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 16px; border-radius: 18px; border: 1px solid transparent;
  cursor: pointer; transition: background var(--mid), border-color var(--mid);
}
.step:hover, .step.active { background: var(--bg-card); border-color: var(--line); }
.step .n {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-family: var(--mono);
  background: var(--bg-input); border: 1px solid var(--line); color: var(--text-dim); transition: all var(--mid);
}
.step.active .n { background: var(--accent); color: #04120f; border-color: transparent; box-shadow: var(--shadow-accent); }
.step h3 { font-size: 1.05rem; margin: 0 0 5px; }
.step p { margin: 0; font-size: 0.92rem; }
.step .prog { height: 2px; background: var(--line-soft); margin-top: 12px; border-radius: 99px; overflow: hidden; }
.step .prog i { display: block; height: 100%; width: 0; background: var(--accent); }
.step.active .prog i { animation: fill var(--step-ms, 5200ms) linear forwards; }
@keyframes fill { to { width: 100%; } }

.phone-mock { position: sticky; top: calc(var(--nav-h) + 40px); justify-self: center; width: min(320px, 100%); aspect-ratio: 9/18.6; border-radius: 42px; padding: 10px;
  background: linear-gradient(160deg, #1a2331, #0a0f16); box-shadow: var(--shadow-3), 0 0 0 1px #333b38 inset; }
.phone-mock .scr { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg); border: 1px solid var(--line-soft); }
.phone-mock .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 99px; background: #0b0d0c; z-index: 3; }
.phone-mock .pane { position: absolute; inset: 0; padding: 56px 18px 18px; display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateX(22px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.phone-mock .pane.on { opacity: 1; transform: none; }
.phone-mock .pane h4 { font-size: 1.15rem; letter-spacing: -0.02em; }
.phone-mock .pane p { font-size: 0.82rem; margin: 0; }
.phone-mock .qr { width: 150px; height: 150px; margin: 8px auto; border-radius: 16px; background: #fff; padding: 12px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.phone-mock .qr i { background: #0b0f14; border-radius: 2px; }
.phone-mock .qr i:nth-child(3n) { opacity: 0; }
.phone-mock .cam { flex: 1; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #1c2a3b, #0a1017); display: grid; place-items: center; position: relative; overflow: hidden; }
.phone-mock .cam .doc { width: 62%; aspect-ratio: 0.72; background: #f4f6f9; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); transform: rotate(-6deg); }
.phone-mock .cam .frame { position: absolute; inset: 18px; border: 2px dashed var(--accent); border-radius: 12px; opacity: 0.7; }
.phone-mock .chk { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--line); font-size: 0.86rem; }
.phone-mock .chk.done { border-color: var(--ok); background: var(--ok-ghost); }
.phone-mock .chk .m { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; }
.phone-mock .chk.done .m { background: var(--ok); border-color: var(--ok); color: #04120f; }
.phone-mock .send { margin-top: auto; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .phone-mock { position: relative; top: 0; order: -1; width: min(280px, 100%); } }

/* --------------------------------------------------------- compare */

.compare { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--bg-card); }
.compare > div { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); font-size: 0.93rem; display: flex; align-items: center; gap: 10px; }
.compare > div:nth-last-child(-n+3) { border-bottom: 0; }
.compare .h { font-weight: 660; background: var(--bg-raised); color: var(--text); }
.compare .h.us { color: var(--accent); }
.compare .us { background: hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.05); }
.compare .no { color: var(--text-faint); }
.compare .no svg { color: var(--danger); }
.compare .yes svg { color: var(--ok); }
.compare .lab { color: var(--text-dim); }
@media (max-width: 700px) {
  .compare { grid-template-columns: 1fr 1fr; }
  .compare .lab { grid-column: 1 / -1; padding-bottom: 6px; border-bottom: 0; font-weight: 600; color: var(--text); }
  .compare .h.lab { display: none; }
}

/* ----------------------------------------------------------- numbers */

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.num { padding: 26px 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-card); position: relative; overflow: hidden; }
.num b { display: block; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(120deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num > span { display: block; margin-top: 10px; color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }
@media (max-width: 900px) { .numbers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .numbers { grid-template-columns: 1fr; } }

/* orb panel */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
/* Explicit width: auto margins on a grid/flex item otherwise shrink it to its
   (absolutely positioned, so zero) content. */
.orb-stage { position: relative; aspect-ratio: 1; width: min(520px, 100%); margin: 0 auto; }
.orb-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.orb-stage canvas.fx-ready { opacity: 1; }
.orb-stage .fallback { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--accent), var(--violet) 55%, #0b0d0c 100%); filter: blur(2px); opacity: 0.8; transition: opacity 900ms; }
.orb-stage canvas.fx-ready ~ .fallback { opacity: 0; }
.trust-list { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.trust-list li { list-style: none; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--bg-card); font-size: 0.93rem; color: var(--text-dim); }
.trust-list li b { color: var(--text); font-weight: 620; }
.trust-list li svg { color: var(--accent); margin-top: 2px; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } .orb-stage { width: min(380px, 100%); } }

/* ----------------------------------------------------------- pricing */

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 26px 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-card); position: relative; transition: transform var(--slow) var(--ease), box-shadow var(--slow), border-color var(--mid); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--line-strong); }
.plan.hot { border-color: var(--accent-line); background: linear-gradient(180deg, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.09), var(--bg-card) 60%); }
.plan.hot::before { content: 'Most counters'; position: absolute; top: -12px; left: 22px; padding: 4px 10px; border-radius: 99px; background: var(--accent); color: #04120f; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.plan .name { font-weight: 660; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.plan .price { font-size: 2.4rem; font-weight: 720; letter-spacing: -0.05em; margin: 14px 0 2px; line-height: 1; }
.plan .price small { font-size: 0.85rem; font-weight: 500; color: var(--text-faint); letter-spacing: 0; }
.plan .cap { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 14px; }
.plan ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; color: var(--text-dim); }
.plan ul li { display: flex; gap: 9px; align-items: flex-start; }
.plan ul svg { color: var(--accent); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- faq */

.faq-v3 { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-v3 details { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-card); overflow: hidden; transition: border-color var(--mid); }
.faq-v3 details[open] { border-color: var(--accent-line); }
.faq-v3 summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; font-weight: 610; font-size: 1rem; }
.faq-v3 summary::-webkit-details-marker { display: none; }
.faq-v3 summary .pm { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-dim); flex: none; transition: transform var(--mid) var(--ease-back), background var(--mid), color var(--mid); }
.faq-v3 details[open] summary .pm { transform: rotate(45deg); background: var(--accent); color: #04120f; border-color: transparent; }
.faq-v3 .ans { padding: 0 20px 18px; color: var(--text-dim); line-height: 1.6; font-size: 0.95rem; }
.faq-v3 .ans p { margin: 0; }

/* ---------------------------------------------------------------- cta */

.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px 30px; text-align: center;
  background: linear-gradient(160deg, #121614, #080a09); border: 1px solid #242a27; color: #e7ebe8;
}
.cta::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 90deg at 50% 50%, transparent, hsl(var(--accent-h) var(--accent-s) var(--accent-l) / 0.35), transparent 30%, rgba(194,161,115,0.3), transparent 60%); animation: spin 18s linear infinite; filter: blur(50px); opacity: 0.8; }
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: #9aa5a0; }
.cta .btn-outline { color: #e7ebe8; border-color: #333b38; }
.cta .btn-outline:hover { background: rgba(255,255,255,0.06); }

/* -------------------------------------------------------------- footer */

.footer { padding: 60px 0 36px; border-top: 1px solid var(--line-soft); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer a { color: var(--text-dim); font-size: 0.92rem; }
.footer a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--text-faint); font-size: 0.82rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------- buttons */

/* Magnetic primary button with a moving sheen. */
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::after { content: ''; position: absolute; top: -50%; bottom: -50%; left: -30%; width: 40%; transform: skewX(-20deg) translateX(-200%); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); transition: transform 0s; }
.btn-glow:hover::after { transform: skewX(-20deg) translateX(520%); transition: transform 900ms var(--ease); }
.btn-arrow svg { transition: transform var(--mid) var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------ auth */

.auth { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 34px 40px; border-right: 1px solid var(--line-soft);
  background: linear-gradient(160deg, #121614, #080a09); color: #e7ebe8; }
.auth-side .orb-stage { flex: 1; width: 100%; max-width: none; aspect-ratio: auto; min-height: 300px; }
.auth-side .orb-stage .fallback { inset: 22%; }
.auth-side .quote { font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.25; color: #fff; text-wrap: balance; }
.auth-side .muted { color: #9aa5a0; }
.auth-side .brand { color: #fff; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 22px; }
.auth-card { width: min(440px, 100%); }
.auth-card .card { padding: 26px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-form { padding-top: 70px; } }

/* -------------------------------------------------------------- docs */

.doc { max-width: 820px; margin: 0 auto; padding: calc(var(--nav-h) + 70px) 22px 90px; }
.doc-head { margin-bottom: 40px; }
.doc-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.02; margin-bottom: 14px; }
.doc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.doc-card { padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-card); display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.doc-card .k { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-ghost); color: var(--accent); border: 1px solid var(--accent-line); font-weight: 700; font-family: var(--mono); font-size: 0.85rem; }
.doc-card h3 { font-size: 1.04rem; margin-bottom: 6px; }
.doc-card p, .doc-card li { color: var(--text-dim); line-height: 1.62; }
.doc-card p { margin: 0; }
.doc-card ul { margin: 0; padding-left: 18px; }

/* Scroll reveals hide content only once JS has confirmed it will unhide it;
   with scripts blocked the page is simply all there. */
.reveal { opacity: 1; transform: none; }
html.js .reveal:not(.in) { opacity: 0; transform: translateY(26px); }

/* -------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  .words .w > span { transform: none; opacity: 1; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .float-card, .hero-static .blob, .cta::before { animation: none; }
  .step.active .prog i { width: 100%; animation: none; }
  .tile:hover, .plan:hover { transform: none; }
}
