/* pupino-site.css — landing page per Pupino.
   DARK EDITORIALE (rif. "Pupino Showcase V3"): near-black, accent arancione,
   Instrument Serif (titoli) + Inter (testo) + JetBrains Mono (kicker). */

:root {
  --bg: #0e0f12;
  --bg-2: #16181d;         /* card / sezioni alt */
  --bg-3: #1c1f25;         /* input / nested / grid */
  --border: #2a2e36;
  --border-2: #363b45;
  --text: #e6e8ec;
  --text-dim: #8b9098;
  --text-faint: #5c6168;
  --accent: #f2a35c;       /* arancione caldo (accento: hero corsivo, eyebrow, link) */
  --accent-deep: #e0854a;
  --warn: #d97757;
  /* CTA primario: nel dark l'arancione pieno è "caramella" → avorio caldo, più premium */
  --btn-bg: #ece3d3;
  --btn-bg-hover: #f7f0e4;
  --btn-fg: #1a1712;

  --line: var(--border);
  --line-2: var(--border-2);
  --maxw: 1180px;
  --sidebar: 210px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 10px;
  --r-btn: 9px;
  --shadow: 0 18px 44px rgba(0,0,0,0.45);
  --shadow-sm: 0 8px 22px rgba(0,0,0,0.30);

  --font-d: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-b: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-b); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 400; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--text); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }
section { padding: 92px 32px; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.center { text-align: center; }
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 11.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 18px; color: var(--text-dim); line-height: 1.55; }
.muted { color: var(--text-faint); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-b);
  font-weight: 600; font-size: 14.5px; border-radius: var(--r-btn); padding: 12px 22px;
  border: 1px solid transparent; cursor: pointer; letter-spacing: 0.01em;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn-primary:hover { transform: translateY(-2px); background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn-ghost { background: transparent; color: var(--text-dim); border-color: var(--border-2); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.28); }
.btn .sub { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; opacity: 0.7; }

/* ── nav: MENU DI LATO (dark) ── */
.nav { background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; height: 60px; padding: 0 24px;
  display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-d);
  font-weight: 400; font-size: 22px; letter-spacing: -0.01em; color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 14px; color: var(--text-dim); }
.nav-links a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.nav .btn { padding: 8px 16px; font-size: 13.5px; }

@media (min-width: 720px) {
  body { padding-left: var(--sidebar); }
  .nav {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar); height: auto;
    background: var(--bg-2); border-right: 1px solid var(--border); border-bottom: none;
    display: flex; flex-direction: column; z-index: 60;
  }
  .nav-inner { flex-direction: column; align-items: stretch; height: 100%; max-width: none; padding: 26px 18px; gap: 4px; }
  .brand { font-size: 24px; margin-bottom: 30px; }
  .nav-links { flex-direction: column; margin-left: 0; gap: 2px; }
  .nav-links a { padding: 10px 12px; font-size: 14.5px; border-radius: 8px; }
  .nav .btn { margin-top: auto; justify-content: center; }
}

/* Sotto i 720px la nav torna orizzontale, ma 7 voci + logo + bottone non ci stanno:
   si accavallavano e finivano sotto al tasto del tema. Due righe — logo e Scarica
   sopra, le voci sotto in una fila che scorre — invece di comprimere tutto. */
@media (max-width: 719px) {
  .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 16px 8px; gap: 10px 8px; padding-right: 62px; }
  .brand { order: 1; font-size: 20px; }
  .nav .btn { order: 2; margin-left: auto; }
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 2px; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; padding: 7px 10px; font-size: 13.5px; }
  .theme-tgl { top: 10px; right: 12px; width: 34px; height: 34px; }
}

/* ── hero ── */
.hero { padding: 74px 32px 78px; max-width: calc(var(--maxw) + 64px); }
/* I 32px laterali mancavano: accanto alla sidebar il titolo finiva appiccicato al
   menu (l'hero e' header.wrap, e solo le <section> avevano il padding). Il max-width
   maggiorato compensa il padding, cosi' il contenuto resta allineato alle sezioni. */
.hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: 52px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6vw, 68px); line-height: 1.0; letter-spacing: -0.025em; }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero .tagline { font-family: var(--font-d); font-weight: 400; font-size: clamp(20px,2.3vw,26px);
  color: var(--text-dim); margin-top: 14px; letter-spacing: -0.01em; }
.hero .sub { margin-top: 18px; font-size: 16px; color: var(--text-dim); max-width: 48ch; line-height: 1.6; }
.hero .cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; align-items: center; }
.hero .meta { margin-top: 18px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--text-faint); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

/* ── desktop stage (Mac scuro) ── */
.stage { position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); aspect-ratio: 4/3.2;
  background: linear-gradient(165deg, #1b2030, #141824 46%, #0f1118); }
.stage .menubar { position: absolute; inset: 0 0 auto 0; height: 26px;
  background: rgba(255,255,255,0.06); backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 14px; padding: 0 12px; font-size: 12px;
  font-family: var(--font-b); color: var(--text-dim); border-bottom: 1px solid rgba(255,255,255,0.06); }
.stage .menubar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; opacity: .85; }
.stage .menubar .pup { width: 15px; height: 15px; }
.stage .win { position: absolute; border-radius: 12px; background: rgba(255,255,255,0.055);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.09); }
.stage .win .bar { height: 22px; border-radius: 12px 12px 0 0; display: flex; align-items: center; gap: 5px; padding: 0 9px;
  background: rgba(255,255,255,0.04); }
.stage .win .bar i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.stage .win .bar i.r { background: #ff6159; } .stage .win .bar i.y { background: #ffbd2e; } .stage .win .bar i.g { background: #28c840; }
.stage .win .lines { padding: 12px; display: grid; gap: 7px; }
.stage .win .lines span { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.10); }
.stage .win1 { left: 7%; top: 17%; width: 46%; height: 42%; }
.stage .win2 { right: 7%; top: 33%; width: 40%; height: 40%; }
.stage #heroPet { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; }
.stage .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: rgba(0,0,0,0.25); }

/* bolla del pet (playground.js) */
.kaomoji { position: absolute; transform: translate(-50%, -100%); background: var(--bg-3); color: var(--text);
  font-family: var(--font-mono); font-weight: 500; font-size: 13px; padding: 6px 11px; border-radius: 10px;
  border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); white-space: nowrap; pointer-events: none; transition: opacity .3s; }
.kaomoji::after { content: ''; position: absolute; left: 18px; bottom: -5px; width: 9px; height: 9px;
  background: var(--bg-3); border-right: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2);
  transform: rotate(45deg); }

/* ── generic section heading ── */
.sec-head { max-width: 660px; margin: 0 auto 46px; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 4vw, 42px); }
.sec-head p { margin-top: 14px; font-size: 16px; color: var(--text-dim); line-height: 1.55; }

.alt { background: var(--bg-2); }

/* ── about ── */
.about p { font-size: clamp(22px, 3vw, 31px); font-family: var(--font-d); font-weight: 400;
  line-height: 1.25; color: var(--text); max-width: 24ch; letter-spacing: -0.015em; }
.about p b { color: var(--accent); font-style: italic; }
.about .big { max-width: none; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about .lead b { color: var(--text); }

/* ── feature cards ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 22px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.card h3 { font-size: 22px; }
.card p { margin-top: 8px; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.card p i, .card p em { color: var(--text); font-style: italic; }
.card p b, .card p strong { color: var(--text); font-weight: 600; }
.pet-box { background:
    radial-gradient(ellipse at 50% 72%, rgba(255,255,255,0.05) 0%, transparent 62%),
    repeating-linear-gradient(0deg, var(--bg-3) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, var(--bg-3) 0 1px, transparent 1px 12px),
    var(--bg-2);
  border-bottom: 1px dashed rgba(255,255,255,0.08); }
.feature .pet-box { height: 120px; border-radius: var(--r-sm) var(--r-sm) 0 0; margin-bottom: 16px;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.feature .pet-box canvas { height: 120px; width: 160px; }
.feature h3 { font-size: 21px; }
.feature p { margin-top: 7px; color: var(--text-dim); font-size: 14.5px; }

/* ── eras ── */
.eras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 52px; }
.era { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 14px; text-align: center; }
.era .pet-box { height: 92px; border-radius: var(--r-sm); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.era .pet-box canvas { width: 110px; height: 92px; }
.era .tag { font-family: var(--font-d); font-weight: 400; font-size: 18px; color: var(--text); margin-top: 10px; }
.era .desc { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }

/* ── realms ── */
.realms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.realm { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 13px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.realm:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.realm .pet-box { height: 150px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  overflow: hidden; }
.realm .pet-box canvas { width: 150px; height: 150px; }
.realm .realm-img { max-height: 130px; max-width: 84%; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); transition: transform .2s ease; }
.realm:hover .realm-img { transform: scale(1.06) translateY(-2px); }
.realm .nm { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; }
.realm .nm b { font-family: var(--font-d); font-weight: 400; color: var(--text); font-size: 18px; letter-spacing: -0.01em; }
.realm .nm .rare { font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: .1em;
  color: var(--accent); background: rgba(242,163,92,0.12); padding: 3px 7px; border-radius: 5px; text-transform: uppercase; }
.realm .swatches { display: flex; gap: 5px; margin-top: 10px; }
.realm .swatches span { width: 15px; height: 15px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.10); }
.realm .tone { font-size: 12px; color: var(--text-dim); margin-top: 9px; min-height: 2.4em; line-height: 1.45; }

/* ── interact (Ci parli) ── */
.interact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.chat { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.chat .head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.chat .head canvas { width: 40px; height: 40px; }
.chat .head .who b { font-family: var(--font-d); font-weight: 400; color: var(--text); display: block; font-size: 18px; }
.chat .head .who span { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.04em; }
.chat .body { padding: 16px; display: flex; flex-direction: column; gap: 12px;
  max-height: 300px; overflow-y: auto; }
.chat .bubble { word-break: break-word; overflow-wrap: anywhere; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.bubble.them { background: var(--bg-3); color: var(--text); border-bottom-left-radius: 5px; align-self: flex-start; }
.bubble.me { background: var(--accent); color: #1a1206; border-bottom-right-radius: 5px; align-self: flex-end; }
.chat .input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.chat .input .fake { flex: 1; height: 38px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 14px; color: var(--text-faint); font-size: 14px; }
.chat .input .real { flex: 1; height: 38px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--border);
  padding: 0 14px; color: var(--text); font-size: 14px; font-family: var(--font-b); outline: none; }
.chat .input .real::placeholder { color: var(--text-faint); }
.chat .input .real:focus { border-color: var(--accent); }
.side-col { display: flex; flex-direction: column; gap: 24px; }
.gear-card, .wrapped-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; }
.gear-card h3, .wrapped-card h3 { font-size: 20px; }
.gear-card p, .wrapped-card p { color: var(--text-dim); font-size: 14px; margin-top: 6px; line-height: 1.5; }
.gear-row { display: flex; gap: 10px; margin-top: 14px; }
.gear-row .g { flex: 1; background: var(--bg-3); border-radius: var(--r-sm); height: 96px;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border: 1px solid var(--border); }
.gear-row .g canvas { width: 96px; height: 96px; }
.wrapped-card { background: linear-gradient(150deg, #2a1b3e, #3a2352); border: 1px solid #46335f; }
.wrapped-card h3 { color: #fff; }
.wrapped-card p { color: rgba(255,255,255,0.72); }
.wrapped-card .stats { display: flex; gap: 22px; margin-top: 16px; }
.wrapped-card .stats b { font-family: var(--font-d); font-weight: 400; font-size: 30px; color: var(--accent); display: block; }
.wrapped-card .stats span { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.03em; }

/* ── scene gallery ── */
.scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.scene { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border);
  min-height: 250px; transition: transform .18s ease, border-color .18s ease;
  background: linear-gradient(165deg, #1b2030, #141824 60%, #0f1118); }
.scene:hover { transform: translateY(-3px); border-color: var(--border-2); }
.scene.wide { grid-column: span 2; min-height: 330px; }
.scene.night { background: linear-gradient(165deg, #241d3e, #171232 60%, #0d0a1c); }
.scene.cool  { background: linear-gradient(165deg, #16303c, #10222e 58%, #0c1720); }
.scene.dusk  { background: linear-gradient(165deg, #34222c, #241722 55%, #170f16); }
.scene .swin { position: absolute; border-radius: 11px; background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 22px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
.scene .swin .bar { height: 19px; background: rgba(255,255,255,0.05); display: flex; gap: 5px; align-items: center; padding: 0 8px; }
.scene .swin .bar i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.scene .swin .bar i.r { background: #ff6159; } .scene .swin .bar i.y { background: #ffbd2e; } .scene .swin .bar i.g { background: #28c840; }
.scene .swin .ll { padding: 10px; display: grid; gap: 6px; }
.scene .swin .ll span { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.scene .swin.code { background: #0c1526; border-color: rgba(0,230,255,0.22); }
.scene .swin.code .bar { background: rgba(255,255,255,0.05); }
.scene .swin.code .ll span { background: rgba(0,230,255,0.22); }
.scene canvas.actor { position: absolute; }
.scene .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: rgba(0,0,0,0.3); }
.scene-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 13px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65)); color: #fff;
  font-family: var(--font-d); font-weight: 400; font-size: 18px; pointer-events: none; }
.scene-cap small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; color: rgba(255,255,255,0.7); margin-top: 3px; }

/* ── play / game mode ── */
.play { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); height: 340px; outline: none; cursor: pointer;
  background: linear-gradient(170deg, #1b2030, #141824 50%, #0f1118); }
.play:focus-visible { box-shadow: var(--shadow), 0 0 0 3px rgba(242,163,92,0.5); }
.play .swin { position: absolute; border-radius: 11px; background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 22px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
.play .swin .bar { height: 18px; background: rgba(255,255,255,0.05); display: flex; gap: 5px; align-items: center; padding: 0 8px; }
.play .swin .bar i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.play .swin .bar i.r { background: #ff6159; } .play .swin .bar i.y { background: #ffbd2e; } .play .swin .bar i.g { background: #28c840; }
.play .platform { position: absolute; height: 12px; border-radius: 8px; background: rgba(255,255,255,0.12); }
.play .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: rgba(0,0,0,0.3); }
.play #gamePet { position: absolute; left: 0; bottom: 0; width: 100%; height: 300px; pointer-events: none; }
.play .play-hint { position: absolute; left: 16px; top: 14px; font-family: var(--font-mono); font-weight: 400;
  font-size: 12px; color: var(--text-dim); background: rgba(0,0,0,0.35); padding: 6px 12px; border-radius: 8px; }
.play .play-controls { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.play .play-controls button { font-family: var(--font-b); font-weight: 600; font-size: 16px; min-width: 46px; height: 44px;
  border-radius: 10px; border: 1px solid var(--border-2); background: rgba(255,255,255,0.08); color: var(--text);
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.play .play-controls button:active { transform: translateY(1px); background: var(--accent); color: #1a1206; }
.play .play-controls button.jump { min-width: 84px; }
.play .kaomoji { z-index: 3; }

/* ── download ── */
.download-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 42px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.download-box h2 { font-size: clamp(28px, 4vw, 40px); }
.download-box .price { font-family: var(--font-mono); color: var(--accent); font-size: 13px; margin-top: 10px; letter-spacing: 0.03em; }
.download-box .cta-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.reqs { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); margin-top: 18px; letter-spacing: 0.02em; }
.install { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; }
.install h4 { font-size: 18px; font-family: var(--font-d); font-weight: 400; margin-bottom: 10px; }
.install ol { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 14px; }
.install ol li { margin: 6px 0; }
.install .note { margin-top: 12px; font-size: 12.5px; color: var(--text-faint); }
.install kbd { font-family: var(--font-mono); font-weight: 500; background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; font-size: 12px; color: var(--text); }

/* ── faq ── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.faq-item summary { list-style: none; cursor: pointer; padding: 17px 22px; font-family: var(--font-d);
  font-weight: 400; color: var(--text); font-size: 19px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { color: var(--accent); font-size: 22px; transition: transform .2s; line-height: 1; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .ans { padding: 0 22px 20px; color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }

/* ── footer ── */
.footer { background: var(--bg-2); color: var(--text-dim); padding: 60px 32px 38px; border-top: 1px solid var(--border); }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.footer .brand { color: var(--text); }
.footer p { color: var(--text-dim); font-size: 14px; margin-top: 12px; max-width: 32ch; line-height: 1.55; }
.footer h5 { font-family: var(--font-mono); font-weight: 500; color: var(--text-faint); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer ul a { color: var(--text-dim); font-size: 14px; }
.footer ul a:hover { color: var(--accent); }
.news { display: flex; gap: 8px; margin-top: 12px; }
.news input { flex: 1; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; color: var(--text); font-family: var(--font-b); font-size: 14px; }
.news input::placeholder { color: var(--text-faint); }
.news button { border: none; border-radius: 8px; background: var(--accent); color: #1a1206; font-family: var(--font-b); font-weight: 600; padding: 0 18px; cursor: pointer; }
.footer-base { max-width: var(--maxw); margin: 36px auto 0; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); flex-wrap: wrap; letter-spacing: 0.03em; }

/* ── float anim ── */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.floaty { animation: floaty 4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .floaty { animation: none; } }

/* ── responsive ── */
@media (max-width: 920px) {
  .hero-grid, .about-grid, .interact-grid, .download-box { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .realms { grid-template-columns: repeat(3, 1fr); }
  .eras { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .scenes { grid-template-columns: 1fr; }
  .scene.wide { grid-column: span 1; }
  .download-box { padding: 28px; }
}
@media (max-width: 560px) {
  section { padding: 60px 18px; }
  .cards, .realms, .eras { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── theme toggle (sole/luna) ── */
.theme-tgl { position: fixed; top: 16px; right: 18px; z-index: 70; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text);
  font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s, background .15s; }
.theme-tgl:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════════
   TEMA CHIARO (opt-in via <html data-theme="light">, toggle nel sito).
   Il dark resta il default (:root sopra).
   ══════════════════════════════════════════════════════════════ */
:root[data-theme="light"] {
  --bg: #FBF7F0;
  --bg-2: #FFFFFF;
  --bg-3: #F5EFE4;
  --border: rgba(90,46,31,0.13);
  --border-2: rgba(90,46,31,0.22);
  --text: #2E2016;
  --text-dim: #6E5B4C;
  --text-faint: #9A8472;
  --accent: #E5751A;
  --accent-deep: #CF6410;
  --btn-bg: #EC8A2B;
  --btn-bg-hover: #F2A04A;
  --btn-fg: #241009;
  --shadow: 0 14px 40px rgba(90,46,31,0.10);
  --shadow-sm: 0 6px 18px rgba(90,46,31,0.08);
}
/* superfici hard-coded → varianti chiare */
:root[data-theme="light"] .alt { background: #F6EFE3; }
:root[data-theme="light"] .pet-box { border-bottom-color: rgba(90,46,31,0.10); }
:root[data-theme="light"] .realm .swatches span { border-color: rgba(0,0,0,0.08); }
:root[data-theme="light"] .stage { background: linear-gradient(165deg,#ffe3bd,#ffcf9e 45%,#f6b98a); }
:root[data-theme="light"] .stage .menubar { background: rgba(255,255,255,0.42); color:#5a3c22; border-bottom-color: rgba(255,255,255,0.4); }
:root[data-theme="light"] .stage .win { background: rgba(255,255,255,0.80); border-color: rgba(255,255,255,0.7); }
:root[data-theme="light"] .stage .win .bar { background: rgba(255,255,255,0.5); }
:root[data-theme="light"] .stage .win .lines span { background: rgba(90,46,31,0.10); }
:root[data-theme="light"] .stage .ground { background: rgba(120,70,20,0.10); }
:root[data-theme="light"] .kaomoji { background:#fff; color:#5A2E1F; border-color: rgba(180,120,60,.22); }
:root[data-theme="light"] .kaomoji::after { background:#fff; border-color: rgba(180,120,60,.22); }
:root[data-theme="light"] .scene { background: linear-gradient(165deg,#ffe6c2,#ffcf9e 48%,#f4b88a); }
:root[data-theme="light"] .scene.night { background: linear-gradient(165deg,#46396e,#2a2046 60%,#170f29); }
:root[data-theme="light"] .scene.cool  { background: linear-gradient(165deg,#d3ecf6,#aed6ec 58%,#8ec3e3); }
:root[data-theme="light"] .scene.dusk  { background: linear-gradient(165deg,#ffd5b0,#f4a98f 55%,#c87a86); }
:root[data-theme="light"] .scene .swin { background: rgba(255,255,255,0.82); border-color: rgba(255,255,255,0.7); }
:root[data-theme="light"] .scene .swin .ll span { background: rgba(90,46,31,0.12); }
:root[data-theme="light"] .play { background: linear-gradient(170deg,#ffe6c2,#ffd1a0 50%,#f3b487); }
:root[data-theme="light"] .play .swin { background: rgba(255,255,255,0.82); border-color: rgba(255,255,255,0.7); }
:root[data-theme="light"] .play .platform { background: rgba(90,46,31,0.16); }
:root[data-theme="light"] .play .floor { background: rgba(90,46,31,0.14); }

/* ── diario (card grande: pagina "giorno 1" → "giorno 40") ── */
.diary { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; max-width: 1000px; margin: 0 auto; }
.diary-page { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 26px 30px 28px 42px; position: relative; overflow: hidden; }
.diary-page::before { content: ''; position: absolute; left: 24px; top: 20px; bottom: 20px; width: 1.5px;
  background: var(--accent); opacity: .38; border-radius: 2px; }
.diary-page header { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-faint); margin-bottom: 16px; }
.diary-page header span { color: var(--accent); }
.diary-page .dsec { margin-bottom: 15px; }
.diary-page .dsec:last-child { margin-bottom: 0; }
.diary-page h4 { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); font-weight: 500; margin: 0 0 5px; }
.diary-page h4::before { content: '# '; opacity: .55; }
.diary-page .dsec p { font-family: var(--font-d); font-style: italic; font-size: 16px; line-height: 1.45; color: var(--text); margin: 0; }
.diary-page .dsec p.ph { color: var(--text-faint); }
.diary-page .dsec ul { margin: 0; padding-left: 17px; }
.diary-page .dsec li { font-family: var(--font-d); font-style: italic; font-size: 16px; line-height: 1.4; color: var(--text); margin-bottom: 3px; }
.diary-page.later { border-color: rgba(242,163,92,.45); }
.diary code, .diary-cap code, #diario .sec-head code { font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  background: rgba(242,163,92,.10); padding: 1px 5px; border-radius: 4px; }

/* ── esplora il cervello (galassia semantica) ── */
.galaxy-wrap { position: relative; max-width: 1000px; margin: 0 auto; border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9;
  background: radial-gradient(120% 100% at 50% 15%, #1b1b2a 0%, #101019 65%, #0c0c12 100%); }
.galaxy-wrap canvas { display: block; width: 100%; height: 100%; }
.galaxy-info { position: absolute; top: 12px; left: 14px; font-family: var(--font-mono); font-size: 11px;
  color: rgba(232,228,216,.6); background: rgba(14,14,22,.72); padding: 5px 9px; border-radius: 6px; pointer-events: none; }
.galaxy-legend { position: absolute; bottom: 12px; left: 14px; display: flex; flex-wrap: wrap; gap: 7px 12px;
  font-family: var(--font-mono); font-size: 10px; color: rgba(232,228,216,.72); background: rgba(14,14,22,.6);
  padding: 7px 10px; border-radius: 6px; max-width: 66%; pointer-events: none; }
.galaxy-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.galaxy-legend .dot { width: 8px; height: 8px; border-radius: 50%; }
.galaxy-hint { position: absolute; bottom: 13px; right: 14px; font-family: var(--font-mono); font-size: 10px;
  color: rgba(232,228,216,.42); pointer-events: none; }
.galaxy-cap { text-align: center; max-width: 680px; margin: 26px auto 0; color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.galaxy-cap b { color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .galaxy-wrap { aspect-ratio: 4 / 5; } .galaxy-hint { display: none; } .galaxy-legend { font-size: 9px; max-width: 90%; } }

/* ── teaser regni (anteprima + tile "+N") — flex centrato, count qualsiasi ── */
#realms { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 920px; margin: 0 auto; }
#realms .realm { width: 205px; flex: 0 0 auto; }
.realm.realm-more { display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px; background: var(--bg-3); border-style: dashed; }
.realm-more .more-n { font-family: var(--font-d); font-size: 42px; line-height: 1; color: var(--accent); }
.realm-more .more-t { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--text-dim); line-height: 1.5; }
@media (max-width: 620px) { #realms .realm { width: calc(50% - 7px); } }
.realm.realm-more { cursor: pointer; transition: border-color .18s, transform .18s, background .18s; }
.realm.realm-more:hover { border-color: var(--accent); transform: translateY(-3px); }

/* ── galleria completa dei regni (modale) ── */
.realms-modal { position: fixed; inset: 0; z-index: 200; display: none; background: rgba(6,7,12,.74);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); padding: 44px 20px; overflow-y: auto; }
.realms-modal.open { display: block; }
.rm-panel { max-width: 1060px; margin: 0 auto; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 34px 30px; position: relative; }
.rm-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: border-color .15s; }
.rm-close:hover { border-color: var(--accent); }
.rm-head { text-align: center; margin-bottom: 26px; }
.rm-head h3 { font-family: var(--font-d); font-weight: 400; font-size: 32px; margin-top: 4px; }
.rm-head p { color: var(--text-dim); font-size: 15px; margin: 8px auto 0; max-width: 560px; }
#realmsFull { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { #realmsFull { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { #realmsFull { grid-template-columns: repeat(2, 1fr); } .rm-panel { padding: 24px 16px; } }

/* ═══ pagina Carote (acquisto "token" del cervello) ═══ */
@media (min-width: 720px) { body.plain { padding-left: 0; } }   /* niente sidebar su questa pagina */
.ctop { display: flex; align-items: center; gap: 14px; max-width: 1040px; margin: 0 auto; padding: 22px 24px; }
.ctop .back { margin-left: auto; font-family: var(--font-b); font-size: 14px; color: var(--text-dim); }
.ctop .back:hover { color: var(--accent); }
.carote-hero { text-align: center; max-width: 720px; margin: 20px auto 0; padding: 0 20px; }
.carote-hero .big-carrot { font-size: 50px; line-height: 1; }
.carote-hero h1 { font-family: var(--font-d); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1.04;
  letter-spacing: -0.02em; margin-top: 8px; }
.carote-hero h1 em { color: var(--accent); font-style: italic; }
.carote-hero p { color: var(--text-dim); font-size: 17px; margin-top: 16px; line-height: 1.6; }
.carote-hero p b { color: var(--text); }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 860px; margin: 46px auto 0; padding: 0 20px; }
.price-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 30px 24px 26px;
  text-align: center; position: relative; display: flex; flex-direction: column; transition: transform .18s, border-color .18s; }
.price-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.price-card.pop { border-color: var(--accent); }
.price-card .pbadge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent);
  color: #1a1206; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .08em; padding: 3px 11px; border-radius: 20px; }
.price-card .pdur { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); }
.price-card .pname { font-family: var(--font-d); font-weight: 400; font-size: 24px; color: var(--text); letter-spacing: -0.01em; }
.price-card .pcarote { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-top: 2px; }
.price-card .pprice { font-family: var(--font-d); font-size: 46px; line-height: 1; color: var(--accent); margin: 12px 0 2px; }
.price-card .pnote { font-size: 13px; color: var(--text-dim); line-height: 1.5; min-height: 3em; margin-top: 10px; }
.price-card .btn { margin-top: 20px; justify-content: center; width: 100%; }
.pricing-foot { text-align: center; color: var(--text-faint); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; margin: 22px auto 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.step { text-align: center; }
.step .sn { font-family: var(--font-d); font-size: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h4 { font-family: var(--font-d); font-weight: 400; font-size: 20px; }
.step p { color: var(--text-dim); font-size: 14px; margin-top: 6px; line-height: 1.5; }
.carote-note { max-width: 720px; margin: 0 auto; padding: 12px 16px; border: 1px dashed var(--accent); border-radius: var(--r-sm);
  color: var(--text-dim); font-family: var(--font-mono); font-size: 12px; text-align: center; }
@media (max-width: 760px) { .pricing, .steps { grid-template-columns: 1fr; max-width: 380px; } }

/* ── ritmo di crescita (chip nella sezione Cresce) ── */
.grow-speed { text-align: center; max-width: 640px; margin: 0 auto 16px; color: var(--text-dim); font-size: 17px; line-height: 1.5; }
.grow-speed b { color: var(--text); }
.speed-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 54px; max-width: 660px; }
.speed-chips .chip { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 13px; background: var(--bg-2); }
.speed-chips .chip.on { border-color: var(--accent); color: var(--accent); }

/* ── skin (travestimenti) ── */
.skins-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 900px; margin: 0 auto; }
.skins-row .skin-card { width: 200px; flex: 0 0 auto; }
.skin-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px 20px;
  text-align: center; transition: transform .18s, border-color .18s; }
.skin-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.skin-box { height: 180px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 14px; }
.skin-box img { max-height: 176px; max-width: 88%; width: auto; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.skin-card b { font-family: var(--font-d); font-weight: 400; font-size: 21px; color: var(--text); display: block; letter-spacing: -0.01em; }
.skin-card span { font-size: 13px; color: var(--text-dim); }
.skin-card.skin-more { cursor: pointer; border-style: dashed; background: var(--bg-3); }
.skin-card.skin-more:hover { border-color: var(--accent); }
.skin-more .skin-box { align-items: center; }
.skin-more .more-n { font-family: var(--font-d); font-size: 48px; line-height: 1; color: var(--accent); }
.skins-note { text-align: center; max-width: 640px; margin: 30px auto 0; color: var(--text-dim); font-size: 16px; line-height: 1.6; }
.skins-note b { color: var(--text); }
.skins-full { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.skins-full .skin-box { height: 150px; }
.skins-full .skin-box img { max-height: 146px; }
.skins-full .skin-card.skin-sm .skin-box img { max-height: 90px; image-rendering: pixelated; }  /* Spider-Man: personaggio piccolo + pixel crisp */
@media (max-width: 900px) { .skins-full { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .skins-row .skin-card { width: calc(50% - 9px); } .skins-full { grid-template-columns: repeat(2, 1fr); } }
.diary-arrow { align-self: center; font-family: var(--font-b); font-size: 24px; color: var(--text-faint); }
.diary-cap { text-align: center; max-width: 680px; margin: 28px auto 0; color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.diary-cap b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) {
  .diary { grid-template-columns: 1fr; }
  .diary-arrow { transform: rotate(90deg); }
}

/* ═══ pagina Grazie — claim-page del codice (post-pagamento Stripe) ═══ */
.claim { max-width: 700px; margin: 0 auto; padding: 0 20px 70px; }
.claim-hero { text-align: center; margin-top: 24px; }
.claim-hero .big-carrot { font-size: 50px; line-height: 1; }
.claim-hero h1 { font-family: var(--font-d); font-weight: 400; font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.06; letter-spacing: -0.02em; margin-top: 12px; }
.claim-hero h1 em { color: var(--accent); font-style: italic; }
.claim-hero p { color: var(--text-dim); font-size: 16.5px; margin-top: 14px; line-height: 1.6; }
.claim-hero p b { color: var(--text); }

/* riquadro del codice + i suoi stati (attesa / codice / errore) */
.code-box { margin: 34px auto 0; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 28px 24px; text-align: center; }
.code-box.ok { border-color: var(--accent); }
.code-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); }
.code-val { font-family: var(--font-mono); font-weight: 500; font-size: clamp(17px, 3.4vw, 25px);
  letter-spacing: .05em; color: var(--accent); margin-top: 12px; word-break: break-all;
  -webkit-user-select: all; user-select: all; }
.code-pack { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.code-box .btn { margin-top: 20px; }
.code-msg { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; margin-top: 12px; }
.code-msg b { color: var(--text); }
.code-wait { display: flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); letter-spacing: .02em; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--border-2);
  border-top-color: var(--accent); animation: spin .8s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.claim-warn { margin-top: 26px; padding: 14px 18px; border: 1px dashed var(--border-2); border-radius: var(--r-sm);
  color: var(--text-faint); font-size: 13px; line-height: 1.6; }
.claim-warn b { color: var(--text-dim); }
.claim-next { margin-top: 40px; }
.claim-next h2 { font-family: var(--font-d); font-weight: 400; font-size: 26px; text-align: center; }
.claim-next ol { margin: 20px 0 0; padding-left: 20px; color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.claim-next ol li { margin: 10px 0; }
.claim-next ol li b { color: var(--text); }
.claim-next kbd { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; color: var(--text); }

/* ═══ slot per GIF/screenshot reali (si riempiono da soli quando il file esiste) ═══ */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shots.two { grid-template-columns: repeat(2, 1fr); }
.shot { margin: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; transition: transform .18s, border-color .18s; }
.shot:hover { transform: translateY(-3px); border-color: var(--border-2); }
.shot img, .shot video { display: block; width: 100%; height: auto; background: var(--bg-3); }
.shot .shot-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 16 / 10; background: var(--bg-3); border-bottom: 1px dashed var(--border-2); text-align: center; padding: 18px; }
.shot .shot-ph .ico { font-size: 30px; opacity: .8; }
.shot .shot-ph .fn { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: .03em;
  word-break: break-all; }
.shot .shot-ph .todo { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); }
.shot figcaption { padding: 14px 16px 16px; }
.shot figcaption b { font-family: var(--font-d); font-weight: 400; font-size: 19px; color: var(--text);
  display: block; letter-spacing: -0.01em; }
.shot figcaption span { display: block; font-size: 13.5px; color: var(--text-dim); margin-top: 4px; line-height: 1.5; }
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .shots, .shots.two { grid-template-columns: 1fr; } }

/* etichetta "beta" — coerente con l'app; per toglierla basta rimuovere gli <span class="beta-tag"> */
.beta-tag { font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 20px;
  padding: 2px 7px; vertical-align: middle; margin-left: 8px; line-height: 1.4; }
.beta-note { max-width: 700px; margin: 26px auto 0; text-align: center; color: var(--text-faint);
  font-size: 13.5px; line-height: 1.6; }
.beta-note b { color: var(--text-dim); }

/* ═══ guida installazione passo-passo (installazione.html) ═══ */
.howto { max-width: 820px; margin: 0 auto; padding: 8px 22px 80px; }
.howto .legal-head { text-align: center; margin-bottom: 30px; }
.howto h1 { font-family: var(--font-d); font-weight: 400; font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.06; letter-spacing: -0.02em; margin-top: 10px; }
.howto .lede { font-size: 17px; color: var(--text-dim); line-height: 1.65; text-align: center;
  max-width: 62ch; margin: 16px auto 0; }
.howto .lede b { color: var(--text); }
.howto h2 { font-family: var(--font-d); font-weight: 400; font-size: 28px; letter-spacing: -0.01em;
  margin: 50px 0 6px; }
.howto .h2sub { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin-top: 6px; }
.howto p { color: var(--text-dim); font-size: 15px; line-height: 1.68; }
.howto b, .howto strong { color: var(--text); font-weight: 600; }
.howto a { color: var(--accent); }
.howto kbd { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 5px; padding: 2px 7px; color: var(--text); white-space: nowrap; }
.which { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 22px 24px; margin: 26px 0 10px; }
.which h3 { font-family: var(--font-d); font-weight: 400; font-size: 21px; }
.which p { margin-top: 8px; }
.hstep { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; margin: 26px 0; }
.hstep .num { font-family: var(--font-d); font-size: 18px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center;
  justify-content: center; flex: 0 0 auto; }
.hstep h3 { font-family: var(--font-b); font-weight: 600; font-size: 17px; color: var(--text); margin-top: 8px; }
.hstep p { margin-top: 6px; }
.hstep .shot { margin-top: 14px; max-width: 560px; }
.hstep .shot .shot-ph { aspect-ratio: 16 / 9; }
.warnbox { border: 1px solid var(--accent); border-radius: var(--r-md); background: var(--bg-2);
  padding: 16px 20px; margin: 20px 0; }
.warnbox p { margin: 0; }
.warnbox p + p { margin-top: 8px; }
.howto .faq-list { margin-top: 26px; }

/* ═══ pagine legali (privacy, condizioni di vendita) ═══ */
.legal { max-width: 760px; margin: 0 auto; padding: 8px 22px 80px; }
.legal .legal-head { text-align: center; margin-bottom: 34px; }
.legal h1 { font-family: var(--font-d); font-weight: 400; font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.06; letter-spacing: -0.02em; margin-top: 10px; }
.legal .updated { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--text-faint); margin-top: 14px; }
.legal h2 { font-family: var(--font-d); font-weight: 400; font-size: 26px; letter-spacing: -0.01em;
  margin: 42px 0 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-family: var(--font-b); font-weight: 600; font-size: 16px; color: var(--text); margin: 22px 0 6px; }
.legal p, .legal li { color: var(--text-dim); font-size: 15px; line-height: 1.68; }
.legal p { margin: 10px 0; }
.legal ul, .legal ol { margin: 10px 0; padding-left: 22px; }
.legal li { margin: 7px 0; }
.legal b, .legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); }
.legal .lede { font-size: 17px; color: var(--text-dim); line-height: 1.65; }
.legal .draft { margin: 0 0 30px; padding: 14px 18px; border: 1px dashed var(--accent); border-radius: var(--r-sm);
  color: var(--text-dim); font-family: var(--font-mono); font-size: 12px; line-height: 1.6; }
.legal .box { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 18px 22px; margin: 16px 0; }
.legal .box p:first-child { margin-top: 0; }
.legal .box p:last-child { margin-bottom: 0; }
.legal .fill { color: var(--accent); font-family: var(--font-mono); font-size: 13px; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 7px; margin: 26px 0 10px; }
.legal .toc a { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px; background: var(--bg-2); }
.legal .toc a:hover { border-color: var(--accent); color: var(--accent); }
.brand .beta-tag { margin-left: 0; }
