/* Runager — sito vetrina.
 * Design token replicati da frontend/src/styles.css (@theme Tailwind v4):
 *   accento lime #d5ff5f come FILL (mai testo su chiaro), superfici charcoal,
 *   tipografia Poppins, card molto arrotondate. Tema scuro end-to-end come l'app.
 */

:root {
  --brand-400: #d5ff5f;
  --brand-500: #b9e838;
  --ink-900: #101010;
  --ink-800: #1d1d1d;
  --ink-700: #2a2a2a;
  --ink-600: #3d3d3d;
  --ink-400: #6b6b6b;
  --text: #f3f3f3;
  --text-muted: #a9a9a9;
  --radius: 20px;
  --maxw: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink-900);
  color: var(--text);
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; color: #fff; }

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--brand-400);
  color: var(--ink-900);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 100;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-primary { background: var(--brand-400); color: var(--ink-900); }
.btn-primary:hover { background: var(--brand-500); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--ink-400); }
.btn-ghost:hover { background: var(--ink-800); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(16px, 4vw, 40px);
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
}
.brand { display: inline-flex; }
.brand img { height: 40px; width: auto; }
.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}
.site-nav a { color: var(--text-muted); font-size: .95rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 9vw, 110px) clamp(16px, 4vw, 40px);
  background: radial-gradient(circle at 15% 10%, #1a1f0d 0%, var(--ink-900) 55%);
}
/* La rana di Runager in corsa: filigrana grande e sfumata, appena percettibile */
.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -70px;
  width: 460px;
  height: 460px;
  background: url('assets/mark-outline.svg') center / contain no-repeat;
  opacity: .08;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}
@media (min-width: 940px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; }
}

/* Mock "settimana" nella hero, riempie lo spazio orizzontale su desktop */
.hero-visual { display: flex; }
.hv-card {
  width: 100%;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.hv-title {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--brand-400);
  font-weight: 600;
  margin: 0 0 14px;
}
.hv-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hv-days li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
}
.hv-days li span { color: var(--text-muted); font-size: .85rem; }
.hv-days li b { color: var(--text); font-weight: 500; font-size: .92rem; text-align: right; }
.hv-days li.hv-key { border-color: var(--brand-400); }
.hv-days li.hv-key b { color: #fff; font-weight: 600; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand-400);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  max-width: 16ch;
}
.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.section-alt { background: var(--ink-800); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.section-lead { color: var(--text-muted); max-width: 60ch; font-size: 1.05rem; margin-bottom: 36px; }

/* ---------- Feature grid ---------- */
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature-grid li {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  padding: 24px;
}
.section-alt .feature-grid li { background: var(--ink-900); }
.feature-grid h3 { font-size: 1.15rem; }
.feature-grid p { margin: 0; color: var(--text-muted); font-size: .97rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.steps li {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-400);
  color: var(--ink-900);
  font-weight: 700;
  margin-bottom: 12px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: .97rem; }

/* ---------- Pricing ---------- */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.price-card {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.price-card--highlight { border-color: var(--brand-400); }
.price-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--brand-400);
  color: var(--ink-900);
  font-weight: 700;
  font-size: .8rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0;
}
.price-name {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.price-value { font-size: 2.4rem; font-weight: 700; color: #fff; margin: 0; }
.price-value span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.price-sub { margin: 6px 0 0; color: var(--text-muted); font-size: .92rem; }

.price-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px 32px;
}
.price-includes li {
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
}
.price-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--brand-400);
  border-bottom: 2px solid var(--brand-400);
  transform: rotate(-45deg);
}
.price-fineprint { font-size: .88rem; color: var(--text-muted); max-width: 62ch; margin-bottom: 24px; }

.price-launch {
  max-width: 62ch;
  margin: -12px 0 32px;
  padding: 14px 18px;
  border: 1px solid var(--brand-400);
  border-radius: 12px;
  background: rgba(213, 255, 95, .06);
  font-size: .95rem;
  color: var(--text);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: 14px;
  padding: 4px 20px;
}
.section-alt .faq details { background: var(--ink-900); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--brand-400);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 90px) clamp(16px, 4vw, 40px);
  text-align: center;
  background: radial-gradient(circle at 85% 20%, #1a1f0d 0%, var(--ink-900) 60%);
}
.cta-band::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -60px;
  width: 340px;
  height: 340px;
  background: url('assets/mark-outline.svg') center / contain no-repeat;
  opacity: .07;
  transform: scaleX(-1);
  pointer-events: none;
}
.cta-band .section-inner { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.cta-band p { color: var(--text-muted); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--ink-700);
  padding: 40px clamp(16px, 4vw, 40px) 24px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-inner img { height: 34px; width: auto; }
.footer-tag { color: var(--text-muted); font-size: .9rem; margin: 10px 0 0; }
.footer-inner nav { display: flex; flex-direction: column; gap: 8px; }
.footer-inner nav a { color: var(--text-muted); font-size: .92rem; }
.footer-inner nav a:hover { color: var(--text); text-decoration: none; }
.footer-copy {
  max-width: var(--maxw);
  margin: 28px auto 0;
  color: var(--ink-400);
  font-size: .82rem;
}

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 40px); }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; color: #fff; }
.legal p, .legal li { color: var(--text-muted); }
.legal .draft-note {
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--text);
  font-size: .92rem;
}
.legal .back { display: inline-block; margin-top: 2.5em; }
.legal .brand { display: inline-flex; margin-bottom: 8px; }
.legal-updated { font-size: .85rem; color: var(--ink-400); margin: 0 0 24px; }
.legal ul { padding-left: 1.25em; }
.legal li { margin-bottom: .4em; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  border-radius: 5px;
  padding: 1px 5px;
}
.legal a { text-decoration: underline; }

@media (max-width: 620px) {
  .site-nav { display: none; }
  .site-header { justify-content: space-between; }
}
