/* Tangofy — landing page
   Same brand as the app: night background, Tangofy orange, Gabarito display + Inter text,
   glass surfaces and the tanda colours (tango green, vals blue, milonga amber). */

@font-face { font-family: 'Gabarito'; font-weight: 400 900; font-display: swap; src: url('assets/fonts/gabarito-variable.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-400.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-500.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-600.ttf') format('truetype'); }

:root {
  --bg: #09090b;
  --bg-2: #0f0f11;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --text: #f6f3ee;
  --text-2: #a3a3ab;
  --text-3: #6b6b73;
  --orange: #ff8f2d;
  --orange-hot: #ff5a1f;
  --ember: #c2260f;
  --gold: #ffd27a;
  --tango: #1db954;
  --vals: #3b82f6;
  --milonga: #eab308;
  --cortina: #9b9ba3;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --display: 'Gabarito', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--orange); color: #160a00; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Film grain over everything, like the references */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--orange); color: #1a0b00;
  background-image: linear-gradient(180deg, rgb(255 255 255 / .3), rgb(255 255 255 / 0) 55%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 -1px 0 rgb(0 0 0 / .15), 0 10px 30px -10px rgb(255 143 45 / .8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 16px 40px -10px rgb(255 143 45 / .95); }
.btn-ghost {
  background: rgb(255 255 255 / .05); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.btn-ghost:hover { background: rgb(255 255 255 / .1); }
.btn-lg { height: 58px; padding: 0 30px; font-size: 17px; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color .4s, border-color .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgb(9 9 11 / .72);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img.mark { width: 34px; height: 34px; }
.brand img.word { height: 22px; width: auto; }
.nav { position: relative; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgb(255 255 255 / .04); border: 1px solid var(--line); }
.nav a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color .3s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="true"], .nav a[aria-current="page"] { color: #1a0b00; }
/* Capsule under the current section, slides like the app's segmented controls */
.nav-pill {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px;
  background: var(--orange);
  background-image: linear-gradient(180deg, rgb(255 255 255 / .3), rgb(255 255 255 / 0) 55%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 6px 18px -8px rgb(255 143 45 / .8);
  transform: translateX(var(--x, 0)); width: var(--w, 0);
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.nav-pill.instant { transition: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  height: 40px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-2); border: 1px solid var(--line); background: rgb(255 255 255 / .03);
}
.lang:hover { color: var(--text); }
.lang b { color: var(--text); font-weight: 600; }
.header .btn { height: 42px; padding: 0 18px; font-size: 14px; }

@media (max-width: 900px) {
  /* The section switcher moves to its own row under the logo and buttons */
  .header { background: rgb(9 9 11 / .72); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border-bottom-color: var(--line); }
  .header .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; row-gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav { justify-content: space-between; }
  .nav a { flex: 1 1 auto; text-align: center; padding: 7px 8px; font-size: 13px; }
  .hero { padding-top: 150px; }
}
@media (max-width: 480px) {
  .brand img.word { display: none; }
  .header .btn { padding: 0 14px; }
}

/* ---------- Eyebrows / labels ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
}
.label .num { color: var(--orange); font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: .95; margin: 0; text-wrap: balance; }
p, li, .big, .lede { text-wrap: pretty; }
.h2 { font-size: clamp(38px, 6.4vw, 92px); }
.h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.02; letter-spacing: -.03em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 64ch; line-height: 1.55; }
.muted { color: var(--text-2); }
.grad-text {
  background: linear-gradient(100deg, var(--gold) 0%, var(--orange) 40%, var(--orange-hot) 75%, var(--ember) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 128px; overflow: hidden; isolation: isolate; }
.hero-glow {
  position: absolute; z-index: -2; inset: -10% -20% auto; height: 120%;
  background:
    radial-gradient(40% 40% at 50% 62%, rgb(255 90 31 / .32), transparent 70%),
    radial-gradient(30% 30% at 82% 18%, rgb(255 143 45 / .14), transparent 70%),
    radial-gradient(35% 30% at 12% 30%, rgb(194 38 15 / .16), transparent 70%);
}
/* Diagonal light streak (Nebula reference) */
.streak {
  position: absolute; z-index: -1; left: -20%; right: -20%; top: 58%; height: 140px;
  transform: rotate(-9deg);
  background: linear-gradient(90deg, transparent 0%, rgb(194 38 15 / .0) 10%, rgb(255 90 31 / .55) 35%, rgb(255 210 122 / .95) 52%, rgb(255 90 31 / .55) 70%, transparent 95%);
  filter: blur(28px); opacity: .7; will-change: transform;
  animation: streak 9s ease-in-out infinite alternate;
}
.streak::after {
  content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 3px; margin-top: -1.5px;
  background: linear-gradient(90deg, transparent, rgb(255 236 200 / .9), transparent); filter: blur(1px);
}
@keyframes streak { from { transform: rotate(-9deg) translateX(-4%); } to { transform: rotate(-7deg) translateX(4%); } }

.hero-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.hero-title {
  font-size: clamp(64px, 14.5vw, 232px);
  line-height: .86; letter-spacing: -.055em; font-weight: 700;
  margin: 0;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .soft { color: rgb(246 243 238 / .38); }
@keyframes rise { to { transform: none; } }

.hero-stage { position: relative; margin-top: clamp(-22px, -1.2vw, -6px); perspective: 2200px; z-index: 2; }
.hero-sub {
  display: grid; grid-template-columns: minmax(0, 1.7fr) auto; gap: 40px; align-items: end;
  padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 5vw, 72px);
}
.hero-sub .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hero-sub .lede { max-width: none; }
.hero-sub .lede strong { color: var(--text); font-weight: 500; }
@media (max-width: 800px) {
  .hero-sub { grid-template-columns: 1fr; gap: 28px; }
  .hero-sub .actions { justify-content: flex-start; }
}

/* ---------- Real app screenshots ---------- */
.shot {
  position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: #0b0b0d;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), inset 0 1px 0 rgb(255 255 255 / .12), 0 40px 90px -30px rgb(0 0 0 / .9);
}
.shot img { width: 100%; height: auto; }

/* Hero: the app window leans back and straightens as you scroll */
.app {
  width: min(1180px, 100%); margin: 0 auto; border-radius: 22px;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / .12),
    0 60px 120px -30px rgb(0 0 0 / .9),
    0 30px 90px -20px rgb(255 90 31 / .4);
  transform: rotateX(18deg) scale(.94); transform-origin: 50% 0%;
  will-change: transform;
}

/* ---------- Vinyl ---------- */
.vinyl {
  aspect-ratio: 1; border-radius: 50%; position: relative;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 31%, rgb(255 255 255 / .05) 31.5%, transparent 32%),
    repeating-radial-gradient(circle at 50% 50%, #0c0c0e 0 1.2px, #19191c 1.2px 2.4px),
    #111;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 30px 60px -20px rgb(0 0 0 / .8);
  animation: spin 3.2s linear infinite;
}
.vinyl::before { /* light sheen that stays put while the record turns */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 8%, rgb(255 255 255 / .1) 12%, transparent 18% 50%, rgb(255 255 255 / .07) 58%, transparent 64%);
  animation: spin 3.2s linear infinite reverse;
}
.vinyl::after { /* label */
  content: ''; position: absolute; inset: 33%; border-radius: 50%;
  background: radial-gradient(circle, #09090b 0 7%, transparent 7.5%), radial-gradient(circle at 35% 30%, #ffb46a, var(--orange) 45%, var(--orange-hot));
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / .15);
}
.vinyl.paused, .vinyl.paused::before { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 15%; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee span {
  font-family: var(--display); font-size: clamp(28px, 4vw, 56px); font-weight: 500; letter-spacing: -.03em;
  color: rgb(246 243 238 / .22); padding: 0 .55em; white-space: nowrap; display: inline-flex; align-items: center; gap: 1.1em;
}
.marquee span::after { content: ''; width: .22em; height: .22em; border-radius: 50%; background: var(--orange); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(64px, 8vw, 112px) 0; }
.manifesto p {
  font-family: var(--display); font-weight: 500; letter-spacing: -.035em;
  font-size: clamp(24px, 4.2vw, 64px); line-height: 1.16; margin: 0; max-width: none;
}
.manifesto .w { color: rgb(246 243 238 / .14); transition: color .5s; }
.manifesto .w.on { color: var(--text); }
.manifesto .w.hot.on { color: var(--orange); }

/* ---------- Section head ---------- */
.section { padding: clamp(56px, 6vw, 88px) 0; position: relative; }
.section-head { display: flex; flex-direction: column; gap: 22px; max-width: 1100px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head .lede { margin: 0; max-width: 80ch; }
.nw { white-space: nowrap; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(24px, 2.6vw, 36px);
  background:
    radial-gradient(500px circle at var(--mx) var(--my), rgb(255 143 45 / .1), transparent 45%),
    linear-gradient(180deg, rgb(255 255 255 / .035), rgb(255 255 255 / .01)),
    var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / .06);
  display: flex; flex-direction: column; gap: 14px; min-height: 300px;
}
.card::before { /* orange rim on hover, like RedSun cards */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgb(255 143 45 / .7), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.card:hover::before { opacity: 1; }
.card h3 { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.05; letter-spacing: -.03em; }
.card p { margin: 0; color: var(--text-2); }
.card .viz { margin-top: auto; padding-top: 18px; }
.c-3 { grid-column: span 3; } .c-2 { grid-column: span 2; } .c-4 { grid-column: span 4; } .c-6 { grid-column: span 6; }
@media (max-width: 1000px) { .c-2 { grid-column: span 3; } .c-4 { grid-column: span 6; } }
@media (max-width: 680px) { .bento { grid-template-columns: 1fr; } .c-2, .c-3, .c-4, .c-6 { grid-column: auto; } .card { min-height: 0; } }

/* Library viz: messy tag → clean fields */
.tagfix { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.tagfix .raw { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12.5px; color: var(--text-3); padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-strong); text-decoration: line-through; text-decoration-color: rgb(255 90 31 / .6); }
.tagfix .arrow { color: var(--orange); align-self: center; }
.tagfix .clean { display: flex; flex-wrap: wrap; gap: 8px; }
.tagfix .clean + .raw { margin-top: 8px; }
.tagfix .clean span { padding: 7px 12px; border-radius: 999px; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tagfix .clean span em { font-style: normal; color: var(--text-3); margin-right: 6px; font-size: 12px; }

/* Tanda rules viz */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rules .rec { aspect-ratio: 1; border-radius: 14px; background: linear-gradient(135deg, #1d5c36, #0c1a12); position: relative; box-shadow: inset 0 0 0 1px rgb(29 185 84 / .3); }
.rules .rec::after { content: ''; position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, var(--tango) 0 14%, transparent 15%), repeating-radial-gradient(circle, #0b0b0d 0 1px, #1a1a1d 1px 2px); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.checks span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 11px; border-radius: 999px; background: rgb(33 196 93 / .08); color: #8de3ad; }
.checks svg { width: 13px; height: 13px; }

/* Milonga timeline viz */
.timeline { display: flex; gap: 5px; align-items: stretch; height: 74px; }
.timeline .t { flex: 4; border-radius: 10px; background: var(--c); opacity: .9; position: relative; }
.timeline .t span { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 700; color: rgb(0 0 0 / .6); }
.timeline .c { flex: .5; border-radius: 6px; background: rgb(255 255 255 / .1); }
.timeline-meta { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12.5px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.timeline .t { transform-origin: bottom; transform: scaleY(.15); transition: transform .8s var(--ease); }
.in .timeline .t { transform: none; }
.timeline .t:nth-child(3) { transition-delay: .06s; } .timeline .t:nth-child(5) { transition-delay: .12s; } .timeline .t:nth-child(7) { transition-delay: .18s; } .timeline .t:nth-child(9) { transition-delay: .24s; } .timeline .t:nth-child(11) { transition-delay: .3s; }

/* Small stat / icon rows */
.mini { display: flex; align-items: center; gap: 12px; }
.icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / .08); }
.icon .ico { width: 48px; height: 48px; }
.ico { display: inline-block; flex-shrink: 0; }
.formats { display: flex; flex-wrap: wrap; gap: 6px; }
.formats span { font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 6px 10px; border-radius: 8px; background: rgb(255 255 255 / .05); color: var(--text-2); }
.formats span.sp { color: #1ed760; background: rgb(30 215 96 / .1); }

/* Sync viz: devices around the cloud */
.sync-row { display: flex; align-items: center; gap: 8px; }
.sync .dev { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--line); }
.sync .dev .ico { width: 36px; height: 36px; }
.sync .dev.hub { width: 62px; height: 62px; background: rgb(255 143 45 / .12); box-shadow: inset 0 0 0 1px rgb(255 143 45 / .3), 0 0 30px -6px rgb(255 143 45 / .5); }
.sync .dev.hub .ico { width: 44px; height: 44px; }
.sync .pipe { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 12px); background-size: 24px 2px; opacity: .7; animation: pipe 1.1s linear infinite; }
.sync .pipe.rev { animation-direction: reverse; }
@keyframes pipe { to { background-position: 24px 0; } }
.sync-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sync-meta .chip { font-size: 12px; font-weight: 500; color: var(--text-2); }
.sync-meta .chip.ok { color: #8de3ad; }

/* Tour viz: the guided-tour bubble pointing at a button */
.tour { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.tour-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #1a0b00; background: var(--orange); }
.tour-btn svg { width: 13px; height: 13px; }
.tour-btn::after { content: ''; position: absolute; inset: -5px; border-radius: inherit; box-shadow: 0 0 0 2px rgb(255 143 45 / .6); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { opacity: 1; transform: scale(.95); } to { opacity: 0; transform: scale(1.25); } }
.tour-tip { position: relative; width: 100%; max-width: 280px; padding: 14px 16px; border-radius: 16px; background: rgb(28 28 31 / .95); box-shadow: 0 0 0 1px var(--line-strong), 0 20px 40px -18px rgb(0 0 0 / .8); display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.tour-tip::before { content: ''; position: absolute; top: -6px; left: 28px; width: 12px; height: 12px; background: rgb(28 28 31); transform: rotate(45deg); box-shadow: -1px -1px 0 var(--line-strong); }
.tour-tip b { font-size: 15px; }
.tour-tip > span { color: var(--text-2); }
.tour-tip .tour-step { color: var(--orange); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.tour-tip .tour-next { align-self: flex-end; margin-top: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 600; color: var(--text); background: rgb(255 255 255 / .08); }

/* History viz */
.history { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.history div { display: grid; grid-template-columns: 46px 8px 1fr; gap: 10px; align-items: center; color: var(--text-2); }
.history time { color: var(--text-3); font-variant-numeric: tabular-nums; }
.history i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.history b { color: var(--text); font-weight: 500; }

/* ---------- Spotlights ---------- */
.spot { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: clamp(48px, 5vw, 72px); padding-bottom: clamp(48px, 5vw, 72px); }
.spot.rev { grid-template-columns: 1fr 1.05fr; }
.spot.rev .spot-text { order: 2; }
.spot-text h2 { margin-bottom: 22px; font-size: clamp(32px, 4.4vw, 60px); }
.spot-text .lede { margin: 0 0 30px; max-width: none; }
.bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.bullets li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); }
.bullets li b { color: var(--text); font-weight: 500; }
.bullets svg { width: 20px; height: 20px; padding: 4px; margin-top: 2px; border-radius: 50%; color: #1a0b00; background: linear-gradient(180deg, #ffb066, var(--orange)); box-shadow: 0 4px 10px -4px rgb(255 143 45 / .8); }
@media (max-width: 900px) { .spot, .spot.rev { grid-template-columns: 1fr; } .spot.rev .spot-text { order: 0; } }

/* Dancer display: the real screen on a tilted monitor */
.screen-wrap { position: relative; perspective: 1600px; }
.screen-wrap::before { content: ''; position: absolute; inset: 10% 0 -10%; background: radial-gradient(closest-side, rgb(234 179 8 / .35), transparent); filter: blur(30px); z-index: -1; }
.screen {
  border-radius: 20px;
  box-shadow: 0 0 0 10px #17171a, 0 0 0 11px rgb(255 255 255 / .08), 0 50px 100px -30px rgb(0 0 0 / .9);
  transform: rotateY(-14deg) rotateX(4deg); transition: transform .6s var(--ease);
}
.screen-wrap:hover .screen { transform: rotateY(-6deg) rotateX(2deg); }
@media (max-width: 900px) { .screen, .screen-wrap:hover .screen { transform: none; } }

/* Cue visual */
.cue-viz { position: relative; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cue-viz::before { content: ''; position: absolute; width: 60%; aspect-ratio: 1; right: -20%; top: -30%; background: radial-gradient(closest-side, rgb(255 143 45 / .25), transparent); }
.route { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px; border-radius: 20px; background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line); }
.route + .route { margin-top: 14px; }
.route .src b { display: block; font-weight: 600; font-size: 15px; }
.route .src span { color: var(--text-3); font-size: 13px; }
.route .wire { width: clamp(40px, 8vw, 110px); height: 2px; background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: wire 1s linear infinite; }
@keyframes wire { to { background-position: 24px 0; } }
.route .wire, .sync .pipe { will-change: background-position; }
.route .dst { display: flex; align-items: center; gap: 12px; justify-self: end; text-align: right; }
.route .dst b { display: block; font-weight: 600; font-size: 15px; }
.route .dst span { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.route .dst .icon { background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.cue-wave { display: flex; align-items: center; gap: 3px; height: 34px; margin-top: 8px; }
.cue-wave i { flex: 1; border-radius: 2px; background: var(--c); opacity: .75; animation: wave 1.4s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@media (max-width: 560px) { .route { grid-template-columns: 1fr; } .route .wire { display: none; } .route .dst { justify-self: start; text-align: left; flex-direction: row-reverse; } }

/* Sound visual: loudness before / after */
.loud { border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.loud-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--line); }
.toggle button { padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: background-color .3s, color .3s; }
.toggle button[aria-pressed="true"] { background: var(--orange); color: #1a0b00; }
.lufs { font-family: var(--display); font-size: 15px; color: var(--text-2); }
.lufs b { color: var(--orange); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.meter { position: relative; height: 220px; display: flex; align-items: center; gap: 2px; }
.meter i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, var(--gold), var(--orange) 40%, var(--orange-hot)); height: var(--h); transition: height .9s var(--ease); }
.meter .target { position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgb(255 255 255 / .25); pointer-events: none; }
.meter-labels { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--text-3); }
.meter-labels span { flex: 1; text-align: center; }
.meter-labels span + span { border-left: 1px solid var(--line); }

/* ---------- Audience ---------- */
.aud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aud-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(28px, 3vw, 40px); min-height: 600px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  isolation: isolate;
}
.aud-card .art { position: absolute; inset: 0; z-index: -1; }
.aud-card .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgb(9 9 11 / .9) 75%); }
/* One glow for all three cards, so they read as a set */
.aud-card .art { background: radial-gradient(75% 55% at 50% 12%, rgb(255 90 31 / .42), transparent 72%), radial-gradient(50% 40% at 15% 35%, rgb(194 38 15 / .3), transparent 70%); }
/* The scene: the same tilted glass frame on every card */
.aud-card .frame {
  position: absolute; top: 9%; left: 50%; width: 80%;
  transform: translateX(-50%) rotate(-3deg);
  border-radius: 16px; padding: 14px; overflow: hidden;
  background: rgb(18 18 20 / .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), inset 0 1px 0 rgb(255 255 255 / .1), 0 30px 60px -20px rgb(0 0 0 / .85);
  display: flex; flex-direction: column; gap: 8px; font-size: 13px;
  transition: transform .6s var(--ease);
}
.aud-card:hover .frame { transform: translateX(-50%) rotate(0deg) translateY(-4px); }
.f-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 4px; }
.f-head b { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-head span { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.f-dancer .f-head { justify-content: flex-start; }
.f-pill { padding: 3px 9px; border-radius: 999px; font-size: 10px !important; font-weight: 800; letter-spacing: .08em; color: #04140a !important; background: var(--c); }
.f-line { display: flex; gap: 4px; height: 26px; }
.f-line i { flex: 1; border-radius: 6px; background: var(--c); opacity: .9; }
.f-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); }
.f-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-row span { color: var(--text-3); font-size: 12px; }
.f-row em { font-style: normal; color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.f-row .ico { width: 18px; height: 18px; }
.f-row.on { background: rgb(255 143 45 / .12); box-shadow: inset 0 0 0 1px rgb(255 143 45 / .35); }
.f-row.on b { color: var(--orange); }
.f-row.on em { color: var(--orange); }
.f-row.cue { box-shadow: inset 0 0 0 1px rgb(59 130 246 / .35); background: rgb(59 130 246 / .08); }
.f-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.f-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--orange); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.f-eq i:nth-child(2) { animation-delay: -.3s; } .f-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: none; } }
.f-org { padding: 0; }
.f-org img { width: 100%; height: auto; display: block; }
.aud-card .big { font-family: var(--display); font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.aud-card p { margin: 0; color: var(--text-2); }
.aud-card ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.aud-card li { font-size: 13px; padding: 6px 11px; border-radius: 999px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
@media (max-width: 1000px) { .aud { grid-template-columns: 1fr; } .aud-card { min-height: 520px; } .aud-card .frame { width: min(80%, 420px); } }
@media (max-width: 560px) { .aud-card { min-height: 640px; } }

.aud-card .who span { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #1a0b00; background: var(--orange); }

/* ---------- Steps: interactive flow ---------- */
section[id] { scroll-margin-top: 84px; }
.flow { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.flow-steps { display: flex; flex-direction: column; gap: 10px; }
.flow-step {
  position: relative; overflow: hidden; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 22px 24px 26px; border-radius: 22px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .4s, box-shadow .4s;
}
.flow-step .n { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgb(255 143 45 / .55); transition: color .4s; }
.flow-step .txt { display: flex; flex-direction: column; gap: 6px; }
.flow-step .txt b { font-family: var(--display); font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.flow-step .txt > span { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.flow-step .bar { position: absolute; left: 24px; right: 24px; bottom: 12px; height: 2px; border-radius: 2px; background: rgb(255 255 255 / .06); overflow: hidden; }
.flow-step .bar i { display: block; height: 100%; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.flow-step:hover { background: rgb(255 255 255 / .04); }
.flow-step[aria-selected="true"] { background: linear-gradient(180deg, rgb(255 143 45 / .1), rgb(255 143 45 / .03)); box-shadow: inset 0 0 0 1px rgb(255 143 45 / .35); }
.flow-step[aria-selected="true"] .n { color: var(--orange); -webkit-text-stroke: 0; }
.flow-step[aria-selected="true"] .bar i { animation: fill 6.5s linear forwards; }
.flow.paused .flow-step .bar i { animation-play-state: paused; }
.flow:not([data-started]) .flow-step .bar i { animation: none; }
@keyframes fill { to { transform: none; } }

.flow-stage {
  position: relative; min-height: 400px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 60% at 85% 0%, rgb(255 90 31 / .2), transparent 70%), var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / .06);
}
.stage { position: absolute; inset: 0; padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.stage.is-on { opacity: 1; visibility: visible; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }
.chip .ico { width: 16px; height: 16px; }
.chip.ok { color: #8de3ad; background: rgb(29 185 84 / .1); }
@keyframes blink { 50% { opacity: .35; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* 01 Import */
.st-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); }
.st-bar b { display: block; font-weight: 600; }
.st-scan { color: var(--text-3); font-size: 13px; }
.is-on .st-scan { animation: blink 1.2s ease-in-out 3; }
.st-count { font-family: var(--display); color: var(--text-2); font-size: 15px; }
.st-count b { color: var(--orange); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-tracks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-tracks li { display: grid; grid-template-columns: 1.1fr 1.4fr auto auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 14px; background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; opacity: 0; }
.st-tracks li b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tracks li span { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tracks li em { font-style: normal; color: var(--text-3); font-variant-numeric: tabular-nums; }
.st-tracks li i { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.is-on .st-tracks li { animation: pop .55s var(--ease) forwards; }
.is-on .st-tracks li:nth-child(2) { animation-delay: .35s; } .is-on .st-tracks li:nth-child(3) { animation-delay: .7s; }
.is-on .st-tracks li:nth-child(4) { animation-delay: 1.05s; } .is-on .st-tracks li:nth-child(5) { animation-delay: 1.4s; }
.is-on .st-tracks li:first-child { animation-delay: .1s; }

/* 02 Generate */
.st-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-go { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: #1a0b00; background: var(--orange); box-shadow: 0 8px 24px -10px rgb(255 143 45 / .9); }
.st-go .ico { width: 18px; height: 18px; }
.is-on .st-go { animation: press .5s .3s ease-in-out; }
@keyframes press { 50% { transform: scale(.92); box-shadow: 0 0 0 8px rgb(255 143 45 / .18); } }
.st-timeline { display: flex; gap: 5px; height: 84px; }
.st-timeline .t { flex: 4; border-radius: 12px; background: var(--c); position: relative; transform: scaleY(0); transform-origin: bottom; }
.st-timeline .t span { position: absolute; left: 9px; bottom: 7px; font-size: 12px; font-weight: 700; color: rgb(0 0 0 / .6); }
.st-timeline .c { flex: .5; border-radius: 6px; background: rgb(255 255 255 / .12); transform: scaleY(0); transform-origin: bottom; }
.is-on .st-timeline > * { animation: grow .5s var(--ease) forwards; }
@keyframes grow { to { transform: none; } }
.is-on .st-timeline > :nth-child(1) { animation-delay: .8s; } .is-on .st-timeline > :nth-child(2) { animation-delay: .95s; }
.is-on .st-timeline > :nth-child(3) { animation-delay: 1.1s; } .is-on .st-timeline > :nth-child(4) { animation-delay: 1.25s; }
.is-on .st-timeline > :nth-child(5) { animation-delay: 1.4s; } .is-on .st-timeline > :nth-child(6) { animation-delay: 1.55s; }
.is-on .st-timeline > :nth-child(7) { animation-delay: 1.7s; } .is-on .st-timeline > :nth-child(8) { animation-delay: 1.85s; }
.is-on .st-timeline > :nth-child(9) { animation-delay: 2s; } .is-on .st-timeline > :nth-child(10) { animation-delay: 2.15s; }
.is-on .st-timeline > :nth-child(11) { animation-delay: 2.3s; }
.st-tandas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-tandas li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; opacity: 0; }
.st-tandas li i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.st-tandas li b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tandas li span { color: var(--text-3); }
.is-on .st-tandas li { animation: pop .5s var(--ease) forwards; }
.is-on .st-tandas li:nth-child(1) { animation-delay: 2.6s; } .is-on .st-tandas li:nth-child(2) { animation-delay: 2.85s; } .is-on .st-tandas li:nth-child(3) { animation-delay: 3.1s; }

/* 03 Play */
.s-play { flex-direction: row; align-items: center; gap: clamp(18px, 3vw, 36px); }
.st-disc { flex: 0 0 44%; position: relative; }
.st-disc .vinyl { width: 100%; }
.s-play:not(.is-on) .vinyl, .s-play:not(.is-on) .vinyl::before { animation-play-state: paused; }
.is-on .st-disc { animation: slide-in .8s var(--ease) both; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-30px) rotate(-30deg); } }
.st-now { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.is-on .st-now > * { animation: pop .5s var(--ease) both; }
.is-on .st-now > :nth-child(2) { animation-delay: .15s; } .is-on .st-now > :nth-child(3) { animation-delay: .25s; }
.is-on .st-now > :nth-child(4) { animation-delay: .35s; } .is-on .st-now > :nth-child(5) { animation-delay: .5s; }
.st-pills { display: flex; align-items: center; gap: 10px; }
.st-pills .g { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #04140a; background: var(--c); }
.st-pills .dots { display: flex; gap: 4px; }
.st-pills .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgb(255 255 255 / .2); }
.st-pills .dots i.on { width: 20px; border-radius: 9px; background: var(--orange); }
.st-pills .pos { color: var(--text-2); font-size: 13px; }
.st-now .ttl { font-family: var(--display); font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.st-now .art { color: var(--text-2); }
.st-prog { height: 4px; border-radius: 4px; background: rgb(255 255 255 / .1); overflow: hidden; margin: 10px 0 6px; }
.st-prog i { display: block; height: 100%; width: 100%; background: var(--orange); border-radius: 4px; transform: scaleX(.08); transform-origin: left; }
.is-on .st-prog i { animation: prog-run 7s linear forwards; }
@keyframes prog-run { to { transform: scaleX(.7); } }
.st-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.st-meta .chip:first-child { color: var(--orange); background: rgb(255 143 45 / .1); box-shadow: inset 0 0 0 1px rgb(255 143 45 / .3); }
.st-meta .next b { color: #fff; background: var(--vals); padding: 1px 8px; border-radius: 999px; font-size: 11px; letter-spacing: .06em; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step { padding: 16px 18px 22px; }
  .flow-step .txt > span { display: none; }
  .flow-step[aria-selected="true"] .txt > span { display: block; }
  .flow-stage { min-height: 380px; }
}
@media (max-width: 560px) {
  .st-tracks li { grid-template-columns: 1fr auto; }
  .st-tracks li span, .st-tracks li em { display: none; }
  .s-play { flex-direction: column; justify-content: center; }
  .st-disc { flex: none; width: 52%; }
  .flow-stage { min-height: 460px; }
}


/* ---------- Price band ---------- */
.price {
  position: relative; overflow: hidden; border-radius: 36px; padding: clamp(36px, 6vw, 80px);
  background: linear-gradient(120deg, #2a0c04 0%, #5c1607 30%, var(--orange-hot) 75%, var(--orange) 100%);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2);
}
.price::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgb(0 0 0 / .12) 0 1px, transparent 1px 22px); mix-blend-mode: multiply; opacity: .6; }
.price > * { position: relative; }
.price h2 { font-size: clamp(38px, 5.6vw, 84px); }
.price p { color: rgb(255 240 225 / .85); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; margin: 20px 0 0; max-width: 52ch; }
.price-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-list li { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 18px; background: rgb(0 0 0 / .22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); font-weight: 500; }
.price-list svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 3vw, 44px); }
.faq-list { max-width: 980px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--display); font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform .4s var(--ease), background-color .3s; }
.faq summary .plus svg { width: 14px; height: 14px; }
.faq details.is-open summary .plus { transform: rotate(45deg); background: var(--orange); color: #1a0b00; box-shadow: none; }
.faq summary:hover { color: var(--orange); }
.faq .ans { padding: 0 60px 28px 0; color: var(--text-2); max-width: 64ch; overflow: hidden; }
.faq details.is-open summary { color: var(--text); }
.faq .ans p { margin: 0 0 10px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq .ans { padding-right: 0; } }

/* ---------- Final CTA ---------- */
.final {
  --v: min(640px, 88vw);
  position: relative; isolation: isolate; text-align: center; overflow: clip;
  min-height: calc(var(--v) + clamp(96px, 12vw, 180px)); display: grid; place-items: center;
  padding: clamp(48px, 6vw, 90px) 0;
}
.final .vinyl.huge { position: absolute; z-index: -1; width: var(--v); left: 50%; top: 50%; margin: calc(var(--v) / -2) 0 0 calc(var(--v) / -2); opacity: .9; animation-duration: 12s; box-shadow: 0 0 0 1px rgb(255 143 45 / .18), 0 0 90px 10px rgb(255 90 31 / .28), 0 40px 80px -30px rgb(0 0 0 / .8); }
.final .vinyl.huge::before { animation-duration: 12s; }
.final .vinyl.huge::after { opacity: .55; }
.final::after { content: ''; position: absolute; z-index: -2; inset: 0; background: radial-gradient(closest-side, rgb(255 90 31 / .38), rgb(255 90 31 / .16) 45%, rgb(194 38 15 / .06) 70%, transparent 100%); }
.final h2 { font-size: clamp(56px, 12vw, 190px); letter-spacing: -.055em; line-height: .86; font-weight: 700; margin-bottom: 32px; }
.final .lede { margin: 0 auto 40px; text-align: center; max-width: 52ch; }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--text-3); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a:hover { color: var(--text); }
.footer .brand img.word { height: 18px; }

/* Off-screen sections pause their loops (see main.js) */
.is-idle *, .is-idle *::before, .is-idle *::after { animation-play-state: paused !important; }

/* ---------- Micro-interactions ---------- */
/* Cards lift on hover; "translate" stays separate from the reveal's "transform" */
.card:hover, .aud-card:hover { translate: 0 -4px; }
.btn:active, .lang:active, .tabs button:active, .toggle button:active, .flow-step:active { transform: scale(.97); }
.flow-step { transition: background-color .4s, box-shadow .4s, transform .2s; }
.lang { transition: color .2s, transform .2s; }
/* Language switch: the text fades out, changes, fades back in */
main, .nav a, .header-actions .btn span, .footer { transition: opacity .18s ease; }
body.swapping main, body.swapping .nav a, body.swapping .header-actions .btn span, body.swapping .footer { opacity: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal.card, .reveal.aud-card { transition: opacity 1s var(--ease), transform 1s var(--ease), translate .5s var(--ease); transition-delay: var(--d, 0s), var(--d, 0s), 0s; }

/* ---------- Bilingual blocks on the inner pages ---------- */
html[lang="it"] [data-lang="en"], html[lang="en"] [data-lang="it"] { display: none !important; }

/* ---------- Inner pages: guide and data notice ---------- */
.page-hero { position: relative; isolation: isolate; padding: clamp(140px, 14vw, 190px) 0 clamp(40px, 5vw, 64px); overflow: clip; }
@media (max-width: 900px) { .page-hero { padding-top: 170px; } }
.page-hero::before { content: ''; position: absolute; z-index: -1; inset: -20% -10% auto; height: 120%; background: radial-gradient(40% 50% at 20% 40%, rgb(255 90 31 / .25), transparent 70%), radial-gradient(30% 40% at 85% 20%, rgb(255 143 45 / .14), transparent 70%); }
.page-hero h1 { font-size: clamp(48px, 8vw, 120px); line-height: .9; letter-spacing: -.05em; font-weight: 700; margin-bottom: 24px; }
.page-hero .lede { max-width: 60ch; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(64px, 8vw, 120px); }
.toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.toc a { padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .25s, background-color .25s; }
.toc a:hover { color: var(--text); background: rgb(255 255 255 / .04); }
.toc a.on { color: #1a0b00; background: var(--orange); }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 0; background: none; box-shadow: none; }
  .toc a { white-space: nowrap; border-radius: 999px; padding: 7px 12px; font-size: 13px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
}

.prose { max-width: 760px; }
.prose section { scroll-margin-top: 96px; padding-bottom: clamp(40px, 5vw, 64px); }
.prose section + section { padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.prose h2 { display: flex; align-items: center; gap: 16px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 20px; }
.prose h2 .icon { width: 56px; height: 56px; border-radius: 16px; }
.prose h2 .icon .ico { width: 40px; height: 40px; }
.prose h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--text-2); font-size: 17px; line-height: 1.65; }
.prose p { margin: 0 0 14px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(180deg, #ffb066, var(--orange)); box-shadow: 0 0 10px -2px rgb(255 143 45 / .8); }
.prose ol { counter-reset: step; }
.prose ol li { position: relative; padding-left: 44px; counter-increment: step; }
.prose ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; color: #1a0b00; background: var(--orange); }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose kbd { font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: rgb(255 255 255 / .08); box-shadow: inset 0 -1px 0 rgb(255 255 255 / .1); color: var(--text); }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin: 22px 0; padding: 18px 20px; border-radius: 18px; background: rgb(255 143 45 / .07); box-shadow: inset 0 0 0 1px rgb(255 143 45 / .25); }
.callout .ico { width: 34px; height: 34px; }
.callout p { margin: 0; font-size: 16px; }
.callout.note { background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line-strong); }

.flow-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 24px; }
.flow-line .chip { font-size: 14px; padding: 9px 14px; }
.flow-line .to { color: var(--orange); font-weight: 700; }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 clamp(40px, 5vw, 64px); }
.summary div { padding: 20px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; }
.summary .ico { width: 40px; height: 40px; }
.summary b { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.summary span { color: var(--text-2); font-size: 14px; line-height: 1.5; }

.data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 18px; font-size: 15px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.data-table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; background: rgb(255 255 255 / .03); }
.data-table td { color: var(--text-2); line-height: 1.5; }
.data-table td:first-child { color: var(--text); font-weight: 500; width: 34%; }
.data-table tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table thead { display: none; }
  .data-table td:first-child { width: 100%; padding-bottom: 2px; }
  .data-table td + td { padding-top: 0; }
}
.todo { color: var(--gold); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .hero-title .line > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .stage * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .flow-step .bar { display: none; }
  .app, .screen { transform: none; }
}
