/* The Dock — landing. Marchio Swap. */
:root {
  --bg: #0a0a0c;
  --surface: #151518;
  --surface-2: #1d1d22;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --blue: #5b6cff;
  --violet: #8e5bf0;
  --pink: #e85fa0;
  --grad: linear-gradient(100deg, #7c8aff 0%, #a97bff 50%, #f07bb2 100%);
  --s: 56px;            /* lato di un'icona del Dock dimostrativo */
  --wrap: 1080px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.swap-landing {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.swap-landing h1, .swap-landing h2, .swap-landing h3, .swap-landing p, .swap-landing ul { margin: 0; padding: 0; }
.swap-landing a { color: inherit; }
.swap-landing svg { fill: currentColor; display: block; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.swap-landing :focus-visible { outline: 2px solid #9aa5ff; outline-offset: 3px; border-radius: 8px; }

/* ---------- Barra di navigazione ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; gap: 28px; }
.nav-id { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav-brand { display: flex; align-items: center; text-decoration: none; }
.nav-prod { text-decoration: none; }
.nav-prod:hover { color: var(--text); }
.nav-brand img { display: block; height: 26px; width: auto; }
.nav-prod { font-weight: 500; font-size: 0.9375rem; color: var(--text-2); padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.22); line-height: 1.2; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 0.8125rem; color: var(--text-2); text-decoration: none; padding: 8px 0; transition: color 150ms ease; }
.nav-links a:hover { color: var(--text); }
.lang { font-size: 0.8125rem; font-weight: 600; color: var(--text-2) !important; text-decoration: none; padding: 6px 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); margin-left: -8px; }
.lang:hover { color: var(--text) !important; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  background: var(--text); color: #0a0a0c !important;
  border-radius: 999px; font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  transition: transform 120ms ease-out, background 150ms ease;
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 32px; padding: 0 16px; font-size: 0.8125rem; }
.link { color: #9aa5ff !important; text-decoration: none; font-size: 1.0625rem; padding: 12px 4px; }
.link:hover { text-decoration: underline; }

/* ---------- Tipografia ---------- */
.eyebrow { font-size: 1.0625rem; font-weight: 600; color: var(--text-2); letter-spacing: 0; margin-bottom: 14px !important; }
.display { font-size: clamp(3.5rem, 12vw, 8rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; }
.display.sm { font-size: clamp(3rem, 9vw, 6rem); }
.headline { font-size: clamp(2.125rem, 5.4vw, 4rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.headline .dim { color: var(--text-2); }
.hero-tag { font-size: clamp(1.5rem, 3.6vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin-top: 10px !important; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.125rem, 1.9vw, 1.375rem); line-height: 1.45; color: var(--text-2); max-width: 44ch; margin-top: 22px !important; text-wrap: pretty; }
.lead.small { font-size: 1.0625rem; }
.fine { font-size: 0.8125rem; color: var(--text-2); margin-top: 18px !important; }
.price:not(:empty)::after { content: " · "; }

/* ---------- Sezioni ---------- */
.swap-landing section { padding: clamp(84px, 13vw, 168px) 22px; }
.swap-landing section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

.hero { text-align: center; padding-top: clamp(56px, 9vw, 110px) !important; padding-bottom: 40px !important; }
.hero-cta { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px !important; }

/* ---------- Palco con il Dock dimostrativo ---------- */
.hero-lead { margin-left: auto !important; margin-right: auto !important; max-width: 54ch; margin-top: 18px !important; }
.stage {
  --s: 52px;
  position: relative;
  margin-top: clamp(40px, 6vw, 72px) !important;
  max-width: 1240px !important;
  height: clamp(430px, 42vw, 520px);
  border-radius: 34px;
  background:
    radial-gradient(60% 90% at 22% 100%, rgba(91, 108, 255, 0.50), transparent 70%),
    radial-gradient(55% 85% at 78% 100%, rgba(232, 95, 160, 0.38), transparent 70%),
    radial-gradient(50% 70% at 50% 110%, rgba(142, 91, 240, 0.60), transparent 70%),
    #111116;
  border: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 20px;
  overflow: hidden;
  text-align: left;
}
.stage-hint { position: absolute; top: 20px; left: 16px; right: 16px; text-align: center; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.66); transition: opacity 300ms ease; margin: 0; }
.stage.touched .stage-hint { opacity: 0; }
.h-touch { display: none; }
@media (hover: none) { .h-mouse { display: none; } .h-touch { display: inline; } }
.stage-note { margin-top: 14px !important; }

/* Il Dock: stesso disegno dell'app. Tutte le misure seguono --s, così si adatta alla larghezza. */
.dock { position: relative; display: flex; align-items: center; gap: calc(var(--s) * 0.11); padding: calc(var(--s) * 0.13) calc(var(--s) * 0.19); font-size: calc(var(--s) * 0.25); touch-action: pan-y; }
.dock-bar {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  border-radius: calc(var(--s) * 0.42);
  background: rgba(20, 20, 24, 0.66);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.dock-item { position: relative; flex: none; height: var(--s); transform-origin: 50% 100%; will-change: transform; display: flex; align-items: center; justify-content: center; color: #fff; }
.app { width: var(--s); }
.app img { width: 100%; height: 100%; display: block; -webkit-user-drag: none; user-select: none; }
.app.run::after { content: ""; position: absolute; left: 50%; bottom: calc(var(--s) * -0.09); width: calc(var(--s) * 0.075); height: calc(var(--s) * 0.075); margin-left: calc(var(--s) * -0.0375); border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.calico { width: 81%; height: 81%; border-radius: 22.5%; background: #fff; color: #1d1d1f; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.cal-d { font-size: calc(var(--s) * 0.17); font-weight: 700; color: #e0352b; letter-spacing: 0.03em; }
.cal-n { font-size: calc(var(--s) * 0.42); font-weight: 400; letter-spacing: -0.03em; margin-top: 0.06em; }
.dock-sep { position: relative; flex: none; width: 1px; height: calc(var(--s) * 0.74); margin: 0 calc(var(--s) * 0.06); background: rgba(255, 255, 255, 0.22); will-change: transform; }

.swap-landing .gl { width: 1.55em; height: 1.55em; flex: none; display: block; }
.swap-landing svg.gl[fill="none"] { fill: none; }
.pill {
  appearance: none; -webkit-appearance: none; font: inherit; margin: 0; cursor: pointer; text-align: left;
  height: calc(var(--s) * 0.9); padding: 0 1em 0 0.85em; gap: 0.7em;
  border-radius: calc(var(--s) * 0.27);
  background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.10);
  transition: background-color 150ms ease, border-color 150ms ease;
}
.pill:hover { background: rgba(255, 255, 255, 0.15); }
.pill.open { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.26); }
.pt { display: flex; flex-direction: column; line-height: 1.22; white-space: nowrap; }
.pt b { font-size: 1em; font-weight: 600; font-variant-numeric: tabular-nums; }
.pt small { font-size: 0.85em; color: rgba(255, 255, 255, 0.66); }
.pill-c { flex-direction: column; gap: 0.18em; padding: 0 0.6em; min-width: calc(var(--s) * 1.02); justify-content: center; }
.pill-c .gl { width: 1.4em; height: 1.4em; }
.pill-c .pt { align-items: center; }
.tglyph { color: #ff9f0a; display: flex; }
.tglyph .gl + .gl { display: none; }
.paused .tglyph .gl { display: none; }
.paused .tglyph .gl + .gl { display: block; }

.dock-tip {
  position: absolute; left: 0; bottom: calc(100% + 8px);
  padding: 5px 12px; border-radius: 9px;
  background: rgba(44, 44, 50, 0.94); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8125rem; font-weight: 500; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 120ms ease;
}
.dock-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: rgba(44, 44, 50, 0.94); }
.dock-tip.on { opacity: 1; }

/* Schede dei widget: compaiono sopra la pillola che le apre, come nell'app. */
.dcard {
  position: absolute; left: 0; bottom: calc(var(--s) * 1.26 + 34px);
  width: min(300px, calc(100% - 24px));
  background: rgba(28, 28, 34, 0.80);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  backdrop-filter: blur(34px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px; padding: 15px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  font-size: 0.875rem; display: grid; gap: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(14px) scale(0.92); filter: blur(8px);
  transform-origin: var(--ox, 50%) 100%;
  transition: opacity 180ms ease, transform 280ms var(--ease), filter 220ms ease, visibility 0s linear 280ms;
}
.dcard.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; filter: none; transition: opacity 200ms ease, transform 340ms var(--ease), filter 260ms ease, visibility 0s; }
.dc-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9375rem; }
.dc-head .gl { width: 18px; height: 18px; }
.dc-text { color: var(--text-2); line-height: 1.45; }
.dc-big { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.dc-sub { font-size: 0.75rem; color: var(--text-2); margin-top: 2px !important; }
.dc-chips { font-size: 0.8125rem; }
.dc-row { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.dc-row span:first-child { color: var(--text-2); }
.dc-foot { display: flex; flex-wrap: wrap; gap: 7px; }
.dimtxt { color: var(--text-2); }
.dcard-calc { width: min(236px, calc(100% - 24px)); }
.calc-out { display: block; text-align: right; font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; padding: 2px 6px 4px; overflow: hidden; white-space: nowrap; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.calc-keys button { appearance: none; -webkit-appearance: none; border: 0; font: inherit; font-size: 1.0625rem; font-weight: 500; color: #fff; height: 44px; border-radius: 22px; background: rgba(255, 255, 255, 0.11); cursor: pointer; transition: background-color 120ms ease, transform 100ms ease-out; }
.calc-keys button:hover { background: rgba(255, 255, 255, 0.19); }
.calc-keys button:active { transform: scale(0.94); }
.calc-keys button:nth-child(4n) { background: #ff9f0a; color: #1d1d1f; }
.calc-keys button:nth-child(4n):hover { background: #ffb340; }

/* ---------- Frase d'apertura ---------- */
.statement { text-align: center; }
.statement .lead { max-width: 60ch; margin-left: auto !important; margin-right: auto !important; }

/* ---------- Funzioni con illustrazione ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; max-width: calc(var(--wrap) + 44px); margin: 0 auto; }
.feature > * { max-width: none !important; margin: 0 !important; }
.feature.flip .feature-art { order: -1; }
.points { list-style: none; margin-top: 30px !important; display: grid; gap: 16px; }
.points li { color: var(--text-2); font-size: 1.0625rem; padding-left: 18px; border-left: 2px solid var(--line); }
.points strong { color: var(--text); font-weight: 600; }

.feature-art { display: flex; justify-content: center; }
.panel {
  width: min(100%, 400px);
  background: rgba(29, 29, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px; padding: 18px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  font-size: 0.9375rem; display: grid; gap: 12px;
}
.feature-art { position: relative; }
.feature-art::before { content: ""; position: absolute; inset: 8% 6%; background: radial-gradient(closest-side, rgba(142, 91, 240, 0.32), transparent); filter: blur(30px); z-index: -1; }
.panel-head { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.panel-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.kbd { margin-left: auto; font-size: 0.75rem; color: var(--text-2); font-weight: 500; border: 1px solid var(--line); border-radius: 7px; padding: 2px 7px; }
.chips { display: flex; gap: 6px; }
.chip { font-size: 0.75rem; color: var(--text-2); background: rgba(255, 255, 255, 0.07); border-radius: 999px; padding: 4px 10px; }
.quote { color: var(--text-2); font-size: 0.875rem; line-height: 1.45; border-left: 2px solid rgba(255, 255, 255, 0.18); padding-left: 10px; }
.actions, .panel-foot { display: flex; flex-wrap: wrap; gap: 7px; }
.act { font-size: 0.8125rem; font-weight: 500; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--text); }
.act.on { background: rgba(255, 255, 255, 0.20); }
.act.solid { background: var(--text); color: #0a0a0c; font-weight: 600; }
.answer { background: rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 12px 13px; line-height: 1.45; }
.answer-tag { display: block; font-size: 0.75rem; color: var(--text-2); margin-bottom: 4px; }
.field { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.field-l { color: var(--text-2); font-size: 0.8125rem; min-width: 54px; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: #9aa5ff; margin-left: 1px; vertical-align: -0.16em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.suggest { display: grid; gap: 2px; margin: -4px 0 0; }
.sug { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; line-height: 1.3; }
.sug.on { background: rgba(91, 108, 255, 0.30); }
.sug b { font-weight: 600; }
.sug small { color: var(--text-2); font-size: 0.75rem; }
.sug.on small { color: #d5d9ff; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: grid; place-items: center; font-size: 0.75rem; font-weight: 600; flex: none; }

/* ---------- A confronto ---------- */
.compare { display: grid; gap: 16px; margin-top: clamp(40px, 6vw, 70px) !important; max-width: 1080px !important; }
.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; justify-items: center; overflow: hidden; }
.cmp-main { background: radial-gradient(70% 120% at 50% 120%, rgba(142, 91, 240, 0.28), transparent 70%), var(--surface-2); border-color: rgba(255, 255, 255, 0.22); }
.cmp-l { display: flex; flex-direction: column; gap: 3px; }
.cmp-l b { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.cmp-l span { color: var(--text-2); font-size: 0.9375rem; }
.mdock { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.5em 0.65em; border-radius: 1.25em; background: rgba(12, 12, 15, 0.85); border: 1px solid rgba(255, 255, 255, 0.13); font-size: clamp(5.2px, 1.36vw, 13px); max-width: 100%; }
.mdock img { width: 3.3em; height: 3.3em; display: block; flex: none; }
.msep { width: 1px; height: 2.4em; background: rgba(255, 255, 255, 0.22); margin: 0 0.2em; flex: none; }
.mpill { display: flex; align-items: center; gap: 0.6em; height: 3em; padding: 0 0.85em; border-radius: 0.9em; background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.10); flex: none; }
.mpill .gl { width: 1.45em; height: 1.45em; }
.mpill-c { flex-direction: column; gap: 0.1em; justify-content: center; padding: 0 0.6em; }
.mpill-c .pt { align-items: center; }

/* ---------- Widget ---------- */
.widgets { text-align: center; }
.widgets .lead { margin-left: auto !important; margin-right: auto !important; max-width: 52ch; }
.i-inline { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; font-size: 0.8em; font-weight: 600; font-style: normal; vertical-align: 0.05em; }
.wgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 6vw, 72px) !important; text-align: left; }
.wcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px 20px; display: flex; flex-direction: column; }
.wart { height: 96px; display: grid; place-items: center; margin-bottom: 14px; font-size: 14px; }
.wface { display: inline-flex; align-items: center; gap: 0.7em; min-height: 3.6em; padding: 0 1.1em 0 0.95em; border-radius: 1em; background: var(--surface-2); border: 1px solid rgba(255, 255, 255, 0.10); max-width: 100%; }
.wface .pt b, .wface .pt small { overflow: hidden; text-overflow: ellipsis; }
.wface-c { flex-direction: column; gap: 0.2em; justify-content: center; padding: 0 0.9em; min-width: 4.4em; }
.wface-c .pt { align-items: center; }
.wcard h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; padding-right: 8px; }
.wcard p { color: var(--text-2); font-size: 0.875rem; line-height: 1.4; margin-top: 4px; }
.winfo { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: grid; place-items: center; appearance: none; -webkit-appearance: none; border: 0; background: none; color: var(--text-2); border-radius: 50%; cursor: pointer; transition: color 150ms ease, background-color 150ms ease, transform 100ms ease-out; }
.winfo .gl { width: 22px; height: 22px; }
.winfo:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.winfo:active { transform: scale(0.92); }

.wdialog { width: min(440px, calc(100vw - 32px)); background: #1d1d22; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 28px; padding: 30px 28px 26px; box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6); text-align: left; }
.wdialog::backdrop { background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.wdialog[open] { animation: wd-in 260ms var(--ease); }
@keyframes wd-in { from { opacity: 0; transform: scale(0.94); } }
.wd-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; appearance: none; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--text); border-radius: 50%; cursor: pointer; }
.wd-close .gl { width: 18px; height: 18px; }
.wd-close:hover { background: rgba(255, 255, 255, 0.16); }
.wd-face { font-size: 15px; margin-bottom: 20px; min-height: 3.6em; }
.wdialog h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.wdialog p { color: var(--text-2); margin-top: 10px; line-height: 1.5; }
.wd-how { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px !important; display: grid; gap: 3px; }
.wd-how span:first-child { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.wd-how span:last-child { color: var(--text); }

/* ---------- Sul Mac ---------- */
.native { text-align: center; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: clamp(40px, 6vw, 72px) !important; text-align: left; }
.cell { border-top: 1px solid var(--line); padding-top: 20px; }
.cell h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.cell p { color: var(--text-2); font-size: 0.9375rem; margin-top: 8px; }

/* ---------- Finestra delle impostazioni ---------- */
.swin { width: min(100%, 460px); background: #232327; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.5); overflow: hidden; font-size: 0.8125rem; text-align: left; }
.swin-bar { position: relative; height: 38px; display: flex; align-items: center; justify-content: center; }
.tl { position: absolute; left: 13px; display: flex; gap: 8px; }
.tl i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.tl i:nth-child(2) { background: #febc2e; }
.tl i:nth-child(3) { background: #28c840; }
.swin-title { font-weight: 600; color: var(--text-2); }
.swin-tabs { display: flex; justify-content: center; gap: 4px; padding: 2px 10px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.swin-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 12px; border-radius: 8px; font-size: 0.6875rem; color: var(--text-2); }
.swin-tabs .gl { width: 22px; height: 22px; }
.swin-tabs .on { background: rgba(255, 255, 255, 0.10); color: #6ea8ff; }
.swin-body { padding: 6px 20px 14px; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.srow:last-child { border-bottom: 0; }
.srow-col { flex-direction: column; align-items: stretch; gap: 8px; }
.sslider { display: flex; align-items: center; gap: 10px; }
.sslider small { font-size: 0.6875rem; color: var(--text-2); }
.sslider i { position: relative; flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #3b82f6 var(--v), rgba(255, 255, 255, 0.16) var(--v)); }
.sslider i::after { content: ""; position: absolute; left: var(--v); top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.sseg { display: flex; background: rgba(255, 255, 255, 0.08); border-radius: 7px; padding: 2px; }
.sseg b { font-weight: 500; padding: 3px 11px; border-radius: 5px; color: var(--text-2); }
.sseg .on { background: rgba(255, 255, 255, 0.20); color: var(--text); }
.stog { width: 38px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, 0.18); position: relative; flex: none; }
.stog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.stog.on { background: #34c759; }
.stog.on::after { left: 18px; }
.spop { background: rgba(255, 255, 255, 0.11); border-radius: 6px; padding: 3px 10px; }

/* ---------- Privacy ---------- */
.privacy { text-align: center; background: var(--surface); }
.privacy .lead { margin-left: auto !important; margin-right: auto !important; max-width: 58ch; }
.lock { width: 56px; height: 56px; margin-bottom: 22px !important; color: var(--text); }
.lock svg { width: 100%; height: 100%; }

/* ---------- Prezzi ---------- */
.pricing { text-align: center; }
.pricing .lead { margin-left: auto !important; margin-right: auto !important; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 16px; margin-top: clamp(36px, 5vw, 60px) !important; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 30px 28px 28px; display: flex; flex-direction: column; align-items: center; }
.plan-main { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.24); }
.plan h3 { font-size: 1.0625rem; font-weight: 600; color: var(--text-2); }
.plan-price { margin-top: 14px !important; display: flex; flex-direction: column; gap: 2px; }
.plan-price b { font-size: 3.25rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.plan-price span { color: var(--text-2); font-size: 0.9375rem; }
.plan-note { color: var(--text-2); font-size: 0.9375rem; margin: 16px 0 24px !important; max-width: 24ch; }
.plan .btn { margin-top: auto; width: 100%; }
.btn-ghost { background: transparent; color: var(--text) !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.10); }

/* ---------- Domande e risposte ---------- */
.faq { text-align: center; }
.qas { max-width: 780px !important; margin-top: clamp(32px, 5vw, 56px) !important; text-align: left; border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0; font-size: clamp(1.0625rem, 1.9vw, 1.25rem); font-weight: 600; letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(currentColor, currentColor) center / 100% 1.8px no-repeat, linear-gradient(currentColor, currentColor) center / 1.8px 100% no-repeat; transition: transform 240ms var(--ease); color: var(--text-2); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--text-2); padding: 0 48px 24px 0; max-width: 64ch; }

/* ---------- Chiusura e pie' di pagina ---------- */
.final { text-align: center; }
.foot { border-top: 1px solid var(--line); padding: 34px 22px 60px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
.foot-brand img { display: block; height: 32px; width: auto; }
.foot-brand p { font-size: 0.8125rem; color: var(--text-2); margin-top: 12px; }
.foot-brand .foot-co { font-size: 0.75rem; color: var(--text-3, var(--text-2)); opacity: 0.8; }
.foot-brand a, .foot-lang a { color: #9aa5ff; }
.legal { font-size: 0.75rem; line-height: 1.6; color: var(--text-2); }

/* ---------- Comparsa allo scorrimento ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Schermi piccoli ---------- */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-art { order: 0; }
  .wgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  [data-sm="hide"] { display: none !important; }
  /* Sul telefono le pillole diventano compatte: icona sopra, nome sotto. */
  .dock .pill { flex-direction: column; gap: 0.18em; padding: 0 0.6em; min-width: calc(var(--s) * 1.06); justify-content: center; }
  .dock .pill .gl { width: 1.4em; height: 1.4em; }
  .dock .pill .pt { align-items: center; }
  .dock .pill .pt b { font-size: 0.85em; font-weight: 500; color: rgba(255, 255, 255, 0.75); }
  .dock .pill .pt b + small { display: none; }
  .dcard { bottom: calc(var(--s) * 1.26 + 30px); }
  .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wcard { padding: 14px 14px 16px; border-radius: 20px; }
  .wart { font-size: 12px; height: 84px; }
  .stage { height: 440px; }
  .grid4 { grid-template-columns: 1fr; gap: 20px; }
  .plans { grid-template-columns: minmax(0, 340px); }
  .foot-in { grid-template-columns: 1fr; gap: 22px; }
  .nav-in { gap: 14px; }
  .nav-brand img { height: 22px; }
  .nav-prod { display: none; }
  .stage { border-radius: 24px; }
}

@media (max-width: 480px) {
  
}

/* ---------- Preferenze di accessibilità ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .caret { animation: none; }
  .dcard, .dcard.open { transform: none; filter: none; transition: opacity 200ms ease, visibility 0s; }
  .wdialog[open] { animation: none; }
  .btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dock-bar { background: #1c1c22; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .dcard { background: #1e1e24; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text-2: #d1d1d6; --line: rgba(255, 255, 255, 0.4); }
  .dock-bar, .panel, .wcard, .dcard, .pill, .cmp, .swin { border-color: rgba(255, 255, 255, 0.6); }
}

/* ================= Suite: home di Swap e The Look ================= */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tlink { color: #9aa5ff; }
.home-hero { padding-bottom: clamp(30px, 5vw, 60px) !important; }
.hero-icon { display: block; width: 96px; height: 96px; margin: 0 auto 22px !important; }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.native .eyebrow + .headline, .native > .headline { margin-left: auto; margin-right: auto; }

/* Le due app in home */
.swap-landing .ptiles { padding-top: 0; padding-bottom: clamp(40px, 7vw, 90px); display: grid; gap: 18px; }
.ptile { max-width: 1180px !important; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 34px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); text-align: center; }
.pt-text { padding: clamp(34px, 6vw, 64px) clamp(22px, 5vw, 60px) 0; display: flex; flex-direction: column; align-items: center; }
.pt-icon { width: 72px; height: 72px; display: block; margin-bottom: 18px; }
.pt-tag { font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; margin-top: 8px !important; }
.ptile .lead { max-width: 46ch; margin-top: 14px !important; }
.ptile .hero-cta { margin-top: 24px !important; }
/* Tessere senza immagine (pagina Chi siamo): due colonne, respiro anche sotto il pulsante */
.ptiles-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1180px; margin-left: auto; margin-right: auto; gap: 18px; }
.ptiles-duo .ptile { max-width: none !important; }
.ptiles-duo .pt-text { padding-bottom: clamp(34px, 6vw, 60px); }
@media (max-width: 760px) { .ptiles-duo { grid-template-columns: minmax(0, 1fr); } }
.pt-art { padding: clamp(30px, 5vw, 54px) clamp(14px, 4vw, 40px) clamp(30px, 5vw, 54px); display: flex; justify-content: center;
  background: radial-gradient(60% 120% at 25% 110%, rgba(91, 108, 255, 0.34), transparent 70%), radial-gradient(60% 120% at 78% 110%, rgba(232, 95, 160, 0.26), transparent 70%); }
.ptile-look .pt-art { background: radial-gradient(70% 120% at 50% 110%, rgba(142, 91, 240, 0.34), transparent 70%); }

/* In arrivo */
.soon { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); font-weight: 600; font-size: 1.0625rem; color: var(--text); }
.soon-sm { min-height: 32px; padding: 0 14px; font-size: 0.8125rem; white-space: nowrap; }

/* Schermata di blocco con l'indicatore di The Look */
.lstage { align-items: center; padding: 0; height: clamp(360px, 40vw, 480px); }
.lmock { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; color: #fff; text-align: center; font-size: 16px; }
.lmock-s { height: 300px; max-width: 520px; border-radius: 22px; overflow: hidden; background: #111116; border: 1px solid var(--line); font-size: 12px; }
.lm-island { margin-top: 1.1em; height: 2.3em; min-width: 2.3em; padding: 0 0.55em; border-radius: 1.2em; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10); display: flex; align-items: center; justify-content: center; }
.lm-island .gl { width: 1.35em; height: 1.35em; }
.lm-scan { color: #9aa5ff; display: flex; }
.lm-ok { color: #34c759; display: none; }
.lm-time { margin-top: 0.5em; font-size: 5.2em; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.lm-date { font-size: 1.15em; font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.lm-user { margin-top: auto; margin-bottom: 1.6em; display: flex; flex-direction: column; align-items: center; gap: 0.6em; }
.lm-avatar { width: 3.4em; height: 3.4em; border-radius: 50%; background: linear-gradient(140deg, #7c8aff, #f07bb2); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.lm-msg { font-size: 0.95em; color: rgba(255, 255, 255, 0.85); }
.lm-b { display: none; }
/* Sequenza: cerca, riconosce. Parte quando la scena entra nello schermo e si ripete piano. */
.js .in .lm-island, .js .in.lmock .lm-island, .js .ptile.in .lm-island { animation: lm-pill 6s 0.6s var(--ease) infinite; }
.js .in .lm-scan { animation: lm-a 6s 0.6s steps(1) infinite, lm-pulse 1.1s ease-in-out infinite; }
.js .in .lm-ok { display: flex; animation: lm-b 6s 0.6s steps(1) infinite; }
.js .in .lm-a { animation: lm-a 6s 0.6s steps(1) infinite; }
.js .in .lm-b { display: inline; animation: lm-b 6s 0.6s steps(1) infinite; }
@keyframes lm-pill { 0%, 4% { padding: 0 0.55em; } 10%, 46% { padding: 0 2.6em; } 52%, 88% { padding: 0 1.2em; box-shadow: 0 0 0 1px rgba(52, 199, 89, 0.55), 0 0 26px rgba(52, 199, 89, 0.28); } 96%, 100% { padding: 0 0.55em; } }
@keyframes lm-a { 0% { opacity: 1; position: static; } 48% { opacity: 0; position: absolute; } 100% { opacity: 0; position: absolute; } }
@keyframes lm-b { 0% { opacity: 0; position: absolute; } 48% { opacity: 1; position: static; } 100% { opacity: 1; position: static; } }
@keyframes lm-pulse { 50% { opacity: 0.45; } }

/* Passaggi */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px) !important; padding: 0; text-align: left; counter-reset: none; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); border: 1px solid rgba(255, 255, 255, 0.16); font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.step h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.step p { color: var(--text-2); font-size: 0.9375rem; margin-top: 8px; }

/* Sicurezza: detta chiaramente */
.safe { background: var(--bg); }
.safe .lock { color: #ffb340; }
.safe-points { max-width: 760px !important; text-align: left; margin-top: 34px !important; }
.safe-points li { border-left-color: rgba(255, 179, 64, 0.5); }

/* Schermate dell'app */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; margin-top: clamp(36px, 5vw, 64px) !important; max-width: 980px !important; }
.shots img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55); }

@media (max-width: 900px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid3 { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .lmock { font-size: 13px; }
  .soon-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .in .lm-island, .js .in .lm-scan, .js .in .lm-ok, .js .in .lm-a, .js .in .lm-b { animation: none; }
  .js .in .lm-ok { display: none; }
  .js .in .lm-b { display: none; }
}

/* The Notch: schermate del pannello e terza scheda */
.swap-landing .nshot { display: block; max-width: min(100%, 560px); height: auto; margin: 0 auto; }
.ptile-notch .pt-art { display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(70% 120% at 50% 110%, rgba(79, 93, 232, 0.30), transparent 70%); }
.ptile-notch .pt-art .nshot { width: 100%; }
.ptiles-duo .ptile:nth-child(3):last-child { grid-column: 1 / -1; }
