/* NotaSpese — design system del sito pubblico (notaspese.cloud).
   Stessi token del design "NotaSpese Registro" dell'app
   (constants/registro-theme.ts): tema chiaro = 1b "Hub" (fondo carta, card
   bianche, accento lime), tema scuro = 1a "Registro" (fondo nero, righe
   sottili, accento blu). Il sito segue prefers-color-scheme, come l'app con
   l'aspetto "Sistema".

   Vincoli della CSP del target landing (firebase.json): niente JavaScript,
   niente stili inline, immagini e fogli di stile solo dal sito stesso,
   nessun web font. Ogni elemento visivo è quindi CSS o SVG inline. */

:root {
  color-scheme: light dark;

  --bg: #f1f2ee;
  --card: #ffffff;
  --fill: #f1f2ee;
  --text: #15171a;
  --muted: rgba(21, 23, 26, 0.62);
  --soft: rgba(21, 23, 26, 0.74);
  --faint: rgba(21, 23, 26, 0.3);
  --divider: rgba(21, 23, 26, 0.08);
  --border: rgba(21, 23, 26, 0.1);

  --accent: #c8eb6f;
  --on-accent: #15171a;
  --primary: #15171a;
  --on-primary: #ffffff;
  --link: #4e6a0c;

  --success: #15705f;
  --success-soft: #e7f5f1;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --danger-border: #f2c5c5;
  --pdf: #b42318;
  --pdf-soft: #fdecea;
  --xlsx: #15705f;
  --xlsx-soft: #e7f5f1;

  /* Colori pieni delle categorie (barre, ciambella, pallini). */
  --c-km: #3d8bf0;
  --c-trasferta: #f2a93b;
  --c-cena: #ee5f7e;
  --c-pranzo: #f7be2e;
  --c-autostrada: #1fc2a6;
  --c-parcheggio: #a274ec;
  --c-albergo: #4fb3e8;
  --c-varie: #8fa0b8;
  --c-other: #c7c7cc;

  /* Icona / fondo dei badge di categoria. */
  --cat-km-fg: #245f9e;
  --cat-km-bg: #eaf2fb;
  --cat-cena-fg: #a04051;
  --cat-cena-bg: #fcecf0;
  --cat-autostrada-fg: #147064;
  --cat-autostrada-bg: #e6f5f2;
  --cat-pranzo-fg: #9a5b09;
  --cat-pranzo-bg: #fff3df;

  --shadow-card: 0 2px 10px rgba(21, 23, 26, 0.05);
  --shadow-raised: 0 22px 48px rgba(21, 23, 26, 0.14);
  --phone-frame: #15171a;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --w-strong: 800;
  --w-title: 800;

  --font-sans:
    'Manrope', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --card: #1c1c1e;
    --fill: #2c2c2e;
    --text: #f5f5f7;
    --muted: rgba(235, 235, 245, 0.6);
    --soft: rgba(235, 235, 245, 0.76);
    --faint: rgba(235, 235, 245, 0.3);
    --divider: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.1);

    --accent: #5b9bf0;
    --on-accent: #0b1420;
    --primary: #f5f5f7;
    --on-primary: #0a0a0b;
    --link: #5b9bf0;

    --success: #3ed6a4;
    --success-soft: #12332a;
    --danger: #f2685c;
    --danger-soft: #3a1d1c;
    --danger-border: #5c2c29;
    --pdf: #f2685c;
    --pdf-soft: #3a1d1c;
    --xlsx: #3ed6a4;
    --xlsx-soft: #12332a;

    --c-km: #8fc4ff;
    --c-trasferta: #e2b36f;
    --c-cena: #f3a3b4;
    --c-pranzo: #f3c16b;
    --c-autostrada: #67d7c6;
    --c-parcheggio: #c6a7f4;
    --c-albergo: #9cc9eb;
    --c-varie: #b7c3d4;
    --c-other: #6b6b73;

    --cat-km-fg: #8fc4ff;
    --cat-km-bg: #18324c;
    --cat-cena-fg: #f3a3b4;
    --cat-cena-bg: #3a222d;
    --cat-autostrada-fg: #67d7c6;
    --cat-autostrada-bg: #12332e;
    --cat-pranzo-fg: #f3c16b;
    --cat-pranzo-bg: #3a2e1a;

    --shadow-card: none;
    --shadow-raised: 0 30px 60px rgba(0, 0, 0, 0.55);
    --phone-frame: #2c2c2e;

    --w-strong: 700;
    --w-title: 700;
  }
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 540px) {
  .wrap {
    padding: 0 16px;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--divider);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.brand svg {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
}

.brand-tag {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--on-primary) !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.88;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  opacity: 0.85;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary .icon {
  color: var(--accent);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}

.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (prefers-color-scheme: dark) {
  .btn-primary .icon {
    color: var(--on-primary);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 36px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full);
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--divider);
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.eyebrow-dot {
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h1.headline {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.04;
  font-weight: var(--w-title);
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}

.headline-mark {
  background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
  padding: 0 4px;
  margin: 0 -4px;
}

@media (prefers-color-scheme: dark) {
  .headline-mark {
    background: none;
    color: var(--accent);
  }
}

.subheadline {
  font-size: 18.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 30px;
  font-weight: 500;
}

.hero-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
  margin: 18px 0 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--soft);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points .icon {
  width: 18px;
  height: 18px;
  color: var(--success);
  stroke-width: 2.4;
}

/* ---------- Phone mock (decorativo) ---------- */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-stage::before {
  content: '';
  position: absolute;
  inset: 8% -6% 4% -6%;
  border-radius: 48px;
  background: radial-gradient(closest-side, var(--accent), transparent);
  opacity: 0.45;
  filter: blur(36px);
  z-index: 0;
}

@media (prefers-color-scheme: dark) {
  .phone-stage::before {
    opacity: 0.22;
  }
}

.phone {
  position: relative;
  z-index: 1;
  width: min(326px, 100%);
  padding: 11px;
  border-radius: 50px;
  background: var(--phone-frame);
  box-shadow: var(--shadow-raised);
}

.phone-screen {
  position: relative;
  height: 640px;
  border-radius: 40px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
}

.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 14px;
  background: #000000;
  z-index: 3;
}

.m-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  padding: 0 26px;
  font-size: 13px;
  font-weight: 700;
}

.m-status-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.m-status-icons span {
  display: block;
  width: 16px;
  height: 9px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  opacity: 0.85;
}

.m-status-icons span:first-child {
  width: 14px;
  border: none;
  background: currentColor;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.m-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  z-index: 1;
}

/* Variante mostrata in base al tema: Hub in chiaro, Registro in scuro. */
.mock-registro {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .mock-hub {
    display: none;
  }

  .mock-registro {
    display: block;
  }
}

/* --- Hub (chiaro) --- */
.mock-hub {
  height: 100%;
  background: #f1f2ee;
  color: #15171a;
}

.mock-hub .m-fade {
  background: linear-gradient(rgba(241, 242, 238, 0), #f1f2ee 70%);
}

.mh-content {
  padding: 8px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 4px;
}

.mh-date {
  color: rgba(21, 23, 26, 0.55);
  font-size: 11.5px;
  font-weight: 600;
}

.mh-hello {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.m-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.mock-hub .m-avatar {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(21, 23, 26, 0.08);
}

.mh-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(21, 23, 26, 0.05);
}

.mh-summary {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mh-summary-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.m-donut {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  flex-shrink: 0;
  /* Stessi segmenti della Home chiara, separati da una fessura di 1,5°. */
  background: conic-gradient(
    #3d8bf0 0 139.6deg,
    #ffffff 139.6deg 141.1deg,
    #f2a93b 141.1deg 256.8deg,
    #ffffff 256.8deg 258.3deg,
    #ee5f7e 258.3deg 300.5deg,
    #ffffff 300.5deg 302deg,
    #f7be2e 302deg 329.1deg,
    #ffffff 329.1deg 330.6deg,
    #1fc2a6 330.6deg 347deg,
    #ffffff 347deg 348.5deg,
    #a274ec 348.5deg 358.5deg,
    #ffffff 358.5deg 360deg
  );
}

.m-donut-hole {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.m-donut-hole strong {
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.m-donut-hole span {
  font-size: 10px;
  font-weight: 600;
  color: rgba(21, 23, 26, 0.55);
}

.mh-label {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(21, 23, 26, 0.55);
}

.mh-amount {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.mh-link {
  font-size: 11px;
  font-weight: 700;
  color: #4e6a0c;
}

.mh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mh-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 9px 0 8px;
  border-radius: 13px;
  background: #f1f2ee;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(21, 23, 26, 0.65);
}

.mh-chip b {
  color: #15171a;
  font-weight: 800;
}

.m-dot {
  width: 7px;
  height: 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

.mh-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-radius: 15px;
  background: #15171a;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
}

.mh-cta .icon {
  color: #c8eb6f;
  width: 19px;
  height: 19px;
}

.mh-cta .icon:last-child {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.6);
}

.mh-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mh-tile {
  height: 86px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mh-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mh-tile-top .icon {
  width: 20px;
  height: 20px;
  color: rgba(21, 23, 26, 0.8);
}

.mh-badge {
  padding: 1px 7px;
  border-radius: 8px;
  background: #c8eb6f;
  font-size: 10px;
  font-weight: 800;
}

.mh-tile strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.mh-tile span {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(21, 23, 26, 0.55);
}

.mh-fab {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px 0 18px;
  margin-left: -78px;
  border-radius: 24px;
  background: #c8eb6f;
  color: #15171a;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(21, 23, 26, 0.16);
  white-space: nowrap;
}

.mh-fab .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

/* --- Registro (scuro) --- */
.mock-registro {
  height: 100%;
  background: #0a0a0b;
  color: #f5f5f7;
}

.mock-registro .m-fade {
  background: linear-gradient(rgba(10, 10, 11, 0), #0a0a0b 72%);
}

.mr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px;
}

.mr-month {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 14.5px;
  font-weight: 600;
}

.mr-month .icon {
  width: 16px;
  height: 16px;
  color: rgba(235, 235, 245, 0.55);
}

.mock-registro .m-avatar {
  width: 30px;
  height: 30px;
  font-size: 10.5px;
  background: #1c1c1e;
}

.mr-hero {
  padding: 18px 18px 0;
}

.mr-label {
  font-size: 12.5px;
  color: rgba(235, 235, 245, 0.55);
}

.mr-amount {
  display: flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  margin: 2px 0 4px;
}

.mr-amount strong {
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -2.6px;
  line-height: 1;
}

.mr-amount span {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: rgba(235, 235, 245, 0.55);
}

.mr-sub {
  font-size: 12.5px;
  color: rgba(235, 235, 245, 0.55);
}

.mr-bar {
  display: flex;
  gap: 3px;
  height: 8px;
  margin: 18px 18px 14px;
}

.mr-bar span {
  border-radius: 3px;
}

.seg-km {
  flex: 168 1 0;
}

.seg-trasferta {
  flex: 139.44 1 0;
}

.seg-cena {
  flex: 52 1 0;
}

.seg-pranzo {
  flex: 34 1 0;
}

.seg-autostrada {
  flex: 21.3 1 0;
}

.seg-parcheggio {
  flex: 13.76 1 0;
}

.mr-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding: 0 18px;
}

.mr-legend div {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: rgba(235, 235, 245, 0.7);
}

.mr-legend b {
  margin-left: auto;
  color: #f5f5f7;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mr-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  margin: 20px 18px 0;
  border-radius: 14px;
  background: #f5f5f7;
  color: #0a0a0b;
  font-size: 14px;
  font-weight: 600;
}

.mr-cta .icon {
  width: 19px;
  height: 19px;
}

.mr-recent {
  padding: 24px 18px 0;
}

.mr-recent-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 2px;
}

.mr-recent-head strong {
  font-size: 16px;
  font-weight: 700;
}

.mr-recent-head span {
  font-size: 12.5px;
  color: #5b9bf0;
}

.mr-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

.mr-date {
  width: 28px;
  text-align: center;
  line-height: 1.05;
}

.mr-date strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.mr-date span {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(235, 235, 245, 0.5);
}

.mr-row .icon {
  width: 18px;
  height: 18px;
}

.mr-text {
  flex: 1;
  min-width: 0;
}

.mr-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mr-text span {
  font-size: 11px;
  color: rgba(235, 235, 245, 0.55);
}

.mr-value {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mr-tabbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
}

.mr-tabs {
  flex: 1;
  display: flex;
  justify-content: space-around;
  height: 52px;
  padding: 0 4px;
  border-radius: 26px;
  background: rgba(44, 44, 48, 0.94);
}

.mr-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 8.5px;
  font-weight: 600;
  color: rgba(235, 235, 245, 0.55);
}

.mr-tab.is-active {
  color: #f5f5f7;
}

.mr-tab .icon {
  width: 19px;
  height: 19px;
}

.mr-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #5b9bf0;
  color: #0b1420;
}

.mr-plus .icon {
  width: 26px;
  height: 26px;
  stroke-width: 2.4;
}

/* Colori di categoria del mock: fissi, non dipendono dal tema del sito
   perché ogni variante del mock ha già il proprio tema. */
.mock-hub .k-km {
  background: #3d8bf0;
}
.mock-hub .k-trasferta {
  background: #f2a93b;
}
.mock-hub .k-cena {
  background: #ee5f7e;
}
.mock-hub .k-other {
  background: #c7c7cc;
}
.mock-registro .k-km {
  background: #8fc4ff;
}
.mock-registro .k-trasferta {
  background: #e2b36f;
}
.mock-registro .k-cena {
  background: #f3a3b4;
}
.mock-registro .k-pranzo {
  background: #f3c16b;
}
.mock-registro .k-autostrada {
  background: #67d7c6;
}
.mock-registro .k-parcheggio {
  background: #c6a7f4;
}
.mock-registro .k-other {
  background: #6b6b73;
}
.mock-registro .t-km {
  color: #8fc4ff;
}
.mock-registro .t-cena {
  color: #f3a3b4;
}
.mock-registro .t-autostrada {
  color: #67d7c6;
}

@media (max-width: 380px) {
  .phone-screen {
    height: 600px;
  }

  .mr-amount strong {
    font-size: 50px;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
}

@media (max-width: 700px) {
  section {
    padding: 64px 0;
  }
}

.section-alt {
  background: var(--card);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

@media (prefers-color-scheme: dark) {
  .section-alt {
    background: #111113;
  }
}

.section-head {
  max-width: 680px;
  margin: 0 0 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 12px;
}

h2.section-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  font-weight: var(--w-title);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.section-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--divider);
}

.section-alt .step {
  background: var(--bg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 15px;
}

.step h3 {
  font-size: 19px;
  font-weight: var(--w-strong);
  margin: 0;
  letter-spacing: -0.2px;
}

.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.step-visual {
  margin-top: auto;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--fill);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-alt .step-visual {
  background: var(--card);
}

.sv-amount {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}

.sv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px 0 9px;
  border-radius: 15px;
  background: var(--card);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--soft);
}

.section-alt .sv-chip {
  background: var(--fill);
}

.sv-chip.is-on {
  background: var(--primary);
  color: var(--on-primary);
}

.sv-chip .icon {
  width: 16px;
  height: 16px;
}

.sv-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sv-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0 5px;
  border-radius: 10px;
  color: var(--muted);
}

.sv-day.has {
  color: var(--text);
}

.sv-day.is-sel {
  background: var(--primary);
  color: var(--on-primary);
}

.sv-dots {
  display: flex;
  gap: 2px;
  height: 5px;
}

.sv-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.sv-file {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.sv-file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sv-file-icon.pdf {
  background: var(--pdf-soft);
  color: var(--pdf);
}

.sv-file-icon.xlsx {
  background: var(--xlsx-soft);
  color: var(--xlsx);
}

.sv-file small {
  margin-left: auto;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.sv-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  margin-top: 4px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13.5px;
  font-weight: 800;
}

.sv-send .icon {
  width: 17px;
  height: 17px;
}

/* Pallini di categoria fuori dal mock: seguono il tema del sito. */
.k-km {
  background: var(--c-km);
}
.k-trasferta {
  background: var(--c-trasferta);
}
.k-cena {
  background: var(--c-cena);
}
.k-pranzo {
  background: var(--c-pranzo);
}
.k-autostrada {
  background: var(--c-autostrada);
}
.k-parcheggio {
  background: var(--c-parcheggio);
}
.k-other {
  background: var(--c-other);
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

.feature {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--divider);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--fill);
  color: var(--text);
  margin-bottom: 16px;
}

.feature-icon.tone-km {
  background: var(--cat-km-bg);
  color: var(--cat-km-fg);
}

.feature-icon.tone-cena {
  background: var(--cat-cena-bg);
  color: var(--cat-cena-fg);
}

.feature-icon.tone-autostrada {
  background: var(--cat-autostrada-bg);
  color: var(--cat-autostrada-fg);
}

.feature-icon.tone-pranzo {
  background: var(--cat-pranzo-bg);
  color: var(--cat-pranzo-fg);
}

.feature-icon.tone-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.feature h3 {
  font-size: 17px;
  font-weight: var(--w-strong);
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}

.feature p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.feature-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--fill);
  color: var(--soft);
  font-size: 11.5px;
  font-weight: 700;
}

/* ---------- Categories strip ---------- */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--divider);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--soft);
}

.category .m-dot {
  width: 9px;
  height: 9px;
  border-radius: 4px;
}

.k-albergo {
  background: var(--c-albergo);
}

.k-varie {
  background: var(--c-varie);
}

/* ---------- Plans ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--radius-xl);
  background: var(--bg);
  border: 1px solid var(--divider);
}

.plan.featured {
  background: var(--primary);
  color: var(--on-primary);
  border-color: transparent;
  box-shadow: var(--shadow-raised);
}

@media (prefers-color-scheme: dark) {
  .plan {
    background: var(--card);
  }

  .plan.featured {
    background: var(--card);
    color: var(--text);
    border: 1.5px solid var(--accent);
  }
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.plan-kicker {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.plan.featured .plan-kicker {
  color: rgba(255, 255, 255, 0.6);
}

.plan-tag {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-tag.muted {
  background: var(--fill);
  color: var(--soft);
}

.plan-title {
  font-size: 26px;
  font-weight: var(--w-title);
  letter-spacing: -0.6px;
  margin: 0 0 8px;
}

.plan-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 22px;
}

.plan.featured .plan-desc {
  color: rgba(255, 255, 255, 0.72);
}

.plan-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 600;
}

.plan-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--success);
  stroke-width: 2.4;
}

.plan.featured .plan-list .icon {
  color: var(--accent);
}

.plan-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.plan-foot a {
  color: var(--link);
  font-weight: 700;
}

.plan.featured .plan-foot {
  border-top-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.66);
}

.plan.featured .plan-foot a {
  color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  .plan.featured .plan-kicker,
  .plan.featured .plan-desc,
  .plan.featured .plan-foot {
    color: var(--muted);
  }

  .plan.featured .plan-foot {
    border-top-color: var(--divider);
  }

  .plan.featured .plan-foot a {
    color: var(--link);
  }
}

.plans-note {
  margin: 22px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Trust ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .trust {
    grid-template-columns: minmax(0, 1fr);
  }
}

.trust-item {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-card);
}

.trust-item .icon {
  width: 26px;
  height: 26px;
  color: var(--link);
  margin-bottom: 12px;
}

.trust-item h3 {
  font-size: 16px;
  font-weight: var(--w-strong);
  margin: 0 0 6px;
}

.trust-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.trust-item a {
  color: var(--link);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq details {
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-card);
}

.section-alt .faq details {
  background: var(--bg);
  box-shadow: none;
}

@media (prefers-color-scheme: dark) {
  .section-alt .faq details {
    background: var(--card);
  }
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: var(--w-strong);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
}

.faq .faq-body {
  padding: 0 20px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.faq .faq-body p {
  margin: 0 0 10px;
}

.faq .faq-body p:last-child {
  margin-bottom: 0;
}

.faq .faq-body a {
  color: var(--link);
  font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #15171a;
  color: #ffffff;
  padding: 56px 40px;
  text-align: center;
  isolation: isolate;
}

.cta-band::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  left: 50%;
  top: -260px;
  margin-left: -210px;
  border-radius: 50%;
  background: #c8eb6f;
  opacity: 0.22;
  filter: blur(70px);
  z-index: -1;
}

@media (prefers-color-scheme: dark) {
  .cta-band {
    background: #1c1c1e;
    border: 1px solid var(--divider);
  }

  .cta-band::before {
    background: #5b9bf0;
    opacity: 0.28;
  }
}

.cta-band h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: var(--w-title);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
}

.cta-band p {
  max-width: 36em;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.cta-band .btn-row {
  justify-content: center;
}

.cta-band .btn-primary {
  background: #c8eb6f;
  color: #15171a;
}

.cta-band .btn-primary .icon {
  color: #15171a;
}

.cta-band .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: none;
}

@media (prefers-color-scheme: dark) {
  .cta-band .btn-primary {
    background: #f5f5f7;
    color: #0a0a0b;
  }

  .cta-band .btn-primary .icon {
    color: #0a0a0b;
  }
}

@media (max-width: 540px) {
  .cta-band {
    padding: 44px 20px;
    border-radius: 26px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 48px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

.footer-about p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 28em;
}

.footer-col h2 {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--soft);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 48px 0 96px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 740px);
  gap: 56px;
  justify-content: start;
  align-items: start;
}

@media (max-width: 960px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

.legal-header .section-eyebrow {
  margin-bottom: 10px;
}

.legal-header h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: var(--w-title);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 12px;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 32px;
}

.legal-updated .icon {
  width: 16px;
  height: 16px;
}

.toc {
  position: sticky;
  top: 90px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-card);
}

@media (max-width: 960px) {
  .toc {
    position: static;
  }
}

.toc h2 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--soft);
  text-decoration: none;
}

.toc a::before {
  content: counter(toc);
  min-width: 16px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.toc a:hover {
  background: var(--fill);
  color: var(--text);
}

@media (max-width: 960px) {
  .toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
  }
}

@media (max-width: 540px) {
  .toc {
    padding: 14px 12px;
  }

  .toc a {
    padding: 5px 6px;
    font-size: 12.5px;
  }
}

.legal-summary {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-card);
  margin: 0 0 12px;
}

.legal-summary h2 {
  font-size: 16px;
  font-weight: var(--w-strong);
  margin: 0 0 12px;
}

.legal-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-summary li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--soft);
}

.legal-summary li .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--success);
  stroke-width: 2.4;
}

.legal-section {
  padding: 28px 0 4px;
  border-top: 1px solid var(--divider);
  margin-top: 28px;
}

.legal-section:first-of-type {
  border-top: none;
  margin-top: 0;
}

.legal-section h2 {
  font-size: 21px;
  font-weight: var(--w-strong);
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}

.legal-section h3 {
  font-size: 16px;
  font-weight: var(--w-strong);
  margin: 20px 0 8px;
}

.legal-section p,
.legal-section li {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--soft);
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-section li {
  margin-bottom: 7px;
}

.legal-section li::marker {
  color: var(--muted);
}

.legal-section strong {
  color: var(--text);
}

.legal-section a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-section ol li {
  margin-bottom: 10px;
}

.table-scroll {
  overflow-x: auto;
  margin: 4px 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--divider);
  background: var(--card);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider);
  color: var(--soft);
}

.legal-table th {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--fill);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table td:first-child {
  font-weight: 700;
  color: var(--text);
  min-width: 140px;
}

/* Su schermi stretti ogni riga diventa una scheda: niente colonne strette
   né scroll orizzontale. La terza colonna porta l'etichetta in data-label. */
@media (max-width: 640px) {
  .legal-table thead {
    display: none;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--divider);
  }

  .legal-table tr:last-child {
    border-bottom: none;
  }

  .legal-table td {
    padding: 0;
    border-bottom: none;
  }

  .legal-table td + td {
    margin-top: 4px;
  }

  .legal-table td[data-label] {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
  }

  .legal-table td[data-label]::before {
    content: attr(data-label) ': ';
    font-weight: 700;
  }
}

/* Riquadro di richiamo: isola visivamente ciò che è irreversibile o
   importante da ciò che non lo è. */
.legal-callout {
  border: 1px solid var(--divider);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 16px 18px;
  margin: 4px 0 14px;
}

.legal-callout.danger {
  border-color: var(--danger-border);
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.legal-callout p:last-child,
.legal-callout ul:last-child {
  margin-bottom: 0;
}

.path {
  display: inline;
  padding: 1px 7px;
  border-radius: 7px;
  background: var(--fill);
  color: var(--text);
  font-weight: 700;
  font-size: 0.94em;
  white-space: nowrap;
}

.legal-section .path {
  white-space: normal;
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.not-found .big {
  font-size: clamp(72px, 14vw, 140px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0 0 8px;
}

.not-found h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: var(--w-title);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.not-found p {
  max-width: 32em;
  color: var(--muted);
  font-size: 16.5px;
  margin: 0 0 28px;
}
