/* GENERATO da brand/scripts/build.mjs a partire da brand/tokens.json — non modificare a mano. */
:root {
  --ink: #1f2340;
  --ink-muted: #4a4e6a;
  --cream: #fff6e8;
  --paper: #ffffff;
  --sun: #ffc531;
  --coral: #ff6a4d;
  --coral-deep: #c8452b;
  --sky: #2a60e8;
  --success: #2f8f5b;
  --danger: #b8322a;
  --device-ground: #1f2340;
  --device-text: #ffffff;
  --font-display: Fredoka, "Baloo 2", system-ui, sans-serif;
  --font-body: Figtree, system-ui, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
}

/* Landing Tallowee. Colori, font e raggi vengono dai token del brand
   (src/brand/tokens.css, generato da brand/scripts/build.mjs). */

@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("/fonts/figtree-latin-700-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; container-type: inline-size; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--sky); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.1; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-deep); }
.lead { font-size: clamp(17px, 1.6cqi, 20px); color: var(--ink-muted); max-width: 540px; }
.link-strong { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 2px; color: var(--ink); }
.logo-word { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.logo-mark { color: var(--ink); }
.logo-md .logo-word { font-size: 32px; }
.logo-md .logo-mark { width: 44px; height: 41px; margin-top: 8px; }
.logo-sm .logo-word { font-size: 24px; }
.logo-sm .logo-mark { width: 32px; height: 30px; margin-top: 6px; }
.logo-link { text-decoration: none; }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius-md); border: 2px solid transparent; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--sky); color: var(--paper); }
.btn-primary:hover { background: #2150c8; color: var(--paper); }
.btn-outline { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--cream); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 17px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 19px; }
.btn-block { width: 100%; min-height: 56px; font-size: 20px; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-weight: 700; }
.nav > a:not(.btn) { text-decoration: none; }
.lang { display: inline-flex; gap: 6px; }
.lang a { text-decoration: none; color: var(--ink-muted); }
.lang a[aria-current] { color: var(--ink); }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 32px; padding-bottom: 72px; }
.hero-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(40px, 6cqi, 68px); line-height: 1.04; letter-spacing: -.01em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 7px 14px; border-radius: var(--radius-pill); background: var(--ink); color: var(--cream); font-weight: 700; font-size: 14px; }
.hero-visual { flex: 1 1 320px; display: flex; justify-content: center; }
.device { position: relative; width: 300px; height: 380px; }
.device-halo { position: absolute; left: 10px; top: 30px; width: 280px; height: 340px; border-radius: 50%; background: var(--coral); opacity: .18; }
.device-body { position: absolute; left: 40px; top: 10px; width: 220px; height: 330px; border-radius: 110px; background: var(--sun); border: 4px solid var(--ink); display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 42px; }
.device-screen { width: 124px; height: 150px; border-radius: 18px; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.device-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--sun); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink); }
.device-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--paper); }
.device-state { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--coral); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.device-button { width: 76px; height: 76px; border-radius: 50%; background: var(--coral); border: 4px solid var(--ink); }

/* come funziona */
.how { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; padding-bottom: 80px; }
.how h2, .signup h2 { font-size: clamp(30px, 3.6cqi, 44px); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 16px; }
.card { background: var(--paper); border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 24px; }
.card-icon { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.bg-sun { background: var(--sun); } .bg-coral { background: var(--coral); } .bg-ink { background: var(--ink); }

/* racconto */
.story { background: var(--ink); color: var(--cream); }
.story-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.story-art { flex-shrink: 0; max-width: 100%; height: auto; }
.story p { flex: 1 1 380px; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.8cqi, 34px); line-height: 1.3; }

/* le cose come stanno */
.honest-wrap { padding-top: 80px; padding-bottom: 40px; }
.honest { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius-xl); padding: clamp(24px, 4cqi, 48px); display: flex; flex-direction: column; gap: 26px; }
.honest-head { display: flex; align-items: center; gap: 14px; }
.honest-head .logo-mark { width: 44px; height: 41px; flex-shrink: 0; }
.honest h2 { font-size: clamp(28px, 3cqi, 38px); }
.honest-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.honest-list li { display: flex; gap: 14px; }
.num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }

/* iscrizione */
.signup { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 40px; padding-bottom: 96px; }
.signup-text { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.signup-box { flex: 1 1 420px; min-width: 0; }
.form { gap: 22px; padding: clamp(24px, 3.4cqi, 40px); }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 15px; padding: 0; }
.field legend { margin-bottom: 10px; }
input[type="email"] { min-height: 52px; border-radius: var(--radius-md); border: 2px solid var(--ink); padding: 0 16px; font-family: var(--font-body); font-size: 17px; color: var(--ink); background: var(--paper); width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); border: 2px solid var(--ink); background: var(--paper); font-weight: 700; font-size: 15px; cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--ink); color: var(--cream); }
.chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--ink); }
.form-error { color: var(--danger); font-weight: 700; }

/* dopo l'iscrizione: visibile con JS (.is-visible) o, senza JS, con #grazie */
.done { display: none; }
.done:target, .done.is-visible { display: flex; }
.signup-box:has(.done:target) .form, .signup-box.is-done .form { display: none; }
.done-head { display: flex; align-items: center; gap: 12px; }
.done-head h2 { font-size: 30px; }
.done-check { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--success); display: flex; align-items: center; justify-content: center; }
.offer { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--cream); padding-top: 18px; }
.offer[hidden] { display: none; }
.offer h3 { font-size: 26px; line-height: 1.2; }
.offer-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 4px; }
.offer-actions .btn { min-height: 56px; }
.done-thanks { font-weight: 700; }
.share { display: flex; flex-direction: column; gap: 10px; }
.share-title { font-weight: 700; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* footer */
.site-footer { border-top: 2px solid var(--ink); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; padding-top: 32px; padding-bottom: 40px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; }
.footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }

/* privacy */
.privacy { max-width: 760px; padding-top: 24px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 18px; }
.privacy h1 { font-size: clamp(36px, 5cqi, 52px); }
.privacy h2 { font-size: 24px; margin-top: 18px; margin-bottom: 8px; }
.privacy section p + p { margin-top: 10px; }

/* banner cookie */
.banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px; display: flex; justify-content: center; pointer-events: none; }
.banner[hidden] { display: none; }
.banner-box { pointer-events: auto; position: relative; width: 100%; max-width: 440px; background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 8px 0 rgba(31, 35, 64, .12); }
.banner-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 12px; }
.banner-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; padding-right: 36px; }
.banner-text { font-size: 15px; }
.banner-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
