/* =========================================================
   Founders Retreat — S2 · RESTRAINED / PRODUCT-GRADE
   Monochrome near-black, ONE accent, structure via hairline
   borders (not glow), generous space, minimal motion.
   Inspiration: product sites like Linear / Supabase.
   Dark default + light theme via [data-theme="light"] + switcher.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

/* =========================================================
   TOKENS — DARK (default)

   Come funziona il tema:
   - :root         → dark, il default
   - @media (prefers-color-scheme: light) :root:not([data-theme="dark"])
                   → light se il sistema lo chiede E l'utente non ha
                     scelto esplicitamente dark (funziona anche senza JS)
   - [data-theme="light"] → scelta esplicita dell'utente, vince sempre
   I due blocchi light devono restare identici: se tocchi uno, tocca l'altro.
   ========================================================= */
:root {
  color-scheme: dark;

  /* base */
  --bg: #08080b;
  --bg2: #0c0c10;
  --surface: #101015;
  --surface-2: #16161c;
  --surface-solid: #101015;

  /* text + hairlines (structure lives here, not in glow) */
  --ink: #ececf1;
  --ink-strong: #ffffff;
  --muted: #8b8b97;
  --faint: #7a7a88;            /* >= 4.5:1 su --bg2 (WCAG AA) */
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.14);

  /* THE single accent (actions + rare emphasis only) */
  --accent: #7c55ff;           /* 4.6:1 con testo bianco (WCAG AA) */
  --accent-press: #6a49f0;
  --accent-ink: #ffffff;
  --accent-tint: rgba(124,92,255,.13);
  --accent-line: rgba(124,92,255,.40);
  --accent-text: #b6a4ff;

  /* category indicators — DESATURATED, used only as small dots/labels */
  --cat-coding: #8c79ff;
  --cat-finance: #6f86c4;
  --cat-network: #5aa6a0;
  --ok: #46c08a;

  /* rare emphasis gradient — single hue, subtle */
  --grad: linear-gradient(180deg, #8a6bff 0%, #6a49f0 100%);

  /* effects — deliberately minimal */
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 16px 40px -24px rgba(0,0,0,.8);
  --shadow-sm: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px -18px rgba(0,0,0,.7);
  --ring: 0 0 0 3px rgba(124,92,255,.28);
  --grid-line: rgba(255,255,255,.022);
  --hero-glow: rgba(124,92,255,.10);

  /* superfici "cover" e riflesso del tilt — devono cambiare col tema */
  --cover-grad: linear-gradient(165deg, #15151c 0%, #0c0c11 100%);
  --prodcover-grad: linear-gradient(165deg, #15151c 0%, #0d0d12 100%);
  --glare: rgba(255,255,255,.10);
  --prodmark-op: .5;

  /* radius + spacing */
  --bw: 1px;
  --radius: 12px;
  --radius-lg: 16px;
  --pill: 999px;
  --s1:.25rem; --s2:.5rem; --s3:.75rem; --s4:1rem;
  --s6:1.5rem; --s8:2rem; --s12:3rem; --s16:4rem; --s24:6rem;
  --maxw: 1100px;

  /* type — Inter everywhere, mono for labels */
  --font: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2,.6,.2,1);

  /* legacy aliases so existing inline styles resolve */
  --pink: var(--accent);
  --purple: var(--cat-finance);
  --yellow: var(--cat-network);
  --violet: var(--cat-finance);
  --cyan: var(--cat-network);
  --green: var(--ok);
  --orange: var(--accent);
  /* --white/--black sono alias SEMANTICI (superficie/testo), non colori
     letterali: nel tema dark devono invertirsi, altrimenti un
     `color:var(--black)` su `background:var(--white)` sparisce. */
  --white: var(--surface);
  --black: var(--ink);
  --grad-soft: var(--grad);
}

/* =========================================================
   TOKENS — LIGHT · scelta esplicita dell'utente
   ========================================================= */
[data-theme="light"] {
  color-scheme: light;

  --bg: #fbfbfd;
  --bg2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f8;
  --surface-solid: #ffffff;

  --ink: #1b1b22;
  --ink-strong: #08080b;
  --muted: #61616e;
  --faint: #6f6f7c;            /* >= 4.5:1 su bianco (WCAG AA) */
  --line: rgba(15,15,25,.10);
  --line-strong: rgba(15,15,25,.16);

  --accent: #6c4fe0;
  --accent-press: #5a3fce;
  --accent-ink: #ffffff;
  --accent-tint: rgba(108,79,224,.09);
  --accent-line: rgba(108,79,224,.34);
  --accent-text: #5a3fce;

  --cat-coding: #6c4fe0;
  --cat-finance: #41599b;
  --cat-network: #2f7d77;
  --ok: #1a9c6a;

  --grad: linear-gradient(180deg, #7458e6 0%, #5a3fce 100%);

  --shadow: 0 1px 2px rgba(20,20,40,.04), 0 16px 40px -28px rgba(20,20,40,.30);
  --shadow-sm: 0 1px 2px rgba(20,20,40,.04), 0 8px 22px -20px rgba(20,20,40,.22);
  --ring: 0 0 0 3px rgba(108,79,224,.22);
  --grid-line: rgba(15,15,25,.03);
  --hero-glow: rgba(108,79,224,.07);

  --cover-grad: linear-gradient(165deg, #f4f3fb 0%, #ececf4 100%);
  --prodcover-grad: linear-gradient(165deg, #f4f3fb 0%, #ececf4 100%);
  --glare: rgba(108,79,224,.10);
  --prodmark-op: .35;

  --white: var(--surface);
  --black: var(--ink);
}

/* =========================================================
   TOKENS — LIGHT · fallback di sistema (anche senza JS).
   Vale solo se l'utente NON ha scelto esplicitamente dark.
   Copia identica del blocco qui sopra: aggiornali insieme.
   ========================================================= */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;

    --bg: #fbfbfd;
    --bg2: #ffffff;
    --surface: #ffffff;
    --surface-2: #f5f5f8;
    --surface-solid: #ffffff;

    --ink: #1b1b22;
    --ink-strong: #08080b;
    --muted: #61616e;
    --faint: #6f6f7c;
    --line: rgba(15,15,25,.10);
    --line-strong: rgba(15,15,25,.16);

    --accent: #6c4fe0;
    --accent-press: #5a3fce;
    --accent-ink: #ffffff;
    --accent-tint: rgba(108,79,224,.09);
    --accent-line: rgba(108,79,224,.34);
    --accent-text: #5a3fce;

    --cat-coding: #6c4fe0;
    --cat-finance: #41599b;
    --cat-network: #2f7d77;
    --ok: #1a9c6a;

    --grad: linear-gradient(180deg, #7458e6 0%, #5a3fce 100%);

    --shadow: 0 1px 2px rgba(20,20,40,.04), 0 16px 40px -28px rgba(20,20,40,.30);
    --shadow-sm: 0 1px 2px rgba(20,20,40,.04), 0 8px 22px -20px rgba(20,20,40,.22);
    --ring: 0 0 0 3px rgba(108,79,224,.22);
    --grid-line: rgba(15,15,25,.03);
    --hero-glow: rgba(108,79,224,.07);

    --cover-grad: linear-gradient(165deg, #f4f3fb 0%, #ececf4 100%);
    --prodcover-grad: linear-gradient(165deg, #f4f3fb 0%, #ececf4 100%);
    --glare: rgba(108,79,224,.10);
    --prodmark-op: .35;

    --white: var(--surface);
    --black: var(--ink);
  }
}

/* =========================================================
   BASE
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Cambio tema: senza questo animava SOLO il body (.35s) mentre nav, card,
   bordi e testo scattavano subito → per ~350ms si vedeva testo chiaro su
   fondo chiaro. Qui la transizione la fa tutta la pagina, insieme, e solo
   durante lo switch (la classe la mette/toglie main.js). */
@media (prefers-reduced-motion: no-preference) {
  html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
    transition: background-color .28s var(--ease), background-image .28s var(--ease),
                border-color .28s var(--ease), color .28s var(--ease),
                fill .28s var(--ease), stroke .28s var(--ease),
                box-shadow .28s var(--ease), -webkit-text-stroke-color .28s var(--ease) !important;
  }
}
/* one faint glow behind the top of the page + barely-there grid */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(60vw 36vw at 50% -8%, var(--hero-glow), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(circle at 50% 0%, #000, transparent 70%);
          mask: radial-gradient(circle at 50% 0%, #000, transparent 70%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.022em; color: var(--ink-strong); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }
p  { font-size: 1.02rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--s6); }
.section { padding-block: var(--s24); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.hero h1 { color: var(--ink-strong); }

/* ---------- Reveal on scroll — opacity only, quick ---------- */
.reveal { opacity: 0; transition: opacity .5s var(--ease); will-change: opacity; }
.reveal.in { opacity: 1; }

/* =========================================================
   NAV
   ========================================================= */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px) saturate(140%); border-bottom: var(--bw) solid var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--s6); }
.brand { display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.03em; text-transform: lowercase; color: var(--ink-strong); }
.brand .mark, .brand .dot { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: var(--s2); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: transparent; border: var(--bw) solid var(--line); color: var(--muted);
  cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
/* L'icona indica l'AZIONE, non lo stato: sole = "passa al chiaro",
   luna = "passa allo scuro". Coerente con aria-label/title (li aggiorna main.js). */
.theme-toggle .i-moon { display: none; }
.theme-toggle .i-sun  { display: block; }
[data-theme="light"] .theme-toggle .i-sun  { display: none; }
[data-theme="light"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .i-sun  { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: block; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 550; font-size: .95rem; cursor: pointer; white-space: nowrap;
  padding: .62rem 1.05rem; border-radius: 10px;
  color: var(--ink); border: var(--bw) solid var(--line-strong);
  background: var(--surface);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* PRIMARY: solid accent, no glow */
.btn-black, .btn-pink, .btn-primary {
  color: var(--accent-ink); font-weight: 600; border-color: transparent;
  background: var(--accent);
}
.btn-black:hover, .btn-pink:hover, .btn-primary:hover { background: var(--accent-press); border-color: transparent; color: var(--accent-ink); transform: translateY(-1px); }

.btn-lg { font-size: 1rem; padding: .75rem 1.3rem; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); color: var(--ink); transform: none; }

/* =========================================================
   CARDS — solid surface + hairline border (no blur, no glow)
   ========================================================= */
.card {
  position: relative; background: var(--surface); color: var(--ink);
  border: var(--bw) solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-pad { padding: var(--s8); }
.card-link { transition: transform .2s var(--ease), border-color .2s ease, box-shadow .2s ease; }
.card-link:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }

/* =========================================================
   PILLS — hairline, monochrome by default
   ========================================================= */
.pill { display: inline-flex; align-items: center; gap: var(--s2); border: var(--bw) solid var(--line); border-radius: var(--pill); padding: .3rem .7rem; font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .02em; background: var(--surface); color: var(--muted); }
.pill-pink { background: var(--accent-tint); color: var(--accent-text); border-color: var(--accent-line); }
.pill-purple { color: color-mix(in srgb, var(--cat-finance) 72%, var(--ink)); border-color: color-mix(in srgb, var(--cat-finance) 36%, transparent); }
.pill-yellow { color: color-mix(in srgb, var(--cat-network) 70%, var(--ink)); border-color: color-mix(in srgb, var(--cat-network) 36%, transparent); }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: var(--s24) 0 var(--s16); }
.hero .lede { font-size: 1.2rem; max-width: 46ch; margin-top: var(--s4); color: var(--ink); }
.hero .lede.muted { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s8); }
.hero-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s16); align-items: center; }
@media (max-width: 900px){ .hero-split { grid-template-columns: 1fr; gap: var(--s8); } }

/* ---------- 3D interactive hero card (subtle) ---------- */
.card3d-scene { perspective: 1300px; }
.cover {
  display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface); border: var(--bw) solid var(--line);
  transform-style: preserve-3d; transform-origin: center;
  transition: transform .3s var(--ease), border-color .3s ease;
  will-change: transform;
}
.card3d-scene[data-tilt] .cover { transition: transform .12s linear, border-color .3s ease; }
.cover .cover-glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--gx,50%) var(--gy,0%), var(--glare), transparent 55%);
  transition: opacity .3s ease;
}
.card3d-scene[data-tilt] .cover .cover-glare { opacity: 1; }
.cover-top {
  position: relative; padding: var(--s8); min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between; color: var(--ink-strong);
  background: var(--cover-grad);
  border-bottom: var(--bw) solid var(--line);
  transform-style: preserve-3d;
}
.cover-top > * { transform: translateZ(26px); }
.cover-top > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.cover-top .price-badge { background: var(--accent); color: var(--accent-ink); border-radius: var(--pill); padding: .4rem .9rem; font-family: var(--mono); font-weight: 600; font-size: .82rem; white-space: nowrap; }
.cover-top .prodmark { transform: rotate(8deg) translateZ(4px) !important; }
.cover-bottom { background: var(--bg2); padding: var(--s6) var(--s8); }
.cover-bottom .row { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); }
.cover-bottom .btn { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* =========================================================
   SECTION HEADINGS / GRIDS
   ========================================================= */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s6); margin-bottom: var(--s12); flex-wrap: wrap; }
.shead p { max-width: 56ch; margin-top: var(--s2); }

.grid { display: grid; gap: var(--s6); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
@media (max-width: 900px){ .grid-2 { grid-template-columns: 1fr; } }

/* =========================================================
   PRODUCT CARDS
   ========================================================= */
.prodgrid { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--s6); }
@media (max-width: 760px){ .prodgrid { grid-template-columns: 1fr; } }
.prodcard { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.prodcard-cover {
  position: relative; height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--prodcover-grad);
  border-bottom: var(--bw) solid var(--line);
}
.prodcard-week { font-family: var(--display); font-size: 5.5rem; font-weight: 800; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); }
.prodcard-sticker { position: absolute; top: var(--s4); left: var(--s4); background: var(--surface); color: var(--muted); border: var(--bw) solid var(--line); border-radius: var(--pill); padding: .28rem .7rem; font-family: var(--mono); font-weight: 500; font-size: .72rem; }
.prodcard-body { padding: var(--s8); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.prodcard-meta { display: flex; flex-wrap: wrap; gap: var(--s2); }
.prodcard-body h3 { font-size: 1.4rem; }
.prodcard-body .btn { margin-top: auto; width: 100%; justify-content: center; }
.prodmark { position: absolute; width: 92px; bottom: -16px; right: -12px; opacity: var(--prodmark-op); pointer-events: none; }
.avail { display: inline-flex; align-items: center; gap: .4rem; }
.avail::before { content:""; width:.45rem; height:.45rem; border-radius: var(--pill); background: var(--ok); }

/* =========================================================
   FEATURES — monochrome icons, hairline border
   ========================================================= */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s6); }
@media (max-width: 900px){ .features { grid-template-columns: 1fr; } }
.feature .ico {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s4);
  color: var(--ico-c, var(--accent));
  background: var(--surface-2);
  border: var(--bw) solid var(--line);
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.2rem; }
.feature p { margin-top: var(--s2); }
.ico-coding  { --ico-c: var(--cat-coding); }
.ico-finance { --ico-c: var(--cat-finance); }
.ico-network { --ico-c: var(--cat-network); }

/* =========================================================
   BANDS — quiet surfaces, hairline separators
   ========================================================= */
.band { position: relative; background: var(--bg2); color: var(--ink); border-block: var(--bw) solid var(--line); }
.band > * { position: relative; z-index: 1; }
.band .pill { color: var(--muted); }
.band .card, .form.card { background: var(--surface); color: var(--ink); border: var(--bw) solid var(--line); }

/* =========================================================
   PROGRAMME (day-by-day)
   ========================================================= */
.day { border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); margin-bottom: var(--s4); overflow: hidden; }
.day-head { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s6); border-bottom: var(--bw) solid var(--line); }
.day-num { width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--surface-2); color: var(--accent-text); border: var(--bw) solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 1rem; }
.day-head .title { font-family: var(--display); font-weight: 650; font-size: 1.1rem; }
.day-head .tag { margin-left: auto; }
.slots { padding: var(--s2) var(--s6) var(--s4); }
.slot { display: grid; grid-template-columns: 120px 1fr; gap: var(--s4); padding: var(--s3) 0; border-bottom: var(--bw) solid var(--line); }
.slot:last-child { border-bottom: 0; }
.slot .time { font-family: var(--mono); font-weight: 550; color: var(--muted); font-size: .9rem; }
.slot .what strong { display: block; color: var(--ink); }
@media (max-width: 640px){ .slot { grid-template-columns: 84px 1fr; gap: var(--s3); } }

/* =========================================================
   FAQ
   ========================================================= */
.faq details { border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: var(--s3); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.02rem; padding: var(--s4) var(--s6); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content:"+"; font-weight:500; font-size: 1.3rem; color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary::after { content:"–"; }
.faq .answer { padding: 0 var(--s6) var(--s6); color: var(--muted); }

/* =========================================================
   FORMS
   ========================================================= */
.form { display: grid; gap: var(--s4); color: var(--ink); }
.field { display: grid; gap: var(--s2); }
.field label { font-weight: 550; font-size: .9rem; }
.field input, .field select, .field textarea { font-family: inherit; font-size: .98rem; padding: .7rem .85rem; border: var(--bw) solid var(--line-strong); border-radius: 9px; background: var(--bg); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field select option { background: var(--surface-solid); color: var(--ink); }
.form-note { font-size: .82rem; }
.form-status { display: none; padding: var(--s4); border-radius: 9px; font-weight: 550; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); border: var(--bw) solid color-mix(in srgb, var(--ok) 36%, transparent); }
.form-status.err { display: block; background: var(--accent-tint); color: var(--accent-text); border: var(--bw) solid var(--accent-line); }

.consent { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; font-size: .88rem; color: var(--muted); }
.consent input { width: 1.05rem; height: 1.05rem; margin-top: .15rem; accent-color: var(--accent); }
.consent a { color: var(--accent-text); text-decoration: underline; font-weight: 550; }

/* =========================================================
   BUY BAR / FOOTER / DETAIL
   ========================================================= */
.buybar { position: sticky; top: max(90px, calc(50vh - 260px)); align-self: start; max-height: calc(100vh - var(--s8)); overflow: auto; }
@media (max-width: 940px){ .buybar { position: static; max-height: none; overflow: visible; } }

.footer { border-top: var(--bw) solid var(--line); background: var(--bg2); padding: var(--s16) 0 var(--s8); margin-top: var(--s8); }
.footer-grid { display: flex; justify-content: space-between; gap: var(--s8); flex-wrap: wrap; }
.footer a { font-weight: 500; color: var(--muted); transition: color .2s ease; }
.footer a:hover { color: var(--ink); }
.footer .cols { display: flex; gap: var(--s16); flex-wrap: wrap; }
.footer h4 { margin-bottom: var(--s3); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.footer ul { list-style: none; display: grid; gap: var(--s2); }
.footer-legal { border-top: var(--bw) solid var(--line); margin-top: var(--s12); padding-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); align-items: center; }
.footer-legal .copy { color: var(--faint); font-size: .82rem; }
.footer-legal a { font-size: .82rem; }

.detail { display: grid; grid-template-columns: 1.5fr .9fr; gap: var(--s12); align-items: start; }
@media (max-width: 940px){ .detail { grid-template-columns: 1fr; } }
.checklist { list-style: none; display: grid; gap: var(--s3); }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); align-items: start; }
.checklist li::before { content:"✓"; font-weight: 700; font-size: .8rem; width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--accent-tint); color: var(--accent-text); border: var(--bw) solid var(--accent-line); }

.lead-price { font-family: var(--display); font-size: 3rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink-strong); }

/* =========================================================
   TOP TICKER — thin, quiet status strip
   ========================================================= */
.topticker { overflow: hidden; background: var(--bg2); border-bottom: var(--bw) solid var(--line); }
.topticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.topticker:hover .topticker-track { animation-play-state: paused; }
.tk-set { display: flex; align-items: center; gap: var(--s6); padding: .45rem var(--s6) .45rem 0; flex: 0 0 auto; }
.tk { font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tk-d { width: 4px; height: 4px; flex: 0 0 auto; background: var(--faint); border-radius: 50%; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   INCLUSIONS BAR
   ========================================================= */
.incbar { border-bottom: var(--bw) solid var(--line); background: var(--bg); overflow: hidden; }
.incbar-inner { max-width: var(--maxw); margin: 0 auto; padding: var(--s3) var(--s6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s6); }
.incbar .item { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.incbar .ic { display: inline-flex; }
.incbar .ic svg { width: 19px; height: 19px; color: var(--muted); }
.incbar .sep { width: var(--bw); height: 1.1em; align-self: center; background: var(--line); }
@media (max-width: 720px){ .incbar-inner { flex-direction: column; align-items: flex-start; gap: var(--s2); } .incbar .sep { display: none; } }

/* =========================================================
   TIMELINE (arc) — monochrome nodes + faint category dot
   ========================================================= */
.arc { display: grid; grid-template-columns: repeat(5,1fr); gap: var(--s4); margin-top: var(--s12); position: relative; }
.arc::before { content:""; position:absolute; top:22px; left:10%; right:10%; height: var(--bw); background: var(--line); z-index:0; }
.arc-step { text-align: center; position: relative; z-index: 1; }
.arc-step .n {
  width: 44px; height: 44px; margin: 0 auto var(--s3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 1.05rem;
  color: var(--ink); background: var(--surface);
  border: var(--bw) solid var(--step-c, var(--line-strong));
}
.arc-step .t { font-family: var(--display); font-weight: 650; font-size: .98rem; }
.arc-step .d { font-size: .82rem; color: var(--muted); margin-top: .15rem; line-height: 1.3; }
.arc-legend { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); justify-content: center; margin-top: var(--s8); }
.arc-legend .lg { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-weight: 500; font-size: .8rem; color: var(--muted); }
.arc-legend .sw { width: 9px; height: 9px; border-radius: 50%; flex: none; }
@media (max-width: 760px){ .arc { grid-template-columns: repeat(2,1fr); gap: var(--s6); } .arc::before { display: none; } }

/* =========================================================
   HOSTS — monochrome avatars
   ========================================================= */
.hosts { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s6); }
@media (max-width: 820px){ .hosts { grid-template-columns: 1fr; } }
.host-card { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6); }
.host-card .avatar {
  width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1.5rem; font-weight: 700;
  color: var(--ink-strong); background: var(--surface-2);
  border: var(--bw) solid var(--line);
}
.av-finance, .av-coding, .av-network { --av-c: var(--accent); }
.host-card h3 { font-size: 1.2rem; }
.host-card .role { font-weight: 550; align-self: flex-start; }

/* =========================================================
   WHATSAPP FAB
   ========================================================= */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 200; width: 52px; height: 52px; border-radius: 50%; color: #fff; border: none; display: flex; align-items: center; justify-content: center; background: #25d366; box-shadow: 0 10px 26px -10px rgba(37,211,102,.6); transition: transform .2s var(--ease); }
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab svg { width: 27px; height: 27px; }
@media (max-width: 720px){ .wa-fab { width: 48px; height: 48px; right: 14px; bottom: 14px; } .wa-fab svg { width: 25px; height: 25px; } }

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 420px; margin-left: auto;
  background: var(--surface); border: var(--bw) solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--s6); color: var(--ink);
  transform: translateY(140%); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.cookie.show { transform: none; opacity: 1; pointer-events: auto; }
.cookie h4 { font-family: var(--display); font-size: 1rem; margin-bottom: var(--s2); }
.cookie p { font-size: .86rem; color: var(--muted); margin-bottom: var(--s4); }
.cookie p a { color: var(--accent-text); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.cookie-actions .btn { padding: .5rem 1rem; font-size: .88rem; }
@media (max-width: 520px){ .cookie { left: 12px; right: 12px; bottom: 12px; } .cookie-actions .btn { flex: 1; justify-content: center; } }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal { max-width: 720px; }
.legal .pill { margin-bottom: var(--s4); }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: var(--s3); }
.legal .updated { color: var(--muted); font-family: var(--mono); font-size: .8rem; margin-bottom: var(--s12); }
.legal h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin: var(--s12) 0 var(--s3); }
.legal h3 { font-size: 1.05rem; margin: var(--s6) 0 var(--s2); }
.legal p, .legal li { color: var(--muted); font-size: .98rem; line-height: 1.7; }
.legal p { margin-bottom: var(--s4); }
.legal ul { list-style: none; display: grid; gap: var(--s2); margin: 0 0 var(--s4); }
.legal ul li { padding-left: 1.4rem; position: relative; }
.legal ul li::before { content:"—"; position: absolute; left: 0; color: var(--faint); }
.legal a { color: var(--accent-text); text-decoration: underline; }
.legal strong { color: var(--ink); }
.legal .table { width: 100%; border-collapse: collapse; margin-bottom: var(--s6); font-size: .9rem; }
.legal .table th, .legal .table td { text-align: left; padding: var(--s3) var(--s4); border-bottom: var(--bw) solid var(--line); vertical-align: top; }
.legal .table th { font-family: var(--mono); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.legal .table td { color: var(--muted); }
.legal .callout { background: var(--surface); border: var(--bw) solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--radius); padding: var(--s4) var(--s6); margin-bottom: var(--s6); }
.legal .callout p { margin: 0; }

/* =========================================================
   UTILITIES
   ========================================================= */
.mt2{margin-top:var(--s2)} .mt4{margin-top:var(--s4)} .mt6{margin-top:var(--s6)} .mt8{margin-top:var(--s8)}
.mb4{margin-bottom:var(--s4)} .mb6{margin-bottom:var(--s6)} .mb8{margin-bottom:var(--s8)}

/* =========================================================
   MOBILE — ritmo verticale più compatto (la nav resta sticky)
   ========================================================= */
@media (max-width: 720px){
  .section { padding-block: var(--s16); }
  .hero { padding: var(--s12) 0 var(--s12); }
  .shead { margin-bottom: var(--s8); }
  .footer { padding-top: var(--s12); }
}

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