/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --ink:        #080810;
  --ink-2:      #0d0d1a;
  --ink-3:      #13131f;
  --emerald:    #22c55e;
  --emerald-d:  #16a34a;
  --emerald-glow: rgba(34,197,94,0.18);
  --cream:      #f5f0e8;
  --white:      #ffffff;
  --muted:      rgba(245,240,232,0.45);
  --muted-2:    rgba(245,240,232,0.22);
  --red:        #ef4444;
  --amber:      #f59e0b;
  --glass:      rgba(255,255,255,0.04);
  --glass-b:    rgba(255,255,255,0.08);
  --border:     rgba(255,255,255,0.07);
  --border-e:   rgba(34,197,94,0.2);
  --r-sm:       12px;
  --r-md:       20px;
  --r-lg:       28px;
  --r-xl:       40px;
  --t-fast:     0.18s;
  --t-med:      0.35s;
  --t-slow:     0.65s;
  --shadow-sm:  0 4px 12px rgba(0,0,0,0.30);
  --shadow-md:  0 16px 40px rgba(0,0,0,0.50);
  --shadow-lg:  0 32px 80px rgba(0,0,0,0.60), 0 0 0 1px rgba(34,197,94,0.06);
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-accent:  'Fraunces', Georgia, serif;
}

/* ── RESET ──────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01' 1, 'cv11' 1;
}

/* Display font (Bricolage Grotesque) for short, prominent UI text:
   CTAs, nav, wordmark, pricing numerics, eyebrows. Long-form copy
   inherits Inter from body. Fraunces accent rules below win via
   per-selector font-family declarations. */
.btn,
.nav-logo,
.nav-logo span,
.nav-link,
.p-name,
.p-amount,
.p-price-main,
.p-currency,
.hero-badge,
.t-name {
  font-family: var(--font-display);
}
/* Tabular numerals for pricing + stat numbers (equal-width digits). */
.p-amount,
.p-price-main,
.p-currency,
.hero-stat-num {
  font-feature-settings: 'tnum' 1;
}
img,svg { display:block; max-width:100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────────
   Hierarchy: H1+H2 Fraunces italic (editorial), H3 Bricolage display
   (structural), H4+ Inter (body inherit). Existing per-class names
   (.demo-h, .pain-text, .discord-h, .final-h, .hero-h1) alias here. */

/* Element baseline — bare headings get display font + sensible defaults. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--cream);
}

/* Editorial display (Fraunces italic) — H1/H2 hero, section moments. */
.hero-h1,
.demo-h,
.pain-text,
.discord-h,
.final-h,
.article-hero .hero-h1,
.blog-hero .hero-h1,
.legal-hero h1,
.article-prose h2,
.article-faq h2,
.blog-list-item h2 {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--cream);
}

/* Role-specific sizes (clamp for fluid scaling). */
.hero-h1 { font-size: clamp(2.8rem, 9vw, 5.5rem); line-height: 1.0; letter-spacing: -0.03em; }
.article-hero .hero-h1,
.blog-hero .hero-h1,
.legal-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.demo-h,
.pain-text,
.discord-h,
.final-h { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.article-prose h2,
.article-faq h2,
.blog-list-item h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }

/* Structural display (Bricolage semibold) — H3 in articles, H2 in legal. */
.article-prose h3,
.legal-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--cream);
  text-wrap: balance;
}

/* Accent <em> default — emerald, italic, inherits weight. */
.hero-h1 em,
.demo-h em,
.pain-text em,
.final-h em,
.article-prose h2 em,
.article-faq h2 em,
.blog-hero .hero-h1 em {
  color: var(--emerald);
  font-style: italic;
  font-weight: inherit;
}
/* Discord blue accent — brand color, preserved per spec. */
.discord-h em { color: #5865F2; font-style: italic; }

/* Article-prose layout adjuncts (kept here so blog articles don't duplicate). */
.article-prose h2 { margin-top: 2.2em; margin-bottom: 0.4em; }
.article-prose h2:first-child { margin-top: 0; }
.article-prose h3 { margin-top: 1.8em; margin-bottom: 0.3em; }

.display {
  font-family: var(--font-accent);
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; color: var(--emerald); }
.eyebrow,
.article-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
}
.body-l { font-size: 1.0625rem; line-height: 1.65; color: var(--muted); }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-pad { padding: 96px 0; }
@media(max-width:768px) { .section-pad { padding: 72px 0; } }
.text-center { text-align: center; }

/* ── SCROLL PROGRESS ────────────────────────────────────────── */
#scrollBar, #scroll-bar, .scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--emerald);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── SCROLLBAR ──────────────────────────────────────────────
   Site-wide custom scrollbar. Chromium/WebKit gets a styled track + thumb
   (10px wide, brand-green gradient). Firefox gets the equivalent via the
   standardized `scrollbar-color` + `scrollbar-width` on <html>. */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--emerald), var(--emerald-d));
  border-radius: 10px;
  border: 2px solid var(--ink);
}
html {
  scrollbar-width: thin;
  scrollbar-color: var(--emerald) var(--ink);
}

/* ── CURSOR GLOW ────────────────────────────────────────────── */
#cursorGlow, #cursor-glow, .cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 70%);
  transform: translate(-50%,-50%);
  z-index: 0;
  transition: transform 0.08s linear;
  display: none;
}
@media(pointer:fine) { #cursorGlow, #cursor-glow, .cursor-glow { display: block; } }

/* ── GRAIN OVERLAY ──────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -200%;
  width: 400%; height: 400%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(10) infinite;
}
@keyframes grain-shift {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-2%,-1%); }
  20% { transform: translate(2%,1%); }
  30% { transform: translate(-1%,2%); }
  40% { transform: translate(1%,-2%); }
  50% { transform: translate(-3%,1%); }
  60% { transform: translate(3%,-1%); }
  70% { transform: translate(-1%,-3%); }
  80% { transform: translate(1%,3%); }
  90% { transform: translate(-2%,2%); }
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--t-fast) ease;
  position: relative;
  white-space: nowrap;
}
.btn-green {
  background: var(--emerald);
  color: var(--ink);
}
.btn-green:hover {
  background: var(--emerald-d);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(34,197,94,0.35);
}
.btn-ghost {
  background: var(--glass-b);
  color: var(--cream);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--border-e);
  background: rgba(34,197,94,0.06);
}
.btn-lg { padding: 18px 36px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.8125rem; }

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(8,8,16,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding: 0 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.nav-logo img {
  width: 64px;
  height: 64px;
}
/* Animated green-gradient wordmark — wrap the brand text in <span> inside .nav-logo. */
.nav-logo span {
  background: linear-gradient(135deg, #4ade80, #22c55e, #86efac);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: grad 8s ease-in-out infinite;
}
@keyframes grad {
  0%, 100% { background-position: 0 50%; }
  50%      { background-position: 100% 50%; }
}
.nav-logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--emerald);
  color: var(--ink);
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-family: 'Fraunces', serif;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cream);
  padding: 6px 4px;
  transition: color var(--t-fast);
}
.nav-link:hover { color: var(--emerald); }

/* Lang switcher */
/* ── LANG SWITCHER ────────────────────────────────────────────
   Flag-only trigger + 2-col x 4-row dropdown (flag + native name).
   SVG flags inlined as data URIs below. */
.flag {
  display: inline-block;
  width: 20px; height: 15px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
/* SVG flags inlined as data URIs. Lipis/flag-icons (4x3) for GB/PL/DE/FR/IT/NL,
   hand-simplified ES/PT (omitting coat-of-arms detail to keep size minimal). */
.flag-gb { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20id%3D%22flag-icons-gb%22%20viewBox%3D%220%200%20640%20480%22%3E%3Cpath%20fill%3D%22%23012169%22%20d%3D%22M0%200h640v480H0z%22%2F%3E%3Cpath%20fill%3D%22%23FFF%22%20d%3D%22m75%200%20244%20181L562%200h78v62L400%20241l240%20178v61h-80L320%20301%2081%20480H0v-60l239-178L0%2064V0z%22%2F%3E%3Cpath%20fill%3D%22%23C8102E%22%20d%3D%22m424%20281%20216%20159v40L369%20281zm-184%2020%206%2035L54%20480H0zM640%200v3L391%20191l2-44L590%200zM0%200l239%20176h-60L0%2042z%22%2F%3E%3Cpath%20fill%3D%22%23FFF%22%20d%3D%22M241%200v480h160V0zM0%20160v160h640V160z%22%2F%3E%3Cpath%20fill%3D%22%23C8102E%22%20d%3D%22M0%20193v96h640v-96zM273%200v480h96V0z%22%2F%3E%3C%2Fsvg%3E"); }
.flag-pl { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20id%3D%22flag-icons-pl%22%20viewBox%3D%220%200%20640%20480%22%3E%3Cg%20fill-rule%3D%22evenodd%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M640%20480H0V0h640z%22%2F%3E%3Cpath%20fill%3D%22%23dc143c%22%20d%3D%22M640%20480H0V240h640z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.flag-de { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20id%3D%22flag-icons-de%22%20viewBox%3D%220%200%20640%20480%22%3E%3Cpath%20fill%3D%22%23fc0%22%20d%3D%22M0%20320h640v160H0z%22%2F%3E%3Cpath%20fill%3D%22%23000001%22%20d%3D%22M0%200h640v160H0z%22%2F%3E%3Cpath%20fill%3D%22red%22%20d%3D%22M0%20160h640v160H0z%22%2F%3E%3C%2Fsvg%3E"); }
.flag-es { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20750%20500%22%3E%3Crect%20width%3D%22750%22%20height%3D%22500%22%20fill%3D%22%23c60b1e%22%2F%3E%3Crect%20y%3D%22125%22%20width%3D%22750%22%20height%3D%22250%22%20fill%3D%22%23ffc400%22%2F%3E%3C%2Fsvg%3E"); }
.flag-fr { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20id%3D%22flag-icons-fr%22%20viewBox%3D%220%200%20640%20480%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M0%200h640v480H0z%22%2F%3E%3Cpath%20fill%3D%22%23000091%22%20d%3D%22M0%200h213.3v480H0z%22%2F%3E%3Cpath%20fill%3D%22%23e1000f%22%20d%3D%22M426.7%200H640v480H426.7z%22%2F%3E%3C%2Fsvg%3E"); }
.flag-it { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20id%3D%22flag-icons-it%22%20viewBox%3D%220%200%20640%20480%22%3E%3Cg%20fill-rule%3D%22evenodd%22%20stroke-width%3D%221pt%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M0%200h640v480H0z%22%2F%3E%3Cpath%20fill%3D%22%23009246%22%20d%3D%22M0%200h213.3v480H0z%22%2F%3E%3Cpath%20fill%3D%22%23ce2b37%22%20d%3D%22M426.7%200H640v480H426.7z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.flag-nl { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20id%3D%22flag-icons-nl%22%20viewBox%3D%220%200%20640%20480%22%3E%3Cpath%20fill%3D%22%23ae1c28%22%20d%3D%22M0%200h640v160H0z%22%2F%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M0%20160h640v160H0z%22%2F%3E%3Cpath%20fill%3D%22%2321468b%22%20d%3D%22M0%20320h640v160H0z%22%2F%3E%3C%2Fsvg%3E"); }
.flag-pt { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20600%20400%22%3E%3Crect%20width%3D%22600%22%20height%3D%22400%22%20fill%3D%22%23da291c%22%2F%3E%3Crect%20width%3D%22240%22%20height%3D%22400%22%20fill%3D%22%23046a38%22%2F%3E%3C%2Fsvg%3E"); }

.lang-wrap { position: relative; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--cream);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.lang-toggle:hover { border-color: var(--border-e); background: var(--glass-b); }
.lang-toggle .flag { width: 22px; height: 16px; }
.lang-toggle svg { width:12px; height:12px; stroke:var(--muted); fill:none; transition: transform var(--t-fast); }
.lang-wrap.open .lang-toggle svg { transform: rotate(180deg); }
.lang-dd {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  z-index: 200;
  box-shadow: var(--shadow-md);
}
.lang-wrap.open .lang-dd { display: grid; }
.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cream);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-fast);
}
.lang-opt:hover { background: var(--glass-b); }
.lang-opt.active { color: var(--emerald); background: rgba(34,197,94,0.12); }
.lang-opt.active .flag { box-shadow: 0 0 0 1px var(--border-e); }

@media(max-width:640px) {
  .lang-wrap { display: none; }
  .nav-inner { padding: 0 16px; }
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-pulse 6s ease-in-out infinite alternate;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, transparent 70%);
}
.hero-orb-2 {
  width: 400px; height: 400px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(34,197,94,0.07) 0%, transparent 70%);
  animation-delay: -3s;
}
@keyframes orb-pulse {
  from { transform: scale(1) translate(0,0); opacity:0.8; }
  to   { transform: scale(1.15) translate(20px,20px); opacity:1; }
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--emerald);
  opacity: 0;
  animation: particle-float 8s ease-in-out infinite;
}
.hero-particle:nth-child(1) { width:4px; height:4px; left:10%; bottom:20%; animation-delay:0s; }
.hero-particle:nth-child(2) { width:3px; height:3px; left:25%; bottom:10%; animation-delay:1.5s; }
.hero-particle:nth-child(3) { width:5px; height:5px; left:60%; bottom:15%; animation-delay:3s; }
.hero-particle:nth-child(4) { width:3px; height:3px; left:75%; bottom:25%; animation-delay:0.8s; }
.hero-particle:nth-child(5) { width:4px; height:4px; left:85%; bottom:10%; animation-delay:2.2s; }
.hero-particle:nth-child(6) { width:3px; height:3px; left:45%; bottom:5%; animation-delay:4s; }
@keyframes particle-float {
  0%   { transform: translateY(0); opacity:0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-120px); opacity:0; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 20px 32px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
@media(min-width:900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 80px 40px;
  }
}

.hero-text { display: flex; flex-direction: column; gap: 24px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(34,197,94,0.1);
  border: 1px solid var(--border-e);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--emerald);
  width: fit-content;
}
.hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { opacity:1; box-shadow: 0 0 8px var(--emerald); }
  50% { opacity:0.5; box-shadow: 0 0 4px var(--emerald); }
}

/* .hero-h1, .hero-h1 em — typography moved to TYPOGRAPHY block. */

.hero-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-trust {
  font-size: 0.8125rem;
  color: var(--muted-2);
  letter-spacing: 0.01em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 8px;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-num {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.03em;
}
.hero-stat-lbl { font-size: 0.75rem; color: var(--muted); line-height: 1.3; }

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.phone-wrap {
  position: relative;
  width: 280px;
  /* Continuous gentle float — Stage 2.5 addition.
     Replaces previous `phone-float` on `.phone` (single source of truth).
     4s loop, ease-in-out, translateY only (no rotation). */
  animation: phoneFloat 4s ease-in-out infinite;
}
@media(min-width:900px) { .phone-wrap { width: 320px; } }
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.phone-glow-wrap {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 50%, rgba(34,197,94,0.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: orb-pulse 5s ease-in-out infinite alternate;
}
.phone {
  width: 100%;
  border-radius: 36px;
  background: var(--ink-2);
  border: 1px solid var(--border-e);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.phone-notch {
  width: 100px; height: 28px;
  background: var(--ink);
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
}
.phone-screen { padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.phone-hdr {
  font-size: 0.75rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
}

.ring-wrap {
  position: relative; width: 100px; height: 100px; margin: 0 auto;
}
.ring-wrap svg { width:100%; height:100%; transform:rotate(-90deg); }
.ring-track { fill:none; stroke:rgba(255,255,255,0.06); stroke-width:8; }
.ring-fill {
  fill:none; stroke:var(--emerald); stroke-width:8;
  stroke-linecap:round; stroke-dasharray:283; stroke-dashoffset:60;
  animation: ring-draw 1.5s ease-out 0.5s both;
}
@keyframes ring-draw { from { stroke-dashoffset:283; } to { stroke-dashoffset:60; } }
.ring-center {
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.ring-val { font-size:1.25rem; font-weight:800; color:var(--cream); line-height:1; }
.ring-unit { font-size:0.6rem; color:var(--muted); font-weight:600; }
.ring-sub { font-size:0.55rem; color:var(--muted-2); }

.phone-macros { display:flex; flex-direction:column; gap:6px; }
.macro-row { display:flex; align-items:center; gap:6px; font-size:0.7rem; }
.macro-dot { width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.macro-dot.p { background:#22c55e; }
.macro-dot.c { background:#3b82f6; }
.macro-dot.f { background:#f59e0b; }
.macro-lbl { color:var(--muted); flex:1; }
.macro-bar-wrap { flex:2; height:3px; background:rgba(255,255,255,0.07); border-radius:2px; overflow:hidden; }
.macro-bar { height:100%; border-radius:2px; animation:bar-grow 1s ease-out 0.8s both; }
.macro-bar.p { background:#22c55e; width:68%; }
.macro-bar.c { background:#3b82f6; width:80%; }
.macro-bar.f { background:#f59e0b; width:45%; }
@keyframes bar-grow { from{transform:scaleX(0);transform-origin:left;} to{transform:scaleX(1);} }
.macro-val { color:var(--cream); font-weight:600; font-size:0.65rem; }

.phone-meals { display:flex; flex-direction:column; gap:5px; }
.phone-meal {
  display:flex; align-items:center; gap:8px;
  padding:7px 10px; border-radius:10px;
  background:var(--glass); border:1px solid var(--border); font-size:0.7rem;
}
.phone-meal.active { border-color:var(--border-e); background:rgba(34,197,94,0.06); }
.meal-icon { font-size:0.9rem; }
.meal-name { flex:1; color:var(--cream); font-weight:500; }
.meal-kcal { color:var(--muted); }
.scan-badge {
  background:var(--emerald); color:var(--ink);
  font-weight:700; font-size:0.6rem; padding:2px 6px; border-radius:4px;
}
.phone-placeholder-label {
  text-align:center; font-size:0.7rem; color:var(--muted-2);
  padding:6px; border-top:1px solid var(--border); margin-top:4px;
}

/* ── PAIN POINTS ─────────────────────────────────────────────── */
.pain-section { padding:0; overflow:hidden; }
.pain-statement {
  min-height: 50vh;
  display:flex; align-items:center; justify-content:center;
  padding:64px 24px; text-align:center;
  border-bottom:1px solid var(--border);
  opacity:0; transform:translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34,1.56,0.64,1);
}
.pain-statement.visible { opacity:1; transform:translateY(0); }
.pain-statement:nth-child(1) { background:var(--ink); }
.pain-statement:nth-child(2) { background:linear-gradient(135deg,var(--ink-2),var(--ink)); }
.pain-statement:nth-child(3) { background:var(--ink-2); }
.pain-text {
  /* Typography (font/italic/size/letter-spacing) in TYPOGRAPHY block.
     This rule keeps the larger pain-section size + max-width. */
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  max-width: 900px;
}
.pain-statement:nth-child(1) .pain-text { color:var(--cream); }
.pain-statement:nth-child(2) .pain-text { color:var(--emerald); }
.pain-statement:nth-child(3) .pain-text { color:var(--cream); }

/* ── DEMO SECTIONS ───────────────────────────────────────────── */
.demo-section { padding:100px 0; position:relative; overflow:hidden; }
.demo-section+.demo-section { border-top:1px solid var(--border); }

.demo-inner {
  display:grid; grid-template-columns:1fr; gap:48px;
  align-items:center; max-width:1100px; margin:0 auto; padding:0 24px;
}
@media(min-width:900px) {
  .demo-inner { grid-template-columns:1fr 1fr; gap:64px; }
  .demo-inner.reverse { direction:rtl; }
  .demo-inner.reverse>* { direction:ltr; }
  /* Showcase variant — single-column stack on desktop. Text centered above,
     image full-width below. Used by the meal-plan section so the landscape
     3-phone composition gets prominent treatment instead of competing for
     half-column width with text. */
  .demo-inner-wide {
    grid-template-columns:1fr; gap:48px;
    max-width:1000px; text-align:center;
  }
  .demo-inner-wide .demo-text {
    max-width:700px; margin:0 auto; align-items:center;
  }
  .demo-inner-wide .demo-sub { max-width:640px; }
  .demo-inner-wide .week-plan-shot { max-width:900px; margin:0 auto; }
}

.demo-text { display:flex; flex-direction:column; gap:20px; }
/* .demo-h, .demo-h em — typography moved to TYPOGRAPHY block. */
.demo-sub { font-size:1rem; color:var(--muted); line-height:1.7; max-width:420px; }

.demo-card {
  background:var(--ink-2); border:1px solid var(--border-e);
  border-radius:var(--r-xl); overflow:hidden; position:relative;
  aspect-ratio:9/12; max-width:320px; margin:0 auto;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-med) cubic-bezier(0.34,1.2,0.64,1), box-shadow var(--t-med) ease;
}
.demo-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(34,197,94,0.12);
}
@media(min-width:900px) { .demo-card { max-width:380px; } }

.demo-placeholder-label {
  position:absolute; bottom:16px; left:50%; transform:translateX(-50%);
  background:rgba(0,0,0,0.6); backdrop-filter:blur(6px);
  border:1px solid var(--border); border-radius:100px;
  padding:4px 14px; font-size:0.7rem; color:var(--muted-2);
  white-space:nowrap; pointer-events:none; z-index:10;
}

/* Phone-shaped feature screenshots — shared treatment */
.fridge-shot,
.ingredient-shot,
.ai-scan-shot,
.ai-coach-shot {
  display:flex; justify-content:center; align-items:center;
  width:100%; max-width:480px;
}
.fridge-shot picture,
.ingredient-shot picture,
.ai-scan-shot picture,
.ai-coach-shot picture { display:block; width:100%; }
.fridge-shot img,
.ingredient-shot img,
.ai-scan-shot img,
.ai-coach-shot img {
  width:100%; height:auto; display:block;
  filter: drop-shadow(0 24px 60px rgba(34,197,94,0.18))
          drop-shadow(0 8px 24px rgba(0,0,0,0.5));
  /* Sharpness hints: prefer non-blurry resampling on browser downscale + force GPU layer to avoid subpixel blur. */
  image-rendering: -webkit-optimize-contrast;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
@media(max-width: 640px) {
  .fridge-shot,
  .ingredient-shot,
  .ai-scan-shot,
  .ai-coach-shot { max-width:320px; }
}

/* Locale-aware aspect for ingredient-shot: PL stays portrait single-phone,
   EN/default is landscape 2-phone composition needing more width. */
.ingredient-shot.is-landscape { max-width:900px; }
@media(max-width: 640px) {
  .ingredient-shot.is-landscape { max-width:380px; }
}

/* slide-up keyframe used by .ingredient-card animations (section 4) */
@keyframes slide-up { to{opacity:1;transform:translateY(0);} }

/* Ingredient scanner */
.ingredient-card { padding:20px; }
.ingredient-card-inner { display:flex; flex-direction:column; height:100%; gap:16px; }
.ingredients-list {
  font-family:'Courier New',monospace; font-size:0.72rem;
  line-height:1.8; color:var(--muted); flex:1; overflow:hidden;
}
.ing-bad  { background:rgba(239,68,68,0.2); color:#ef4444; padding:0 2px; border-radius:2px; }
.ing-warn { background:rgba(245,158,11,0.2); color:#f59e0b; padding:0 2px; border-radius:2px; }
.ing-good { background:rgba(34,197,94,0.2); color:#22c55e; padding:0 2px; border-radius:2px; }
.ing-bad,.ing-warn,.ing-good { opacity:0; animation:highlight-in 0.3s ease forwards; }
.ing-bad:nth-of-type(1)  {animation-delay:0.6s;}
.ing-bad:nth-of-type(2)  {animation-delay:1.0s;}
.ing-bad:nth-of-type(3)  {animation-delay:1.4s;}
.ing-warn:nth-of-type(1) {animation-delay:1.8s;}
.ing-warn:nth-of-type(2) {animation-delay:2.1s;}
.ing-good:nth-of-type(1) {animation-delay:2.4s;}
.ing-good:nth-of-type(2) {animation-delay:2.7s;}
@keyframes highlight-in { to{opacity:1;} }

.nutriscore-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px; background:var(--glass); border:1px solid var(--border);
  border-radius:12px; opacity:0;
  animation:slide-up 0.5s ease-out 3.2s forwards;
}
.ns-label { font-size:0.72rem; color:var(--muted); }
.ns-badge {
  width:32px; height:32px; border-radius:8px;
  background:var(--amber); color:var(--ink);
  font-weight:900; font-size:1.1rem;
  display:flex; align-items:center; justify-content:center;
  font-family:'Fraunces',serif; font-style:italic;
}

/* Week plan screenshot — landscape 3-phone composition. Rendered as a
   single-column showcase inside .demo-inner-wide on desktop (max-width:900px
   centered); base 700px cap here is a safe fallback if .demo-inner-wide
   styling ever doesn't apply. */
.week-plan-shot {
  display:flex; justify-content:center; align-items:center;
  width:100%; max-width:700px;
}
.week-plan-shot picture { display:block; width:100%; }
.week-plan-shot img {
  width:100%; height:auto; display:block;
  filter: drop-shadow(0 24px 60px rgba(34,197,94,0.18))
          drop-shadow(0 8px 24px rgba(0,0,0,0.5));
  image-rendering: -webkit-optimize-contrast;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
@media(max-width:640px) {
  .week-plan-shot { max-width:380px; }
}

/* ── STICKY CTA ──────────────────────────────────────────────── */
.sticky-cta {
  position:fixed; bottom:0; left:0; right:0; z-index:800;
  padding:12px 20px;
  padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));
  background:rgba(8,8,16,0.95); backdrop-filter:blur(16px);
  border-top:1px solid var(--border);
  transform:translateY(100%);
  transition:transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.sticky-cta.visible { transform:translateY(0); }
.sticky-cta-btn {
  display:block; width:100%; padding:16px;
  background:var(--emerald); color:var(--ink);
  border-radius:var(--r-md); font-weight:700; font-size:1rem;
  text-align:center; border:none; cursor:pointer;
  transition:all var(--t-fast);
}
.sticky-cta-btn:hover { background:var(--emerald-d); }
@media(min-width:768px) { .sticky-cta { display:none; } }

/* ── SOCIAL PROOF ────────────────────────────────────────────── */
.proof-section { padding:80px 0; overflow:hidden; }
.proof-header { padding:0 20px 40px; text-align:center; }
.proof-scroll {
  display:flex; gap:16px; overflow-x:auto;
  padding:0 20px 16px;
  scroll-snap-type:x mandatory;
  scrollbar-width:none; -ms-overflow-style:none;
}
.proof-scroll::-webkit-scrollbar { display:none; }
.t-card {
  background:var(--ink-2); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:24px;
  min-width:280px; max-width:320px;
  scroll-snap-align:start; flex-shrink:0;
  display:flex; flex-direction:column; gap:14px;
  transition:border-color var(--t-fast);
}
.t-card:hover { border-color:var(--border-e); }
@media(min-width:900px) {
  .proof-scroll { display:grid; grid-template-columns:repeat(3,1fr); overflow:visible; padding:0 40px; }
  .t-card { max-width:none; }
}
.t-stars { display:flex; gap:3px; }
.t-stars svg { width:14px; height:14px; }
.t-text { font-size:0.875rem; line-height:1.65; color:var(--cream); flex:1; }
.t-author { display:flex; align-items:center; gap:10px; }
.t-av {
  width:36px; height:36px; border-radius:50%;
  background:var(--emerald-glow); border:1px solid var(--border-e);
  color:var(--emerald); font-size:0.75rem; font-weight:700;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.t-name { font-size:0.8125rem; font-weight:600; color:var(--cream); }
.t-role { font-size:0.75rem; color:var(--muted); }

/* ── PRICING ─────────────────────────────────────────────────── */
.pricing-section { padding:96px 0; }
.pricing-grid {
  display:grid; grid-template-columns:1fr; gap:16px; margin-top:48px;
}
@media(min-width:768px) { .pricing-grid { grid-template-columns:repeat(2,1fr); } }
@media(min-width:1100px) { .pricing-grid { grid-template-columns:repeat(4,1fr); } }
.p-card {
  background:var(--ink-2); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:28px 24px;
  display:flex; flex-direction:column; gap:6px;
  position:relative;
  transition:border-color var(--t-med),transform var(--t-med),box-shadow var(--t-med);
}
.p-card:hover { transform:translateY(-4px); box-shadow: var(--shadow-md); }
.p-card-popular {
  border-color:var(--border-e);
  background:linear-gradient(135deg,rgba(34,197,94,0.06) 0%,var(--ink-2) 100%);
}
.p-badge {
  position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  background:var(--emerald); color:var(--ink);
  font-size:0.7rem; font-weight:700;
  padding:4px 14px; border-radius:100px; white-space:nowrap;
}
.p-tier { font-size:0.72rem; color:var(--muted); font-weight:500; text-transform:uppercase; letter-spacing:0.1em; }
.p-name { font-size:1.5rem; font-weight:800; color:var(--cream); letter-spacing:-0.02em; margin-top:4px; }
.p-tagline { font-size:0.8125rem; color:var(--muted); margin-bottom:8px; }
.p-price-row { display:flex; align-items:baseline; gap:2px; margin:8px 0; }
.p-currency { font-size:1.25rem; font-weight:700; color:var(--cream); }
.p-amount { font-size:2.8rem; font-weight:900; color:var(--cream); line-height:1; letter-spacing:-0.03em; }
.p-price-main { font-size:2.4rem; font-weight:900; color:var(--cream); line-height:1; letter-spacing:-0.03em; }
.p-period { font-size:0.875rem; color:var(--muted); }
.p-trial { font-size:0.75rem; color:var(--emerald); height:18px; display:block; margin-bottom:12px; }
.p-divider { height:1px; background:var(--border); margin:12px 0; }
.p-features { display:flex; flex-direction:column; gap:8px; flex:1; margin-bottom:20px; }
.p-feature { display:flex; align-items:center; gap:10px; font-size:0.8125rem; color:var(--cream); }
.p-feature svg { width:14px; height:14px; flex-shrink:0; }
.p-feature-off { color:var(--muted-2); }
.p-cta {
  display:block; text-align:center; padding:13px;
  border-radius:var(--r-md); font-weight:700; font-size:0.875rem;
  transition:all var(--t-fast); margin-top:auto;
}
.p-cta-outline { border:1px solid var(--border); color:var(--cream); }
.p-cta-outline:hover { border-color:var(--border-e); background:var(--glass); }
.p-cta-green { background:var(--emerald); color:var(--ink); }
.p-cta-green:hover { background:var(--emerald-d); box-shadow:0 8px 24px rgba(34,197,94,0.3); }
.p-cta-purple { background:rgba(129,140,248,0.1); color:#818cf8; border:1px solid rgba(129,140,248,0.2); }
.p-cta-purple:hover { background:rgba(129,140,248,0.2); }
/* Founders card — locked / coming-soon visual state. Visually muted to signal
   "not yet purchasable" without removing it from the layout (anticipation). */
.p-card-founders {
  border-style: dashed;
  border-color: rgba(245,158,11,0.35);
  background: linear-gradient(135deg, rgba(245,158,11,0.04) 0%, var(--ink-2) 100%);
  opacity: 0.85;
}
.p-card-founders:hover { transform: none; box-shadow: none; }
.p-cta-disabled {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px; border-radius: var(--r-md);
  font-size: 0.875rem; font-weight: 700; text-align: center;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: not-allowed; user-select: none;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.p-guarantee {
  text-align:center; margin-top:32px; font-size:0.8125rem; color:var(--muted-2);
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.p-guarantee svg { width:14px; height:14px; stroke:var(--muted-2); fill:none; }

/* ── FAQ ─────────────────────────────────────────────────────────
   Unified component used by landing + 40 blog articles.
   Landing uses <details name="faq"> for accordion behavior;
   blog articles omit `name` to allow multi-open. */
.faq-section { padding:80px 0; }
.faq-list {
  display:flex; flex-direction:column; gap:12px; margin-top:48px;
  max-width:720px; margin-left:auto; margin-right:auto;
}
details.faq-item {
  background:var(--ink-2); border:1px solid var(--border);
  border-radius:var(--r-md); overflow:hidden;
  transition:background var(--t-fast), border-color var(--t-fast);
}
details.faq-item:hover { background:var(--ink-3); border-color:rgba(255,255,255,0.1); }
details.faq-item[open] { background:rgba(34,197,94,0.04); border-color:var(--border-e); }
details.faq-item summary {
  cursor:pointer; list-style:none; user-select:none;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 24px;
  font-size:0.9375rem; font-weight:600; color:var(--cream); line-height:1.45;
}
details.faq-item summary::-webkit-details-marker { display:none; }
details.faq-item summary::after {
  content:"+"; flex-shrink:0;
  width:28px; height:28px; border-radius:50%;
  background:var(--emerald); color:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:1.1rem; font-weight:600; line-height:1;
  transition:transform var(--t-med) ease, background var(--t-fast);
}
details.faq-item[open] summary::after { transform:rotate(45deg); }
details.faq-item .faq-answer,
details.faq-item > p {
  padding:0 24px 20px; margin:0;
  font-size:0.9375rem; color:var(--muted); line-height:1.7;
}
@media (prefers-reduced-motion: no-preference) {
  details.faq-item::details-content {
    height:0; overflow:hidden;
    transition:height var(--t-med) ease, content-visibility var(--t-med) allow-discrete;
  }
  details.faq-item[open]::details-content { height:auto; overflow:visible; }
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
  }
}

/* ── DISCORD ─────────────────────────────────────────────────── */
.discord-section {
  padding:100px 0;
  background:linear-gradient(135deg,var(--ink-2) 0%,var(--ink) 100%);
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
.discord-inner {
  display:flex; flex-direction:column; align-items:center;
  gap:20px; text-align:center; max-width:560px;
  margin:0 auto; padding:0 24px;
}
.discord-logo { width:72px; height:auto; transition:transform var(--t-med); }
.discord-logo:hover { transform:scale(1.08); }
/* .discord-h typography in TYPOGRAPHY block. Section-specific size override below. */
.discord-h { font-size: clamp(1.8rem, 4vw, 2.8rem); }
/* .discord-h em (#5865F2) in TYPOGRAPHY block. */
.discord-sub { font-size:0.9375rem; color:var(--muted); line-height:1.65; }
.discord-cta {
  padding:15px 36px; background:#5865F2; color:white;
  border-radius:100px; font-weight:700; font-size:1rem;
  transition:all var(--t-fast);
  display:inline-flex; align-items:center; gap:8px;
}
.discord-cta:hover { background:#4752c4; transform:scale(1.04); box-shadow:0 12px 32px rgba(88,101,242,0.4); }
.discord-tagline { font-size:0.8125rem; color:var(--muted-2); }

/* ── FINAL CTA ───────────────────────────────────────────────── */
.final-section { padding:120px 0; text-align:center; position:relative; overflow:hidden; }
.final-bg {
  position:absolute; inset:0;
  background:radial-gradient(ellipse 80% 60% at 50% 50%,rgba(34,197,94,0.08) 0%,transparent 70%);
  pointer-events:none;
}
.final-inner {
  position:relative; z-index:1;
  display:flex; flex-direction:column; align-items:center; gap:24px; padding:0 24px;
}
.final-h {
  /* Typography in TYPOGRAPHY block. Final-CTA gets larger size + tighter line-height. */
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
/* .final-h em (emerald) in TYPOGRAPHY block. */
.final-sub { font-size:0.9375rem; color:var(--muted); }
.final-btns { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:8px; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer { padding:40px 0; border-top:1px solid var(--border); background:var(--ink-2); }
.footer-inner {
  display:flex; flex-wrap:wrap; align-items:center;
  justify-content:space-between; gap:20px;
  max-width:1240px; margin:0 auto; padding:0 24px;
}
.footer-logo { display:flex; align-items:center; gap:8px; font-weight:700; font-size:0.9375rem; }
.footer-logo img { width:22px; height:22px; border-radius:6px; }
.footer-links { display:flex; flex-wrap:wrap; gap:20px; align-items:center; }
.footer-links a { font-size:0.85rem; color:#6b7280; transition:color 0.3s; }
.footer-links a:hover { color:#22c55e; }
.footer-links a.current { color:#4ade80; }
.footer-copy {
  font-size:0.75rem; color:var(--muted-2);
  border-top:1px solid var(--border); text-align:center;
  max-width:1240px; margin:20px auto 0; padding:20px 24px 0;
}

/* ── COOKIE ──────────────────────────────────────────────────── */
.cookie {
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%);
  background:var(--ink-3); border:1px solid var(--border);
  border-radius:var(--r-md); padding:14px 20px;
  display:flex; align-items:center; gap:16px;
  z-index:700; max-width:480px; width:calc(100% - 40px);
  box-shadow: var(--shadow-md);
  animation:cookie-slide 0.5s cubic-bezier(0.34,1.56,0.64,1) 1.5s both;
}
@keyframes cookie-slide {
  from{opacity:0;transform:translateX(-50%) translateY(20px);}
  to{opacity:1;transform:translateX(-50%) translateY(0);}
}
.cookie.hidden { display:none; }
.cookie-text { font-size:0.8125rem; color:var(--muted); line-height:1.5; flex:1; }
.cookie-text a { color:var(--emerald); text-decoration:underline; }
.cookie-accept {
  padding:8px 18px; background:var(--emerald); color:var(--ink);
  border-radius:8px; font-size:0.8125rem; font-weight:700;
  white-space:nowrap; flex-shrink:0; cursor:pointer;
}
@media(max-width:480px) {
  .cookie { flex-direction:column; align-items:stretch; }
  .cookie-accept { text-align:center; }
}

/* ── STAGGER / MAGNETIC ──────────────────────────────────────── */
[data-stagger] {
  opacity:0; transform:translateY(24px);
  transition:opacity 0.6s ease,transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
[data-stagger].visible { opacity:1; transform:translateY(0); }
[data-magnetic] { transform-style:preserve-3d; will-change:transform; }

/* ── MOBILE FINE-TUNING ──────────────────────────────────────── */
@media(max-width:640px) {
  .hero-stats { grid-template-columns:repeat(3,1fr); gap:8px; }
  .hero-h1 { font-size:clamp(2.4rem,11vw,3.5rem); }
  .demo-inner { gap:32px; }
  .demo-card { aspect-ratio:9/14; max-width:280px; }
  .sticky-cta { bottom:0; }
}

/* ── HERO GRADIENT OVERLAY (subtle radial wash, layered above bg) ─ */
.hero {
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 50% at 25% 30%, rgba(34,197,94,0.06), transparent 60%),
    radial-gradient(50% 40% at 80% 70%, rgba(255,255,255,0.025), transparent 70%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; }

/* ── REDUCED MOTION GUARD ─────────────────────────────────────
   Disable looped animations and transitions; keep elements visible at
   their final state. JS animations.js also skips init under this query. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Ensure IO-driven reveal classes show their final state immediately. */
  .pain-statement,
  [data-stagger] {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Disable ambient hero/floating decoration that loops indefinitely. */
  .hero::after,
  .grain-overlay,
  .phone,
  .phone-wrap,
  .hero-orb,
  .particle {
    animation: none !important;
    transform: none !important;
  }
}

/* ── HERO SCREENSHOT (replaces phone mockup) ───────────────── */
.hero-shot {
  display: block;
  position: relative;
  animation: phoneFloat 4s ease-in-out infinite;
}
.hero-shot img {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 24px 60px rgba(34,197,94,0.18))
          drop-shadow(0 8px 24px rgba(0,0,0,0.5));
  image-rendering: -webkit-optimize-contrast;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* will-change pairs with the phoneFloat animation on .hero-shot to keep
     the img on a GPU layer for the whole animation cycle. */
  will-change: transform;
}
@media(max-width: 640px) {
  .hero-shot img { max-width: 300px; }
}

/* ── SECTION DOTS ──────────────────────────────────────────────
   Right-side fixed column of one dot per section. Independent of the
   top #scrollBar (which is reading progress). Hover reveals the
   section label as a tooltip; .active is set by IntersectionObserver
   in js/section-dots.js. Hidden under 900px viewport — phones use the
   top progress bar instead. */
.section-dots {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 850;
  pointer-events: none; /* container ignores clicks; only dot links accept them */
}
.section-dots ul { display: flex; flex-direction: column; gap: 14px; }
.section-dots li { position: relative; pointer-events: auto; }
.section-dots a {
  display: block;
  padding: 6px; /* generous click target around the 8px visual dot */
  position: relative;
}
.section-dots .dot {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: all var(--t-fast) ease;
}
.section-dots a:hover .dot {
  background: var(--muted);
  transform: scale(1.2);
}
.section-dots a.active .dot {
  background: var(--emerald);
  transform: scale(1.5);
  box-shadow: 0 0 12px var(--emerald-glow);
}
/* Tooltip with section label, appears on hover, positioned LEFT of dot. */
.section-dots a::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--cream);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) ease;
  box-shadow: var(--shadow-sm);
}
.section-dots a:hover::before { opacity: 1; }
/* Hide on mobile and tablets — top scroll bar handles progress there. */
@media (max-width: 900px) {
  .section-dots { display: none; }
}
/* Mirror of the above breakpoint: on desktop the section dots ARE the
   reading progress, so the top #scrollBar bar is redundant and hidden. */
@media (min-width: 900px) {
  #scrollBar, #scroll-bar, .scroll-bar { display: none; }
}
/* Reduced motion: drop the scale + glow, keep color change. */
@media (prefers-reduced-motion: reduce) {
  .section-dots .dot,
  .section-dots a:hover .dot,
  .section-dots a.active .dot { transform: none !important; }
  .section-dots a::before { transition: none !important; }
}

