/* ----------------------------------------------------------------------
   Foglio di stile del sito statico peakpacing.com (home, /come-funziona,
   /faq). Nessun passaggio di build, nessun JavaScript necessario per
   leggere il contenuto: e' HTML+CSS puro, servito cosi' com'e'.

   I token colore replicano quelli dell'app (app.peakpacing.com), cosi'
   passare dall'uno all'altro non sembra cambiare prodotto.
   ---------------------------------------------------------------------- */
:root {
  --bg: #0b0c10;
  --surface: #14161c;
  --surface2: #1b1e26;
  --text: #f3f3f1;
  --text-dim: #8a8d96;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #ff5a1f;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f3ef;
    --surface: #ffffff;
    --surface2: #f6f4f0;
    --text: #1a1a1a;
    --text-dim: #6b675f;
    --border: rgba(0, 0, 0, 0.08);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }

h1, h2, h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; }
h2 { font-size: 1.4rem; font-weight: 600; margin-top: 2.75rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.75rem; }
p  { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.lede { font-size: 1.15rem; color: var(--text-dim); margin-bottom: 2rem; }
.dim  { color: var(--text-dim); }

/* Barra superiore: logo + link alle altre pagine + link all'app. */
.topbar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
}
.topbar .mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.topbar .name { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; font-size: 0.9rem; }

.cta {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 700;
  margin: 0.5rem 0 1rem;
}
.cta:hover { text-decoration: none; opacity: 0.92; }

/* Variante piccola del CTA, per la topbar. */
.cta-small {
  display: inline-block; background: var(--accent); color: #fff !important;
  padding: 0.45rem 1rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
}
.cta-small:hover { text-decoration: none; opacity: 0.92; }

/* CTA secondario, outline, usato accanto al primario nell'hero. */
.cta-ghost {
  display: inline-block; background: transparent; color: var(--text);
  border: 1px solid var(--border); padding: 0.68rem 1.35rem; border-radius: 999px;
  font-weight: 600;
}
.cta-ghost:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.1rem 1.25rem; margin-bottom: 0.9rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Hero della home: mark grande, titolo, doppio CTA. */
.hero { padding-top: 1.5rem; padding-bottom: 1rem; }
.hero .mark {
  width: 46px; height: 46px; border-radius: 14px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem; }

/* Griglia delle feature nella home. */
.grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin: 0 0 1rem; }
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
.grid .card h3 { display: flex; align-items: baseline; gap: 0.5rem; }

footer {
  border-top: 1px solid var(--border); margin-top: 3.5rem; padding-top: 1.5rem;
  font-size: 0.88rem; color: var(--text-dim);
}
