/* Eatalo - landing. Layout: hero scuro con due scontrini a confronto, poi fasce alternate (come funziona, demo nel telefono, calcolatore, prezzi, domande, contatti). Materiali: sacchetto kraft, carta dello scontrino, rosso pomodoro. */
:root {
  --bg: #FAF8F6;
  --surface: #FFFFFF;
  --tint: #F3EEEA;
  --ink: #1E1324;
  --muted: #62566A;
  --line: #E6DFE1;
  --accent: #E5482E;
  --accent-ink: #FFFFFF;
  --kraft: #C8A478;
  --good: #1E7A4C;
  --hero-bg: #1E1324;
  --hero-fg: #FFF4EE;
  --hero-muted: #C9B9C9;
  --paper: #FFFDF9;
  --paper-ink: #1E1324;
  --paper-line: #E2D9D4;
  --font-display: "Unbounded", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, Consolas, "SFMono-Regular", monospace;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141016; --surface: #1D1720; --tint: #19141C; --ink: #F2EDF3; --muted: #AFA3B5; --line: #352C39;
    --accent: #FF6A4D; --accent-ink: #1A0C08; --kraft: #9C7E5A; --good: #4FC48A;
    --hero-bg: #0E0A10; --hero-fg: #FFF4EE; --hero-muted: #B8A8B8;
    --paper: #FFFDF9; --paper-ink: #1E1324; --paper-line: #E2D9D4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141016; --surface: #1D1720; --tint: #19141C; --ink: #F2EDF3; --muted: #AFA3B5; --line: #352C39;
  --accent: #FF6A4D; --accent-ink: #1A0C08; --kraft: #9C7E5A; --good: #4FC48A;
  --hero-bg: #0E0A10; --hero-fg: #FFF4EE; --hero-muted: #B8A8B8;
  --paper: #FFFDF9; --paper-ink: #1E1324; --paper-line: #E2D9D4;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.12; font-weight: 700; }
h3 { font-size: 1.05rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.section-lede { color: var(--muted); max-width: 40rem; font-size: 1.06rem; }
.gutter, .nav-in, .hero-in, .band-in, .demo-in, .pricing-in, .contact-in, .foot-in {
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem var(--font-body); text-decoration: none; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); border-radius: 999px; padding: 13px 22px; transition: transform .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-small { padding: 8px 16px; font-size: 0.92rem; }
.btn-wide { width: 100%; }

/* navigazione */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--bg); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 22px; font-weight: 600; font-size: 0.95rem; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-login { font-weight: 600; font-size: 0.95rem; color: var(--muted); text-decoration: none; }
.nav-login:hover { color: var(--ink); }

/* hero */
.hero { background: var(--hero-bg); color: var(--hero-fg); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: clamp(48px, 8vw, 96px); }
@media (max-width: 920px) { .hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.04; font-weight: 800; }
.hl { color: var(--accent); white-space: nowrap; }
.hero .lede { font-size: 1.12rem; color: var(--hero-muted); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { color: var(--hero-fg); }
.hero .btn:focus-visible { outline-color: var(--hero-fg); }
.fineprint { font-size: 0.82rem; color: var(--hero-muted); max-width: 34rem; }

/* scontrini */
.receipts { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; min-width: 0; }
@media (max-width: 520px) { .receipts { grid-template-columns: minmax(0, 1fr); } }
.receipt { position: relative; background: var(--paper); color: var(--paper-ink); font-family: var(--font-data); font-size: 0.8rem; padding: 18px 16px 22px; border-radius: 4px 4px 0 0; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); min-width: 0; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: linear-gradient(-45deg, transparent 6px, var(--paper) 0) 0 0 / 12px 10px repeat-x, linear-gradient(45deg, transparent 6px, var(--paper) 0) 0 0 / 12px 10px repeat-x; }
.r-app { transform: rotate(-2.2deg); margin-top: 26px; }
.r-eatalo { transform: rotate(1.6deg); }
@media (max-width: 520px) { .r-app, .r-eatalo { transform: none; margin-top: 0; } }
.r-title { font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px dashed var(--paper-line); }
.r-line { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.r-line span:first-child { min-width: 0; }
.r-sum { border-top: 1px dashed var(--paper-line); margin-top: 6px; padding-top: 8px; font-weight: 500; }
.r-minus span:last-child { color: #B42318; }
.r-net { border-top: 2px solid var(--paper-ink); margin-top: 8px; padding-top: 8px; font-size: 1.05rem; font-weight: 500; }
.r-app .r-net span:last-child { color: #B42318; }
.r-eatalo .r-net span:last-child { color: #1E7A4C; }
.stamp { position: absolute; z-index: 2; right: -10px; bottom: -34px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.05; padding: 12px 14px; border-radius: 12px; transform: rotate(-6deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); text-align: center; }
.stamp small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.04em; }
@media (max-width: 520px) { .stamp { right: 8px; } }

/* fasce */
.band { padding-block: clamp(56px, 8vw, 96px); }
.band-tint { background: var(--tint); border-block: 1px solid var(--line); }
.band-in { display: flex; flex-direction: column; gap: 18px; }
.narrow > * { max-width: 860px; width: 100%; }

.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: passo; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; counter-increment: passo; }
.step::before { content: counter(passo); position: absolute; top: 18px; right: 20px; font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--line); }
.step p { color: var(--muted); }

/* gestionale */
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 10px; }
@media (max-width: 900px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feat { grid-template-columns: minmax(0, 1fr); } }
.feat article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.feat article p { color: var(--muted); }
.feat article.ai { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.feat article.ai h3::before { content: "AI · "; color: var(--accent); }

/* demo */
.demo { padding-block: clamp(56px, 8vw, 96px); }
.demo-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
@media (max-width: 920px) { .demo-in { grid-template-columns: minmax(0, 1fr); } .phone { display: none; } }
.demo-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(0.35em + 5px); width: 7px; height: 4px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
.phone { position: relative; width: 340px; height: 700px; border-radius: 46px; background: var(--hero-bg); padding: 44px 12px 14px; box-shadow: 0 30px 60px rgba(30, 19, 36, .28); }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 6px 6px 32px 32px; background: var(--paper); }
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 84px; height: 16px; border-radius: 10px; background: #000; }

/* calcolatore */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; margin-top: 10px; align-items: start; }
@media (max-width: 920px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-form, .calc-out { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f label { font-weight: 600; font-size: 0.92rem; }
.f-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
@media (max-width: 560px) { .f-row { grid-template-columns: minmax(0, 1fr); } }
select, .inp { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 500 1rem var(--font-body); }
select { padding: 11px 12px; }
.inp { display: flex; align-items: center; overflow: hidden; }
.inp input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 1.02rem var(--font-data); padding: 11px 12px; outline: none; }
.inp span { padding: 0 12px; color: var(--muted); font: 400 0.85rem var(--font-data); }
.inp:focus-within, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.range { display: flex; align-items: center; gap: 14px; }
.range input { flex: 1; min-width: 0; accent-color: var(--accent); }
.range output { font: 500 1.1rem var(--font-data); min-width: 3.5ch; text-align: right; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 0.92rem; cursor: pointer; grid-column: span 2; }
@media (max-width: 560px) { .chk { grid-column: auto; } }
.chk input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.chk small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.more { border-top: 1px dashed var(--line); padding-top: 14px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.big { display: flex; flex-direction: column; gap: 2px; }
.big span { font-weight: 600; font-size: 0.95rem; }
.big b { font: 500 clamp(2rem, 5vw, 2.8rem) var(--font-data); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.big-loss b { color: var(--accent); }
.big-gain { background: color-mix(in srgb, var(--good) 12%, transparent); border-radius: 10px; padding: 14px 16px; }
.big-gain b { color: var(--good); }
.out-lines { display: flex; flex-direction: column; }
.ol { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px dotted var(--line); font-size: 0.93rem; }
.ol span { min-width: 0; }
.ol small { display: block; color: var(--muted); font-size: 0.78rem; }
.ol b { font: 500 0.98rem var(--font-data); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* prezzi */
.pricing { padding-block: clamp(56px, 8vw, 96px); }
.pricing-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 920px) { .pricing-in { grid-template-columns: minmax(0, 1fr); } }
.price-card { background: var(--hero-bg); color: var(--hero-fg); border-radius: 22px; padding: clamp(26px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.price-card h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.price-card .num { color: var(--accent); white-space: nowrap; }
.price-card p:not(.eyebrow) { color: var(--hero-muted); }
.price-card .btn:focus-visible { outline-color: var(--hero-fg); }
.incl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.incl li { padding-left: 18px; border-left: 3px solid var(--kraft); color: var(--muted); }
.incl b { color: var(--ink); font-weight: 700; }

/* domande */
.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq p { color: var(--muted); margin-top: 10px; max-width: 46rem; }

/* contatti */
.contact { background: var(--accent); color: var(--accent-ink); padding-block: clamp(56px, 8vw, 88px); }
.contact .section-lede { color: inherit; opacity: 0.88; margin-top: 12px; }
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: center; }
@media (max-width: 820px) { .contact-in { grid-template-columns: minmax(0, 1fr); } }
.contact-card { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .18); }
.contact-card p { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.who { font-weight: 700; font-size: 1.05rem; }
.lbl { color: var(--muted); }
.sel { font-family: var(--font-data); font-weight: 500; user-select: all; overflow-wrap: anywhere; }

/* piede */
.foot { padding-block: 28px 40px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; color: var(--muted); }
