/* Pagine pubbliche: presentazione, offerte, accesso. Il colore principale arriva da config (--accent). */
:root {
  --ink: #121016;
  --ink-2: #1f1c25;
  --ink-line: #2c2833;
  --paper: #ffffff;
  --mist: #f3f1f5;
  --line: #dedae3;
  --muted: #6b6772;
  --muted-d: #b4afba;
  --danger: #c62828;
  --f: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.site { margin: 0; background: var(--ink); color: #fff; font: 400 15px/1.5 var(--f); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; }

.display {
  font-family: var(--f);
  font-weight: 900;
  font-variation-settings: 'wdth' 62;
  font-stretch: 62%;
  letter-spacing: -0.012em;
  line-height: .9;
  margin: 0;
}

/* logo */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo img { max-height: 30px; display: block; }
.logo .logo-mark { width: 34px; height: 34px; max-height: none; border-radius: 9px; flex: none; }
.logo .wm { height: 22px; width: auto; max-height: none; }
.logo .wm-dark { display: none; }
.wordmark { font-weight: 900; font-variation-settings: 'wdth' 70; font-stretch: 70%; font-size: 21px; letter-spacing: .01em; text-transform: uppercase; }

/* pulsanti a pillola */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 9px 18px; border: 1px solid transparent;
  font: 700 13px/1.2 var(--f); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.pill.ghost { color: #fff; border-color: #5a5462; background: transparent; }
.pill.ghost:hover { border-color: #fff; }
.pill.light { background: #fff; color: var(--ink); }
.pill.light:hover { background: var(--accent); color: var(--accent-ink); }
.pill.dark { background: var(--ink); color: #fff; }
.pill.dark:hover { background: #000; }
.pill.big { padding: 15px 30px; font-size: 15px; }
.pill.block { display: flex; width: 100%; padding: 13px 18px; }

/* barra in alto */
.nav { display: flex; align-items: center; gap: 28px; padding: 14px max(20px, 6vw); border-bottom: 1px solid var(--ink-line); }
.nav-brand { text-decoration: none; color: #fff; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 13px; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-actions form { margin: 0; }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 64px 20px 190px; }
/* particelle e onde sonore (js/hero.js), più tenui dietro al titolo */
.hero-fx {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), #000 60%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), #000 60%);
}
.hero h1 { font-size: clamp(48px, 8.4vw, 104px); max-width: 15ch; margin: 0 auto 22px; }
.hero-sub { max-width: 56ch; margin: 0 auto; color: var(--muted-d); font-size: 16px; }
.notes { max-width: 560px; margin: 30px auto 30px; display: grid; gap: 10px; }
.hero-in { max-width: 1240px; margin: 0 auto; }
@media (min-width: 980px) {
  .hero { text-align: left; padding-top: 72px; }
  .hero-in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(40px, 5vw, 84px); align-items: center; }
  .hero h1 { font-size: clamp(56px, 6.6vw, 100px); margin-left: 0; }
  .hero-sub, .notes { margin-left: 0; }
}

/* slider delle funzioni (js/showcase.js) */
.show {
  --dur: 5500ms;
  background: var(--accent); color: var(--accent-ink); border-radius: 22px; padding: 12px 12px 16px; text-align: left;
  max-width: 560px; margin: 44px auto 0;
  box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--accent) 70%, transparent);
}
@media (min-width: 980px) { .show { margin: 0; max-width: none; transform: rotate(1.2deg); } }
.show-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 14px; }
.show-track::-webkit-scrollbar { display: none; }
.show-track:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.show-slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.show-slide h3 { font: 900 32px/1 var(--f); font-variation-settings: 'wdth' 62; font-stretch: 62%; margin: 16px 8px 6px; }
.show-slide p { margin: 0 8px; font-size: 14px; line-height: 1.45; min-height: 4.35em; max-width: 46ch; }
.show-nav { display: flex; align-items: center; gap: 8px; margin: 12px 8px 0; }
.show-dots { display: flex; gap: 6px; flex: 1; }
.show-dots button { position: relative; width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; overflow: hidden; cursor: pointer;
  background: color-mix(in srgb, var(--ink) 28%, transparent); transition: width .35s ease; }
.show-dots button[aria-current="true"] { width: 38px; }
.show-dots button[aria-current="true"]::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform-origin: left; animation: show-fill var(--dur) linear forwards; }
.show.paused .show-dots button::after { animation-play-state: paused; }
@keyframes show-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.show-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, color .15s; }
.show-arrow:hover { background: var(--ink); color: var(--accent); }
.show-arrow svg, .show-art svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.show-art { position: relative; overflow: hidden; height: 310px; border-radius: 14px; background: var(--ink); color: #fff; padding: 26px; display: flex; flex-direction: column; justify-content: center; }
.show-art::before { /* alone arancio */
  content: ''; position: absolute; width: 340px; height: 340px; right: -120px; top: -150px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent); pointer-events: none;
}

/* 1. siti */
.art-sites .big { position: relative; font: 900 clamp(96px, 11vw, 140px)/.82 var(--f); font-variation-settings: 'wdth' 62; font-stretch: 62%; letter-spacing: -.02em; }
.art-sites .big span { color: var(--accent); }
.art-sites .lbl { position: relative; margin-top: 10px; color: var(--muted-d); font-weight: 700; font-size: 14px; }
.marq { position: absolute; left: 0; right: 0; bottom: 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marq-in { display: flex; gap: 8px; width: max-content; animation: marq 26s linear infinite; }
.marq-in span { border: 1px solid #ffffff38; border-radius: 999px; padding: 6px 13px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.marq-in span:nth-child(3n+1) { background: #fff; color: var(--ink); border-color: #fff; }
@keyframes marq { to { transform: translateX(calc(-50% - 4px)); } }

/* 2. tracce */
.art-split { gap: 18px; }
.art-split .bars { position: relative; width: 100%; height: 68px; flex: none; }
.art-split .bars rect { fill: #ffffff59; }
.art-split .bars rect.on { fill: var(--accent); }
.art-split .bars line { stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 3 3; }
.cuts { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.cuts li { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 8px; color: var(--muted-d); }
.cuts li.on { background: #fff; color: var(--ink); font-weight: 700; }
.cuts i { font-style: normal; font-weight: 800; font-size: 11px; color: var(--accent); width: 16px; }
.cuts time { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 12px; }

/* 3. player */
.art-player { align-items: center; gap: 22px; }
.pl { position: relative; display: flex; gap: 18px; align-items: center; width: 100%; max-width: 400px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 14px; padding: 14px; }
.pl-cover { width: 108px; height: 108px; flex: none; border-radius: 10px; background: var(--accent); overflow: hidden; }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pl-body b { font-size: 17px; }
.pl-body > span { color: var(--muted-d); font-size: 12px; }
.pl-bar { height: 4px; border-radius: 4px; background: #ffffff2e; margin: 12px 0 10px; overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 38%; background: var(--accent); border-radius: 4px; animation: pl-prog 9s linear infinite; }
@keyframes pl-prog { from { width: 8%; } to { width: 96%; } }
.pl-ctl { display: flex; align-items: center; gap: 16px; }
.pl-ctl > svg { width: 20px; height: 20px; color: #fff; }
.pl-play { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.pl-play svg { width: 18px; height: 18px; stroke-width: 3; }
.eq { position: relative; display: flex; align-items: flex-end; gap: 5px; height: 34px; }
.eq i { width: 6px; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: bottom; animation: eq .9s ease-in-out var(--d) infinite alternate; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* 4. playlist */
.pls { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pls li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--ink-2); }
.pls li > i { width: 36px; height: 36px; border-radius: 7px; background: var(--c); flex: none; }
.pls li span { flex: 1; min-width: 0; display: grid; }
.pls b { font-size: 14px; }
.pls small { font-size: 11px; color: var(--muted-d); }
.pls svg { width: 18px; height: 18px; color: var(--muted-d); }
.pls svg.full { color: var(--accent); fill: var(--accent); }
.pls li.drag { background: var(--accent); color: var(--ink); transform: translateX(22px) rotate(-1.6deg); box-shadow: 0 14px 30px -10px #000; }
.pls li.drag small, .pls li.drag svg { color: var(--ink); }
.pls li.drag > i { background: var(--ink); }

/* 5. file MP3 */
.art-tags { align-items: center; }
.file { position: relative; display: flex; gap: 20px; align-items: center; background: #fff; color: var(--ink); border-radius: 14px; padding: 16px; width: 100%; max-width: 420px; }
.file-cover { position: relative; width: 120px; height: 120px; flex: none; border-radius: 10px; overflow: hidden; background: var(--accent); }
.file-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-cover span { position: absolute; left: 8px; bottom: 8px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; }
.file dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; min-width: 0; }
.file dt { color: var(--muted); }
.file dd { margin: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file dd b { background: var(--accent); padding: 1px 7px; border-radius: 5px; }

@media (max-width: 640px) {
  .show-art { height: 270px; padding: 20px; }
  .show-slide h3 { font-size: 27px; }
  .pl-cover { width: 84px; height: 84px; }
  .file { gap: 14px; padding: 12px; }
  .file-cover { width: 92px; height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .marq-in, .pl-bar i, .eq i, .show-dots button::after { animation: none; }
  .show-dots button[aria-current="true"]::after { transform: none; }
}
.note { display: flex; gap: 14px; text-align: left; background: var(--ink-2); border-radius: 8px; padding: 14px 18px; font-size: 13px; align-items: flex-start; }
.note svg { flex: none; margin-top: 2px; color: var(--accent); }
.note b { display: block; font-size: 13px; }
.note span { color: var(--muted-d); }

/* offerte */
.offers { background: var(--accent); color: var(--ink); }
.offers > .wave { box-shadow: 0 -1px 0 var(--ink); } /* copre il filo arancio quando la sezione cade a metà di un pixel */
/* separatori a onda sonora (sound_wave() in src/helpers.php) */
.wave { height: 90px; overflow: hidden; line-height: 0; }
.wave svg { display: block; height: 100%; width: max(100%, 1100px); margin-left: 50%; transform: translateX(-50%); }
.wave.flip svg { transform: translateX(-50%) scaleY(-1); }
.wave .wv-fill { fill: currentColor; }
.wave .wv-line { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.wave .wv-1 { opacity: .55; }
.wave .wv-2 { opacity: .25; stroke-width: 1.5; }
.wave.to-accent { color: var(--accent); background: var(--ink); }
.wave.from-mist { color: var(--mist); background: var(--ink); }
.offers-in { max-width: 1100px; margin: 0 auto; padding: 36px 20px 72px; text-align: center; }
.period { display: inline-flex; background: var(--ink); border-radius: 999px; padding: 3px; margin-bottom: 22px; }
.period button { background: none; border: 0; color: #d6d1dc; font: 700 12px var(--f); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.period button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; text-align: left; }
.plan { background: var(--paper); border-radius: 4px; padding: 18px 18px 12px; display: flex; flex-direction: column; }
.plan-top { display: flex; justify-content: space-between; align-items: center; }
.badge {
  background: var(--b); color: var(--ink); border-radius: 4px; padding: 1px 7px 0;
  font-weight: 900; font-variation-settings: 'wdth' 62; font-stretch: 62%; font-size: 20px; text-transform: uppercase; letter-spacing: .01em;
}
.chip { background: var(--mist); border-radius: 4px; padding: 3px 8px; font-size: 11px; font-weight: 600; }
.offers h2 { font-size: clamp(44px, 6vw, 72px); }
.offers-sub { max-width: 52ch; margin: 12px auto 26px; font-size: 16px; font-weight: 500; }
.offers-note { margin: 22px auto 0; font-size: 14px; font-weight: 600; }
.plan .space { font-size: 64px; margin: 18px 0 0; letter-spacing: -.01em; }
.plan h3 { font-size: 18px; margin: 16px 0 2px; }
.plan .space + h3 { margin-top: 6px; }
.price { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.plan .pill { margin-top: auto; }
.more { margin-top: 10px; font-size: 12px; }
.more summary { cursor: pointer; text-decoration: underline; list-style: none; width: max-content; }
.more summary::-webkit-details-marker { display: none; }
.more ul { margin: 10px 0 4px; padding-left: 18px; color: var(--muted); }
.more li { margin: 3px 0; }

/* come funziona */
.how {
  background: var(--mist); color: var(--ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 96px max(20px, 8vw) 72px; overflow-x: clip;
}
.how h2 { font-size: clamp(44px, 6vw, 72px); margin-bottom: 24px; }
.steps { list-style: none; padding: 0; margin: 0 0 30px; counter-reset: s; display: grid; gap: 18px; max-width: 46ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.steps li::before {
  content: counter(s); grid-row: span 2; font-weight: 900; font-variation-settings: 'wdth' 62; font-stretch: 62%;
  font-size: 44px; line-height: .9; color: var(--accent);
}
.steps b { font-size: 16px; }
.steps span { color: var(--muted); font-size: 14px; }
.how-art { position: relative; height: 360px; width: 460px; max-width: none; justify-self: center; }
.tile {
  position: absolute; width: 190px; height: 236px; border-radius: 10px; background: var(--accent); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 16px 12px 22px; overflow: hidden;
}
.tile-name { font-weight: 900; font-variation-settings: 'wdth' 62; font-stretch: 62%; font-size: 24px; text-transform: uppercase; line-height: 1; max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.blob {
  width: 128px; height: 128px; border-radius: 46% 54% 44% 56% / 52% 44% 56% 48%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 900; font-variation-settings: 'wdth' 62; font-stretch: 62%; font-size: 52px;
}
.t1 { left: 0; top: 56px; transform: rotate(-9deg); }
.t2 { left: 128px; top: 0; z-index: 2; background: var(--ink); color: #fff; }
.t2 .tile-name { color: var(--accent); }
.t3 { left: 262px; top: 64px; transform: rotate(7deg); }
.t2.mascot { left: 118px; top: -14px; width: 214px; height: 372px; justify-content: flex-end; padding: 18px 10px 14px; gap: 10px; }
.t2.mascot img { width: 100%; height: auto; flex: 1 1 auto; min-height: 0; object-fit: contain; }
.t2.mascot .wm { height: 22px; width: auto; flex: none; }

/* app per Windows */
.pc {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 72px max(20px, 8vw) 24px; overflow-x: clip;
}
.kicker { display: inline-block; color: var(--accent); font-weight: 800; font-size: 13px; margin-bottom: 12px; }
.pc h2 { font-size: clamp(44px, 5.6vw, 72px); max-width: 17ch; }
.pc-sub { color: var(--muted-d); font-size: 16px; max-width: 54ch; margin: 18px 0 30px; }
.pc .steps { max-width: 54ch; }
.pc .steps span { color: var(--muted-d); }
.pc code { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 4px; padding: 0 5px; font-size: 13px; color: #fff; }
.pc-get { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pc-get span { color: var(--muted-d); font-size: 13px; }
.pc-help { margin-top: 22px; max-width: 60ch; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 8px; padding: 14px 18px; }
.pc-help summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.pc-help summary:hover { color: var(--accent); }
.pc-help ul { margin: 12px 0 2px; padding-left: 18px; color: var(--muted-d); font-size: 14px; display: grid; gap: 8px; }
.pc-help b { color: #fff; }
.pc-art { position: relative; justify-self: center; width: 100%; max-width: 480px; padding: 0 0 54px; }
.win { background: var(--paper); color: var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
@media (min-width: 980px) { .win { transform: rotate(-1.2deg); } }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--ink); color: #fff; font-size: 12px; }
.win-bar img { width: 18px; height: 18px; border-radius: 4px; }
.win-bar b { margin-right: auto; }
.win-bar i { width: 10px; height: 10px; border: 1.5px solid #6b6772; border-radius: 2px; }
.win-body { padding: 18px; display: grid; gap: 14px; }
.win-field {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 2px solid var(--accent); border-radius: 999px; padding: 6px 6px 6px 16px; color: var(--muted); font-size: 13px;
}
.win-btn { background: var(--accent); color: var(--accent-ink, var(--ink)); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 12px; }
.win-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.win-jobs li { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; background: var(--mist); border-radius: 8px; padding: 10px 12px; }
.win-jobs b { grid-column: 1; font-size: 13px; }
.win-jobs small { grid-column: 1; color: var(--muted); font-size: 12px; }
.win-jobs .ok { grid-column: 2; grid-row: 1 / 3; color: #1f8a4c; font-weight: 900; }
.win-jobs .bar { grid-column: 1 / -1; height: 4px; background: var(--line); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.win-jobs .bar i { display: block; height: 100%; width: 62%; background: var(--accent); border-radius: 4px; animation: pcbar 3.2s ease-in-out infinite alternate; }
@keyframes pcbar { from { width: 28%; } to { width: 86%; } }
.toast-pc {
  position: absolute; right: -8px; bottom: 0; display: flex; gap: 10px; align-items: center;
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 8px; padding: 10px 14px; font-size: 12px; color: var(--muted-d);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.toast-pc img { width: 28px; height: 28px; border-radius: 6px; }
.toast-pc b { display: block; color: #fff; font-size: 13px; }

/* estensione per il browser: stessa impaginazione dell'app per Windows, disegno a sinistra */
.ext { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.ext-art { max-width: 420px; }
@media (min-width: 980px) { .ext .win { transform: rotate(1.2deg); } }
.ext-bar { gap: 10px; }
.ext-url { flex: 1; background: var(--ink-2); border-radius: 999px; padding: 5px 12px; color: var(--muted-d); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ext-bar .ext-ico { width: 22px; height: 22px; border-radius: 5px; box-shadow: 0 0 0 2px var(--accent); }
.ext-pop { margin: 14px 14px 18px auto; width: min(260px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); }
.ext-hit { display: flex; gap: 10px; align-items: center; }
.ext-hit b { display: block; font-size: 13px; }
.ext-hit small { color: var(--muted); font-size: 12px; }
.ext-th { width: 64px; height: 38px; border-radius: 5px; flex: none; background: linear-gradient(135deg, var(--accent), #2c2833); }
.ext-seg { display: flex; background: var(--mist); border-radius: 999px; padding: 3px; font-size: 11px; font-weight: 700; color: var(--muted); }
.ext-seg span { flex: 1; text-align: center; padding: 5px 4px; border-radius: 999px; }
.ext-seg .on { background: var(--ink); color: #fff; }
.ext-go { background: var(--accent); color: var(--accent-ink, var(--ink)); border-radius: 999px; padding: 9px; text-align: center; font-weight: 800; font-size: 13px; }

.fine { padding: 72px 20px 80px; }
.fine p { max-width: 74ch; margin: 0 auto; color: var(--muted-d); font-size: 13px; line-height: 1.75; text-align: center; }
.fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* footer */
.foot { border-top: 1px solid var(--ink-line); padding: 56px max(20px, 6vw) 30px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.foot h4 { margin: 0 0 14px; font-size: 13px; }
.foot-cols a { display: block; color: var(--muted-d); text-decoration: none; font-size: 13px; margin: 0 0 11px; }
.foot-cols a:hover { color: #fff; }
.foot-cols p { color: var(--muted-d); font-size: 12px; margin: 0; }
.foot-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 56px; gap: 20px; }
.social { display: flex; gap: 16px; font-size: 13px; }
.social a { color: var(--muted-d); text-decoration: none; }
.foot-logo { color: #fff; text-decoration: none; }
.copy { justify-self: end; margin: 0; font-size: 12px; color: var(--muted-d); }

/* accesso e moduli */
.auth { max-width: 460px; margin: 0 auto; padding: 56px 20px 88px; text-align: center; }
.auth h1 { font-size: clamp(46px, 8vw, 80px); margin-bottom: 14px; }
.auth-lead { color: var(--muted-d); margin: 0 0 20px; }
.card { background: var(--paper); color: var(--ink); border-radius: 8px; padding: 26px 24px; text-align: left; margin-top: 18px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 15px; }
.form input[type=email], .form input[type=password], .form input[type=text] {
  height: 46px; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; font: 400 15px var(--f); color: var(--ink); background: #fff;
}
.form textarea { border: 1px solid var(--line); border-radius: 6px; padding: 11px 14px; font: 400 15px/1.5 var(--f); color: var(--ink); background: #fff; resize: vertical; min-height: 80px; }
.form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.report-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.report-form .pill { margin-top: 6px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 620px) { .form-2 { grid-template-columns: 1fr; } .legal-body { padding: 24px 20px; } }
.legal-body .small-print { font-size: 12px; color: var(--muted); margin: 18px 0 0; }
.legal-body a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal-body ul { padding-left: 20px; margin: 6px 0 10px; }
.form input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form small { color: var(--muted); font-weight: 400; font-size: 12px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { background: #fdecea; color: #8e1c1c; border-radius: 6px; padding: 10px 12px; font-size: 13px; margin: 0 0 16px; }
.form-links { margin: 14px 0 0; text-align: center; font-size: 13px; }
.auth-alt { color: var(--muted-d); font-size: 14px; margin-top: 22px; }
.auth-alt a { color: #fff; font-weight: 700; }
.msg { text-align: center; }
.msg p { margin: 0 0 20px; font-size: 15px; }

/* note legali */
.legal { padding: 56px 20px 88px; }
.legal h1 { font-size: clamp(44px, 7vw, 76px); text-align: center; margin-bottom: 30px; }
.legal-body { max-width: 760px; margin: 0 auto; background: var(--paper); color: var(--ink); border-radius: 8px; padding: 30px 34px; }
.legal-body h2 { font-size: 18px; margin: 26px 0 8px; }
.legal-body p, .legal-body li { font-size: 14px; color: #3c3842; }

@media (max-width: 860px) {
  .how { grid-template-columns: minmax(0, 1fr); padding-bottom: 48px; }
  .how-art { height: 320px; transform: scale(.86); transform-origin: top center; }
  .pc { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 56px; }
  .ext .ext-art { order: 2; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .copy { justify-self: center; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; padding: 12px 16px; }
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-actions .pill { padding: 8px 12px; }
  .wordmark { font-size: 18px; }
  .hero { padding: 44px 16px 140px; }
  .wave { height: 56px; }
  .how-art { transform: scale(.7); height: 260px; }
  .plan .space { font-size: 52px; }
  .toast-pc { right: 0; }
  .legal-body { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .win-jobs .bar i { animation: none; } }

/* "Come funziona" con la mascotte: le tessere ai lati mostrano solo il simbolo, verso l'esterno */
.has-mascot .t1 .tile-name, .has-mascot .t3 .tile-name { display: none; }
.has-mascot .t1, .has-mascot .t3 { justify-content: center; padding: 16px 14px; }
.has-mascot .t1 { align-items: flex-start; }
.has-mascot .t3 { align-items: flex-end; }
.has-mascot .t1 .blob, .has-mascot .t3 .blob { width: 92px; height: 92px; font-size: 38px; }

/* ---------------------------------------------------------------- pagina "Come funziona" */
.ph { text-align: center; padding: 72px 20px 64px; }
.ph h1 { font-size: clamp(56px, 9vw, 112px); margin: 4px 0 18px; }
.ph-sub { max-width: 58ch; margin: 0 auto 28px; color: var(--muted-d); font-size: 17px; }
.hw { padding: 64px max(20px, 8vw); }
.hw.alt { background: var(--mist); color: var(--ink); }
.hw-h { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 30px; }
.hw-n { font-weight: 900; font-variation-settings: 'wdth' 62; font-stretch: 62%; font-size: 84px; line-height: .8; color: var(--accent); }
.hw h2 { font-size: clamp(40px, 5.4vw, 64px); }
.hw-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hc { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 10px; padding: 26px 26px 20px; }
.hc svg, .hf svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hc h3 { font-size: 22px; margin: 12px 0 8px; }
.hc p { margin: 0 0 12px; color: var(--muted-d); }
.hc ul { margin: 0; padding-left: 18px; color: var(--muted-d); font-size: 14px; display: grid; gap: 6px; }
.hc b, .hc a { color: #fff; }
.hw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.hw-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hf h3 { font-size: 18px; margin: 10px 0 6px; }
.hf p { margin: 0; font-size: 14px; color: var(--muted-d); }
.hw.alt .hf p { color: var(--muted); }
.faq { max-width: 820px; margin: 0 auto; padding: 72px 20px 88px; }
.faq h2 { font-size: clamp(40px, 5.4vw, 64px); margin-bottom: 26px; }
.faq details { border-top: 1px solid var(--ink-line); padding: 16px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--ink-line); margin-bottom: 34px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.faq summary:hover { color: var(--accent); }
.faq p { margin: 10px 0 0; color: var(--muted-d); max-width: 68ch; }
.faq details a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- video di presentazione (home) */
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 980px) { .hero-cta { justify-content: flex-start; } }
.vid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 0 max(20px, 8vw) 104px; overflow-x: clip; scroll-margin-top: 40px;
}
.vid h2 { font-size: clamp(44px, 5.6vw, 72px); max-width: 12ch; }
.vid-sub { color: var(--muted-d); font-size: 16px; max-width: 50ch; margin: 18px 0 28px; }
.vid-box { position: relative; justify-self: center; width: min(340px, 100%); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--accent) 70%, transparent); }
@media (min-width: 980px) { .vid-box { transform: rotate(1.2deg); } }
.vid-box video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #000; }
.vid-play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.vid-play[hidden] { display: none; }
.vid-play svg { width: 84px; height: 84px; padding: 22px 20px 22px 24px; box-sizing: border-box; border-radius: 50%; background: var(--paper); fill: var(--ink); box-shadow: 0 14px 40px rgba(18, 16, 22, .4); transition: background-color .15s; }
.vid-play:hover svg { background: var(--accent); }
.vid-play:focus-visible { outline: 3px solid var(--paper); outline-offset: -8px; border-radius: 22px; }
@media (max-width: 860px) {
  .vid { grid-template-columns: minmax(0, 1fr); gap: 32px; text-align: center; }
  .vid h2, .vid-sub { margin-left: auto; margin-right: auto; }
  .vid-text .pill { display: none; }
  .vid-sub { margin-bottom: 0; }
}

/* ---------------------------------------------------------------- Alexa (home e "Come funziona") */
.wave.from-accent { color: var(--accent); background: var(--ink); }
.alexa {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 56px max(20px, 8vw) 64px; background: var(--accent); color: var(--ink); overflow-x: clip;
}
.alexa .kicker { color: var(--ink); }
.alexa h2 { font-size: clamp(44px, 5.6vw, 72px); max-width: 15ch; margin-bottom: 26px; }
.alexa .steps { max-width: 54ch; }
.alexa .steps li::before { color: var(--ink); }
.alexa .steps span { color: rgba(18, 16, 22, .78); }
.alexa-sub { font-size: 17px; font-weight: 500; max-width: 52ch; margin: 0 0 24px; }
.alexa-more { font-size: 14px; max-width: 58ch; margin: 0 0 4px; color: rgba(18, 16, 22, .78); }
.alexa .pill { margin-top: 6px; }
.ax-art { position: relative; justify-self: center; width: 100%; max-width: 440px; display: grid; gap: 16px; justify-items: center; padding: 10px 0; }
.ax-say { max-width: 300px; padding: 12px 16px; border-radius: 16px; font-size: 14px; font-weight: 600; line-height: 1.4; box-shadow: 0 14px 34px rgba(18, 16, 22, .22); }
.ax-say.you { justify-self: start; background: var(--paper); color: var(--ink); border-bottom-left-radius: 4px; }
.ax-say.it { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.ax-echo { position: relative; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #2f2b36, var(--ink) 70%); box-shadow: 0 26px 50px rgba(18, 16, 22, .35); }
.ax-ring { position: absolute; inset: -6px; border-radius: 50%; border: 6px solid #4fd1ff; box-shadow: 0 0 22px #4fd1ff; animation: axring 2.6s ease-in-out infinite; }
.ax-grill { position: absolute; inset: 34px; border-radius: 50%; background: radial-gradient(circle, #6b6772 1.2px, transparent 1.6px) 0 0 / 9px 9px; opacity: .55; }
@keyframes axring { 50% { opacity: .55; box-shadow: 0 0 8px #4fd1ff; } }
.ax-now { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px; width: min(320px, 100%); box-shadow: 0 14px 34px rgba(18, 16, 22, .25); }
.ax-now img { width: 42px; height: 42px; border-radius: 8px; }
.ax-now span { flex: 1; font-size: 12px; color: var(--muted-d); line-height: 1.35; }
.ax-now b { display: block; color: #fff; font-size: 14px; }
.ax-eq { display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.ax-eq i { width: 3px; height: 100%; background: var(--accent); border-radius: 2px; animation: axeq .9s ease-in-out var(--d) infinite alternate; transform-origin: bottom; }
@keyframes axeq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@media (max-width: 860px) {
  .alexa { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hw-cards, .hw-grid, .hw-grid.three { grid-template-columns: minmax(0, 1fr); }
  .hw-grid { gap: 22px; }
}
@media (min-width: 861px) and (max-width: 1100px) { .hw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ph { padding: 48px 16px 44px; } .hw { padding: 48px 16px; } .hw-n { font-size: 64px; } .hc { padding: 20px 18px 16px; } }
@media (prefers-reduced-motion: reduce) { .ax-ring, .ax-eq i { animation: none; } }
.wave.mist-accent { color: var(--accent); background: var(--mist); }
.how-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.how-more { font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.how-more:hover { color: var(--accent); }

/* ---------------------------------------------------------------- app per Android (si vede quando è su Google Play) */
.droid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center;
  padding: 72px max(20px, 8vw) 40px; overflow-x: clip;
}
.droid h2 { font-size: clamp(44px, 5.6vw, 72px); max-width: 14ch; }
.droid-sub { color: var(--muted-d); font-size: 16px; max-width: 52ch; margin: 18px 0 26px; }
.droid-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 16px; max-width: 54ch; }
.droid-list li { padding-left: 22px; position: relative; }
.droid-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.droid-list b { display: block; font-size: 16px; }
.droid-list span { color: var(--muted-d); font-size: 14px; }
.droid-get { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.droid-get span { color: var(--muted-d); font-size: 13px; }
.gplay { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .15s; }
.gplay img { width: 200px; height: auto; }
.gplay:hover { transform: translateY(-2px); }
.gplay:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.droid-art { position: relative; justify-self: center; width: 100%; max-width: 420px; display: grid; justify-items: center; padding: 10px 0 36px; }
.phone {
  position: relative; width: 250px; aspect-ratio: 9 / 18.5; background: #0b0a0e; border: 1px solid var(--ink-line);
  border-radius: 36px; padding: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 2px #24212a;
}
@media (min-width: 980px) { .phone { transform: rotate(-1.2deg); } }
.phone-cam { position: absolute; top: 20px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #24212a; z-index: 1; }
.phone-screen {
  height: 100%; border-radius: 26px; overflow: hidden; padding: 38px 18px 20px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, #121016) 0%, #121016 62%); color: #fff;
}
.ph-top { text-align: center; font-size: 11px; line-height: 1.3; }
.ph-top b { display: block; font-size: 10px; color: rgba(255, 255, 255, .7); font-weight: 700; }
.ph-cover { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ink-2); box-shadow: 0 14px 30px rgba(0, 0, 0, .4); margin-top: 6px; }
.ph-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-title { margin-top: 6px; }
.ph-title b { display: block; font-size: 16px; }
.ph-title small { color: var(--muted-d); font-size: 12px; }
.ph-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.ph-bar i { display: block; height: 100%; width: 36%; background: #fff; border-radius: 4px; animation: phbar 9s linear infinite; }
@keyframes phbar { from { width: 30%; } to { width: 70%; } }
.ph-time { display: flex; justify-content: space-between; margin-top: -6px; }
.ph-time small { font-size: 10px; color: var(--muted-d); }
.ph-ctrl { display: flex; align-items: center; justify-content: space-around; margin-top: auto; }
.ph-ctrl svg { width: 24px; height: 24px; fill: #fff; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.ph-play { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.ph-play svg { fill: var(--accent-ink, var(--ink)); stroke: none; }
.droid-chip {
  position: absolute; display: flex; gap: 10px; align-items: center; background: var(--ink-2); border: 1px solid var(--ink-line);
  border-radius: 8px; padding: 10px 14px; font-size: 12px; color: var(--muted-d); box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.droid-chip b { display: block; color: #fff; font-size: 13px; }
.droid-chip svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.droid-chip.c1 { left: 0; top: 22%; }
.droid-chip.c2 { right: 0; bottom: 0; }
@media (max-width: 860px) {
  .droid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 56px; }
  .droid-text { order: -1; }
}
@media (max-width: 640px) {
  .phone { width: 220px; }
  .droid-chip.c1 { left: -4px; }
  .droid-chip.c2 { right: -4px; }
  .gplay img { width: 180px; }
}
@media (prefers-reduced-motion: reduce) { .ph-bar i { animation: none; } }
