/* BooksView landing — minimal, editorial, warm */

/* Font self-hosted (no Google Fonts: niente IP dei visitatori a terzi) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-normal-greek-ext.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-normal-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-normal-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/inter-normal-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;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/lora-italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/lora-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/lora-italic-math.woff2') format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/lora-italic-symbols.woff2') format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/lora-italic-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/lora-italic-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/lora-italic-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;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('assets/fonts/lora-normal-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('assets/fonts/lora-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('assets/fonts/lora-normal-math.woff2') format('woff2');
  unicode-range: U+0302-0303, U+0305, U+0307-0308, U+0310, U+0312, U+0315, U+031A, U+0326-0327, U+032C, U+032F-0330, U+0332-0333, U+0338, U+033A, U+0346, U+034D, U+0391-03A1, U+03A3-03A9, U+03B1-03C9, U+03D1, U+03D5-03D6, U+03F0-03F1, U+03F4-03F5, U+2016-2017, U+2034-2038, U+203C, U+2040, U+2043, U+2047, U+2050, U+2057, U+205F, U+2070-2071, U+2074-209F, U+20D0-20DC, U+20E1, U+20E5-20EF, U+2100-2112, U+2114-2115, U+2117-2121, U+2123-214F, U+2190, U+2192, U+2194-21AE, U+21B0-21E5, U+21F1-21F2, U+21F4-2211, U+2213-2214, U+2216-22FF, U+2308-230B, U+2310, U+2319, U+231C-2321, U+2336-237A, U+237C, U+2395, U+239B-23B7, U+23D0, U+23DC-23E1, U+2474-2475, U+25AF, U+25B3, U+25B7, U+25BD, U+25C1, U+25CA, U+25CC, U+25FB, U+266D-266F, U+27C0-27FF, U+2900-2AFF, U+2B0E-2B11, U+2B30-2B4C, U+2BFE, U+3030, U+FF5B, U+FF5D, U+1D400-1D7FF, U+1EE00-1EEFF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('assets/fonts/lora-normal-symbols.woff2') format('woff2');
  unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('assets/fonts/lora-normal-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('assets/fonts/lora-normal-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('assets/fonts/lora-normal-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:        #f7f3ec;
  --bg-2:      #ede7db;
  --surface:   #ffffff;
  --fg:        #1a1a18;
  --fg-soft:   #3a3a36;
  --muted:     #6b6860;
  --faint:     #b8b5b0;
  --border:    #e5e0d5;
  --accent:    #2d4a7a;
  --accent-2:  #5a7ab0;
  --brand:     #93a9d1;
  --cta-soft:  rgb(191, 207, 230);
  --dark-bg:   #1a1a17;
  --dark-bg-2: #232320;
  --dark-fg:   #f0ede6;
  --dark-muted:#9a9790;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 2px 8px rgba(0,0,0,.06), 0 20px 60px rgba(0,0,0,.12);
  --maxw:      1120px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:'Lora', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 100px; }

/* ─── Screen-reader only (a11y) ────────────────────────────────── */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { font-size: 18px; padding: 16px 32px; }
.btn--sm { font-size: 14px; padding: 8px 16px; }

/* ─── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(247,243,236,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--fg); }
.nav__brand svg { color: var(--accent); }
.nav__beta { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; margin-left: 2px; }
.nav__right { display: flex; align-items: center; gap: 16px; }
.lang-switch { background: none; border: none; font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.lang-switch:hover { color: var(--fg); }
.lang-switch .lang-sep { margin: 0 2px; opacity: .5; }
.lang-switch .active { color: var(--accent); }

/* ─── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 24px 32px;
}
/* Mesh gradient leggero: stessa ricetta blobs/seed-1 del tema "paper"
   delle library nell'app (meshStyle.js), colori mesh 1/2/3 del tema. */
.hero::before {
  content: '';
  position: absolute;
  top: -80px; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 25%, #c8d8f0 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, #f0e6c8 0%, transparent 55%),
    radial-gradient(circle at 30% 85%, #dde6f2 0%, transparent 60%),
    radial-gradient(circle at 85% 80%, #c8d8f0 0%, transparent 55%);
  opacity: .5;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.hero__copy { max-width: 720px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(90,122,176,.12);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow:empty { display: none; }
.hero__gap { display: block; height: .3em; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  color: var(--fg);
}
.hero__sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--fg-soft);
  max-width: 580px;
  margin: 0 auto 30px;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; scroll-margin-top: 64px; }

/* ─── Demo iframe ─────────────────────────────────────────────── */
.demo { margin-top: 48px; }
.demo__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 620px;
  background: var(--dark-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  /* Stato inattivo: stesso tono azzurro del focus, ma desaturato come un
     controllo disabled. Il focus resta pieno tramite --accent-2. */
  border: 6px solid color-mix(in srgb, var(--brand) 48%, var(--faint));
  transition: box-shadow .4s ease, border-color .25s ease;
}
.demo__frame.highlight {
  box-shadow: 0 0 0 4px var(--brand), var(--shadow-lg);
}
.demo__frame--active {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px var(--accent-2), var(--shadow-lg);
}
.demo__frame iframe {
  width: 100%; height: 100%; border: 0; display: block;
  background: var(--dark-bg);
}
.demo__click-catcher {
  position: absolute; inset: 0;
  z-index: 4;
  cursor: pointer;
  background: transparent;
  transition: opacity 0.2s ease;
  /* Consente lo scroll verticale nativo della pagina; lo swipe orizzontale
     resta gestito via JS (pointermove) per attivare la demo senza tap. */
  touch-action: pan-y;
}
.demo__click-catcher.hidden {
  opacity: 0;
  pointer-events: none;
}
/* Fullscreen toggle button (top-right of the demo frame) */
.demo__fs-btn {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 10;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,13,11,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s ease, color .2s ease, opacity .2s ease;
  opacity: 0;
  pointer-events: none;
}
.demo__frame:hover .demo__fs-btn,
.demo__frame--active .demo__fs-btn,
.demo__frame--maximized .demo__fs-btn { opacity: 1; pointer-events: auto; }
.demo__fs-btn:hover { background: rgba(13,13,11,0.8); color: #fff; }

/* "Dati reali" badge (top-left of the demo frame, over the library title area) */
.demo__real {
  position: absolute;
  bottom: 140px; left: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 60px);
  padding: 8px 12px;
  background: rgba(13,13,11,0.25);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 9px;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  backdrop-filter: blur(6px);
  transition: opacity .2s ease;
  opacity: 0;
  pointer-events: none;
}
.demo__frame:hover .demo__real,
.demo__frame--active .demo__real,
.demo__frame--maximized .demo__real { opacity: 1; }
.demo__real-stars {
  flex-shrink: 0;
  color: var(--brand);
  font-size: 13px;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(147,169,209,0.5);
}
.demo__fs-icon { display: none; }
.demo__fs-icon--enter { display: block; }
.demo__fs-icon--exit  { display: none; }
/* When maximized, show the exit (X) icon */
.demo__frame--maximized .demo__fs-icon--enter { display: none; }
.demo__frame--maximized .demo__fs-icon--exit  { display: block; }
/* Maximized: copre il viewport sotto la titlebar (.nav, z-index 50).
   top è impostato inline da JS = altezza della nav.
   Specificità `.demo__frame.demo__frame--maximized` (0,2,0) per battere
   le media query in fondo al file che forzano aspect-ratio su mobile. */
.demo__frame.demo__frame--maximized {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: 0;
  z-index: 40;
  width: 100vw;
  max-height: none;
  aspect-ratio: auto;
  border: 0; border-radius: 0;
}
.demo__frame.demo__frame--maximized .demo__click-catcher { display: none; }
.demo__loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: var(--dark-muted); font-size: 15px;
}
.demo__loading.hidden { display: none; }
.spinner {
  width: 32px; height: 32px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.demo__hint {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0 0;
}
.demo__hint strong { color: var(--fg-soft); font-weight: 600; }
/* Desktop hint visible by default, mobile hint hidden (and vice-versa below 860px) */
.demo__hint--mobile { display: none; }

/* ─── Waitlist ────────────────────────────────────────────────── */
.waitlist {
  background: var(--cta-soft);
  color: var(--fg);
  padding: 88px 24px;
}
.waitlist__inner { max-width: 700px; margin: 0 auto; text-align: center; }
.waitlist h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.1;
  margin: 0 0 14px;
}
.waitlist__sub { color: var(--fg-soft); font-size: 18px; margin: 0 0 30px; }
.waitlist__form {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  max-width: 520px; margin: 0 auto;
}
.waitlist__form input {
  flex: 1 1 280px;
  font-family: var(--font-sans); font-size: 16px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(45,74,122,.18);
  background: var(--surface);
  color: var(--fg);
  outline: none;
  transition: border-color .2s;
}
.waitlist__form input::placeholder { color: var(--faint); }
.waitlist__form input:focus { border-color: var(--accent-2); }
.waitlist__result { margin-top: 28px; text-align: left; }
.waitlist__position { font-size: 20px; margin-bottom: 22px; }
.waitlist__position strong { color: var(--accent); font-size: 26px; margin: 0 6px; }
.waitlist__referral {
  border-top: 1px solid rgba(45,74,122,.18);
  padding-top: 22px;
}
.waitlist__referral p { margin: 0 0 10px; color: var(--fg-soft); font-size: 15px; }
.waitlist__referral p:first-child { color: var(--fg); font-weight: 600; }
.referral-box { display: flex; gap: 8px; }
.referral-box input {
  flex: 1; font-family: var(--font-sans); font-size: 13px;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(45,74,122,.18);
  background: var(--surface); color: var(--fg);
}
.waitlist__error { color: #c0392b; margin-top: 14px; font-size: 14px; }
.waitlist__microcopy {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--fg-soft);
  letter-spacing: .01em;
}
.waitlist__privacy { margin: 10px auto 0; max-width: 560px; font-size: 13px; line-height: 1.5; color: var(--fg-soft); }
.waitlist__privacy a { color: var(--accent); font-weight: 600; }

/* ─── Section title ───────────────────────────────────────────── */
.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-align: center;
  margin: 0 auto 48px;
  max-width: 740px;
}

/* ─── How ─────────────────────────────────────────────────────── */
.how { background: var(--bg-2); padding: 88px 24px; }
.steps { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  text-align: center; padding: 28px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step__num {
  width: 44px; height: 44px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; color: #fff;
  background: var(--accent); border-radius: 50%;
}
.step h3 { font-size: 20px; margin: 0 0 8px; }
.step p { color: var(--fg-soft); margin: 0; font-size: 15px; }

/* ─── Features ────────────────────────────────────────────────── */
.features { background: var(--bg-2); padding: 88px 24px; }
.features__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px;
}
.feature__icon { display: block; width: 32px; height: 32px; color: var(--accent-2); margin-bottom: 14px; }
.feature h3 { font-size: 19px; margin: 0 0 8px; }
.feature p { color: var(--fg-soft); margin: 0; font-size: 15px; }

/* ─── Use cases ───────────────────────────────────────────────── */
.usecases { max-width: var(--maxw); margin: 0 auto; padding: 88px 24px; }
.usecases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.uc {
  padding: 24px;
  border-left: 3px solid var(--accent-2);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.uc h3 { font-size: 18px; margin: 0 0 8px; color: var(--accent); }
.uc p { margin: 0; color: var(--fg-soft); font-size: 15px; }

/* ─── Screenshots ─────────────────────────────────────────────── */
.shots { background: var(--bg-2); padding: 88px 24px; }
/* Carosello: una schermata alla volta, didascalia di fianco, frecce ai due lati.
   L'altezza comanda: la larghezza dell'immagine segue il rapporto 541:1201
   degli screenshot, quella del riquadro è immagine + colonna del testo. */
.shots__carousel {
  position: relative;
  --shot-h: min(82vh, 1020px);
  --shot-w: calc(var(--shot-h) * 541 / 1201);
  --cap-w: calc(var(--shot-h) * .45);
  --col-gap: 88px;
  /* Le due colonne sono centrate; il padding a destra le sposta a sinistra
     quel tanto che basta a far respirare la freccia "next". */
  /* 30 = metà dei 60px di cui la freccia destra sporge oltre le miniature:
     così il suo bordo esterno cade al margine del bordo sinistro della foto. */
  --shift: 30px;
  width: var(--maxw);
  max-width: 100%;
  margin: 0 auto;
  padding: 36px calc(var(--shift) * 2) 36px 0;
  display: grid;
  grid-template-columns: var(--shot-w) var(--cap-w);
  justify-content: center;
  gap: var(--col-gap);
}
.shots__grid {
  width: var(--shot-w);
  max-width: 100%;
  display: flex; gap: 22px; align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.shots__grid::-webkit-scrollbar { display: none; }
.shots__mosaic { display: contents; }
/* Nel nastro che scorre c'è solo l'immagine: la didascalia originale resta nel
   DOM come sorgente del testo (i18n) ma non si vede. */
.shots__grid .shot {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.shots__grid .shot > img { width: 100%; height: auto; }
.shots__grid .shot figcaption { display: none; }

/* Pannello fermo a destra, due regioni: le miniature in basso, a filo del
   piede della foto grande; il testo centrato nella regione che resta sopra. */
.shots__panel { display: grid; grid-template-rows: 1fr auto; gap: 24px; }
/* Sei miniature (3×2), una per schermata: sempre tutte, sempre allo stesso
   posto. È la cornice evidenziata a dire dove sei. */
.shots__thumbs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.shots__thumbs button {
  padding: 0; border: 1px solid var(--border); background: none;
  border-radius: 8px; overflow: hidden; cursor: pointer;
  opacity: .7; transition: opacity .2s, border-color .2s;
}
.shots__thumbs button:hover { opacity: .9; }
.shots__thumbs button[aria-current="true"] {
  opacity: 1; border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(90, 122, 176, .35);
}
.shots__thumbs img { width: 100%; height: auto; }
/* Didascalia: trattata come un occhiello editoriale, non come una nota.
   Serif come l'hero, filetto d'accento sopra, allineata all'immagine. */
.shots__caption {
  align-self: center;
  margin: 0; text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--fg);
  text-wrap: balance;
}
/* Frecce ai due lati del blocco miniature, fuori dai suoi bordi: la sinistra
   sta nel gap fra le colonne, la destra nello spazio liberato da --shift. */
.shots__thumbs-box { position: relative; }
.shots__nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .5); backdrop-filter: blur(6px);
  color: var(--accent);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  cursor: pointer; transition: opacity .2s, transform .2s;
}
.shots__nav:hover { transform: scale(1.06); }
.shots__nav[disabled] { opacity: 0; pointer-events: none; }
.shots__nav--prev { right: calc(100% + 16px); }
.shots__nav--next { left:  calc(100% + 16px); }
.shot { margin: 0; }
.shot img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.shot:hover img { transform: scale(1.02); }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

/* Swipe hint — hidden on desktop, shown on mobile */
.shots__swipe-hint {
  display: none;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 0;
  letter-spacing: .02em;
}

/* ─── Testimonials ────────────────────────────────────────────── */
.testimonials { background: var(--bg-2); padding: 88px 24px; }
.testimonials__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial {
  margin: 0;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -8px; left: 20px;
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 1;
  color: var(--brand);
  opacity: .35;
}
.testimonial p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--fg);
  margin: 0 0 18px;
}
.testimonial footer {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

/* ─── Final CTA ───────────────────────────────────────────────── */
.final-cta {
  text-align: center;
  padding: 96px 24px;
  background: var(--cta-soft);
}
.final-cta h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2; margin: 0 0 28px;
}
.final-cta p { color: var(--fg-soft); font-size: 19px; margin: 0 0 28px; }

/* ─── Footer ──────────────────────────────────────────────────── */
.footer { background: var(--dark-bg); color: var(--dark-muted); padding: 32px 24px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer__brand { font-weight: 700; font-size: 16px; color: var(--dark-fg); }
.footer__beta { font-size: 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; padding: 1px 5px; margin-left: 4px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer__links a { color: var(--dark-fg); font-size: 14px; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__links a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
.footer__copy { font-size: 14px; margin: 0; }

/* ─── Legal pages ───────────────────────────────────────────────── */
.legal-page { max-width: 800px; margin: 0 auto; padding: 56px 24px 96px; }
.legal-page__back { display: inline-block; margin-bottom: 32px; color: var(--accent); font-weight: 600; text-decoration: none; }
.legal-page__back:hover { text-decoration: underline; }
.legal-page h1 { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 48px); line-height: 1.15; margin: 0 0 24px; }
.legal-page h2 { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 30px); line-height: 1.25; margin: 48px 0 16px; }
.legal-page h3 { font-size: 19px; margin: 32px 0 12px; }
.legal-page p, .legal-page li { font-size: 16px; line-height: 1.7; }
.legal-page p { margin: 0 0 18px; }
.legal-page li { margin-bottom: 8px; }
.legal-page ul { padding-left: 24px; margin: 0 0 20px; }
.legal-page a { color: var(--accent); }
.legal-page blockquote { margin: 20px 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--bg-2); }
.legal-page blockquote p:last-child { margin-bottom: 0; }
.legal-page hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.legal-page__table { overflow-x: auto; margin: 20px 0 28px; }
.legal-page table { border-collapse: collapse; min-width: 600px; width: 100%; font-size: 14px; }
.legal-page th, .legal-page td { padding: 12px; border: 1px solid var(--border); text-align: left; vertical-align: top; line-height: 1.5; }
.legal-page th { background: var(--bg-2); }

/* ─── Lightbox (full-window screenshot viewer) ────────────────── */
.lightbox {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: 0;
  z-index: 45;
  background: rgba(13,13,11,0.97);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}
.lightbox[hidden] { display: none; }
.lightbox__stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.lightbox__track {
  display: flex;
  height: 100%;
  transition: transform 0.32s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.lightbox__track.dragging { transition: none; }
.lightbox__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 64px 64px;
  box-sizing: border-box;
}
.lightbox__slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__close {
  position: absolute;
  top: 14px; right: 16px;
  z-index: 3;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, color .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.18); color: #fff; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s, color .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.15); color: #fff; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__caption {
  flex: 0 0 auto;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  padding: 14px 24px 22px;
  max-width: 760px;
  margin: 0 auto;
}
.lightbox__counter {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  padding: 5px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

@media (max-width: 860px) {
  .lightbox__nav { display: none; }
  .lightbox__slide { padding: 12px; padding-bottom: 0; }
  .lightbox__slide img { border-radius: 8px; }
  /* Caption overlay in basso, non flex item che ruba spazio */
  .lightbox__caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(13,13,11,0) 0%, rgba(13,13,11,0.85) 60%);
    padding: 40px 18px 24px;
    pointer-events: none;
  }
}

@media (max-width: 560px) {
  .lightbox__close { top: 10px; right: 10px; width: 34px; height: 34px; }
  .lightbox__counter { top: 12px; }
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .steps, .features__grid, .usecases__grid, .testimonials__grid { grid-template-columns: 1fr 1fr; }
  /* Screenshots: una slide alla volta con peek, si scorre con lo swipe */
  /* Su telefono niente pannello: la didascalia torna sotto la sua immagine */
  .shots__carousel { width: auto; display: block; padding: 0; border: 0; }
  .shots__panel { display: none; }
  .shots__grid { width: auto; }
  .shots__grid .shot figcaption {
    display: block;
    margin-top: 12px; text-align: center;
    font-family: var(--font-sans); font-size: 15px; color: var(--muted);
  }
  .shots__grid {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
  }
  .shots__grid .shot {
    flex: 0 0 85%;
    scroll-snap-stop: always;
  }
  .shots__grid .shot img {
    width: 100%; height: auto;
    max-width: 100%; max-height: 55vh;
    object-fit: contain;
  }
  .shots__nav { display: none; }
  .shots__swipe-hint { display: block; }
  /* Lightbox: true fullscreen su mobile (titlebar inclusa) */
  .lightbox { top: 0 !important; }
  .demo__frame { aspect-ratio: 4 / 5; }
  .demo__hint--desktop { display: none; }
  .demo__hint--mobile { display: block; }
}
@media (max-width: 560px) {
  .steps, .features__grid, .usecases__grid, .testimonials__grid { grid-template-columns: 1fr; }
  .nav { padding: 12px 16px; }
  .nav__brand span:not(.nav__beta) { font-size: 17px; }
  .hero { padding: 36px 18px 24px; }
  .waitlist { padding: 34px 18px; }
  .how, .features, .usecases, .shots, .testimonials { padding: 60px 18px; }
  .demo__frame { aspect-ratio: 3 / 4; }
}
