/* Bidoo Analyzer — stile condiviso (landing e pagine legali). Palette delle grafiche dello store. */
:root {
  --ink: #1c1b29;
  --muted: #5b5a72;
  --bg: #f6f6fb;
  --card: #ffffff;
  --line: #e7e6f2;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --deep: #1e1b4b;
  --hl: linear-gradient(95deg, #fde68a 0%, #fdba74 45%, #f9a8d4 100%);
  --hero: radial-gradient(60% 40% at 88% 6%, rgba(236, 72, 153, 0.45) 0%, transparent 72%),
    radial-gradient(64% 46% at 4% 96%, rgba(139, 92, 246, 0.7) 0%, transparent 72%),
    linear-gradient(168deg, #1e1b4b 0%, #312e81 34%, #4c1d95 72%, #5b21b6 100%);
  --radius: 22px;
  --shadow: 0 18px 50px rgba(30, 27, 75, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: var(--indigo); }
img { max-width: 100%; display: block; }
h1, h2, h3, .brand { font-family: "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: -0.02em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.hl { background: var(--hl); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Navigazione */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(30, 27, 75, 0.72); }
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; background: #fff; }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav .links a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav .links a:hover { color: #fff; }
.lang { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.lang button { border: 0; background: none; color: rgba(255, 255, 255, 0.8); font: 700 12px Inter, sans-serif; padding: 6px 9px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--deep); }

/* Bottoni */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-play { background: #fff; color: var(--deep); box-shadow: 0 12px 30px rgba(10, 6, 40, 0.35); }
.btn-play svg { width: 22px; height: 22px; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.btn-solid { background: linear-gradient(95deg, var(--indigo), var(--violet)); color: #fff; box-shadow: 0 12px 30px rgba(79, 70, 229, 0.35); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--hero); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: 0.1; background-image: radial-gradient(#fff 1.4px, transparent 1.6px); background-size: 30px 30px; -webkit-mask-image: radial-gradient(70% 60% at 30% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 30% 30%, #000, transparent 75%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1.5px solid rgba(255, 255, 255, 0.28); font-weight: 800; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; margin: 20px 0 18px; font-weight: 800; }
.hero p.lead { font-size: 19px; color: rgba(255, 255, 255, 0.86); max-width: 540px; margin: 0 0 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.hero .trust span::before { content: "✓"; margin-right: 6px; color: #86efac; font-weight: 800; }
.hero .art { position: relative; height: 560px; }
.hero .art img { position: absolute; width: 300px; border-radius: 26px; box-shadow: 0 40px 90px rgba(10, 6, 40, 0.55); }
.hero .art img:nth-child(1) { left: 6%; top: 40px; transform: rotate(-6deg); }
.hero .art img:nth-child(2) { right: 4%; top: 110px; transform: rotate(5deg); }

/* Sezioni */
section { padding: 84px 0; }
.eyebrow { color: var(--violet); font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin: 10px 0 14px; font-weight: 800; }
.sub { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

/* Funzioni */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform 0.2s ease; }
.feature:hover { transform: translateY(-4px); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Galleria screenshot */
.gallery { margin-top: 40px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 22px; scrollbar-width: thin; }
.gallery img { flex: none; width: 250px; border-radius: 22px; scroll-snap-align: start; box-shadow: var(--shadow); }

/* Come funziona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; counter-reset: s; }
.step { position: relative; padding: 26px 26px 26px 78px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 24px; top: 24px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--indigo), var(--violet)); }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Piani */
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 40px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.plan b { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 18px; margin-bottom: 6px; }
.plan span { color: var(--muted); font-size: 14px; }
.plan.pop { border: 2px solid var(--violet); box-shadow: 0 16px 40px rgba(124, 58, 237, 0.18); }
.note { margin-top: 18px; color: var(--muted); font-size: 14px; text-align: center; }

/* FAQ */
.faq { max-width: 820px; margin: 36px auto 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--violet); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* CTA finale */
.final { color: #fff; background: var(--hero); border-radius: 30px; padding: 56px 32px; text-align: center; }
.final .title { color: #fff; }
.final .sub { color: rgba(255, 255, 255, 0.85); margin: 0 auto 26px; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--indigo); }
.disclaimer { width: 100%; font-size: 12.5px; color: #8a89a3; margin-top: 6px; }

/* Pagine legali */
.legal-hero { color: #fff; background: var(--hero); padding: 56px 0 72px; }
.legal-hero h1 { margin: 12px 0 0; font-size: clamp(30px, 4vw, 44px); }
.legal { max-width: 820px; margin: -40px auto 0; background: var(--card); border-radius: 24px; padding: 40px 44px; box-shadow: var(--shadow); position: relative; }
.legal h3 { margin-top: 28px; font-size: 19px; }
.legal p, .legal li { color: #3a394f; }
.back { display: inline-flex; gap: 6px; color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 700; }

/* Animazione d'ingresso */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .hero .art { height: 430px; }
  .hero .art img { width: 220px; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .nav .links a.hide-sm { display: none; }
}
@media (max-width: 620px) {
  section { padding: 60px 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .hero .art { height: 360px; }
  .hero .art img { width: 180px; }
  .gallery img { width: 210px; }
  .legal { padding: 28px 22px; margin-top: -32px; }
  .final { padding: 44px 20px; }
}

/* Nessuno scroll orizzontale su schermi stretti */
html, body { overflow-x: clip; }
.hero .wrap > *, .grid > *, .steps > *, .plans > * { min-width: 0; }
.hero h1 { overflow-wrap: anywhere; }
