/* ==========================================================
   Unlimity — Media Buying Cards
   Layout: dark editorial stack; gold carries emphasis only.
   ========================================================== */
:root {
  color-scheme: dark;
  --bg: #0b0a09;
  --panel: rgba(22, 22, 22, 0.72);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3efe8;
  --muted: #9c978f;
  --text-muted: #b9b2a7;
  --text-subtle: #8e877c;
  --nav-idle: #a39c92;
  --gold: #edb65e;
  --gold-2: #ffbe55;
  --ok: #7fd39a;
  --on-gold: #1a1208;
  --cta-grad: linear-gradient(90deg, #d9a04a, #f2c679);
  --outline: rgba(243, 239, 232, 0.20);
  --bad: #f07a6a;
  --gold-grad: linear-gradient(100deg, #b86e17 0%, #f2a93b 45%, #ffc566 70%, #c9801d 100%);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Geist", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Geist", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --nav-max: 1280px;
  --gutter: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.gold-text {
  background: var(--gold-grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.eyebrow { color: var(--gold); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }

/* ---------- Ambient layers ---------- */
.cursor-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(600px circle at var(--cx, 70%) var(--cy, 30%), rgba(242,169,59,.09), transparent 60%); }
.noise {
  position: fixed; inset: -50%; pointer-events: none; z-index: 1; opacity: .05;
  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='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-3%); } 75% { transform: translate(3%,3%); } }
main, .footer, .nav { position: relative; z-index: 2; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo-mark { display: block; height: 32px; width: auto; aspect-ratio: 920 / 270; }
.footer .logo-mark { height: 40px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s;
  isolation: isolate; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-gold { background: var(--cta-grad); color: var(--on-gold); box-shadow: 0 16px 50px rgba(237,182,94,.25); }
.btn-gold::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-gold:hover { box-shadow: 0 18px 56px rgba(237,182,94,.4); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-ghost:hover svg { transform: none; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 32px;
  --nav-x: max(var(--gutter), calc((100% - var(--nav-max)) / 2));
  padding: calc(28px + env(safe-area-inset-top, 0px)) var(--nav-x) 18px;
  transition: background .4s, padding .4s, border-color .4s; border-bottom: 1px solid transparent; }
/* Scrim so nav links stay legible over the card wall before the bar turns solid */
.nav::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(11,10,9,.96) 0%, rgba(11,10,9,.82) 55%, transparent 100%); transition: opacity .4s; }
.nav.scrolled::before { opacity: 0; }
.nav.scrolled { background: rgba(8,8,8,.72); backdrop-filter: blur(18px) saturate(140%); padding-block: calc(14px + env(safe-area-inset-top, 0px)) 14px; border-color: var(--line); }
.nav-links { display: flex; gap: 32px; margin-left: auto; font-size: 15px; color: var(--nav-idle); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--gold); transition: right .3s var(--ease); }
.nav-links a:hover, .nav-links a.current { color: var(--text); }
.nav-links a:hover::after, .nav-links a.current::after { right: 0; }
.burger { display: none; width: 44px; height: 44px; flex: none; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

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

/* ---------- Hero: B2 card wall ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(100vh, 900px);
  padding: 208px var(--gutter) 96px;
  display: flex; justify-content: center; align-items: flex-start;
  --cw: 220px; --chh: 136px; --cgap: 22px; --cpad: 16px;
  --base: 60s;
}
/* The tilted plane of six rows; 120% wide and offset so no edge shows. */
.wall { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity .8s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.wall.in { opacity: 1; }
.wall-plane {
  position: absolute; left: -10%; top: -6%; width: 120%;
  display: flex; flex-direction: column; gap: var(--cgap);
  transform: perspective(1800px) rotateX(24deg) rotateZ(-7deg); transform-origin: 50% 40%;
}
.wall-row { overflow: visible; }
.wall-row:nth-child(n+7) { display: none; }
.wall-track {
  display: flex; width: max-content; will-change: transform;
  animation: wall-left calc(var(--base) * var(--m, 1)) linear infinite;
}
.wall-row.right .wall-track { animation-name: wall-right; }
.wall.paused .wall-track { animation-play-state: paused; }
@keyframes wall-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wall-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.wc {
  flex: none; width: var(--cw); height: var(--chh); margin-right: var(--cgap); padding: var(--cpad);
  border-radius: 14px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, #2e2a26, #141210); border: 1px solid rgba(243,239,232,.10);
  color: var(--text);
}
.wc.gold { background: linear-gradient(135deg, #c68c3c, #5a3a14); border-color: rgba(255,220,160,.28); }
.wc .logo-mark { height: calc(var(--chh) * .14); width: auto; aspect-ratio: 920 / 270; }
.wc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
/* Platform badge: each card is dedicated to one ad platform */
.wc-badge { --b: calc(var(--chh) * .2); flex: none; width: var(--b); height: var(--b); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.wc-badge svg { display: block; }
.wc-badge.fb { background: #fff; color: #0866ff; }
.wc-badge.fb svg { width: 100%; height: 100%; }
.wc-badge.tt { background: #000; color: #fff; border: 1px solid rgba(255,255,255,.14); }
.wc-badge.tt svg { width: 56%; height: 56%; filter: drop-shadow(-1px -1px 0 #25f4ee) drop-shadow(1px 1px 0 #fe2c55); }
.wc-badge.g { background: #fff; }
.wc-badge.g i { display: block; width: 58%; height: 58%;
  background: conic-gradient(from 0deg, #ea4335 0deg 52deg, #4285f4 52deg 135deg, #34a853 135deg 222deg, #fbbc05 222deg 300deg, #ea4335 300deg 360deg);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z'/></svg>") center / contain no-repeat; }
.wc-num { font-family: var(--mono); font-size: calc(var(--chh) * .088); letter-spacing: .06em; }
.wc-tag { font-size: calc(var(--chh) * .0735); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.wall-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 48% 52% at 50% 54%, rgba(11,10,9,.97) 38%, rgba(11,10,9,.6) 74%, rgba(11,10,9,.15) 100%);
}

.hero-content { position: relative; width: 100%; max-width: 940px; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Extra dark halo hugging the copy, so text holds 4.5:1 whichever cards drift behind it */
.hero-content::before { content: ""; position: absolute; inset: -90px -220px -110px; z-index: -1; pointer-events: none; background: radial-gradient(farthest-side, rgba(11,10,9,.95) 64%, rgba(11,10,9,.6) 86%, transparent 100%); }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: var(--bg); border: 1px solid rgba(237,182,94,.3);
  color: var(--gold); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(127,211,154,.5); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(127,211,154,.5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(127,211,154,0); } }
.hero-title { font-size: min(96px, 7.5vw); line-height: .97; font-weight: 800; letter-spacing: -0.045em; margin: 28px 0 0; color: var(--text); }
.h-line { display: block; white-space: nowrap; }
.h-gold { color: var(--gold); }
.hero-sub { max-width: 600px; margin-top: 28px; font-size: 19px; line-height: 1.55; color: var(--text-muted); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.btn-hero { font-size: 17px; padding: 18px 30px; }
.btn-hero.btn-gold { font-weight: 600; }
.btn-outline { border: 1px solid var(--outline); background: rgba(11,10,9,.6); backdrop-filter: blur(8px); font-weight: 500; }
.btn-outline:hover { border-color: rgba(237,182,94,.6); }
.hero-proof { margin-top: 28px; font-size: 14px; color: var(--text-subtle); }
.hero-proof b { color: var(--ok); font-weight: 500; }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: #0c0c0c; transform: rotate(-1.5deg); margin: 0 -2vw; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 26s linear infinite; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 52px); text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; }
.marquee-track span:nth-of-type(even) { -webkit-text-stroke: 1px rgba(255,255,255,.45); color: transparent; }
.marquee-track i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) var(--gutter); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(36px, 5vw, 66px); font-weight: 800; margin-top: 16px; }
.sub { color: var(--muted); font-size: 18px; margin-top: 18px; }

/* ---------- Tiles (shared) ---------- */
.tile { position: relative; border-radius: var(--radius); padding: 28px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .5s var(--ease); isolation: isolate; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tile:hover { transform: translateY(-4px); }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(242,169,59,.14), transparent 60%); }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(242,169,59,.8), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::before, .spot:hover::after { opacity: 1; }
.tile-muted { color: var(--muted); font-size: 15px; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile-figure { font-family: var(--display); font-weight: 800; font-size: clamp(54px, 5.4vw, 80px); line-height: 1; letter-spacing: -.04em; display: flex; align-items: baseline; gap: 8px; }
.tile-figure small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); font-family: var(--font); }
.tile-figure .infinity { font-size: 1.15em; line-height: .8; }
.benefits h3 { font-size: 21px; font-weight: 800; margin-top: 6px; }
.benefits .tile > :last-child { margin-top: auto; }

.topup-viz, .decline, .ticker { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); }
.tv-row { display: flex; justify-content: space-between; }
.tv-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.tv-row b.gold { color: var(--gold); }
.tv-bar { margin-top: 10px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.tv-bar i { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width 1.6s var(--ease) .3s; }
.tile.in .tv-bar i { width: 98%; }

.mini-cards { height: 64px; position: relative; }
.mini-cards i { position: absolute; bottom: 0; width: 70px; aspect-ratio: 1.586; border-radius: 7px; background: linear-gradient(135deg, #7a4610, #ffb547); border: 1px solid rgba(255,255,255,.2); left: calc(var(--n) * 30px); transform: translateY(20px) rotate(-6deg); opacity: 0; transition: transform .6s var(--ease), opacity .6s; transition-delay: calc(var(--n) * .1s); }
.mini-cards i:nth-child(even) { background: linear-gradient(135deg, #1c1c1c, #3a3a3a); }
.tile.in .mini-cards i { transform: rotate(calc(var(--n) * 4deg - 8deg)); opacity: 1; }
.tile:hover .mini-cards i { transform: rotate(calc(var(--n) * 4deg - 8deg)) translateY(-8px); }

.decline-row { display: flex; align-items: center; gap: 10px; }
.decline-row span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.decline-row b { color: var(--ok); font-weight: 600; white-space: nowrap; }
.badge-x { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(240,122,106,.14); color: var(--bad); }
.decline-row.flash { animation: swap .5s var(--ease); }

.ticker { display: flex; justify-content: space-between; align-items: baseline; }
.ticker b { font-family: var(--mono); color: var(--gold); font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------- Features + workspace ---------- */
.features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.feat-tabs { display: grid; gap: 8px; }
.feat-tab { position: relative; text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 20px; border-radius: 18px; border: 1px solid transparent; transition: background .3s, border-color .3s; overflow: hidden; }
.feat-tab:hover { background: rgba(255,255,255,.025); }
.feat-tab.active { background: var(--panel); border-color: var(--line-2); }
.ft-idx { font-family: var(--mono); font-size: 13px; color: var(--text-subtle); justify-self: start; align-self: start; margin-top: 3px; padding: 3px 0; border-radius: 999px; transition: color .3s, background .3s, padding .3s; }
.feat-tab.active .ft-idx { color: var(--on-gold); background: var(--gold); padding: 3px 9px; font-weight: 500; margin-top: 12px; }
.ft-body { min-width: 0; }
.nw { white-space: nowrap; } /* keep hyphenated words whole */
.ft-body b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.2; letter-spacing: -.01em; color: var(--text-subtle); transition: color .3s, font-size .35s var(--ease); }
.feat-tab:hover .ft-body b { color: var(--text-muted); }
.feat-tab.active .ft-body b { color: var(--text); font-size: clamp(30px, 3vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.ft-body small { display: block; max-height: 0; opacity: 0; overflow: hidden; color: var(--muted); font-size: 15px; transition: max-height .5s var(--ease), opacity .4s, margin .5s var(--ease); }
.feat-tab.active .ft-body small { max-height: 140px; opacity: 1; margin-top: 8px; }
.ft-progress { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; }
.feat-tab:not(.active) .ft-progress { display: none; } /* only the current feature shows progress */
.ft-progress i { display: block; height: 100%; width: calc(var(--fp, 0) * 100%); background: var(--gold-grad); }

/* Scroll-through: ~70vh of scrolling per feature while the stage stays pinned */
.feat-scroller { position: relative; height: calc(5 * 70vh + 100vh); }
.feat-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(24px, 4vh, 40px); padding: clamp(96px, 13vh, 150px) 0 24px; isolation: isolate; }
.feat-sticky .features { width: 100%; }
#features { padding-top: 0; padding-bottom: clamp(48px, 7vw, 96px); }
#benefits { padding-bottom: clamp(32px, 4vw, 56px); }
.feat-sticky .section-head { margin: 0; max-width: none; }
.feat-sticky .section-head h2 { font-size: clamp(32px, 3.4vw, 52px); margin-top: 10px; }
.feat-sticky .sub { font-size: 16px; margin-top: 10px; }
/* Background graphics: faint dot grid, warm glow behind the workspace, outlined step number */
.feat-sticky::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(243,239,232,.08) 1px, transparent 1.3px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 30%, transparent 80%); }
.feat-sticky::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 40% 45% at 72% 62%, rgba(237,182,94,.10), transparent 70%); }
.feat-bignum { position: absolute; left: -.04em; bottom: 2vh; z-index: -1; pointer-events: none; user-select: none;
  font-family: var(--display); font-weight: 800; font-size: clamp(180px, 21vw, 340px); line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(237,182,94,.16); font-variant-numeric: tabular-nums; }
.feat-bignum.swap { animation: numIn .6s var(--ease); }
@keyframes numIn { from { opacity: 0; transform: translateY(24px); } }
/* Fixed workspace height so the pinned stage doesn't shift as views swap */
.feat-sticky .ws-body { height: clamp(340px, calc(100vh - 380px), 540px); min-height: 0; overflow-y: auto; }
/* Short laptop screens: tighten the pinned stage so it fits */
@media (min-width: 1101px) and (max-height: 820px) {
  .feat-sticky { padding-top: 84px; gap: 20px; }
  .feat-sticky .sub { display: none; }
  .feat-sticky .section-head h2 { font-size: clamp(30px, 2.8vw, 40px); margin-top: 6px; }
  .feat-tab { padding: 12px 18px; }
  .ft-body b { font-size: 20px; }
  .feat-tab.active .ft-body b { font-size: clamp(26px, 2.3vw, 32px); }
  .feat-tab.active .ft-body small { font-size: 14px; }
  .feat-sticky .ws-body { height: calc(100vh - 232px); }
}
.feat-nav { display: none; }

.workspace { position: relative; border-radius: 24px; background: linear-gradient(170deg, #171717, #0d0d0d); border: 1px solid var(--line-2); box-shadow: 0 50px 100px -40px rgba(242,169,59,.35), 0 30px 60px -30px #000; overflow: hidden; min-width: 0; }
.ws-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ws-dots { display: flex; gap: 6px; } .ws-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c2c; }
.ws-dots i:first-child { background: var(--gold); }
.ws-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-bal b { color: var(--text); font-variant-numeric: tabular-nums; }
.ws-body { padding: 20px; min-height: 440px; display: flex; flex-direction: column; gap: 12px; }
.ws-body > * { animation: feedIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes feedIn { from { opacity: 0; transform: translateY(12px); } }
.ws-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ws-head h4 { margin: 0; font-family: var(--display); font-size: 17px; }
.ws-head small { color: var(--muted); font-size: 13px; }

.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line); font-size: 14px; text-align: left; width: 100%; }
.row.sel { border-color: rgba(242,169,59,.45); background: rgba(242,169,59,.06); }
.row .r-main { min-width: 0; }
.row .r-main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r-main small { color: var(--muted); font-size: 12px; }
.row .r-amt { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.row .r-amt small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.pf { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 13px; background: rgba(242,169,59,.12); color: var(--gold); border: 1px solid rgba(242,169,59,.2); }
.pf.g { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line-2); }
.meter { height: 5px; border-radius: 5px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: 7px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--gold-grad); width: var(--w, 0%); transition: width 1s var(--ease); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.stepper button { width: 36px; height: 36px; font-size: 18px; color: var(--gold); }
.stepper output { min-width: 3ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.select-line { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; transition: all .25s; }
.opt.on { background: var(--gold); color: #160c00; border-color: var(--gold); font-weight: 600; }
.issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; min-height: 140px; align-content: start; }
.ic { aspect-ratio: 1.586; border-radius: 9px; padding: 8px 9px; display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; background: linear-gradient(135deg, #3d2408, #d68b25); border: 1px solid rgba(255,255,255,.18); animation: pop .5s var(--ease) both; animation-delay: calc(var(--n) * 60ms); }
.ic:nth-child(3n+2) { background: linear-gradient(135deg, #111, #3a3a3a); }
.ic b { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.ic span { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
@keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
.ws-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ws-foot b { color: var(--text); font-variant-numeric: tabular-nums; }
.ws-foot .ok { color: var(--ok); }

.chk { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: all .2s; }
.row.sel .chk { background: var(--gold); border-color: var(--gold); }
.row.sel .chk::after { content: ""; width: 9px; height: 5px; border: 2px solid #160c00; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.r-amt .up { color: var(--ok); font-size: 12px; display: block; opacity: 0; transform: translateY(6px); transition: all .4s var(--ease); }
.r-amt .up.show { opacity: 1; transform: none; }

.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, #3d2408, #d68b25); }
.avatar.g { background: linear-gradient(135deg, #1c1c1c, #444); }
.role { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); transition: all .25s; white-space: nowrap; }
.role[data-r="Owner"] { background: var(--gold); color: #160c00; border-color: var(--gold); }
.role[data-r="Team lead"] { border-color: rgba(242,169,59,.5); color: var(--gold-2); }
.role.spin { animation: swap .35s var(--ease); }
.perm { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.perm span { font-size: 11px; color: var(--muted); padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.05); }

.tds { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid rgba(242,169,59,.35); background: rgba(242,169,59,.05); }
.tds .lock { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(242,169,59,.14); color: var(--gold); }
.tds .lock svg { width: 18px; height: 18px; }
.tds .code { font-family: var(--mono); color: var(--gold); letter-spacing: .2em; font-size: 15px; }
.tds.done { border-color: rgba(111,210,138,.4); background: rgba(111,210,138,.05); }
.tds.done .lock { background: rgba(111,210,138,.14); color: var(--ok); }
.btn-xs { padding: 8px 14px; font-size: 13px; }
.state { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.state.ok { color: var(--ok); background: rgba(111,210,138,.12); }
.state.wait { color: var(--gold); background: rgba(242,169,59,.12); }

/* ---------- Calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); padding: clamp(24px, 5vw, 64px); border-radius: 32px; background: linear-gradient(160deg, #161616, #0d0d0d); border: 1px solid var(--line); position: relative; overflow: hidden; }
.calc-wrap::before { content: ""; position: absolute; right: -20%; top: -40%; width: 70%; height: 140%; background: radial-gradient(circle, rgba(242,169,59,.16), transparent 60%); pointer-events: none; }
.calc-left, .calc-right { position: relative; min-width: 0; }
.calc-left h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; margin: 14px 0 34px; }
.range-label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); margin-top: 22px; }
.range-label output { color: var(--text); font-weight: 600; font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; margin: 16px 0 6px; background: linear-gradient(90deg, var(--gold) var(--p, 50%), rgba(255,255,255,.1) var(--p, 50%)); outline: none; }
input[type=range]:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--gold); box-shadow: 0 0 0 6px rgba(242,169,59,.15); cursor: grab; transition: transform .2s; }
input[type=range]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--gold); cursor: grab; }
.seg { display: inline-flex; margin-top: 30px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); }
.seg-btn { padding: 8px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); transition: color .3s, background .3s; }
.seg-btn.active { background: var(--gold); color: #160c00; }
.calc-right { display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.bars { display: grid; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 90px; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.bar-row b { text-align: right; color: var(--text); font-family: var(--display); font-variant-numeric: tabular-nums; }
.bar { height: 14px; border-radius: 8px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6b2e24, #e0624f); transition: width .6s var(--ease); }
.bar.gold i { background: var(--gold-grad); }
.save small { display: block; color: var(--muted); }
.save strong { display: block; font-family: var(--display); font-size: clamp(52px, 7vw, 96px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 4px 0; font-variant-numeric: tabular-nums; }
.calc-cta { align-self: flex-start; }

/* ---------- Offer ---------- */
.offer { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(24px, 5vw, 64px); border-radius: 32px; overflow: hidden; background: #121212; border: 1px solid var(--line-2); box-shadow: 0 0 0 1px rgba(242,169,59,.15), 0 40px 120px -40px rgba(242,169,59,.45); }
.offer-bg { position: absolute; inset: -2px; z-index: 0; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(242,169,59,.5) 85%, transparent 100%); animation: rotA 7s linear infinite; opacity: .45; filter: blur(30px); pointer-events: none; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rotA { to { --a: 360deg; } }
.offer-copy, .lead { position: relative; z-index: 1; min-width: 0; }
.offer-copy h2 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 800; margin-top: 16px; }
.offer-text { color: #cfc9bf; font-size: 18px; margin-top: 20px; max-width: 520px; }
.offer-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.offer-points li { display: flex; align-items: center; gap: 12px; }
.offer-points li::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: rgba(242,169,59,.14) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2a93b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12l4 4 8-8'/></svg>") center / 12px no-repeat; }

.lead { display: grid; gap: 16px; align-content: start; }
.field { position: relative; }
.field input { width: 100%; padding: 26px 18px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); color: var(--text); font: 16px var(--font); transition: border-color .25s, box-shadow .25s; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,169,59,.14); }
.field label { position: absolute; left: 18px; top: 18px; color: var(--muted); pointer-events: none; transition: all .2s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 8px; font-size: 12px; color: var(--gold); letter-spacing: .04em; }
.field.err input { border-color: var(--bad); }
.spend-pick { border: 0; padding: 0; margin: 4px 0 0; min-width: 0; }
.spend-pick legend { padding: 0; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.spend-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.spend-opts label { position: relative; cursor: pointer; }
.spend-opts input { position: absolute; opacity: 0; pointer-events: none; }
.spend-opts span { display: block; text-align: center; padding: 13px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); font-weight: 600; font-size: 15px; transition: all .25s var(--ease); }
.spend-opts label:hover span { border-color: rgba(242,169,59,.5); }
.spend-opts input:checked + span { background: var(--gold-grad); color: #160c00; border-color: transparent; box-shadow: 0 8px 30px -12px rgba(242,169,59,.8); }
.spend-opts input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.spend-pick.err .spend-opts span { border-color: var(--bad); }
.submit { width: 100%; margin-top: 6px; }
.form-note { color: var(--muted); font-size: 13px; }
.status { font-size: 14px; color: var(--ok); white-space: pre-wrap; }
.status.bad { color: var(--bad); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------- Footer ---------- */
.footer { padding: 60px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.footer-tag { color: var(--muted); font-size: 14px; margin-top: 6px; }
.footer-links { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.footer-big { display: block; width: 100%; max-width: 1200px; height: auto; margin: 48px auto 28px; opacity: .14; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.fine { color: #6c675f; font-size: 13px; }

.sticky-cta { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: none; transform: translateY(160%); transition: transform .5s var(--ease); }
.sticky-cta.show { transform: none; }

@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .benefits { grid-template-columns: repeat(2, 1fr); }
  /* Compact scroll-through: step bar + active feature only, workspace fills the rest */
  .feat-sticky { justify-content: flex-start; gap: 14px; padding: 84px 0 16px; }
  .feat-sticky .section-head h2 { font-size: clamp(26px, 4.4vw, 40px); margin-top: 6px; }
  .feat-sticky .sub { display: none; }
  .feat-bignum { display: none; }
  .features { grid-template-columns: 1fr; display: flex; flex-direction: column; align-items: stretch; gap: 14px; flex: 1; min-height: 0; }
  /* Arrows either side of the step bar; they scroll to the previous/next feature */
  .feat-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
  .feat-arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(11,10,9,.6); color: var(--gold); transition: background .25s, border-color .25s, opacity .25s, transform .15s; }
  .feat-arrow svg { width: 18px; height: 18px; stroke-width: 2; }
  .feat-arrow:hover { border-color: rgba(237,182,94,.6); }
  .feat-arrow:active { transform: scale(.92); }
  .feat-arrow:disabled { opacity: .3; cursor: default; }
  .feat-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .feat-steps i { height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
  .feat-steps b { display: block; height: 100%; width: calc(var(--fp, 0) * 100%); background: var(--gold-grad); }
  .feat-tab:not(.active) { display: none; }
  .feat-tab.active { background: none; border-color: transparent; padding: 0; }
  .feat-tab .ft-progress { display: none; }
  .workspace { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .feat-sticky .ws-body { flex: 1; height: auto; }
}
@media (max-width: 1199px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: rgba(11,10,9,.97); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; font-size: 18px; color: var(--text); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav .btn-sm { margin-left: auto; }
  .burger { display: block; }
  .hero { min-height: max(100svh, 760px); padding-top: 180px; --cw: 180px; --chh: 112px; --cpad: 13px; }
  .hero-title { font-size: 72px; }
  .hero-sub { font-size: 18px; }
}
@media (max-width: 900px) {
  .calc-wrap, .offer { grid-template-columns: 1fr; }
  .feat-sticky { padding-bottom: 92px; } /* clear the floating CTA */
  .sticky-cta { display: inline-flex; }
}
@media (max-width: 767px) {
  .nav .btn-sm { display: none; }
  .burger { margin-left: auto; }
  /* Wall becomes a tilted band at the top that fades into the page */
  /* Wall fills the whole hero on phones; extra rows cover the tall portrait screen */
  .hero { min-height: 100svh; padding: 104px var(--gutter) 56px; align-items: center; --cw: 150px; --chh: 92px; --cgap: 14px; --cpad: 11px; }
  .wall-plane { top: -4%; }
  .wall-row:nth-child(n+7) { display: block; }
  .wall-vignette { background: radial-gradient(ellipse 85% 48% at 50% 54%, rgba(11,10,9,.9) 40%, rgba(11,10,9,.55) 75%, rgba(11,10,9,.12) 100%); }
  .hero-content::before { inset: -40px -60px; }
  .hero-title { font-size: 50px; margin-top: 22px; }
  .h-line, .h-gold { display: block; }
  .hero-sub { font-size: 16px; margin-top: 20px; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; margin-top: 30px; }
  .hero-proof { margin-top: 22px; padding: 9px 16px; border-radius: 16px; background: rgba(11,10,9,.9); border: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .benefits { grid-template-columns: 1fr; }
  .feat-tab { grid-template-columns: 32px 1fr; padding: 14px; }
  .feat-tab.active .ft-body b { font-size: 28px; }
  .ws-bal { display: none; }
  .ws-body { padding: 14px; min-height: 0; }
  .bar-row { grid-template-columns: 1fr 76px; }
  .bar-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .calc-cta { align-self: stretch; }
}

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