/* SMPL Ads — built on SMPLads Design System v1 (Bungee + Plus Jakarta Sans, brand teal #1D9E75) */

/* ---------- Tokens: dark is the default theme ---------- */
:root {
  --font-display: "Bungee", "Arial Black", sans-serif;
  --font-text: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --brand: #1D9E75;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 72px;

  color-scheme: dark;
  --bg: #07110E;
  --bg-alt: #0A1713;
  --surface: #0E1D18;
  --surface-2: #132720;
  --border: #1D342C;
  --border-strong: #2A4A3F;
  --ink: #E7F3EE;
  --muted: #A1B6AE;
  --faint: #6F867D;
  --accent: #4CC79B;
  --btn: #1D9E75;
  --btn-hover: #25B587;
  --btn-ink: #03140F;
  --danger: #F6A58A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -20px rgba(0, 0, 0, .7);
  --glow: rgba(29, 158, 117, .35);

  --hook-bg: #085041;  --hook-ink: #9FE1CB;
  --proof-bg: #26215C; --proof-ink: #CECBF6;
  --pain-bg: #4A2115;  --pain-ink: #F6C4AE;
  --cta-bg: #4A2A04;   --cta-ink: #FFDA99;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #F6FAF8;
  --bg-alt: #EDF5F1;
  --surface: #FFFFFF;
  --surface-2: #F1F7F4;
  --border: #DCEAE4;
  --border-strong: #C3D9D0;
  --ink: #10201B;
  --muted: #4B5F58;
  --faint: #7C9089;
  --accent: #0F6E56;
  --btn: #0F6E56;
  --btn-hover: #085041;
  --btn-ink: #FFFFFF;
  --danger: #993C1D;
  --shadow: 0 1px 2px rgba(16, 32, 27, .05), 0 8px 24px -12px rgba(16, 32, 27, .12);
  --glow: rgba(29, 158, 117, .22);

  --hook-bg: #E1F5EE;  --hook-ink: #0F6E56;
  --proof-bg: #EEEDFE; --proof-ink: #3C3489;
  --pain-bg: #FAECE7;  --pain-ink: #993C1D;
  --cta-bg: #FAC775;   --cta-ink: #633806;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #03140F; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 12px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.display { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.section { position: relative; padding: clamp(72px, 10vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin: 12px 0 16px; }
.section-head p { font-size: 1.125rem; color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .3s var(--ease), background-color .2s, border-color .2s, box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--btn); color: var(--btn-ink); box-shadow: 0 10px 24px -12px var(--glow); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-ink); transform: translateY(-2px); box-shadow: 0 16px 32px -12px var(--glow); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(110%); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-lg { padding: 17px 30px; font-size: 1.0625rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-text { background: none; border: 0; padding: 8px; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-text:hover { color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }

.icon-btn {
  position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--border-strong); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Badges (script-beat families) ---------- */
.badge { display: inline-flex; align-items: center; flex: none; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge-hook { background: var(--hook-bg); color: var(--hook-ink); }
.badge-proof { background: var(--proof-bg); color: var(--proof-ink); }
.badge-pain { background: var(--pain-bg); color: var(--pain-ink); }
.badge-cta { background: var(--cta-bg); color: var(--cta-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
  animation: dropIn .8s var(--ease) both;
}
.site-header.scrolled { background: color-mix(in srgb, var(--bg) 90%, transparent); border-color: var(--border); box-shadow: var(--shadow); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

/* Logo: SMPL / bar / A D S lockup from the app icon. Size everything with font-size on .logo */
.logo { --logo-teal: #1D9E75; display: inline-grid; justify-items: center; gap: .14em; font-size: 24px; line-height: 1; text-decoration: none; color: var(--logo-teal); }
.logo-smpl { display: flex; font-weight: 800; font-size: 1em; line-height: .9; letter-spacing: -.01em; }
.logo-smpl i { display: inline-block; font-style: normal; animation: logoLetter .7s var(--ease) both; transition: translate .35s var(--ease); }
.logo-smpl i:nth-child(2) { animation-delay: .06s; transition-delay: .04s; }
.logo-smpl i:nth-child(3) { animation-delay: .12s; transition-delay: .08s; }
.logo-smpl i:nth-child(4) { animation-delay: .18s; transition-delay: .12s; }
.logo-bar {
  position: relative; overflow: hidden; width: 72%; height: .12em; border-radius: 1em; background: #12735A;
  animation: logoBar .8s var(--ease) .3s both; transition: scale .4s var(--ease);
}
.logo-bar::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, #9FE1CB, transparent);
  animation: logoShine 5s ease-in-out 1.4s infinite;
}
.logo-ads { font-weight: 500; font-size: .38em; letter-spacing: .6em; margin-right: -.6em; animation: logoAds 1s var(--ease) .45s both; }
.logo:hover .logo-smpl i { translate: 0 -.12em; }
.logo:hover .logo-bar { scale: 1.18 1; }
.footer-brand .logo { font-size: 38px; }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { position: relative; padding: 6px 0; color: var(--muted); font-weight: 600; text-decoration: none; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.theme-toggle svg { position: absolute; transition: transform .6s var(--ease), opacity .3s; }
:root:not([data-theme="light"]) .theme-toggle .sun,
[data-theme="light"] .theme-toggle .moon { opacity: 0; transform: rotate(-90deg) scale(.4); }

.menu-btn { display: none; }
.burger { display: grid; gap: 5px; width: 20px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: grid; gap: 2px; padding: 8px 20px 20px; border-top: 1px solid var(--border); background: var(--bg); animation: fadeDown .4s var(--ease); }
.mobile-menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); color: var(--ink); font-size: 1.125rem; font-weight: 600; text-decoration: none; }
.mobile-menu .btn { margin-top: 14px; }

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: grid; }
}
@media (min-width: 861px) { .mobile-menu { display: none !important; } }

/* ---------- Services tabs ---------- */
.tabs { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.tablist { position: relative; display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: 1 0 auto; padding: 22px 20px; border: 0; background: none; cursor: pointer; white-space: nowrap;
  color: var(--muted); font-size: 1.0625rem; font-weight: 700; transition: color .2s, background-color .2s;
}
.tab:hover { color: var(--ink); background: color-mix(in srgb, var(--brand) 5%, transparent); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab:focus-visible { outline-offset: -4px; }
/* Each tab draws its own underline, so it always sits centred under that tab */
.tab::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand);
  transform: scaleX(0); transition: transform .45s var(--ease);
}
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.tab-panel { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; padding: clamp(28px, 5vw, 56px); }
.tab-panel:not([hidden]) { animation: panelIn .6s var(--ease) both; }
.tab-panel h3 { margin-bottom: 14px; font-size: 1.75rem; font-weight: 800; color: var(--accent); }
.tab-panel p { margin: 0 0 24px; font-size: 1.125rem; color: var(--muted); }
.tab-panel:not([hidden]) .checklist li { animation: fadeUp .5s var(--ease) both; }
.tab-panel .checklist li:nth-child(1) { animation-delay: .12s; }
.tab-panel .checklist li:nth-child(2) { animation-delay: .2s; }
.tab-panel .checklist li:nth-child(3) { animation-delay: .28s; }
@media (max-width: 760px) { .tab-panel { grid-template-columns: 1fr; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 14px; font-size: 1.0625rem; font-weight: 500; }
.checklist li::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}

/* Service illustrations */
.visual {
  position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 4 / 3;
  border-radius: 20px; border: 1px solid var(--border);
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%), var(--surface-2);
}

.phone { position: relative; height: 84%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 22px; border: 3px solid var(--border-strong); background: var(--bg); box-shadow: var(--shadow); }
.feed { display: flex; flex-direction: column; height: 100%; animation: feed 9s var(--ease) infinite; }
.feed i { position: relative; flex: none; display: block; height: 100%; }
.feed i:nth-child(1), .feed i:nth-child(4) { background: linear-gradient(160deg, #085041, #1D9E75); }
.feed i:nth-child(2) { background: linear-gradient(160deg, #26215C, #534AB7); }
.feed i:nth-child(3) { background: linear-gradient(160deg, #4A2A04, #D9962F); }
.feed i::after { content: ""; position: absolute; left: 12%; right: 34%; bottom: 14%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .75); box-shadow: 0 12px 0 rgba(255, 255, 255, .4); }
.play { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); animation: pulse 2.4s ease-in-out infinite; }
.play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 13px; height: 15px; background: #10201B; clip-path: polygon(0 0, 100% 50%, 0 100%); transform: translateX(2px); }
.heart { position: absolute; bottom: 16%; right: 24%; font-size: 20px; color: #F6C4AE; opacity: 0; animation: floatUp 3s ease-in infinite; }
.heart:nth-of-type(2) { right: 18%; font-size: 14px; animation-delay: 1s; color: #FAC775; }
.heart:nth-of-type(3) { right: 30%; font-size: 16px; animation-delay: 2s; color: #9FE1CB; }

.bars, .trend { position: absolute; left: 10%; width: 80%; bottom: 14%; height: 62%; }
.bars { display: flex; align-items: flex-end; gap: 6%; }
.bars i { flex: 1; display: block; border-radius: 8px 8px 3px 3px; transform-origin: bottom; background: linear-gradient(to top, color-mix(in srgb, var(--brand) 30%, transparent), var(--brand)); }
.bars i:nth-child(1) { height: 28%; } .bars i:nth-child(2) { height: 40%; } .bars i:nth-child(3) { height: 34%; }
.bars i:nth-child(4) { height: 56%; } .bars i:nth-child(5) { height: 70%; } .bars i:nth-child(6) { height: 92%; }
.tab-panel:not([hidden]) .bars i { animation: grow 1s var(--ease) both; }
.bars i:nth-child(2) { animation-delay: .08s !important; } .bars i:nth-child(3) { animation-delay: .16s !important; }
.bars i:nth-child(4) { animation-delay: .24s !important; } .bars i:nth-child(5) { animation-delay: .32s !important; }
.bars i:nth-child(6) { animation-delay: .4s !important; }
.trend { overflow: visible; }
.trend path { fill: none; stroke: var(--cta-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tab-panel:not([hidden]) .trend path { animation: draw 1.4s var(--ease) .5s forwards; }
.visual .badge.float { position: absolute; top: 9%; left: 8%; }
.tab-panel:not([hidden]) .badge.float { animation: popIn .6s var(--ease) 1s both; }

.flow { display: flex; align-items: center; width: 86%; }
.node { position: relative; z-index: 1; padding: 10px 14px; border-radius: 12px; font-size: .9rem; font-weight: 800; box-shadow: var(--shadow); background: var(--hook-bg); color: var(--hook-ink); }
.node.proof { background: var(--proof-bg); color: var(--proof-ink); }
.node.cta { background: var(--cta-bg); color: var(--cta-ink); animation: pulse 2.4s ease-in-out 2s infinite; }
.wire { position: relative; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px); animation: dash 1s linear infinite; }
.wire::after { content: ""; position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); animation: travel 2.4s var(--ease) infinite; }
.wire:nth-of-type(4)::after { animation-delay: 1.2s; }
.toast { position: absolute; bottom: 12%; left: 50%; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow); animation: toast 4.8s var(--ease) infinite; }
.toast::before { content: "✓"; color: var(--accent); }

.browser { width: 84%; overflow: hidden; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--bg); box-shadow: var(--shadow); }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--pain-ink); }
.browser-bar i:nth-child(2) { background: #FAC775; } .browser-bar i:nth-child(3) { background: var(--brand); }
.browser-body { display: grid; gap: 10px; padding: 16px; }
.sk { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--border-strong) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.sk.title { height: 18px; width: 70%; } .sk.w80 { width: 80%; } .sk.w60 { width: 60%; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.sk-row .sk { height: 40px; border-radius: 8px; }
.sk-btn { display: block; width: 34%; height: 22px; border-radius: 6px; background: var(--brand); }
.speed { --p: 0; position: absolute; right: 7%; bottom: 9%; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--border) 0); box-shadow: var(--shadow); }
.speed span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--cta-ink); }
.speed svg { width: 22px; height: 22px; }
.tab-panel:not([hidden]) .speed { animation: fillRing 1.6s var(--ease) .3s both; }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.blob.b1 { width: 440px; height: 440px; top: -140px; left: -100px; background: #1D9E75; }
.blob.b2 { width: 380px; height: 380px; bottom: -160px; right: 12%; background: #534AB7; animation-duration: 22s; animation-delay: -6s; }
.blob.b3 { width: 260px; height: 260px; top: 28%; right: -90px; background: #FAC775; opacity: .22; animation-duration: 26s; }
[data-theme="light"] .blob { opacity: .22; }
[data-theme="light"] .blob.b3 { opacity: .16; }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 32%, transparent);
  color: var(--accent); font-size: .875rem; font-weight: 700;
}
.ping { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }

.hero-title { margin-bottom: 24px; font-size: clamp(2.1rem, 4.6vw, 3.7rem); }
.hero-title .w { display: inline-block; }
.js .hero-title .w { opacity: 0; }
.hero-title.in .w { animation: wordUp .9s var(--ease) calc(var(--i, 0) * 80ms) both; }
.mark { position: relative; color: var(--accent); }
.mark::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: .02em; height: .12em; border-radius: .06em; background: #FAC775;
  transform: scaleX(0); transform-origin: left;
}
.hero-title.in .mark::after { animation: swipe .8s var(--ease) .9s forwards; }
.lede { max-width: 56ch; margin: 0 0 28px; font-size: 1.1875rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.script-card {
  margin: 0; padding: 8px; border-radius: 24px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow), 0 40px 80px -40px var(--glow);
  animation: float 7s ease-in-out infinite;
}
.script-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px; border-bottom: 1px solid var(--border); font-size: .8rem; color: var(--faint); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s steps(2, start) infinite; }
.beats { list-style: none; margin: 0; padding: 0; }
.beat { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-bottom: 1px solid var(--border); }
.beat:last-child { border-bottom: 0; }
.beat > * { position: relative; }
.beat p { margin: 0; font-size: .975rem; line-height: 1.55; }
.beat::before { content: ""; position: absolute; inset: 4px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 10%, transparent); opacity: 0; animation: beatOn 8s ease-in-out infinite; }
.beat:nth-child(2)::before { animation-delay: 2s; }
.beat:nth-child(3)::before { animation-delay: 4s; }
.beat:nth-child(4)::before { animation-delay: 6s; }
.js .beat { opacity: 0; }
.reveal.in .beat { animation: slideIn .7s var(--ease) both; }
.reveal.in .beat:nth-child(2) { animation-delay: .12s; }
.reveal.in .beat:nth-child(3) { animation-delay: .24s; }
.reveal.in .beat:nth-child(4) { animation-delay: .36s; }
.script-progress { height: 3px; margin: 4px 12px 8px; overflow: hidden; border-radius: 3px; background: var(--border); }
.script-progress span { display: block; height: 100%; transform-origin: left; background: linear-gradient(90deg, var(--brand), #FAC775); animation: progress 8s linear infinite; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 20px 0; border-block: 1px solid var(--border); }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 40px; margin: 0; padding: 0 20px; list-style: none; }
.marquee li { display: flex; align-items: center; gap: 40px; white-space: nowrap; font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.35rem); color: var(--faint); }
.marquee li::after { content: "✦"; color: var(--brand); font-size: .8em; }

/* ---------- Why us ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; overflow: hidden; padding: 32px 28px; border-radius: 24px; border: 1px solid var(--border); background: var(--surface);
  transition: translate .4s var(--ease), border-color .3s, box-shadow .4s;
}
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 60%); }
.card > * { position: relative; }
.card:hover { translate: 0 -6px; border-color: var(--border-strong); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 8px; font-size: 1.25rem; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 14px; transition: transform .5s var(--ease); }
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.icon-hook { background: var(--hook-bg); color: var(--hook-ink); }
.icon-proof { background: var(--proof-bg); color: var(--proof-ink); }
.icon-pain { background: var(--pain-bg); color: var(--pain-ink); }
.icon-cta { background: var(--cta-bg); color: var(--cta-ink); }

/* ---------- Contact / lead form ---------- */
.cta-section { overflow: hidden; }
.cta-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, #1D9E75 22%, transparent), transparent 70%),
    radial-gradient(50% 60% at 100% 0%, color-mix(in srgb, #534AB7 24%, transparent), transparent 70%);
}
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 920px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-copy h2 { margin: 12px 0 18px; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.cta-copy p { max-width: 48ch; margin: 0 0 24px; font-size: 1.125rem; color: var(--muted); }

@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.form-card { position: relative; padding: clamp(24px, 4vw, 36px); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow), 0 40px 80px -40px var(--glow); }
.form-card::before {
  content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--angle), var(--border) 0deg, var(--brand) 60deg, var(--proof-ink) 110deg, var(--border) 160deg, var(--border) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 6s linear infinite;
}
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .95rem; font-weight: 700; }
.input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.input:user-invalid { border-color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 22px; font-size: .9rem; color: var(--muted); }
.check input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 14px 0 0; font-weight: 600; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { overflow: hidden; padding: 72px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { max-width: 40ch; margin: 16px 0 0; color: var(--muted); }
.footer-title { margin: 0 0 16px; font-family: var(--font-display); font-weight: 400; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.footer-list a, .footer-list .link-btn { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-list a:hover, .footer-list .link-btn:hover { color: var(--ink); }
.soon { opacity: .75; }
.soon .badge { margin-left: 6px; padding: 2px 8px; font-size: 11px; }
.footer-wordmark {
  margin: 56px 0 24px; text-align: center; white-space: nowrap; user-select: none;
  font-weight: 800; letter-spacing: -.02em; font-size: clamp(3rem, 15vw, 13rem); line-height: .9; color: var(--border);
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--faint); }
.footer-bottom p { margin: 0; }
@media (max-width: 640px) { .site-footer { padding-bottom: 104px; } }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Chat helper ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; transition: opacity .3s, transform .3s; }
.chat-fab { position: relative; width: 60px; height: 60px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--btn); color: var(--btn-ink); cursor: pointer; box-shadow: 0 16px 40px -12px var(--glow); transition: transform .4s var(--ease); }
.chat-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: ring 2.8s ease-out infinite; }
.chat-fab:hover { transform: scale(1.08) rotate(-6deg); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-window { display: flex; flex-direction: column; width: min(380px, calc(100vw - 40px)); overflow: hidden; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow), 0 30px 60px -30px rgba(0, 0, 0, .6); transform-origin: bottom right; animation: popIn .45s var(--ease); }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--btn); color: var(--btn-ink); font-weight: 800; }
.chat-head small { display: block; font-weight: 600; opacity: .8; }
.chat-close { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.chat-close:hover { background: rgba(0, 0, 0, .12); }
.chat-close svg { width: 18px; height: 18px; }
.chat-log { height: 280px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 16px; font-size: .925rem; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; overflow-wrap: anywhere; animation: msgIn .35s var(--ease); }
.msg.bot { align-self: flex-start; border-top-left-radius: 4px; background: var(--surface-2); }
.msg.user { align-self: flex-end; border-top-right-radius: 4px; background: var(--btn); color: var(--btn-ink); }
.msg.typing { display: flex; gap: 4px; padding: 14px 16px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: bounce 1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form .input { padding: 10px 14px; }
.chat-form .btn { padding: 0 14px; }
@media (max-width: 640px) { .cookie-open .chat { opacity: 0; pointer-events: none; transform: translateY(20px); } }

/* ---------- Cookie banner + settings ---------- */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 95; width: min(440px, calc(100vw - 40px));
  overflow: hidden; padding: 24px 22px 16px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow), 0 30px 80px -30px rgba(0, 0, 0, .6);
  animation: bannerIn .8s var(--ease) .6s both;
}
.cookie-banner::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; transform-origin: left;
  background: linear-gradient(90deg, var(--pain-ink) 0 25%, var(--brand) 0 50%, var(--proof-ink) 0 75%, #FAC775 0);
  animation: stripe 1s var(--ease) 1.1s both;
}
.cookie-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cookie-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--cta-bg); color: var(--cta-ink); }
.cookie-icon svg { width: 22px; height: 22px; }
.cookie-title { font-size: 1.05rem; }
.cookie-banner p { margin: 0 0 16px; font-size: .925rem; color: var(--muted); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-actions .btn { padding: 11px 14px; font-size: .95rem; }
.cookie-actions .btn-text { grid-column: 1 / -1; justify-self: center; }
@media (max-width: 640px) { .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; } }

.cookie-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); }
.cookie-dialog[open] { animation: popIn .45s var(--ease); }
.cookie-dialog::backdrop { background: rgba(3, 10, 8, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cookie-dialog form { padding: 26px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dialog-head h2 { font-size: 1.25rem; }
.dialog-note { margin: 0 0 14px; font-size: .925rem; color: var(--muted); }
.consent-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.consent-row p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 18px; border-top: 1px solid var(--border); }
.switch { position: relative; flex: none; width: 48px; height: 28px; }
.switch input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.switch input:disabled { cursor: not-allowed; }
.switch .track { position: absolute; inset: 0; border-radius: 99px; background: var(--border-strong); transition: background-color .25s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .35s var(--ease); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:disabled + .track { opacity: .6; }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Legal + 404 pages ---------- */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.prose { max-width: 760px; }
.prose h1 { margin: 12px 0 8px; font-size: clamp(2rem, 5vw, 3.2rem); }
.prose h2 { margin: 48px 0 12px; font-size: 1.35rem; font-weight: 800; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.note { margin: 24px 0; padding: 14px 18px; border-radius: 14px; background: var(--pain-bg); color: var(--pain-ink); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.prose tr:last-child td { border-bottom: 0; }
.not-found { min-height: calc(100dvh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 48px 0; }
.not-found .big { font-size: clamp(6rem, 22vw, 14rem); color: var(--accent); animation: float 6s ease-in-out infinite; }
.not-found p { margin: 16px auto 32px; max-width: 42ch; font-size: 1.125rem; color: var(--muted); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) calc(var(--i, 0) * 90ms), transform .8s var(--ease) calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal { transition: opacity .8s var(--ease) calc(var(--i, 0) * 90ms), transform .8s var(--ease) calc(var(--i, 0) * 90ms), translate .4s var(--ease), border-color .3s, box-shadow .4s; }

/* ---------- Theme switch: circular reveal (View Transitions API) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: themeReveal .7s var(--ease); }
@keyframes themeReveal {
  from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); }
  to { clip-path: circle(150vmax at var(--vt-x, 50%) var(--vt-y, 0)); }
}

/* ---------- Keyframes ---------- */
@keyframes dropIn { from { opacity: 0; transform: translateY(-100%); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes wordUp { from { opacity: 0; transform: translateY(.5em) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes bannerIn { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes stripe { from { transform: scaleX(0); } }
@keyframes swipe { to { transform: scaleX(1); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes drift { 50% { transform: translate(60px, 40px) scale(1.1); } 100% { transform: translate(-40px, 80px) scale(.95); } }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes blink { to { opacity: .2; } }
@keyframes beatOn { 0%, 100% { opacity: 0; } 4%, 22% { opacity: 1; } 28% { opacity: 0; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { --angle: 360deg; } }
@keyframes feed { 0%, 25% { transform: translateY(0); } 33%, 58% { transform: translateY(-100%); } 66%, 91% { transform: translateY(-200%); } 100% { transform: translateY(-300%); } }
@keyframes pulse { 50% { transform: scale(1.08); } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-120px) scale(1.2); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dash { to { background-position: 12px 0; } }
@keyframes travel { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes toast { 0%, 45% { opacity: 0; transform: translate(-50%, 12px); } 55%, 90% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fillRing { to { --p: 100; } }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
@keyframes logoLetter { from { opacity: 0; transform: translateY(.5em) scale(.8); } }
@keyframes logoBar { from { transform: scaleX(0); } }
@keyframes logoAds { from { opacity: 0; letter-spacing: 1.4em; margin-right: -1.4em; } }
@keyframes logoShine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track, .feed { animation: none !important; }
}
