/* Sito vetrina di myMoneyBook: stessi colori dell'app, tema chiaro e scuro automatico. */
:root {
  color-scheme: light;
  --bg: #f9f9f7;
  --surface: #ffffff;
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #6b6a66;
  --line: #e1e0d9;
  --accent: #1c5cab;
  --on-accent: #ffffff;
  --brand: #fe9900;
  --inc: #006300;
  --pro-bg: #eaf1fb;
  --shadow: 0 1px 2px rgba(11, 11, 11, .06), 0 8px 28px rgba(11, 11, 11, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d0d0d;
    --surface: #1a1a19;
    --text: #ffffff;
    --text-2: #c3c2b7;
    --muted: #a09f98;
    --line: #2c2c2a;
    --accent: #6da7ec;
    --on-accent: #0b0b0b;
    --inc: #3ecf5a;
    --pro-bg: #17212e;
    --shadow: 0 0 0 1px #2c2c2a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, p, ol, figure { margin: 0; }
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main > section.wrap { padding-top: 56px; padding-bottom: 56px; }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 28px; text-align: center; }
h3 { font-size: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700;
}
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 11px; }
.btn:hover { filter: brightness(1.06); }

/* Barra in alto */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; }
.brand img { border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.top nav a:not(.btn) { color: var(--text-2); }
@media (max-width: 560px) { .top nav a:not(.btn) { display: none; } }

/* Apertura */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-top: 48px !important; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -.02em; }
.lead { margin-top: 20px; font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.cta .muted { font-size: 15px; }
.hero-phone { justify-self: center; width: min(320px, 80vw); }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
}

/* Telefono e computer con le schermate */
/* La cornice è il bordo dell'immagine, così la didascalia resta fuori. */
.phone img { border: 8px solid #111; border-radius: 36px; box-shadow: var(--shadow); }
.desktop { margin-top: 40px; }
.desktop img { border: 6px solid #111; border-radius: 14px; box-shadow: var(--shadow); }
figcaption { text-align: center; color: var(--muted); font-size: 15px; padding-top: 12px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 800px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 -20px; padding: 0 20px 8px; }
  .shots .phone { flex: 0 0 72%; scroll-snap-align: center; }
}

/* Funzioni */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features article, .install article, .prices article { background: var(--surface); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.features h3 { margin: 10px 0 6px; }
.features p, .install li { color: var(--text-2); font-size: 16px; }
.ico { font-size: 28px; }
@media (max-width: 800px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* Tabella gratis / Pro */
.table-wrap { max-width: 720px; margin: 0 auto; overflow-x: auto; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.plans { width: 100%; border-collapse: collapse; font-size: 16px; }
.plans th, .plans td { padding: 13px 16px; border-top: 1px solid var(--line); text-align: center; }
.plans thead th { border-top: 0; font-size: 15px; color: var(--text-2); }
.plans tbody th { text-align: left; font-weight: 500; }
.plans .pro { background: var(--pro-bg); font-weight: 700; }
.plans thead .pro { color: var(--accent); font-size: 17px; }
.yes { color: var(--inc); font-weight: 800; }
.no { color: var(--muted); }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 32px auto 0; }
.prices article { position: relative; text-align: center; display: grid; gap: 6px; align-content: start; }
.prices .best { border: 2px solid var(--accent); }
.price { font-size: 32px; font-weight: 800; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.prices .muted { font-size: 15px; }
.tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.note { text-align: center; margin-top: 22px; font-size: 15px; }
@media (max-width: 700px) { .prices { grid-template-columns: 1fr; gap: 24px; } }

/* Installazione e domande */
.install { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.install ol { margin-top: 10px; padding-left: 20px; display: grid; gap: 4px; }
@media (max-width: 800px) { .install { grid-template-columns: 1fr; } }
.faq { max-width: 760px; }
.faq details { background: var(--surface); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); }
.faq details + details { margin-top: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--text-2); }

.final { display: grid; justify-items: center; gap: 4px; text-align: center; }
.final img { border-radius: 14px; margin-bottom: 12px; }
.final h2 { margin-bottom: 20px; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 24px 20px 40px; border-top: 1px solid var(--line); font-size: 15px; }
