/* ─── DepositSafe landing ──────────────────────────────────
   Usato anche dalle pagine legali (/legal/*), che aggiungono legal/legal.css.
   Direzione: "Two sides, one account". Fotografia vera, tipografia Schibsted Grotesk,
   blocchi pieni in malva del marchio, racconto a stati del contratto (sticky stack).
   Dial: variance 7, motion 6, density 4.
   Regola dei raggi: immagini e pannelli 20px, controlli e badge a pillola. */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  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: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('assets/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  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: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
}
/* Sottoinsieme: contiene solo le icone usate dalla landing e dalle pagine legali (account_balance, add,
   arrow_back, arrow_forward, balance, bolt, close, edit_note, enhanced_encryption, fingerprint, gavel,
   history, lock, menu, person, schedule, task_alt). Per un'icona nuova va rigenerato dal font completo
   (nella storia git, commit 03a3763) tenendo la feature rlig. */
@font-face {
  font-family: 'Material Icons Round';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('assets/fonts/material-icons-round.woff2') format('woff2');
}
.ic {
  font-family: 'Material Icons Round';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga';
}
/* Il nome dell'icona sta in data-ic e non nel testo: non finisce nel testo dei link, nelle domande
   delle FAQ o in ciò che leggono motori di ricerca e assistenti. */
.ic::before { content: attr(data-ic); }

/* ─── Tokens ───────────────────────────────────────────── */
:root {
  color-scheme: light dark;

  --bg:        #f0f0ef;
  --surface:   #fafafa;
  --surface-2: #e6e5e7;
  --line:      #d6d5d9;

  --ink-1: #141216;
  --ink-2: #48444d;
  --ink-3: #625d68;

  /* Il malva del marchio è lo stesso nei due temi: i blocchi pieni non si invertono. */
  --mauve:       #6e5878;
  --mauve-deep:  #5b4865;
  --on-mauve:    #f7f4f8;
  --on-mauve-2:  #e4dbe8;
  --accent-ink:  #6e5878;

  --st-secured:   #0f766e;
  --st-completed: #15803d;
  --st-pending:   #a16207;

  --shadow: 0 1px 0 rgba(20, 18, 22, 0.04), 0 24px 48px -24px rgba(58, 40, 70, 0.28);

  --r-panel: 20px;
  --r-pill: 999px;

  --font: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #121113;
    --surface:   #1a181c;
    --surface-2: #232026;
    --line:      #302c34;

    --ink-1: #efedf0;
    --ink-2: #b0abb5;
    --ink-3: #928d98;

    --accent-ink: #c4b1cc;

    --st-secured:   #5eead4;
    --st-completed: #4ade80;
    --st-pending:   #fbbf24;

    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 24px 48px -24px rgba(0, 0, 0, 0.8);
  }
}

/* ─── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 650; }
:focus-visible { outline: 2px solid var(--mauve); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--mauve); color: var(--on-mauve); padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
section[id] { scroll-margin-top: 88px; }

.h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.lead { font-size: 1.0625rem; color: var(--ink-2); max-width: 54ch; margin-top: 16px; }

/* ─── Buttons (pillola) ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 15px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease), border-color 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn .ic { font-size: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }

.btn-mauve { background: var(--mauve); color: var(--on-mauve); }
.btn-mauve:hover { background: var(--mauve-deep); }
.btn-line { border-color: var(--line); color: var(--ink-1); }
.btn-line:hover { background: var(--surface-2); }
.btn-light { background: var(--on-mauve); color: var(--mauve-deep); }
.btn-light:hover { background: #ffffffe6; }

/* TEMPORARY · pre-launch waiting list. When data-mode="waitlist" the "Get started" CTAs are
   hidden and the "Join waiting list" ones shown. Remove this block with the .cta-waitlist markup
   and the window.__WAITLIST__ script after launch. */
.cta-waitlist { display: none; }
html[data-mode="waitlist"] .cta-live { display: none; }
html[data-mode="waitlist"] .cta-waitlist { display: inline-flex; }

/* Copy that swaps between normal and waiting-list wording (revert restores the element's natural display). */
.copy-waitlist { display: none; }
html[data-mode="waitlist"] .copy-live { display: none; }
html[data-mode="waitlist"] .copy-waitlist { display: revert; }

/* Company registration data (legal name / CRO / registered office): hidden until launch. */
html[data-mode="waitlist"] .company-data { display: none; }
/* Unverified social profiles and the (not-yet-final) About page links: hidden until launch too. */
html[data-mode="waitlist"] .company-social { display: none; }
html[data-mode="waitlist"] .nav-about { display: none; }

.wl-dialog {
  position: fixed; inset: 0; margin: auto;
  width: fit-content; height: fit-content; max-width: 92vw; max-height: 92vh;
  border: none; padding: 0; background: transparent;
}
.wl-dialog::backdrop { background: rgba(10, 9, 12, 0.6); }
.wl-card {
  position: relative; width: min(92vw, 420px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.wl-close {
  position: absolute; top: 12px; right: 12px; padding: 6px; line-height: 0;
  background: transparent; border: none; border-radius: 8px; color: var(--ink-3); cursor: pointer;
}
.wl-close:hover { color: var(--ink-1); background: var(--surface-2); }
.wl-heading { font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--ink-1); }
.wl-sub { color: var(--ink-2); margin: 0 0 22px; font-size: 0.95rem; line-height: 1.5; }
.wl-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.wl-input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit;
  background: var(--bg); color: var(--ink-1); border: 1px solid var(--line); border-radius: 8px;
}
.wl-input:focus { outline: none; border-color: var(--mauve); box-shadow: 0 0 0 3px rgba(110, 88, 120, 0.2); }
.wl-error { color: #c0492a; font-size: 0.85rem; margin: 10px 0 0; }
.wl-submit { width: 100%; justify-content: center; margin-top: 16px; }
.wl-submit:disabled { opacity: 0.6; cursor: default; }
.btn-sm { padding: 10px 16px; font-size: 0.875rem; }

/* ─── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50; /* scala z: 50 nav, 49 menu mobile */
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.nav-row { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.025em; }
.logo img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; margin-right: auto; }
.nav-links a { font-size: 0.9375rem; color: var(--ink-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink-1); }
.nav-end { display: flex; align-items: center; gap: 20px; }
.nav-end > a:first-child { font-size: 0.9375rem; color: var(--ink-2); }
.nav-end > a:first-child:hover { color: var(--ink-1); }

.burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-1);
  cursor: pointer;
  place-items: center;
}
.burger .ic-close { display: none; }
.burger[aria-expanded="true"] .ic-open { display: none; }
.burger[aria-expanded="true"] .ic-close { display: inline-block; }

.sheet {
  position: fixed;
  inset: 72px 0 auto;
  z-index: 49;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 24px;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
.sheet.open { display: flex; }
.sheet a:not(.btn) { padding: 14px 4px; font-size: 1.125rem; font-weight: 500; }
.sheet .btn { margin-top: 12px; justify-content: center; }

/* ─── Hero ─────────────────────────────────────────────── */
.hero { padding: 80px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { padding-bottom: 0; }
.hero-kicker { font-size: 0.9375rem; font-weight: 500; color: var(--accent-ink); margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(2.75rem, 5.4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; }
.hero-sub { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin: 20px 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Anteprima del contratto nell'hero: lo stesso oggetto "deposito in escrow" che l'utente vedra'
   nell'app. E' una superficie reale, quindi qui la card (con ombra) e' legittima: mostra il
   meccanismo invece di descriverlo. */
.hero-panel { justify-self: end; width: 100%; max-width: 460px; }
.hero-panel .contract { max-width: none; justify-self: stretch; box-shadow: var(--shadow); }
.hero-panel-note {
  margin: 16px 2px 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 42ch;
}

/* Esplicatore "come funziona" a colpo d'occhio: sequenza numerata orizzontale con hairline,
   stesso trattamento della sezione escrow (nessuna card, i numeri reggono la sequenza reale). */
.hero-flow {
  list-style: none;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 40px;
}
.hero-flow-step { display: grid; gap: 8px; align-content: start; }
.hero-flow-n {
  font-family: var(--mono);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.hero-flow-t {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink-1);
}
.hero-flow-d {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 34ch;
}

.hero-photo {
  position: relative;
  border-radius: var(--r-panel);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  max-height: calc(100dvh - 168px);
  min-height: 420px;
  width: 100%;
  background: var(--surface-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Facts: quattro numeri veri ───────────────────────── */
.facts { padding: 40px 0 112px; }
.facts-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--ink-1);
  padding-top: 28px;
}
.fact-value { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.05; }
.fact-label { font-size: 0.9375rem; color: var(--ink-2); margin-top: 8px; max-width: 26ch; }

/* ─── How it works: sticky stack con stati del contratto ── */
.how { padding-bottom: 96px; }
.how-head { margin-bottom: 48px; }
.stack { display: grid; gap: 24px; }
.stack-card {
  position: sticky;
  top: 104px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 420px;
  padding: 48px;
  border-radius: var(--r-panel);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform-origin: 50% 0;
}
.stack-card:nth-child(2) { top: 120px; }
.stack-card:nth-child(3) { top: 136px; background: var(--mauve); border-color: var(--mauve); color: var(--on-mauve); }
.stack-card:nth-child(3) .step-desc { color: var(--on-mauve-2); }

.step-n { font-family: var(--mono); font-size: 0.875rem; color: var(--ink-3); }
.stack-card:nth-child(3) .step-n { color: var(--on-mauve-2); }
.step-title { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.05; margin: 12px 0 16px; }
.step-desc { font-size: 1.0625rem; color: var(--ink-2); max-width: 42ch; }

/* Il contratto, nello stato di quel passo */
.contract {
  background: var(--bg);
  color: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 24px;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}
.contract-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.contract-addr { font-weight: 600; letter-spacing: -0.01em; }
.contract-city { font-size: 0.8125rem; color: var(--ink-3); }
.contract-amt { font-size: 2.5rem; font-weight: 650; letter-spacing: -0.035em; margin: 28px 0 4px; line-height: 1; }
.contract-note { font-size: 0.875rem; color: var(--ink-2); }
.contract-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.contract-foot .mono { font-family: var(--mono); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 5px 9px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge .ic { font-size: 14px; }
.badge-pending   { color: var(--st-pending);   background: color-mix(in srgb, var(--st-pending) 14%, transparent); }
.badge-secured   { color: var(--st-secured);   background: color-mix(in srgb, var(--st-secured) 14%, transparent); }
.badge-completed { color: var(--st-completed); background: color-mix(in srgb, var(--st-completed) 14%, transparent); }

/* ─── Features bento: 4 colonne, 6 celle ───────────────── */
.features { padding: 96px 0; }
.features .h2 { margin-bottom: 48px; max-width: 16ch; }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  grid-template-areas:
  "escrow escrow escrow kyc"
  "trail  cashback dispute kyc"
  "trail  payments dispute irish";
  gap: 16px;
}
.cell {
  position: relative;
  border-radius: var(--r-panel);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.cell h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
.cell p { font-size: 0.9375rem; color: var(--ink-2); max-width: 48ch; }
.cell > .ic { font-size: 22px; color: var(--accent-ink); }

.c-escrow { grid-area: escrow; background: var(--mauve); border-color: var(--mauve); color: var(--on-mauve); justify-content: space-between; gap: 32px; }
.c-escrow p { color: var(--on-mauve-2); }
.c-escrow > .ic { color: var(--on-mauve); }
.c-kyc { grid-area: kyc; padding: 0; }
.c-kyc .cell-photo { flex: 1; min-height: 220px; height: 0; }
.c-kyc .cell-body { padding: 24px 28px 28px; display: grid; gap: 10px; }
.c-trail { grid-area: trail; }
.c-cashback { grid-area: cashback; }
.c-dispute { grid-area: dispute; color: #f7f4f8; border: 0; justify-content: flex-end; min-height: 280px; }
.c-dispute p { color: #e8e4ea; }
.c-dispute > .ic { color: #f7f4f8; }
.c-payments { grid-area: payments; }
.c-irish { grid-area: irish; background: var(--surface-2); }

.cell-photo { width: 100%; object-fit: cover; }
.c-dispute .cell-photo { position: absolute; inset: 0; height: 100%; z-index: -2; }
/* Scrim per tenere il testo leggibile sopra la foto. */
.c-dispute { isolation: isolate; }
.c-dispute::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 12, 16, 0.1) 0%, rgba(14, 12, 16, 0.82) 70%);
}

.flowline { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 14px; }
.flowline .who { display: grid; justify-items: center; gap: 8px; font-size: 0.875rem; color: var(--on-mauve-2); }
.flowline .dot {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--on-mauve) 40%, transparent);
}
.flowline .who--vault { color: var(--on-mauve); font-weight: 600; }
.flowline .who--vault .dot { background: var(--on-mauve); color: var(--mauve-deep); border-color: var(--on-mauve); }
.flowline .bar { height: 1px; background: color-mix(in srgb, var(--on-mauve) 40%, transparent); margin-bottom: 28px; }

.trail-list { margin-top: auto; padding-top: 16px; display: grid; gap: 14px; }
.trail-list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; font-size: 0.875rem; }
.trail-list .mono { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); }

/* ─── Testimonials: una citazione alla volta ───────────── */
.voices { padding: 96px 0; }
.voices-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.quote-stage { min-height: 260px; }
.quote-panel .pitch {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 28ch;
}
.quote-panel .pitch-note { margin-top: 24px; font-size: 0.9375rem; color: var(--ink-2); }
.quote-panel[hidden] { display: none; }

.voice-tabs { display: grid; gap: 8px; margin-top: 40px; }
.voice-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 18px 10px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.voice-tab:hover { color: var(--ink-1); }
.voice-tab[aria-selected="true"] { background: var(--surface); color: var(--ink-1); border-color: var(--ink-3); }
.voice-tab .ini {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.75rem; font-weight: 700;
  background: var(--surface-2);
  color: var(--ink-1);
}
.voice-tab[aria-selected="true"] .ini { background: var(--mauve); color: var(--on-mauve); }
.voice-tab .nm { font-weight: 600; font-size: 0.9375rem; }
.voice-tab .rl { font-size: 0.8125rem; color: var(--ink-3); margin-left: auto; }

/* ─── Security: foto a metà + elenco ───────────────────── */
.security { padding: 96px 0; }
.security-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.security-photo {
  position: sticky;
  top: 104px;
  border-radius: var(--r-panel);
  overflow: hidden;
  aspect-ratio: 11 / 14;
  background: var(--surface-2);
}
.security-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; margin-top: 48px; }
.sec-item .ic { font-size: 22px; color: var(--accent-ink); }
.sec-item h3 { font-size: 1.0625rem; letter-spacing: -0.015em; margin: 12px 0 6px; }
.sec-item p { font-size: 0.9375rem; color: var(--ink-2); }

.escrow-steps {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.escrow-steps li { display: grid; gap: 6px; align-content: start; }
.escrow-steps .k { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3); }
.escrow-steps .t { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.escrow-steps .d { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.5; }
.escrow-steps li:last-child .k { color: var(--accent-ink); }

/* ─── FAQ: colonna stretta spostata a destra ───────────── */
.faq { padding: 96px 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 32px; }
.faq-grid .h2 { grid-column: 1 / -1; margin-bottom: 40px; max-width: 14ch; }
.faq-list { grid-column: 2; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic {
  flex-shrink: 0;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  transition: transform 0.35s var(--ease), background-color 0.25s;
}
.qa[open] summary .ic { transform: rotate(45deg); background: var(--mauve); color: var(--on-mauve); }
.qa .ans { padding: 0 60px 28px 0; color: var(--ink-2); max-width: 65ch; }
.qa .ans strong { color: var(--ink-1); }
.qa .ans a, .foot-bottom a { color: var(--ink-1); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.qa .ans a:hover, .foot-bottom a:hover { text-decoration-color: currentColor; }

/* ─── CTA: blocco malva ────────────────────────────────── */
.cta { padding: 32px 0 112px; }
.cta-block {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  background: var(--mauve);
  color: var(--on-mauve);
  border-radius: var(--r-panel);
  padding: clamp(40px, 6vw, 80px);
}
.cta-block h2 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.045em; max-width: 14ch; }
.cta-block p { color: var(--on-mauve-2); margin-top: 18px; font-size: 1.0625rem; }

/* ─── Footer ───────────────────────────────────────────── */
.foot { padding: 0 0 40px; }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.foot-grid p { color: var(--ink-2); font-size: 0.9375rem; max-width: 34ch; margin-top: 14px; }
.foot h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 14px; }
.foot ul { display: grid; gap: 10px; }
.foot ul a { color: var(--ink-2); font-size: 0.9375rem; }
.foot ul a:hover { color: var(--ink-1); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8125rem; color: var(--ink-3); }

/* ─── Motion ───────────────────────────────────────────────
   - Hero: le righe del titolo salgono in sequenza, la foto entra con una lieve scala
     (gerarchia: prima il messaggio, poi l'immagine).
   - Sticky stack: la carta precedente si ritrae mentre arriva la successiva, così lo stato
     del contratto "cambia" sotto gli occhi (CSS scroll-driven, solo dove supportato).
   - Reveal allo scroll con IntersectionObserver; feedback su bottoni e tab.
   Tutto spento con prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .line > span { transform: translateY(105%); animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
  .js .hero-sub, .js .hero-cta, .js .hero-kicker { opacity: 0; animation: fade 0.8s var(--ease) forwards; }
  .js .hero-kicker { animation-delay: 0.05s; }
  .js .hero-sub { animation-delay: 0.35s; }
  .js .hero-cta { animation-delay: 0.45s; }
  .js .hero-panel { opacity: 0; animation: fade 0.8s var(--ease) 0.55s forwards; }
  .js .hero-flow { opacity: 0; animation: fade 0.8s var(--ease) 0.7s forwards; }
  /* Solo scala, niente opacità: la foto è l'elemento LCP e deve essere dipinta subito. */
  .js .hero-photo img { transform: scale(1.08); animation: settle 1.4s var(--ease) 0.15s forwards; }

  @keyframes rise { to { transform: none; } }
  @keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes settle { to { transform: none; } }

  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; }

  .quote-panel:not([hidden]) { animation: fade 0.5s var(--ease); }

  @supports (animation-timeline: view()) {
    .stack-card:not(:last-child) {
      animation: recede linear both;
      animation-timeline: view();
      animation-range: exit -10% exit 60%;
    }
    @keyframes recede { to { transform: scale(0.92); filter: brightness(0.9); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ─── Responsive ───────────────────────────────────────────
   Breakpoint: 1080 (tablet orizzontale), 900 (tablet), 767 (telefono), 420 (telefono stretto),
   più un caso per gli schermi bassi (telefono in orizzontale). Ogni griglia ha la sua
   versione a una colonna qui sotto. */

/* Gli elementi di griglia non devono mai allargare la pagina oltre lo schermo. */
.hero-grid > *, .facts-grid > *, .stack-card > *, .bento > *, .voices-grid > *,
.security-grid > *, .sec-list > *, .escrow-steps > *, .faq-grid > *, .cta-block > *, .foot-grid > * { min-width: 0; }
h1, h2, h3, .pitch, .contract-addr { overflow-wrap: break-word; }

@media (max-width: 1080px) {
  .wrap { padding: 0 24px; }
  .hero-grid { gap: 40px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stack-card { padding: 40px; gap: 32px; }
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
  "escrow escrow"
  "kyc trail"
  "cashback payments"
  "dispute dispute"
  "irish irish";
  }
  .voices-grid, .security-grid { gap: 48px; }
  .escrow-steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-end { display: none; }
  .burger { display: grid; }
  .nav-row { height: 64px; }
  .sheet { inset: 64px 0 auto; max-height: calc(100dvh - 64px); overflow-y: auto; }

  .hero { padding: 88px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { padding-bottom: 0; }
  .hero-sub { max-width: 52ch; }
  .hero-panel { justify-self: start; max-width: 480px; }
  .hero-flow { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; padding-top: 24px; }
  .hero-flow-n { font-size: 1.125rem; }
  .hero-photo { aspect-ratio: 16 / 10; max-height: 56dvh; min-height: 0; }

  .facts { padding: 32px 0 80px; }

  .stack-card { grid-template-columns: 1fr; min-height: 0; }
  .contract { justify-self: start; max-width: 480px; }

  .features, .voices, .security, .faq { padding: 80px 0; }
  .voices-grid, .security-grid { grid-template-columns: 1fr; gap: 40px; }
  .quote-stage { min-height: 0; }
  .voice-tabs { margin-top: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .voice-tab .rl { display: none; }
  .voice-tab .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .security-photo { position: relative; top: 0; aspect-ratio: 21 / 9; }

  .faq-grid { display: block; }
  .faq-grid .h2 { max-width: none; }

  .cta { padding: 16px 0 80px; }
  .cta-block { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: clamp(2.25rem, 10.5vw, 3.25rem); letter-spacing: -0.045em; line-height: 1.04; }
  .hero-sub { font-size: 1.0625rem; margin: 20px 0 28px; }
  .hero-kicker { margin-bottom: 18px; font-size: 0.875rem; }
  .hero-photo { aspect-ratio: 4 / 3; }

  .facts-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .fact-value { font-size: 1.5rem; }
  .fact-label { font-size: 0.875rem; }

  .h2 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .how-head { margin-bottom: 32px; }
  .stack { gap: 16px; }
  .stack-card, .stack-card:nth-child(2), .stack-card:nth-child(3) { position: relative; top: 0; padding: 24px; gap: 24px; }
  .step-desc { font-size: 1rem; }
  .contract { padding: 20px; }
  .contract-amt { font-size: 2rem; margin-top: 20px; }
  .contract-foot { flex-wrap: wrap; gap: 4px 12px; }

  .features, .voices, .security, .faq { padding: 64px 0; }
  .features .h2 { margin-bottom: 32px; }
.bento {
  grid-template-columns: 1fr;
  grid-template-areas:
    "escrow"
    "kyc"
    "trail"
    "cashback"
    "dispute"
    "payments"
    "irish";
}
  .c-kyc .cell-photo { flex: none; height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .c-dispute { min-height: 320px; }
  .cell { padding: 24px; }
  .c-kyc { padding: 0; }
  .c-kyc .cell-body { padding: 20px 24px 24px; }

  .voice-tabs { grid-template-columns: 1fr; }
  .quote-panel .pitch { font-size: 1.375rem; }

  .security-photo { aspect-ratio: 16 / 9; }
  .sec-list { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .escrow-steps { grid-template-columns: 1fr 1fr; margin-top: 40px; }

  .qa summary { font-size: 1rem; padding: 20px 0; gap: 16px; }
  .qa .ans { padding-right: 0; font-size: 0.9375rem; }

  .cta { padding-bottom: 64px; }
  .cta-block { padding: 32px 24px; }
  .cta-block h2 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .foot-grid { padding: 40px 0; gap: 32px; }
}

@media (max-width: 420px) {
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .cta-block .btn { width: 100%; justify-content: center; }
  .facts-grid { grid-template-columns: 1fr; }
  .escrow-steps { grid-template-columns: 1fr; gap: 20px; }
  .flowline { gap: 8px; }
  .flowline .dot { width: 40px; height: 40px; }
}

/* Schermi bassi (telefono in orizzontale, finestre basse): niente carte fisse,
   hero di nuovo a due colonne con la foto contenuta. */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding: 80px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; align-items: center; }
  .hero-photo { aspect-ratio: auto; height: calc(100dvh - 112px); max-height: none; min-height: 240px; }
  .hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
  .hero-sub { margin: 16px 0 20px; }
  .stack-card, .stack-card:nth-child(2), .stack-card:nth-child(3) { position: relative; top: 0; }
  .security-photo { position: relative; top: 0; }
  .faq-grid .h2 { position: static; }
}



