/* instradApp — stile condiviso del sito (public/). Brand: blu Oceano #0277BD. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #555555;
  --accent: #0277BD;
  --accent-fg: #ffffff;
  --surface: #f4f8fb;
  --rule: #e2e2e2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --fg: #f2f2f2;
    --muted: #a8a8a8;
    --accent: #4FC3F7;
    --accent-fg: #072a3f;
    --surface: #1b2126;
    --rule: #333333;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav { max-width: 1000px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--fg); text-decoration: none; }
.brand img { border-radius: 6px; }
.nav-links { display: flex; gap: 18px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .btn-nav { margin-left: auto; }
}

/* ---- Bottoni ---- */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border: 1.5px solid var(--accent); color: var(--accent); }
.btn-nav { padding: 8px 16px; font-size: .9rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.cta-row.center { justify-content: center; }

/* ---- Sezioni e tipografia ---- */
section { padding: 56px 0; }
section.alt { background: var(--surface); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; margin: 0 0 12px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 8px; }
blockquote { border-left: 3px solid var(--accent); margin: 16px 0; padding: 4px 0 4px 14px; font-style: italic; color: var(--muted); }

/* ---- Hero ---- */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.hero-phone { display: flex; justify-content: center; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---- Device frame (screenshot) ---- */
.device {
  width: min(280px, 72vw);
  border: 10px solid #222;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 48px rgb(0 0 0 / .18);
}
.device img { display: block; width: 100%; }
.device-s { width: min(200px, 56vw); border-width: 8px; border-radius: 28px; }
@media (prefers-color-scheme: dark) { .device { border-color: #3a3a3a; } }

/* ---- Come funziona ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg); font-weight: 700;
}
.shots { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---- Feature alternate (testo/immagine) ---- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature-img { display: flex; justify-content: center; }
.feature.rev .feature-img { order: -1; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature.rev .feature-img { order: 0; }
}

/* ---- FAQ (accordion nativo) ---- */
details.faq { border-bottom: 1px solid var(--rule); padding: 12px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { color: var(--muted); margin: 8px 0 4px; }

/* ---- Card prezzi ---- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0 8px; }
@media (max-width: 900px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .plans .plan { order: 2; }
  .plans .plan.free { order: 0; }
  .plans .plan.best { order: 1; }
}
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 14px; padding: 24px 18px 18px; }
.plan.best { border: 2px solid var(--accent); }
.plan h3 { margin: 0; font-size: 1.05rem; }
.plan ul { padding-left: 18px; margin: 12px 0 18px; flex: 1; color: var(--muted); font-size: .95rem; }
.plan .btn { text-align: center; }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-fg);
  font-size: .72rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.price { font-size: 1.7rem; font-weight: 800; margin: 6px 0 0; }
.price small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.reframe { background: var(--surface); border-radius: 12px; padding: 18px 22px; margin: 28px 0; }
.note { font-size: .85rem; color: var(--muted); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 36px; font-size: .9rem; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 6px 0; }

/* ---- Pagine articolo (privacy/assistenza) ---- */
.article { max-width: 760px; margin: 0 auto; padding: 32px 20px 48px; }
.article h1 { color: var(--accent); font-size: 1.75rem; margin: 16px 0 8px; }
.article h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.article h3 { font-size: 1.05rem; margin: 24px 0 4px; }
.article h4 { font-size: 1rem; margin: 16px 0 4px; }
.article hr { border: none; border-top: 1px solid var(--rule); margin: 32px 0; }
.article footer { margin: 48px 0 16px; font-size: .9rem; color: var(--muted); }
