/* Forsive landing, next design. Same palette and voice as the app, lighter and deeper.
   Rules of the page: one bold moment (the hero stage), transform/opacity-only motion,
   no WebGL, no full-screen blur. Everything animated respects prefers-reduced-motion. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #161b24;
  --bg-deep: #11151c;
  --surface: #1e2533;
  --surface-low: #161c29;
  --border: #2e3a4e;
  --border-soft: rgba(255, 255, 255, 0.07);
  --text: #eceded;
  --muted: rgba(236, 237, 237, 0.68);
  --faint: rgba(236, 237, 237, 0.46);
  --accent: #1a6fd4;
  --accent-hover: #2b7fe3;
  --accent-light: #6fb0f5;
  --accent-glow: rgba(46, 119, 208, 0.35);
  --success: #34d399;
  --success-light: #6ee7b7;

  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.wrap.wrap-wide { max-width: 1280px; }
.center { text-align: center; }
section[id] { scroll-margin-top: 84px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; cursor: pointer;
  font: 600 16px/1 var(--font-body);
  padding: 14px 24px;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(46, 119, 208, 0.55); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent-light); color: #fff; }
.btn-lg { padding: 17px 30px; font-size: 17px; border-radius: 14px; }

/* ---------- Nav: frosted bar at the top, floating pill once scrolled ---------- */
.pill-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; padding: 14px 12px 0; }
.pill-wrap::before { /* soft frosted band behind the bar while it sits at the top */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 84px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(22, 27, 36, 0.88), rgba(22, 27, 36, 0));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent);
  opacity: 0; transition: opacity 400ms ease;
}
.pill-wrap.at-top::before { opacity: 1; }
.pill {
  --pill-w: 548px;
  position: relative; pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: var(--pill-w); max-width: 100%;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(22, 27, 36, 0.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: width 560ms var(--ease), background 300ms ease, border-color 300ms ease, box-shadow 300ms ease, padding 400ms var(--ease);
}
.at-top .pill { --pill-w: 1136px; background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 6px 0 6px 2px; }
.pill-brand { display: inline-flex; align-items: center; gap: 9px; font: 700 21px/1 var(--font-head); letter-spacing: 0.2px; color: #fff; padding-right: 10px; }
.pill-brand img { border-radius: 7px; }
.pill-links { position: relative; display: flex; align-items: center; gap: 2px; }
.pill-links a { position: relative; z-index: 1; display: block; white-space: nowrap; padding: 8px 14px; font: 500 15px/1 var(--font-body); color: var(--muted); border-radius: 999px; transition: color 160ms ease; }
.pill-links a:hover, .pill-links a.is-active { color: #fff; }
.pill-mark {
  position: absolute; top: 0; left: 0; height: 100%; width: 0;
  border-radius: 999px; background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0; transform: translateX(0);
  transition: transform 380ms var(--ease), width 380ms var(--ease), opacity 200ms ease;
  pointer-events: none;
}
.pill-mark.on { opacity: 1; }
.btn-pill { padding: 10px 18px; font-size: 15px; border-radius: 999px; margin-left: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: 120px 0 72px; overflow: hidden; background: var(--bg); }
.hero .wrap { width: 100%; }
.hero-glow {
  position: absolute; inset: -10% -10% auto auto; width: 80%; height: 120%;
  background: radial-gradient(ellipse 50% 45% at 68% 38%, rgba(46, 119, 208, 0.22), rgba(46, 119, 208, 0) 70%);
  pointer-events: none;
}
.hero::after { /* fine grain: one static, tiny data-URI texture, no runtime cost */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-kicker { font: 500 16px/1.4 var(--font-body); color: var(--accent-light); margin-bottom: 18px; }
.hero-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(40px, 5.3vw, 76px); line-height: 0.98; letter-spacing: -0.005em; color: #fff; margin-bottom: 26px; }
.hero-title span { display: block; }
.hero-sub { max-width: 470px; color: var(--muted); margin-bottom: 30px; }
.trust { margin-top: 26px; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.trust li { display: flex; gap: 9px; }
.tick { color: var(--accent-light); flex: none; }
.trust-center { justify-content: center; justify-items: start; width: max-content; max-width: 100%; margin: 28px auto 0; }

/* ---------- Hero stage: layered cards ---------- */
.stage-wrap { perspective: 1400px; }
.stage-float { animation: bob 9s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.stage {
  --rx: 7deg; --ry: -13deg;
  position: relative; width: 100%; aspect-ratio: 4 / 3.1; max-width: 600px; margin-left: auto;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
}
.stage-shadow {
  position: absolute; left: 6%; right: 6%; bottom: -6%; height: 16%;
  background: radial-gradient(ellipse at center, rgba(46, 119, 208, 0.38), rgba(46, 119, 208, 0) 70%);
  transform: translateZ(-60px) scaleY(0.6); filter: blur(8px);
}
.card {
  position: absolute; width: 46%; height: 30%;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--surface), var(--surface-low));
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7), 0 0 36px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--accent-light);
  transform-style: preserve-3d;
  opacity: 0; animation: rise 800ms var(--ease) forwards;
}
.c1 { left: 8%;  top: 12%; transform: translateZ(10px);  animation-delay: 150ms; }
.c2 { left: 30%; top: 40%; transform: translateZ(44px);  animation-delay: 750ms; }
.c3 { left: 46%; top: 66%; transform: translateZ(78px);  animation-delay: 1350ms; }
@keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
.card .icon { position: absolute; left: 50%; top: 44%; width: 26%; height: auto; transform: translate(-50%, -50%) translateZ(26px); filter: drop-shadow(0 0 7px rgba(46, 119, 208, 0.9)); }
.card .bar { position: absolute; left: 50%; bottom: 17%; width: 30%; height: 3px; border-radius: 2px; background: #4a5872; opacity: 0.6; transform: translateX(-50%); }
.typing { position: absolute; left: 50%; top: 44%; display: flex; gap: 6%; width: 18%; justify-content: center; transform: translate(-50%, -50%) translateZ(34px); }
.typing b { width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px var(--accent-light); animation: blink 1.4s ease-in-out infinite; }
.typing b:nth-child(2) { animation-delay: 0.18s; } .typing b:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.check {
  position: absolute; left: 61%; top: 62%; width: 22%; aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%;
  background: #0e1117; border: 1.5px solid var(--success-light); color: var(--success-light);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.55);
  transform: translateZ(40px) scale(0); animation: pop 520ms var(--ease) 2.45s forwards;
}
.check svg { width: 58%; height: 58%; }
@keyframes pop { 60% { transform: translateZ(40px) scale(1.18); } to { transform: translateZ(40px) scale(1); } }

.stage-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateZ(60px); pointer-events: none; filter: drop-shadow(0 0 5px rgba(46, 119, 208, 0.9)); }
.path-reveal { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s ease-in-out 1.15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dot { fill: #fff; opacity: 0; animation: show 400ms ease forwards; }
.dot-a { animation-delay: 0.9s; } .dot-b { animation-delay: 1.5s; } .dot-c { animation-delay: 2.2s; fill: var(--success-light); }
.runner { fill: #fff; opacity: 0; animation: show 300ms ease 3.1s forwards; filter: drop-shadow(0 0 6px var(--accent-light)); }
@keyframes show { to { opacity: 0.95; } }

.spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--accent-light); opacity: 0; transform: translateZ(100px); animation: drift 7s ease-in-out infinite; }
.s1 { left: 4%; top: 30%; animation-delay: 0.5s; } .s2 { right: 6%; top: 18%; animation-delay: 2.2s; }
.s3 { left: 14%; bottom: 10%; animation-delay: 3.4s; } .s4 { right: 14%; bottom: 22%; animation-delay: 1.4s; } .s5 { left: 48%; top: 4%; animation-delay: 4.6s; }
@keyframes drift { 0%, 100% { opacity: 0; translate: 0 0; } 30% { opacity: 0.8; } 70% { opacity: 0.5; translate: 6px -18px; } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-deep { background: var(--bg-deep); }
.h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(40px, 5.2vw, 64px); line-height: 1; color: #fff; }
.lead { max-width: 560px; margin: 16px auto 0; color: var(--muted); }
.center.lead { margin-left: auto; margin-right: auto; }

/* ---------- Product features ---------- */
.feature { display: grid; grid-template-columns: 0.62fr 1.38fr; gap: 64px; align-items: center; margin-top: 96px; }
.feature.flip { grid-template-columns: 1.38fr 0.62fr; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.02; color: #fff; margin-bottom: 14px; }
.feature p { color: rgba(236, 237, 237, 0.88); max-width: 420px; }

.appwin, .usage { perspective: 1200px; transform-style: preserve-3d; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform 500ms var(--ease); }
.appwin.is-tilting, .usage.is-tilting { transition: transform 80ms linear; }
.appwin {
  border-radius: 14px; overflow: hidden; background: #0e1117;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 70px -30px var(--accent-glow);
}

.usage { width: 100%; max-width: 560px; margin-left: auto; border-radius: 16px; padding: 28px 28px 22px; background: linear-gradient(135deg, var(--surface), var(--surface-low)); border: 1px solid var(--border); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8), 0 0 60px -30px var(--accent-glow); }
.usage-grid { position: relative; display: grid; gap: 26px; }
.usage-row { display: grid; gap: 9px; }
.usage-label { font-weight: 600; font-size: 16px; color: #fff; }
.usage-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.cell { display: grid; place-items: center; height: 46px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.02); transition: background 360ms ease, border-color 360ms ease, box-shadow 360ms ease; font-style: normal; }
.cell b { font: 600 13px/1 var(--font-body); opacity: 0; transition: opacity 360ms ease; }
.cell.fee.on, .is-final .cell.fee { border: 1px solid rgba(224, 138, 154, 0.45); background: rgba(224, 138, 154, 0.16); }
.cell.use.on, .is-final .cell.use { border: 1px solid rgba(111, 176, 245, 0.7); background: rgba(46, 119, 208, 0.28); box-shadow: 0 0 18px -4px var(--accent-glow); }
.cell.on b, .is-final .cell b { opacity: 1; }
.cell.fee b { color: #f3b6c1; } .cell.use b { color: #cfe4fb; }
.usage-note { font-size: 15px; color: var(--muted); transition: opacity 500ms ease; }
.usage-note.accent { color: var(--accent-light); }
.usage-months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: -10px; font-size: 13px; color: var(--faint); text-align: center; }
.usage-playhead { position: absolute; top: -6px; bottom: 26px; left: 0; width: 2px; border-radius: 1px; background: linear-gradient(to bottom, rgba(111, 176, 245, 0), #6fb0f5 20%, #6fb0f5 80%, rgba(111, 176, 245, 0)); box-shadow: 0 0 12px rgba(46, 119, 208, 0.9); opacity: 0; pointer-events: none; }
.usage.is-anim .usage-note:not(.on) { opacity: 0; }
.usage.is-anim .usage-playhead.run { opacity: 1; }

/* ---------- Pricing ---------- */
.callout { margin-top: 28px; color: var(--accent-light); font-weight: 500; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 44px auto 0; }
.price {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 44px 24px 28px; border-radius: 20px;
  background: var(--surface-low); border: 1px solid var(--border-soft);
  transition: transform 260ms var(--ease), border-color 200ms ease;
}
.price:hover { transform: translateY(-4px); border-color: var(--border); }
.price .btn { margin-top: 22px; width: 100%; }
.price-amount { font: 700 64px/1 var(--font-head); color: #fff; }
.price-credits { color: var(--muted); }
.price.featured {
  background: linear-gradient(180deg, #1f2a3d, var(--surface-low));
  border-color: rgba(111, 176, 245, 0.5);
  box-shadow: 0 0 0 1px rgba(111, 176, 245, 0.15), 0 24px 60px -24px var(--accent-glow);
}
.price-badge { position: absolute; top: -13px; padding: 5px 14px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 13px/1.2 var(--font-body); }
.fine { margin-top: 22px; font-size: 15px; color: var(--faint); }
.fine + .fine { margin-top: 6px; }
.fine a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; border-top: 1px solid var(--border-soft); }
.faq details { border-bottom: 1px solid var(--border-soft); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-weight: 500; color: #fff; transition: color 160ms ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform 260ms var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:hover { color: var(--accent-light); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); font-size: 17px; }
.faq details p a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 320ms var(--ease), content-visibility 320ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- CTA + footer ---------- */
.cta { position: relative; padding: 120px 0; background: var(--bg-deep); overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(46, 119, 208, 0.22), rgba(46, 119, 208, 0) 70%); pointer-events: none; }
.cta .wrap { position: relative; }
.cta .lead { margin-bottom: 30px; }
.footer { padding: 36px 0 44px; background: var(--bg-deep); border-top: 1px solid var(--border-soft); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 14px; color: var(--faint); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 120px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .stage { margin: 0 auto; max-width: 480px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; margin-top: 72px; }
  .feature.flip .feature-text { order: 0; }
  .usage { margin-left: 0; }
  .section { padding: 84px 0; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .pill-links { display: none; }
  .pill { --pill-w: 250px; }
  .at-top .pill { --pill-w: 100%; }
  .price-grid { grid-template-columns: 1fr; max-width: 360px; }
  .faq details p { padding-right: 0; }
}

/* ---------- Reduced motion: show the finished hero, no loops, no tilt ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-float, .typing b, .spark, .runner { animation: none; }
  .spark { display: none; }
  .card, .check, .dot { animation: none; opacity: 1; translate: 0 0; }
  .check { transform: translateZ(40px) scale(1); }
  .path-reveal { animation: none; stroke-dashoffset: 0; }
  .runner { display: none; }
  .appwin, .usage { transform: none !important; transition: none; }
}

/* ---------- Old way vs Forsive way: a switch that starts on the old way and shifts to Forsive ---------- */
.sw { max-width: 780px; margin: 48px auto 0; }
.sw-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 400px; max-width: 100%; margin: 0 auto 22px; padding: 5px; border-radius: 999px; background: #0d1118; border: 1px solid var(--border); }
.sw-toggle button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 13px 10px; border-radius: 999px; font: 700 21px/1 var(--font-head); color: var(--muted); transition: color 250ms ease; }
.sw-toggle button[aria-pressed="true"] { color: #fff; }
.sw-toggle button:hover { color: #fff; }
.sw-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: #2a3140; transition: transform 460ms var(--ease), background 460ms ease, box-shadow 460ms ease; }
.sw.is-new .sw-thumb { transform: translateX(100%); background: var(--accent); box-shadow: 0 0 26px -4px var(--accent-glow); }
.sw.is-counting .sw-thumb::after { /* a thin line fills along the old-way pill, so the shift is expected */
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 7px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.6); transform-origin: left; animation: swFill 4s linear forwards;
}
@keyframes swFill { from { transform: scaleX(0); } }
.sw-card { position: relative; border-radius: 22px; padding: 10px 34px; background: #0d1118; border: 1px solid var(--border); transition: background 500ms ease, border-color 500ms ease, box-shadow 500ms ease; overflow: hidden; }
.sw.is-new .sw-card { background: linear-gradient(180deg, #17243a, #131c2c); border-color: rgba(111, 176, 245, 0.4); box-shadow: 0 30px 70px -30px var(--accent-glow); }
.sw-list li { display: flex; align-items: center; gap: 16px; padding: 20px 0; font-size: 20px; line-height: 1.35; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.sw-list li:first-child { border-top: 0; }
.sw-list .ico { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; color: #ffb3c0; background: rgba(224, 138, 154, 0.2); border: 1px solid rgba(224, 138, 154, 0.6); transition: background 400ms ease, color 400ms ease, border-color 400ms ease; }
.sw.is-new .sw-list .ico { color: #05231a; background: var(--success); border-color: transparent; }
.sw-list .ico > span { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 300ms ease; }
.sw-list .ico svg { display: block; }
.sw-list .ico .c { opacity: 0; }
.sw.is-new .sw-list .ico .c { opacity: 1; }
.sw.is-new .sw-list .ico .x { opacity: 0; }
/* both versions of a line share one grid cell, so the row is as tall as the longer one */
.sw-list .txt { flex: 1; display: grid; }
.sw-list .txt > span { grid-area: 1 / 1; align-self: center; transition: opacity 380ms ease, transform 480ms var(--ease), filter 380ms ease; }
.sw-list .o { color: rgba(236, 237, 237, 0.82); }
.sw-list .n { color: #fff; font-weight: 600; opacity: 0; transform: translateY(40%); filter: blur(4px); }
.sw.is-new .sw-list .o { opacity: 0; transform: translateY(-40%); filter: blur(4px); }
.sw.is-new .sw-list .n { opacity: 1; transform: none; filter: none; }
.sw-list li:nth-child(2) .txt > span { transition-delay: 40ms; }
.sw-list li:nth-child(3) .txt > span { transition-delay: 80ms; }
.sw-list li:nth-child(4) .txt > span { transition-delay: 120ms; }
.sw-list li:nth-child(5) .txt > span { transition-delay: 160ms; }
@media (max-width: 680px) {
  .sw-toggle button { font-size: 19px; }
  .sw-card { padding: 4px 20px; }
  .sw-list li { font-size: 18px; padding: 17px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sw.is-counting .sw-thumb::after { animation: none; transform: none; }
  .sw-thumb, .sw-card, .sw-list .txt > span, .sw-list .ico, .sw-list .ico > span { transition: none; }
}

/* ---------- Referral banner: floats under the nav, only with ?ref=CODE ---------- */
.ref {
  position: absolute; z-index: 40; top: 76px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  width: max-content; max-width: min(92vw, 640px); padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(26, 111, 212, 0.16); border: 1px solid rgba(111, 176, 245, 0.45);
  box-shadow: 0 14px 40px -16px var(--accent-glow);
  font-size: 15.5px; line-height: 1.35; color: rgba(236, 237, 237, 0.92);
  animation: refIn 600ms var(--ease) 500ms both;
}
.ref[hidden] { display: none; }
.ref-text { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ref-line { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.ref-note { color: rgba(236, 237, 237, 0.78); }
.ref strong { font: 600 14px/1 "JetBrains Mono", ui-monospace, Consolas, monospace; letter-spacing: 0.3px; color: #fff; padding: 5px 9px; border-radius: 7px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); }
.ref-copy { flex: none; border: 0; cursor: pointer; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 14.5px/1 var(--font-body); transition: background 160ms ease, transform 160ms ease; }
.ref-copy:hover { background: var(--accent-hover); }
.ref-copy:active { transform: scale(0.96); }
.ref-copy.is-done { background: var(--success); color: #05231a; }
@keyframes refIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } }
.has-ref .hero { padding-top: 176px; }
@media (max-width: 680px) {
  .ref { flex-wrap: nowrap; border-radius: 20px; padding: 11px 12px 11px 16px; justify-content: space-between; width: 92vw; font-size: 14px; }
  .ref-text { flex-direction: column; align-items: flex-start; gap: 6px; }
  .has-ref .hero { padding-top: 178px; }
}
@media (prefers-reduced-motion: reduce) { .ref { animation: none; } }
