/* NodLift — sito minimal. Colori e caratteri come nell'app (DESIGN_SYSTEM.md). */
:root {
  --accent: #FF641E;
  --ink: #111111;
  --paper: #FFFEFA;
  --soft: #F2F0E8;
  --muted: #5F5C56;
  --line: #E7E4DC;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px; z-index: 10; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Logo: segno e scritta nel colore del testo, punto in contrasto con il fondo */
.logo { height: 30px; width: auto; color: var(--ink); }
.logo-dot { fill: var(--accent); }
.on-accent .logo-dot { fill: var(--paper); }

/* Barra in alto */
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.site-header nav { display: flex; gap: 28px; font-size: 15px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.site-header .language-nav { gap: 2px; padding: 3px; border: 1px solid rgba(17,17,17,.22); border-radius: 99px; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.language-nav a { display: block; min-width: 40px; padding: 6px 10px; border-radius: 99px; text-align: center; }
.site-header .language-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* Apertura: tutta arancione, un solo iPhone tagliato dal bordo */
.hero { background: var(--accent); overflow: hidden; }
.hero-copy { text-align: center; padding-top: clamp(40px, 7vw, 88px); }
.hero h1 { font-size: clamp(54px, 9vw, 116px); line-height: .96; letter-spacing: -.055em; font-weight: 700; }
.hero h1 .line2 { display: block; }

/* Le parole fanno quello che dicono, a turno: «solleva» sale e ricade come un
   bilanciere, poi «cenno» annuisce due volte come la testa. Ciclo di 4 secondi. */
.lift, .nod { display: inline-block; }
.lift { animation: lift 4s cubic-bezier(.45, 0, .25, 1) infinite; }
.nod { font-style: italic; transform-origin: 50% 90%; animation: nod 4s ease-in-out infinite; }
@keyframes lift {
  0%, 6% { transform: translateY(0) scaleY(1); }
  10% { transform: translateY(.03em) scaleY(.94); }   /* si carica */
  24% { transform: translateY(-.2em) scaleY(1.02); }  /* sale, piano */
  32% { transform: translateY(-.2em) scaleY(1); }     /* tiene in alto */
  42% { transform: translateY(0) scaleY(.97); }        /* torna giù */
  46%, 100% { transform: translateY(0) scaleY(1); }
}
@keyframes nod {
  0%, 52% { transform: perspective(400px) rotateX(0); }
  58% { transform: perspective(400px) rotateX(-38deg); }
  64% { transform: perspective(400px) rotateX(0); }
  70% { transform: perspective(400px) rotateX(-38deg); }
  78%, 100% { transform: perspective(400px) rotateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .lift, .nod { animation: none; }
}
.hero p { max-width: 520px; margin: 26px auto 0; font-size: clamp(17px, 1.6vw, 20px); }
.hero .availability { margin-top: 14px; font-size: 13px; }
.badge { display: inline-block; margin-top: 30px; padding: 13px 22px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500; text-decoration: none; }
.badge:hover { background: #2A2A2A; }
.hero-phone { width: min(340px, 72vw); margin: clamp(48px, 6vw, 72px) auto 0; height: clamp(360px, 46vw, 520px); overflow: hidden; }

/* Cornice iPhone */
.phone { background: var(--ink); padding: 10px; border-radius: 52px; box-shadow: 0 40px 80px rgba(17,17,17,.22); }
.phone img { border-radius: 43px; }
/* Le schermate arrivano senza Dynamic Island: la disegna la cornice */
.phone { position: relative; }
.phone::before { content: ""; position: absolute; top: 4.2%; left: 50%; transform: translate(-50%, -50%); width: 29%; aspect-ratio: 3.4 / 1; border-radius: 99px; background: #000; }
.hero-phone .phone::before { top: 30px; }

/* Come funziona: tre passi, solo testo */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-block: clamp(80px, 10vw, 140px); }
.steps li { list-style: none; }
.steps b { display: block; color: var(--accent); font-size: 15px; margin-bottom: 14px; }
.steps h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -.035em; }
.steps p { margin-top: 12px; color: var(--muted); }

/* Funzioni: immagine su card arancione, accanto un titolo e una frase */
/* Percorso: le immagini sono collegate dalla linea delle schede nell'app.
   Una linea verticale al centro, una curva (raggio 12) che entra in ogni immagine,
   arancione fin dove si è arrivati scorrendo, grigia dopo. */
.journey { --gap: clamp(32px, 6vw, 96px); --rail: #DAD7D0; position: relative; }
.rail { position: absolute; z-index: 1; left: 50%; width: 2px; margin-left: -1px; top: var(--rail-top, 0); height: var(--rail-height, 0); background: var(--rail); }
.rail-progress { display: block; width: 100%; height: var(--rail-done, 0); background: var(--accent); }
.rail::before, .rail::after { content: ""; position: absolute; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--rail); }
.rail::before { top: -5px; }
.rail::after { bottom: -5px; }
.journey.started .rail::before, .journey.finished .rail::after { background: var(--accent); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; margin-bottom: clamp(80px, 10vw, 140px); }
.feature:nth-of-type(even) .media-wrap { order: 2; }
.media-wrap { position: relative; }
.media-wrap::after { content: ""; box-sizing: border-box; position: absolute; top: calc(50% - 11px); width: calc(var(--gap) / 2 + 1px); height: 12px; border: 0 solid var(--rail); }
.feature:nth-of-type(odd) .media-wrap::after { left: 100%; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 12px; }
.feature:nth-of-type(even) .media-wrap::after { right: 100%; border-left-width: 2px; border-bottom-width: 2px; border-bottom-left-radius: 12px; }
.feature.reached .media-wrap::after { border-color: var(--accent); }
.media { background: var(--accent); border-radius: 36px; aspect-ratio: 1 / 1; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 12%; }
.media .phone { width: 58%; }
.media-illustration { align-items: flex-end; padding: 10% 10% 0; }
.feature h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: -.05em; }
.feature p { margin-top: 20px; max-width: 420px; color: var(--muted); font-size: 19px; }
.feature .eyebrow { margin: 0 0 14px; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.feature .privacy-note { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); font-size: 15px; font-weight: 500; }
.privacy-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

/* Anteprime delle nuove funzioni, disegnate con gli stessi colori dell'app. */
.media-import { align-items: center; padding: 10%; }
.import-sheet { width: 100%; padding: clamp(18px, 3vw, 32px); border-radius: 24px; background: var(--paper); box-shadow: 0 24px 56px rgba(17,17,17,.14); }
.import-sources { font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.import-sheet h3 { margin-top: 20px; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.04em; line-height: 1.05; }
.import-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: clamp(12px, 1.4vw, 15px); }
.import-row:first-of-type { margin-top: 14px; }
.import-row span { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.import-status { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12px; font-weight: 500; }
.import-status svg { width: 17px; height: 17px; flex-shrink: 0; }
.media-widgets { flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 9%; }
.widget-preview { width: 100%; padding: clamp(14px, 2vw, 22px); border-radius: 24px; background: var(--paper); box-shadow: 0 18px 40px rgba(17,17,17,.12); }
.widget-kicker { font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.widget-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.widget-title { font-size: clamp(17px, 2.2vw, 26px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
.widget-meta { margin-top: 5px; font-size: 12px; }
.widget-play { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
.widget-play::after { content: ""; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid var(--ink); margin-left: 3px; }
.widget-chips { display: flex; gap: 5px; margin-top: 10px; font-size: 9px; font-weight: 700; }
.widget-chips span { padding: 4px 8px; background: var(--soft); border-radius: 99px; }
.widget-timer { display: grid; place-items: center; width: 60px; height: 60px; border: 5px solid var(--accent); border-right-color: var(--line); border-radius: 50%; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.widget-action { margin-top: 12px; padding: 7px 12px; border-radius: 99px; background: var(--accent); font-size: 12px; font-weight: 500; text-align: center; }
.media-import, .media-widgets { aspect-ratio: auto; min-height: clamp(340px, 42vw, 488px); }

/* Domande */
.faq { max-width: 780px; padding-bottom: clamp(80px, 10vw, 140px); }
.faq > h2 { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -.05em; line-height: 1; margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 28px; line-height: .8; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; color: var(--muted); max-width: 640px; }

/* Chiusura */
.closing { background: var(--accent); text-align: center; padding-block: clamp(80px, 11vw, 150px); }
.closing h2 { font-size: clamp(48px, 8vw, 104px); line-height: .96; letter-spacing: -.055em; }
.closing .badge { margin-top: 36px; }

/* Footer */
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 36px; font-size: 14px; color: var(--muted); }
.site-footer .logo { height: 22px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { color: var(--ink); }

/* Pagine di testo: privacy e assistenza */
.doc { max-width: 760px; padding-block: clamp(40px, 7vw, 96px) clamp(60px, 8vw, 120px); }
.doc-label { color: var(--accent); font-weight: 700; font-size: 15px; }
.doc h1 { margin-top: 14px; font-size: clamp(48px, 7vw, 84px); line-height: .98; letter-spacing: -.055em; }
.doc-lead { margin-top: 24px; font-size: 20px; }
.doc-date { margin-top: 14px; color: var(--muted); font-size: 14px; }
.doc-summary { margin-top: 40px; padding: 26px 28px; background: var(--soft); border-radius: 24px; }
.doc-summary strong { font-size: 19px; }
.doc-summary p { margin-top: 8px; color: var(--muted); }
.doc section { margin-top: 48px; }
.doc h2 { font-size: 26px; letter-spacing: -.03em; line-height: 1.15; }
.doc h3 { margin-top: 24px; font-size: 18px; }
.doc section p { margin-top: 12px; color: var(--muted); }
.doc section a, .doc-summary a { color: var(--ink); text-underline-offset: 3px; }
.doc-header { border-bottom: 1px solid var(--line); }
.doc-header nav a { font-weight: 500; }

@media (max-width: 820px) {
  .site-header nav { gap: 18px; font-size: 14px; }
  .header-actions { gap: 18px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-of-type(even) .media-wrap { order: 0; }
  /* Su telefono la linea corre a sinistra, come nell'app */
  .journey { padding-left: calc(var(--gutter) + 26px); }
  .rail { left: calc(var(--gutter) + 9px); }
  .feature:nth-of-type(odd) .media-wrap::after, .feature:nth-of-type(even) .media-wrap::after { left: auto; right: 100%; width: 18px; border-right-width: 0; border-left-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 0; border-bottom-left-radius: 12px; }
  .media { border-radius: 28px; }
  .site-footer { flex-wrap: wrap; }
  .site-footer > span { width: 100%; }
}
@media (max-width: 540px) {
  .site-header .primary-nav { display: none; }
  .header-actions { gap: 12px; }
}
@media (max-width: 420px) {
  .phone { padding: 7px; border-radius: 40px; }
  .phone img { border-radius: 34px; }
}
