/* Pedali Digitali — shared styles. Tokens documented in design-system/MASTER.md */

/* Archivo, served from this site (no Google Fonts) */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('../assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('../assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --line: #2b2b2b;
  --line-strong: #3d3d3d;
  --text: #f4f4f2;
  --muted: #a8a8a3;
  --accent: #4c8dff;
  --accent-hover: #76a8ff;
  --accent-ink: #06122b;
  --ok: #7ee0a1;
  --error: #ff9a8a;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px; --s7: 144px;
  --r-s: 10px; --r-m: 18px; --r-pill: 999px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;

  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --t-fast: 160ms;
  --t-med: 260ms;
}

@media (max-width: 480px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 var(--s2); max-width: 62ch; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 720; font-stretch: 110%; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.4vw + 0.6rem, 6.75rem); font-weight: 800; font-stretch: 120%; letter-spacing: -0.04em; line-height: 0.95; }
h2 { font-size: clamp(2rem, 3.2vw + 1rem, 3.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.375rem; font-weight: 650; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.2; }

.lead { font-size: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 1000;
  background: var(--accent); color: var(--accent-ink); padding: 12px 18px; border-radius: var(--r-s); font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: var(--s2); }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, var(--s7)); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.section-head p { margin-top: var(--s3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; font-stretch: 104%;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; font-size: 1.1875rem; }
.brand svg { width: 34px; height: 34px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; color: rgba(244, 244, 242, 0.8); font-size: 0.9375rem; border-radius: var(--r-pill); white-space: nowrap;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav-list a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-list a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.nav-list a.btn-primary, .nav-list a.btn-primary[aria-current] { background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.nav-list a.btn-primary:hover { background: var(--accent-hover); }
.nav-cta { margin-left: var(--s1); }

.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1120px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #050505; border-bottom: 1px solid var(--line);
    padding: var(--s2) var(--gutter) var(--s4);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { font-size: 1.25rem; min-height: 56px; padding: 0 12px; font-stretch: 108%; }
  .nav-cta { margin: var(--s2) 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-top: var(--s4); max-width: 54ch; }
.hero .btn-row { margin-top: var(--s4); }

.stage { margin: clamp(56px, 8vw, 96px) 0 0; }
.stage-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding-bottom: var(--s2); border-bottom: 1px solid var(--line); }
.stage-title { font-weight: 650; font-stretch: 108%; font-size: 1rem; }
.stage-meta { color: var(--muted); font-size: 0.9375rem; }
.stage-svg { width: 100%; height: auto; margin-top: var(--s3); overflow: visible; }
.stage-svg .grid line { stroke: #1f1f1f; stroke-width: 1; }
.stage-svg .km { fill: #6f6f6b; font-size: 13px; font-family: var(--font); }
.stage-svg .route { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stage-svg .area { fill: url(#areaFill); }
.stage-svg .marker circle.dot { fill: var(--bg); stroke: var(--accent); stroke-width: 3; }
.stage-svg .marker text { fill: var(--accent); font-family: var(--font); font-weight: 800; font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.stage-svg .marker line { stroke: #3a3a3a; stroke-dasharray: 3 4; }
.stage-svg .route, .stage-svg .marker circle.dot { vector-effect: non-scaling-stroke; }
@media (max-width: 600px) {
  .stage-svg .km { display: none; }
  .stage-svg .marker circle.dot { r: 26px; }
  .stage-svg .marker text { font-size: 26px; }
}

.stage-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s3); counter-reset: leg; }
.stage-legend li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.stage-legend .num {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 0.875rem;
}
.stage-legend strong { display: block; font-weight: 650; font-stretch: 104%; }
.stage-legend span.desc { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 760px) { .stage-legend { grid-template-columns: 1fr; gap: var(--s2); } }

/* the one orchestrated moment */
.js .stage-svg .route { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .stage-svg .area, .js .stage-svg .marker { opacity: 0; }
.js .stage.is-live .route { animation: draw 1800ms var(--ease-out) 200ms forwards; }
.js .stage.is-live .area { animation: fadein 900ms ease 1100ms forwards; }
.js .stage.is-live .marker { animation: fadein 360ms ease forwards; }
.js .stage.is-live .marker.m1 { animation-delay: 650ms; }
.js .stage.is-live .marker.m2 { animation-delay: 1150ms; }
.js .stage.is-live .marker.m3 { animation-delay: 1700ms; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .stage-svg .route { stroke-dashoffset: 0; animation: none !important; }
  .js .stage-svg .area, .js .stage-svg .marker { opacity: 1; animation: none !important; }
}

/* ---------- Problem ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.loss-list li { padding: var(--s3) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 16px; }
.loss-list li:last-child { border-bottom: 1px solid var(--line); }
.loss-list svg { width: 24px; height: 24px; color: var(--muted); margin-top: 3px; }
.loss-list strong { display: block; font-weight: 650; font-stretch: 104%; margin-bottom: 4px; }
.loss-list span { color: var(--muted); }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 16px; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; }
.benefit svg.icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: var(--s3); }
.benefit h3 { margin-bottom: 10px; }
.benefit p { color: var(--muted); font-size: 1rem; }
.benefit-feature { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 36px; }
@media (max-width: 1000px) {
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit-feature { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 680px) {
  .benefits { grid-template-columns: 1fr; }
  .benefit-feature { grid-template-columns: 1fr; padding: 28px; }
}

/* mock product card */
.mock-product { background: #f4f4f2; color: #121212; border-radius: 14px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(76, 141, 255, 0.35); }
.mock-product .ph { aspect-ratio: 16 / 10; border-radius: 10px; background: #e4e4e0; display: grid; place-items: center; margin-bottom: 14px; }
.mock-product .ph svg { width: 78%; color: #222; }
.mock-product .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mock-product .name { font-weight: 750; font-stretch: 110%; font-size: 1.0625rem; letter-spacing: -0.01em; }
.mock-product .price { font-weight: 700; font-variant-numeric: tabular-nums; }
.mock-product .sizes { display: flex; gap: 6px; margin: 12px 0; }
.mock-product .sizes span { min-width: 38px; height: 32px; border-radius: 8px; border: 1px solid #c9c9c4; display: grid; place-items: center; font-size: 0.8125rem; font-weight: 600; }
.mock-product .sizes span.on { background: #121212; color: #f4f4f2; border-color: #121212; }
.mock-product .sizes span.off { color: #9a9a95; text-decoration: line-through; }
.mock-product .stock { font-size: 0.875rem; color: #1d6b3a; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.mock-product .stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #23a35a; }
.mock-product .fake-btn { background: #121212; color: #f4f4f2; text-align: center; border-radius: 999px; padding: 10px; font-weight: 650; font-size: 0.9375rem; }
.mock-caption { font-size: 0.8125rem; color: var(--muted); margin-top: 10px; }

/* ---------- Audit ---------- */
.audit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .audit { grid-template-columns: 1fr; } }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 12px 0; }
.check-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.check-list strong { font-weight: 650; }
.check-list span { color: var(--muted); }

.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; }
.report-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: var(--s3); }
.report-head b { font-weight: 700; font-stretch: 108%; }
.report-head small { color: var(--muted); font-size: 0.8125rem; }
.report-site { font-size: 0.9375rem; color: var(--muted); margin-bottom: var(--s3); overflow-wrap: anywhere; }
.meter { margin-bottom: 18px; }
.meter-top { display: flex; justify-content: space-between; font-size: 0.9375rem; margin-bottom: 8px; }
.meter-top span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.meter-bar { height: 8px; border-radius: 999px; background: #262626; overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: inherit; background: var(--muted); }
.meter-bar i.good { background: var(--ok); }
.meter-bar i.bad { background: var(--accent); }
.report-note { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
.report-note strong { color: var(--text); font-weight: 650; }

/* ---------- Stages (process) ---------- */
.stages { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.stages::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(76, 141, 255, 0.15)); }
.stages li { position: relative; padding-top: 64px; }
.stages .pin { position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); display: grid; place-items: center; font-weight: 800; color: var(--accent); }
.stages .tappa { color: var(--muted); font-size: 0.9375rem; display: block; margin-bottom: 6px; }
.stages h3 { margin-bottom: 10px; }
.stages p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) {
  .stages { grid-template-columns: 1fr; gap: 0; }
  .stages::before { left: 19px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), rgba(76, 141, 255, 0.15)); }
  .stages li { padding: 0 0 var(--s4) 64px; }
}

/* ---------- Soon ---------- */
.soon { border: 1px dashed var(--line-strong); border-radius: var(--r-m); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s4); align-items: center; }
.soon .btn-row { justify-content: flex-end; }
@media (max-width: 800px) { .soon { grid-template-columns: 1fr; } .soon .btn-row { justify-content: flex-start; } }
.pill-soon { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--accent); border: 1px solid rgba(76, 141, 255, 0.4); padding: 4px 12px; border-radius: 999px; margin-bottom: var(--s2); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding: 22px 0; font-weight: 650; font-stretch: 104%; font-size: 1.1875rem; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--muted); transition: transform var(--t-med) var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.faq .answer { padding: 0 0 24px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: left; border-top: 1px solid var(--line); }
.final-cta h2 { font-size: clamp(2.5rem, 5.5vw + 0.5rem, 5.5rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.04em; line-height: 0.98; max-width: 14ch; }
.final-cta .lead { margin-top: var(--s3); }
.final-cta .btn-row { margin-top: var(--s4); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(32px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw + 0.75rem, 5.25rem); max-width: 16ch; }
.page-hero .lead { margin-top: var(--s3); max-width: 58ch; }

/* ---------- Services page ---------- */
.service { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
.service .for { color: var(--muted); margin-top: var(--s2); font-size: 1rem; }
.service ul.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: var(--s3); }
.service ul.features li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 1rem; }
.service ul.features svg { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
@media (max-width: 820px) { .service { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .service ul.features { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 8px; }
.field .req { color: var(--accent); }
.field .hint { display: block; color: var(--muted); font-size: 0.875rem; margin-top: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-s);
  font: inherit; font-size: 1rem;
  transition: border-color var(--t-fast);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #75756f; }
.field input:hover, .field textarea:hover { border-color: #5a5a5a; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field .error { display: none; color: var(--error); font-size: 0.875rem; margin-top: 6px; }
.field.has-error .error { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 0.9375rem; transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.chip input:checked + span { background: rgba(76, 141, 255, 0.14); border-color: var(--accent); color: var(--text); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.check a { color: var(--text); }
.inline-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }
.inline-toggle input { width: 20px; height: 20px; accent-color: var(--accent); }
.form-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-actions .small { font-size: 0.875rem; color: var(--muted); }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.error-summary { display: none; border: 1px solid var(--error); border-radius: var(--r-s); padding: 16px 18px; margin-bottom: 24px; color: var(--text); }
.error-summary.show { display: block; }
.error-summary ul { margin-top: 8px; list-style: disc; padding-left: 20px; color: var(--error); }
.error-summary a { color: var(--error); }
.form-success { display: none; text-align: left; }
.form-success.show { display: block; }
.form-success svg { width: 44px; height: 44px; color: var(--ok); margin-bottom: var(--s2); }
.form-success h2 { font-size: 2rem; margin-bottom: var(--s2); }

.aside-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.aside-list li:last-child { border-bottom: 1px solid var(--line); }
.aside-list strong { display: block; font-weight: 650; margin-bottom: 4px; }
.aside-list span { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.contact-card svg.icon { width: 28px; height: 28px; color: var(--accent); }
.contact-card p { color: var(--muted); font-size: 1rem; flex: 1; }
.contact-card .btn { align-self: flex-start; }
.contact-card.primary { border-color: rgba(76, 141, 255, 0.45); }

/* ---------- Language switcher ---------- */
.header-inner > .brand { order: 0; }
.header-inner > .site-nav { order: 1; margin-left: auto; }
.header-inner > .lang-switch { order: 2; }
.header-inner > .menu-toggle { order: 3; }
.lang-switch { position: relative; }
.nav-cta .btn { white-space: nowrap; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font: inherit; font-size: 0.875rem; font-weight: 650; cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--text); background: rgba(255, 255, 255, 0.05); }
.lang-btn svg { width: 18px; height: 18px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; min-width: 190px; padding: 6px;
  background: #121212; border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
}
.lang-menu a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  text-decoration: none; color: var(--text); font-size: 0.9375rem;
}
.lang-menu a span { width: 26px; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(255, 255, 255, 0.07); }
.lang-menu a[aria-current="true"] { background: rgba(76, 141, 255, 0.14); }
.lang-menu a[aria-current="true"] span { color: var(--accent); }
@media (max-width: 1120px) { .header-inner > .lang-switch { margin-left: auto; } }

/* ---------- First-clients offer (under hero CTA) ---------- */
.offer {
  margin-top: var(--s4); max-width: 560px; padding: 24px 26px;
  background: rgba(17, 17, 17, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(76, 141, 255, 0.45); border-radius: var(--r-m);
}
.offer-tag { display: inline-flex; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.875rem; }
.offer h2 { font-size: clamp(1.375rem, 1vw + 1rem, 1.75rem); font-weight: 750; font-stretch: 110%; margin-bottom: 10px; }
.offer p { color: #d4d4cf; font-size: 1rem; margin-bottom: 8px; }
.offer-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 12px; }
.offer-list li { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.offer-list svg { width: 18px; height: 18px; color: var(--accent); }
.offer .offer-note { color: var(--muted); font-size: 0.9375rem; }
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.offer-link { color: var(--text); font-weight: 600; font-size: 0.9375rem; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.offer-link:hover { color: var(--accent); }

/* ---------- Plans (pricing) ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(24px, 3.5vw, 40px); }
.plan.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(76, 141, 255, 0.09), rgba(76, 141, 255, 0) 45%), var(--surface); }
.plan-name { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-name h3 { font-size: 1.5rem; font-weight: 750; font-stretch: 112%; }
.plan-badge { font-size: 0.8125rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.plan-badge.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
.plan-for { color: var(--muted); margin: 10px 0 24px; font-size: 1rem; }
.plan-price { display: grid; gap: 10px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.price-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.price-line span { color: var(--muted); font-size: 0.9375rem; }
.price-line b { font-size: 1.125rem; font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; }
.price-line b.big { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); font-stretch: 112%; letter-spacing: -0.02em; color: var(--text); }
.price-line b.free { color: var(--accent); }
.price-line small { display: block; font-size: 0.8125rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan-list { display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 1rem; }
.plan-list svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.plan-list li.no { color: var(--muted); }
.plan-list li.no svg { color: #6f6f6b; }
.plan .btn { align-self: flex-start; }
.plan-fine { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 560px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare thead th { background: var(--surface); font-weight: 700; }
.compare thead th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 24%; }
.compare tbody th { font-weight: 500; color: #d4d4cf; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .nope { color: #75756f; }

.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 800px) { .steps-3 { grid-template-columns: 1fr; } }
.steps-3 li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; }
.steps-3 .pin-num { margin-bottom: 14px; }
.steps-3 h3 { margin-bottom: 8px; }
.steps-3 p { color: var(--muted); font-size: 1rem; }

.plan-tag { display: inline-flex; margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; border: 1px solid var(--line-strong); color: var(--muted); }
.plan-tag.base { border-color: rgba(76, 141, 255, 0.5); color: var(--accent); }

/* ---------- Hero night-ride background ---------- */
.hero { position: relative; }
.hero > .container { position: relative; z-index: 1; }
.ride-bg {
  position: absolute; inset: 0 0 auto 0; width: 100%; height: min(100%, 860px); z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 90%), linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.3) 45%, #000 80%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 45%, transparent 90%), linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.3) 45%, #000 80%);
  mask-composite: intersect;
}
@media (max-width: 900px) { .ride-bg { opacity: .55; } }

/* Hero video (workshop close-up). Darkened so the headline keeps strong contrast. */
.hero-media {
  position: absolute; inset: 0 0 auto 0; height: min(100%, 860px); z-index: 0; overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity 1200ms ease;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 38%, rgba(0,0,0,.25) 72%, rgba(0,0,0,.12) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, #000 95%);
}
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; filter: saturate(.85) contrast(1.05); }
.hero.has-video .hero-media { opacity: 1; }
.hero.has-video .ride-bg { opacity: .22; }
@media (max-width: 700px) {
  .hero-media::after { background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.82) 45%, #000 92%); }
}

/* ---------- Animated scenes ---------- */
.scene-row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(32px, 5vw, 64px); }
.scene-row + .scene-row { border-top: 1px solid var(--line); }
.scene-row.flip .scene-copy { order: 2; }
@media (max-width: 860px) { .scene-row { grid-template-columns: 1fr; } .scene-row.flip .scene-copy { order: 0; } }
.scene-copy h3 { font-size: clamp(1.5rem, 1.4vw + 1rem, 2.125rem); font-weight: 720; font-stretch: 110%; letter-spacing: -0.02em; margin: 16px 0 14px; }
.scene-copy p { color: var(--muted); }
.pin-num { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 800; }

.scene { position: relative; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 90% at 80% 0%, #0f1a2e 0%, #121212 55%); border: 1px solid var(--line); min-height: 380px; }

/* Scene 1: local search */
.scene-search { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.sx-bar { display: flex; align-items: center; gap: 10px; background: #f4f4f2; color: #222; border-radius: 999px; height: 48px; padding: 0 18px; font-size: 0.9375rem; }
.sx-bar svg { width: 18px; height: 18px; color: #777; flex: none; }
.sx-caret { width: 2px; height: 20px; background: #222; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.sx-map { border-radius: 14px; overflow: hidden; height: 140px; }
.sx-map svg { width: 100%; height: 100%; }
.sx-pin-me { transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(-30px); opacity: 0; transition: transform 600ms cubic-bezier(.3,1.6,.5,1), opacity 200ms; }
.scene.step-2 .sx-pin-me { transform: none; opacity: 1; }
.sx-results { position: relative; height: 196px; }
.sx-row {
  position: absolute; left: 0; right: 0; height: 58px; padding: 9px 16px; border-radius: 12px;
  background: #1c1c1c; border: 1px solid #2a2a2a; display: flex; flex-direction: column; justify-content: center;
  transform: translateY(calc(var(--row) * 66px)); opacity: 0;
  transition: transform 700ms var(--ease-out), opacity 400ms ease, background-color 400ms, border-color 400ms;
}
.sx-row b { font-weight: 650; font-size: 0.9375rem; }
.sx-row span { font-size: 0.8125rem; color: var(--muted); }
.scene.step-1 .sx-row { opacity: 1; }
.scene.step-3 .sx-row:not(.me) { transform: translateY(calc((var(--row) + 1) * 66px)); }
.scene.step-3 .sx-row.me { transform: translateY(0); background: rgba(76, 141, 255, 0.14); border-color: var(--accent); }

/* Scene 2: phone */
.scene-phone { display: grid; place-items: center; padding: 28px 16px; min-height: 460px; }
.phone { position: relative; width: 236px; height: 440px; border-radius: 38px; background: #0b0b0b; border: 2px solid #333; padding: 10px; box-shadow: 0 40px 80px -30px rgba(76, 141, 255, 0.35); }
.phone-notch { position: absolute; top: 14px; left: 50%; width: 74px; height: 20px; margin-left: -37px; background: #0b0b0b; border-radius: 12px; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 29px; overflow: hidden; background: #f4f4f2; color: #141414; }
.ph-scroll { padding: 40px 12px 16px; }
.scene.is-playing .ph-scroll { animation: phscroll 9s var(--ease-out) infinite; }
@keyframes phscroll { 0%, 12% { transform: translateY(0); } 45%, 58% { transform: translateY(-150px); } 78%, 100% { transform: translateY(-262px); } }
.ph-head { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; margin-bottom: 10px; }
.ph-head b { flex: 1; font-weight: 750; font-stretch: 112%; }
.ph-logo { width: 18px; height: 18px; border-radius: 6px; background: #2f6feb; }
.ph-burger { width: 16px; height: 10px; border-top: 2px solid #141414; border-bottom: 2px solid #141414; }
.ph-hero { position: relative; height: 128px; border-radius: 14px; background: linear-gradient(135deg, #2f6feb, #10285c); display: grid; place-items: center; overflow: hidden; }
.ph-hero svg { width: 74%; opacity: .95; }
.ph-hero span { position: absolute; left: 12px; bottom: 10px; color: #fff; font-weight: 750; font-size: 0.875rem; font-stretch: 110%; }
.ph-chips { display: flex; gap: 5px; margin: 12px 0; overflow: hidden; }
.ph-chips span { flex: none; white-space: nowrap; font-size: 0.6875rem; padding: 5px 8px; border-radius: 999px; border: 1px solid #cfcfca; font-weight: 600; }
.ph-chips span.on { background: #141414; color: #fff; border-color: #141414; }
.ph-card { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 8px; margin-bottom: 8px; }
.ph-card b { display: block; font-size: 0.75rem; font-weight: 700; }
.ph-card span { display: block; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.ph-card em { display: block; font-style: normal; font-size: 0.625rem; color: #1d6b3a; }
.ph-img { display: block; height: 52px; border-radius: 8px; background-repeat: no-repeat; background-position: center; background-size: 86%; }
.ph-img.a { background-color: #e4e4e0; }
.ph-img.b { background-color: #dfe5ea; }
.ph-img.c { background-color: #f0e2e7; }
.ph-img { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 120' fill='none' stroke='%23222' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='48' cy='80' r='32'/%3E%3Ccircle cx='172' cy='80' r='32'/%3E%3Cpath d='M48 80 82 36h70l20 44M82 36l30 44 40-44'/%3E%3C/svg%3E"); }
.ph-cta { margin-top: 10px; background: #141414; color: #fff; text-align: center; font-weight: 700; font-size: 0.8125rem; padding: 11px; border-radius: 999px; }
.scene.is-playing .ph-cta { animation: phpress 9s infinite; }
@keyframes phpress { 0%, 84% { background: #141414; transform: scale(1); } 86% { background: #2f6feb; transform: scale(.96); } 90%, 100% { background: #2f6feb; transform: scale(1); } }
.ph-tap { position: absolute; left: 50%; bottom: 46px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: rgba(20, 20, 20, .25); opacity: 0; }
.scene.is-playing .ph-tap { animation: phtap 9s infinite; }
@keyframes phtap { 0%, 80% { opacity: 0; transform: scale(.4); } 84% { opacity: 1; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(1.6); } }
.ph-toast { position: absolute; left: 10px; right: 10px; top: 36px; background: #141414; color: #fff; font-size: 0.6875rem; font-weight: 600; padding: 10px 12px; border-radius: 12px; opacity: 0; transform: translateY(-12px); }
.scene.is-playing .ph-toast { animation: phtoast 9s infinite; }
@keyframes phtoast { 0%, 88% { opacity: 0; transform: translateY(-12px); } 91%, 98% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Scene 3: workshop calendar */
.scene-cal { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; }
.cal-head b { font-weight: 700; font-stretch: 108%; }
.cal-count { color: var(--muted); font-size: 0.875rem; }
.cal-n { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-grid { display: grid; grid-template-columns: 44px repeat(6, 1fr); gap: 6px; font-size: 0.6875rem; }
.cal-grid .d { text-align: center; color: var(--muted); font-weight: 600; padding-bottom: 2px; }
.cal-grid .t { color: #6f6f6b; display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.cal-grid .slot { height: 40px; border-radius: 8px; background: #1b1b1b; border: 1px dashed #2c2c2c; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.15; padding: 2px; color: transparent; transition: background-color 400ms, color 400ms, transform 400ms var(--ease-out), border-color 400ms; }
.cal-grid .slot.busy { background: #2a2a2a; border-style: solid; border-color: #333; color: #8a8a85; }
.cal-grid .slot.new { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; transform: scale(1.04); }
.cal-grid .slot.new.settled { transform: none; }
@media (max-width: 520px) { .cal-grid .slot { font-size: 0; } .cal-grid { grid-template-columns: 36px repeat(6, 1fr); } }
.cal-toast { display: flex; align-items: center; gap: 10px; background: #f4f4f2; color: #141414; border-radius: 12px; padding: 12px 14px; font-size: 0.875rem; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity 300ms, transform 400ms var(--ease-out); }
.cal-toast i { width: 10px; height: 10px; border-radius: 50%; background: #2f6feb; flex: none; }
.cal-toast.show { opacity: 1; transform: none; }

/* ---------- Final CTA wheel ---------- */
.final-cta { position: relative; overflow: hidden; }
.final-cta > .container { position: relative; z-index: 1; }
.wheel-bg { position: absolute; right: -140px; top: 50%; width: 560px; height: 560px; margin-top: -280px; color: var(--accent); opacity: .12; animation: spin 48s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { .wheel-bg { width: 380px; height: 380px; margin-top: -190px; right: -170px; opacity: .1; } }

@media (prefers-reduced-motion: reduce) {
  .wheel-bg, .sx-caret { animation: none; }
  .scene.is-playing .ph-scroll, .scene.is-playing .ph-cta, .scene.is-playing .ph-tap, .scene.is-playing .ph-toast { animation: none; }
}

/* ---------- Legal (privacy) ---------- */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.9375rem; }
@media (max-width: 900px) { .legal-toc { position: static; border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px 24px; } }
.legal-toc h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; }
.legal-toc ol { list-style: decimal; padding-left: 20px; color: var(--muted); }
.legal-toc a { display: inline-block; padding: 5px 0; color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--text); }
.legal { max-width: 72ch; }
.legal h2 { font-size: clamp(1.5rem, 1vw + 1.1rem, 1.875rem); margin: 56px 0 16px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.125rem; margin: 28px 0 10px; }
.legal p, .legal li, .legal address { color: #d4d4cf; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal li strong, .legal address strong { color: var(--text); }
.legal address { font-style: normal; line-height: 1.75; margin: 0 0 16px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.legal a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r-m); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--text); font-weight: 650; background: var(--surface); }
.legal td { color: #d4d4cf; }
.legal tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .legal thead { display: none; }
  .legal tr, .legal td { display: block; }
  .legal td:first-child { padding-bottom: 4px; color: var(--text); font-weight: 600; }
  .legal td:last-child { padding-top: 0; }
  .legal tr { border-bottom: 1px solid var(--line); }
  .legal td { border-bottom: 0; }
}
/* Placeholders the owner must fill in before going live */
.todo { background: rgba(76, 141, 255, 0.16); color: var(--accent); border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s5) var(--s4); color: var(--muted); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s4); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: 1rem; font-stretch: 104%; letter-spacing: 0; color: var(--text); margin-bottom: 12px; font-weight: 650; }
.footer-grid a { text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.875rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 16px; border-radius: var(--r-pill);
  background: #25d366; color: #062b14; font-weight: 700; text-decoration: none; font-size: 0.9375rem;
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, 0.55);
  transition: transform var(--t-fast) var(--ease-out);
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 480px) { .wa-float span { display: none; } .wa-float { padding: 0; width: 56px; justify-content: center; } }

/* ===== Small-phone fixes (≤400px: iPhone SE, small Androids) ===== */
.brand svg, .lang-btn svg, .menu-toggle svg { flex: none; }
/* Labels that may wrap: rounded rectangle instead of a stretched pill */
.offer-tag, .pill-soon, .plan-badge, .plan-tag { border-radius: 14px; line-height: 1.35; }
.cal-head { gap: 6px 12px; flex-wrap: wrap; }
.cal-count { white-space: nowrap; }
@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .brand { font-size: 1.0625rem; gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
  .lang-btn { padding: 0 10px; gap: 4px; }
  .btn-row .btn { width: 100%; justify-content: center; }
}

/* ===== "Gratuito" highlight: a tyre track draws under the word, a wheel rolls along it ===== */
.hl {
  --hl-base: currentColor; --hl-y: -0.3em;
  position: relative; display: inline-block; white-space: nowrap;
  background-image: linear-gradient(90deg, var(--accent) 0 50%, var(--hl-base) 50% 100%);
  background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.hl-track { position: absolute; left: -2%; width: 104%; bottom: var(--hl-y); height: 0.4em; min-height: 9px; max-height: 18px; overflow: visible; pointer-events: none; }
.hl-track path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.hl-track .tyre { stroke: var(--accent); stroke-width: 3px; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(76, 141, 255, .55)); }
.hl-track .tread { stroke: var(--accent); stroke-width: 1.5px; stroke-dasharray: .012 .02; opacity: 0; transform: translateY(4px); }
h1 .hl, h2 .hl { --hl-y: -0.12em; }
h1 .hl-track .tyre, h2 .hl-track .tyre { stroke-width: 5px; }
h1 .hl-wheel, h2 .hl-wheel { width: 12px; height: 12px; margin-left: -6px; }
.hl-wheel {
  position: absolute; left: 0; bottom: var(--hl-y); width: 10px; height: 10px; margin: 0 0 -1px -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px var(--accent), 0 0 18px 4px rgba(76, 141, 255, .8);
  opacity: 0; pointer-events: none;
}
.hl-spark { position: absolute; right: -6px; bottom: calc(var(--hl-y) + 0.2em); width: 2px; height: 2px; pointer-events: none; }
.hl-spark i { position: absolute; width: 3px; height: 9px; border-radius: 2px; background: var(--accent); opacity: 0; transform-origin: 50% 100%; }

.hl.is-on { animation: hl-ink 1.1s var(--ease-out) .15s forwards; }
.hl.is-on .tyre { animation: hl-draw 1.1s var(--ease-out) .15s forwards; }
.hl.is-on .tread { animation: hl-tread .6s ease-out 1.05s forwards; }
.hl.is-on .hl-wheel { animation: hl-roll 1.1s var(--ease-out) .15s forwards; }
.hl.is-on .hl-spark i { animation: hl-spark .55s ease-out 1.2s forwards; }
.hl-spark i:nth-child(1) { transform: rotate(-60deg); }
.hl-spark i:nth-child(2) { transform: rotate(0deg); }
.hl-spark i:nth-child(3) { transform: rotate(60deg); }

@keyframes hl-ink { to { background-position: 0 0; } }
@keyframes hl-draw { to { stroke-dashoffset: 0; } }
@keyframes hl-tread { to { opacity: .45; transform: translateY(0); } }
@keyframes hl-roll {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  10% { opacity: 1; transform: translate(calc(var(--hl-w) * .1), -2px) scale(1); }
  30% { transform: translate(calc(var(--hl-w) * .3), 1px); }
  55% { transform: translate(calc(var(--hl-w) * .55), -2px); }
  85% { opacity: 1; transform: translate(calc(var(--hl-w) * .9), 0); }
  100% { opacity: 0; transform: translate(var(--hl-w), -1px) scale(.4); }
}
@keyframes hl-spark {
  0% { opacity: 1; translate: 0 0; scale: 1 .2; }
  40% { opacity: 1; scale: 1 1; }
  100% { opacity: 0; translate: 0 -10px; scale: 1 .4; }
}
/* Hover replays the ride (mouse only) */
@media (hover: hover) { .hl.is-done:hover .hl-wheel { animation: hl-roll .9s var(--ease-out) forwards; } }

@media (prefers-reduced-motion: reduce) {
  .hl, .hl.is-on { animation: none; background-position: 0 0; }
  .hl .tyre { stroke-dashoffset: 0; animation: none !important; }
  .hl .tread { opacity: .45; transform: none; animation: none !important; }
  .hl-wheel, .hl-spark { display: none; }
}

/* ===== Android: large system text sizes ===== */
.header-inner > .brand { min-width: 0; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; }
.pill-soon, .offer-tag, .plan-badge, .plan-tag { max-width: 100%; }
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 480px) {
  h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; }
}
@media (max-width: 400px) {
  .lang-btn svg { display: none; }
  .lang-btn { padding: 0 12px; }
}
.header-inner > .menu-toggle, .header-inner > .lang-switch { flex: none; }
/* Grid and flex children may shrink below their content width (no overflow with large text) */
.plans > *, .steps-3 > *, .service > *, .stages > *, .split > *, .audit > *, .scene-row > *, .form-layout > *, .contact-grid > *, .footer-grid > * { min-width: 0; }
.plan-badge { white-space: normal; }
.price-line { flex-wrap: wrap; column-gap: 12px; }
