/* Zestly's public site (M13e, spec M13 §5.5): Klipo's layout and type (klipo.it — Archivo, the same spacing and components),
   a neutral palette with one green accent until the app has its icon (then the accent comes from it). Every text and
   button colour pair is at least WCAG AA (4.5:1), checked by axe in tests/widget/site.test.ts. No script, no cookie. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url("/assets/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap;
  src: url("/assets/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ffffff;
  --text: #1c1b1a;
  --muted: #55524e;
  --accent: #1f6f4a;
  --accent-dark: #17563a;
  --accent-soft: #e9f3ee;
  --ink: #14231c;
  --hair: 1px solid rgba(28, 27, 26, 0.12);
  --lift: 0 1px 2px rgba(20, 35, 28, 0.04), 0 18px 40px -24px rgba(20, 35, 28, 0.28);
  --font: "Archivo", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6; overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--font); font-weight: 800; margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; background: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14px;
  line-height: 1.2; padding: 10px 16px; border-radius: 8px; border: 1px solid transparent; min-height: 44px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px rgba(31, 111, 74, 0.6); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary { border-color: rgba(28, 27, 26, 0.4); color: var(--text); }
.btn-secondary:hover { background: rgba(28, 27, 26, 0.06); color: var(--text); }
.btn-ghost { color: var(--accent); padding-inline: 4px; }
/* «In arrivo sull'App Store»: a label where «Installa» will be, until the listing exists — not a link, so not a button */
.soon { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px dashed rgba(28, 27, 26, 0.5); border-radius: 8px;
  font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--text); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px max(16px, 50% - 584px); border-bottom: var(--hair);
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: inherit; text-decoration: none; margin-right: auto; }
.brand::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 18px; order: 3; width: 100%; }
.nav-links a { color: inherit; font-size: 14px; text-decoration: none; padding: 6px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.lang { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; border: 2px solid rgba(28, 27, 26, 0.4); padding: 6px 10px; color: var(--text); text-decoration: none; }
@media (min-width: 820px) { .nav-links { order: 0; width: auto; } }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 72px); }
.rule { height: 1px; border: 0; margin: 0; background: rgba(28, 27, 26, 0.12); }
.sec { padding: clamp(48px, 8vw, 84px) 0; }
.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 8vw, 84px); }
.kicker { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; font-weight: 600; }
.h1 { font-size: clamp(36px, 6.2vw, 80px); line-height: 1.06; letter-spacing: -0.028em; }
.h1 span { display: block; }
.h1 span + span { color: var(--accent); }
.page-title { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.02em; }
.h2 { font-size: clamp(26px, 3.4vw, 32px); letter-spacing: -0.015em; }
.lead { font-size: 17px; line-height: 1.65; max-width: 60ch; margin-top: 24px; }
.body { font-size: 15.5px; line-height: 1.8; color: var(--muted); margin-top: 14px; max-width: 60ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px; }
.stat-n { font-weight: 800; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.15; color: var(--accent); }
.label { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; }
.card { border: var(--hair); border-radius: 10px; padding: 24px; background: #fff; box-shadow: var(--lift); }
.card h2, .card h3 { font-size: 20px; margin-top: 10px; }
.step-n { font-weight: 800; color: var(--accent); font-feature-settings: "tnum"; }

.feat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 32px 0; border-top: var(--hair); scroll-margin-top: 120px; }
.feat h2 { font-size: 22px; }
.feat p { color: var(--muted); max-width: 70ch; line-height: 1.8; }
@media (min-width: 900px) { .feat { grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.6fr); gap: 48px; } }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; margin-top: 40px; }
.plan { display: flex; flex-direction: column; }
.plan-name { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.price { font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.2; color: var(--accent); margin-top: 10px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.ticks li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.plan .btn { margin-top: 24px; }
.note { font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 24px; max-width: 80ch; }

.faq { margin-top: 28px; border-bottom: var(--hair); }
.faq details { border-top: var(--hair); }
.faq summary { cursor: pointer; padding: 22px 0; font-weight: 800; font-size: 18px; list-style-position: outside; }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--muted); max-width: 72ch; padding: 0 0 22px; line-height: 1.8; }

.cta { background: var(--ink); color: #fff; border-radius: 12px; margin: 28px clamp(16px, 5vw, 72px) 56px; }
.cta-in { max-width: 1200px; margin: 0 auto; padding: clamp(48px, 8vw, 84px) clamp(20px, 4vw, 64px); }
.cta-title { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.1; letter-spacing: -0.025em; }
.cta-title span { display: block; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--accent-soft); color: var(--ink); }
.cta .soon { color: #fff; border-color: rgba(255, 255, 255, 0.7); }

.doc { max-width: 760px; padding-top: 40px; padding-bottom: 72px; } /* the side gutter stays .wrap's */
.doc .meta { color: var(--muted); margin-top: 10px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; scroll-margin-top: 120px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; scroll-margin-top: 120px; }
.doc p, .doc li { line-height: 1.8; }
.doc p { margin: 12px 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .notice { background: #fff4d6; border-left: 4px solid #8a5a00; padding: 4px 16px; margin: 16px 0; }
.doc .table { overflow-x: auto; margin: 16px 0; }
.doc table { border-collapse: collapse; min-width: 100%; }
.doc th, .doc td { border: 1px solid #c9c9c9; padding: 6px 8px; text-align: left; vertical-align: top; }
.doc th { background: #f2f2f2; }
.doc code { background: #f2f2f2; padding: 0 4px; border-radius: 3px; font-size: 0.92em; }
.doc pre { background: #f2f2f2; padding: 12px; border-radius: 6px; overflow-x: auto; }
.doc pre code { padding: 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; background: #fff4d6; color: #5c3c00; border-radius: 4px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }

.list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.list a { font-weight: 600; }
.list p { color: var(--muted); }
.day { font-size: 18px; margin-top: 32px; }
.kv { border-collapse: collapse; margin-top: 24px; width: 100%; max-width: 720px; }
.kv th, .kv td { text-align: left; vertical-align: top; padding: 12px 8px 12px 0; border-top: var(--hair); }
.kv th { width: 40%; font-weight: 600; }
.kv .badge { margin-left: 0; }

footer { max-width: 1200px; margin: 0 auto; padding: 48px clamp(16px, 5vw, 72px); }
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; align-items: start; }
.foot-h { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.small { font-size: 13px; line-height: 1.8; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
