:root {
  color-scheme: light dark;

  /* Neutri freddi come l'app (slate), un solo accento: il blu dell'app.
     La carta calda resta solo sulla distinta, che è un oggetto vero. */
  --bg: #f5f6f8;
  --bg-alt: #eceef2;
  --surface: #ffffff;
  --line: #e1e4ea;
  --line-strong: #c9ced8;
  --ink: #121826;
  --ink-soft: #4f5869;
  --ink-faint: #677083;
  --accent: #3451e0;
  --accent-hover: #2a43c4;
  --accent-ink: #3451e0;
  --accent-tint: #eef1fd;
  --night: #121826;
  --night-line: rgba(255, 255, 255, 0.12);
  --night-soft: rgba(255, 255, 255, 0.68);

  /* materiali della distinta */
  --sheet: #fffdf8;
  --sheet-line: #ddd6c4;
  --tape: rgba(233, 196, 106, 0.6);
  --tape-edge: rgba(107, 74, 0, 0.18);
  --sticker: #f0ab00;
  --sticker-ink: #4a3300;
  --pen-red: #b8433f;

  --radius-control: 10px;
  --radius-card: 16px;
  --radius-panel: 24px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-card: 0 1px 2px rgba(18, 24, 38, 0.05), 0 8px 20px -12px rgba(18, 24, 38, 0.16);
  --shadow-object: 0 24px 48px -24px rgba(18, 24, 38, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1016;
    --bg-alt: #11151c;
    --surface: #161a22;
    --line: #252b36;
    --line-strong: #353c4a;
    --ink: #eceff4;
    --ink-soft: #a3abba;
    --ink-faint: #7f8798;
    --accent: #3451e0;
    --accent-hover: #4560ea;
    --accent-ink: #8ea0ff;
    --accent-tint: #1b2238;
    --night: #161a22;
    --sheet: #1b1f27;
    --sheet-line: #2e3440;
    --tape: rgba(233, 196, 106, 0.35);
    --pen-red: #e07a76;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-object: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-ink);
}

h1, h2, h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.nav-links a,
.lang-switch a,
.footer-col a {
  transition: color 0.15s var(--ease);
}

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

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease);
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-switch a {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-faint);
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a[aria-current="page"] {
  background: var(--bg-alt);
  color: var(--ink);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-control);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink-faint);
}

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 96px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(36px, 4.8vw, 56px);
  line-height: 1.06;
  margin: 16px 0 24px;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--accent-ink);
}

.hero-copy p.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--ink-faint);
}

.store-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Stile dei badge ufficiali: fondo nero, logo e doppia riga di testo */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px 0 16px;
  border-radius: var(--radius-control);
  background: #000;
  color: #fff;
  border: 1px solid #a6a6a6;
  text-decoration: none;
  line-height: 1.1;
  transition: border-color 0.15s var(--ease);
}

.store-btn:hover {
  border-color: #fff;
}

.store-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn small {
  font-size: 11px;
  font-weight: 500;
}

.store-btn strong {
  font-size: 18px;
  font-weight: 600;
}

.store-buttons-cta {
  justify-content: center;
}

/* ---------- distinta (il momento della pagina) ---------- */

.distinta-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.distinta {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--sheet);
  border-radius: 12px;
  padding: 28px 24px 28px;
  box-shadow: var(--shadow-object);
  transform: rotate(-3.5deg);
  border: 1px solid var(--sheet-line);
}

.distinta::before,
.distinta::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 48px;
  height: 24px;
  background: var(--tape);
  border: 1px solid var(--tape-edge);
}

.distinta::before {
  left: 16px;
  transform: rotate(-8deg);
}

.distinta::after {
  right: 16px;
  transform: rotate(6deg);
}

.distinta-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.distinta-head .tag {
  font-size: 13px;
  color: var(--ink-faint);
}

.distinta-head .title {
  font-family: "Oswald", sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.distinta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  border-bottom: 1px dashed var(--sheet-line);
}

.distinta-row .num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.distinta-row .line {
  flex: 1;
  height: 1px;
  background: var(--sheet-line);
}

.distinta-row .check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.distinta-row.checked .check {
  background: var(--accent);
  border-color: var(--accent);
}

.distinta-row.checked .check svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
}

.distinta-fine {
  position: absolute;
  right: -16px;
  bottom: 76px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sticker);
  color: var(--sticker-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 14px;
  transform: rotate(9deg);
  box-shadow: var(--shadow-card);
  border: 2px solid var(--sheet);
}

.distinta-note {
  position: absolute;
  left: -32px;
  top: 168px;
  font-family: "Caveat", cursive;
  font-size: 20px;
  color: var(--accent-ink);
  transform: rotate(-7deg);
}

.distinta-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.distinta-foot .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 8px;
}

/* ---------- generic section chrome ---------- */

section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.15;
  margin: 8px 0 12px;
}

.section-head h2:first-child {
  margin-top: 0;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0;
}

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

/* ---------- problem ---------- */

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

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.problem-card .glyph {
  font-family: "Caveat", cursive;
  font-size: 26px;
  line-height: 1.2;
  color: var(--pen-red);
  display: block;
  margin-bottom: 12px;
}

.problem-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

.feature-card {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.jersey {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: block;
}

.jersey svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.jersey path {
  fill: var(--ink);
}

.jersey text {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 13px;
  fill: var(--bg);
  text-anchor: middle;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- how it works ---------- */

.how {
  background: var(--night);
  color: #fff;
}

.how .eyebrow {
  color: var(--night-soft);
}

.how .section-head h2 {
  color: #fff;
}

.how .section-head p {
  color: var(--night-soft);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.how-step {
  padding-top: 20px;
  border-top: 1px solid var(--night-line);
}

.how-step::before {
  counter-increment: step;
  content: counter(step);
  font-family: "Oswald", sans-serif;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  display: block;
  margin-bottom: 16px;
}

.how-step h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.how-step p {
  color: var(--night-soft);
  font-size: 15px;
  margin: 0;
}

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.price-card.premium {
  border: 1.5px solid var(--accent);
  box-shadow: var(--shadow-card);
}

.plan-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.price-card .badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
}

.price-card .plan-name {
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  font-weight: 500;
}

.price-card .plan-for {
  color: var(--ink-faint);
  font-size: 14px;
  margin: 4px 0 24px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.price-amount .amount {
  font-family: "Oswald", sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.price-amount .period {
  color: var(--ink-faint);
  font-size: 14px;
}

.price-sub {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.price-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
}

.price-list li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  stroke: var(--ink-faint);
  stroke-width: 2;
}

.price-card.premium .price-list li svg {
  stroke: var(--accent-ink);
}

/* ---------- final cta ---------- */

.final-cta {
  text-align: center;
}

.final-cta .container {
  background: var(--night);
  border-radius: var(--radius-panel);
  padding: 64px 32px;
  color: #fff;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 16px;
}

.final-cta p {
  color: var(--night-soft);
  max-width: 46ch;
  margin: 0 auto 32px;
  font-size: 16px;
}

/* ---------- footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand p {
  color: var(--ink-faint);
  font-size: 14px;
  max-width: 32ch;
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- app preview (phone mockups) ---------- */

.screens {
  background: var(--bg-alt);
  overflow: hidden;
}

.screens-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.screens-row::-webkit-scrollbar {
  height: 6px;
}

.screens-row::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 3px;
}

.screen-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.screen-caption {
  font-size: 14px;
  color: var(--ink-faint);
  text-align: center;
}

.screen-caption strong {
  color: var(--ink);
  font-weight: 500;
}

.phone {
  width: 248px;
  height: 536px;
  background: #0b0c0e;
  border-radius: 38px;
  padding: 8px;
  box-shadow: var(--shadow-object);
  flex-shrink: 0;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--m-canvas, #f8f9fd);
  border-radius: 30px;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  color: var(--m-ink, #0f172a);
  --m-blue: #3451e0;
  --m-slate900: #0f172a;
  --m-slate700: #334155;
  --m-slate600: #475569;
  --m-slate500: #64748b;
  --m-slate400: #94a3b8;
  --m-slate200: #e2e8f0;
  --m-slate100: #f1f5f9;
  --m-slate50: #f8fafc;
  --m-green: #059669;
  --m-green-legend: #22c55e;
  --m-green-tint: #ecfdf5;
  --m-amber: #f59e0b;
  --m-amber-tint: #fef3c7;
  --m-rose: #e11d48;
  --m-rose-tint: #fff1f2;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 20px;
  background: #0b0c0e;
  border-radius: 999px;
  z-index: 5;
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 14px 8px;
  background: color-mix(in srgb, var(--m-canvas, #f8f9fd) 92%, transparent);
}

.phone-team {
  display: flex;
  align-items: center;
  gap: 7px;
}

.phone-crest {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--m-blue), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
}

.phone-team-name {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--m-slate900);
}

.phone-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--m-slate700);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon-btn {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--m-slate600);
  font-size: 12px;
  position: relative;
}

.phone-icon-btn .dot {
  position: absolute;
  top: 2px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--m-rose);
  border: 1.5px solid var(--m-canvas, #f8f9fd);
}

.phone-body {
  padding: 10px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
  height: calc(100% - 62px);
}

.phone-card {
  background: #fff;
  border: 1px solid var(--m-slate100);
  border-radius: 13px;
  padding: 11px;
  box-shadow: 0 2px 10px -3px rgba(15, 23, 42, 0.05);
}

.phone-hero {
  position: relative;
  overflow: hidden;
}

.phone-hero::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(239, 246, 255, 0.9);
}

.phone-hero-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
}

.phone-crest-lg {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3851e0, #5570f2);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-hero-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--m-slate900);
}

.phone-hero-sub {
  font-size: 9.5px;
  color: var(--m-slate500);
  margin-top: 1px;
}

.phone-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--m-slate400);
  margin-bottom: 1px;
}

.phone-eyebrow span.link {
  color: var(--m-blue);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.phone-date-badge {
  width: 32px;
  height: 34px;
  border-radius: 8px;
  background: var(--m-slate50);
  border: 1px solid var(--m-slate100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1.1;
}

.phone-date-badge .wd {
  font-size: 6px;
  font-weight: 700;
  color: var(--m-slate400);
  letter-spacing: 0.04em;
}

.phone-date-badge .d {
  font-size: 12px;
  font-weight: 800;
  color: var(--m-slate900);
}

.phone-event-row {
  display: flex;
  gap: 9px;
}

.phone-event-meta {
  font-size: 8.5px;
  color: var(--m-slate500);
  margin-bottom: 2px;
}

.phone-event-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--m-slate900);
}

.phone-event-venue {
  font-size: 8.5px;
  color: var(--m-slate500);
  margin-top: 1px;
}

.phone-pill {
  font-size: 7.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--m-green-tint);
  color: var(--m-green);
  flex-shrink: 0;
  height: fit-content;
}

.phone-rsvp {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}

.phone-rsvp span {
  flex: 1;
  text-align: center;
  font-size: 8px;
  font-weight: 700;
  padding: 5px 0;
  border-radius: 999px;
  background: var(--m-slate50);
  color: var(--m-slate600);
  border: 1px solid var(--m-slate100);
}

.phone-rsvp span.active {
  background: var(--m-blue);
  color: #fff;
  border-color: var(--m-blue);
}

.phone-rings {
  display: flex;
  gap: 7px;
}

.phone-ring-card {
  flex: 1;
  background: #fff;
  border: 1px solid var(--m-slate100);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  box-shadow: 0 2px 10px -3px rgba(15, 23, 42, 0.05);
}

.phone-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 auto 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 800;
}

.phone-ring::after {
  content: "";
  position: absolute;
}

.phone-ring-inner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6.5px;
  font-weight: 800;
}

.phone-ring-label {
  font-size: 7.5px;
  font-weight: 700;
  color: var(--m-slate900);
}

.phone-ring-value {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--m-slate900);
  margin: 1px 0;
}

.phone-ring-note {
  font-size: 6.5px;
  color: var(--m-slate400);
}

.phone-ring-note.warn {
  color: var(--m-amber);
}

.phone-list {
  background: #fff;
  border: 1px solid var(--m-slate100);
  border-radius: 13px;
  overflow: hidden;
}

.phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--m-slate50);
}

.phone-row:last-child {
  border-bottom: none;
}

.phone-row-title {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--m-slate900);
  line-height: 1.3;
}

.phone-row-meta {
  font-size: 7.5px;
  color: var(--m-slate400);
  margin-top: 1px;
}

.phone-chip {
  font-size: 6.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.phone-chip.success {
  background: var(--m-green-tint);
  color: var(--m-green);
}

.phone-chip.warning {
  background: var(--m-amber-tint);
  color: var(--m-amber);
}

.phone-chip.danger {
  background: var(--m-rose-tint);
  color: var(--m-rose);
}

.phone-cta {
  background: var(--m-blue);
  color: #fff;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  padding: 10px;
  border-radius: 999px;
}

/* multe / certificati specific */

.phone-header-flat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 12px 8px;
}

.phone-header-flat .title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--m-slate900);
}

.phone-filters {
  display: flex;
  gap: 5px;
  overflow: hidden;
}

.phone-filter {
  font-size: 7.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--m-slate50);
  color: var(--m-slate600);
  border: 1px solid var(--m-slate100);
  white-space: nowrap;
}

.phone-filter.active {
  background: var(--m-slate900);
  color: #fff;
  border-color: var(--m-slate900);
}

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

.phone-summary-amount {
  font-size: 17px;
  font-weight: 800;
  color: var(--m-slate900);
  letter-spacing: -0.4px;
}

.phone-summary-badge {
  font-size: 7px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--m-amber-tint);
  color: var(--m-amber);
}

.phone-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--m-slate100);
  margin-top: 8px;
  overflow: hidden;
}

.phone-progress i {
  display: block;
  height: 100%;
  background: var(--m-green);
  border-radius: 999px;
}

.phone-progress-foot {
  display: flex;
  justify-content: space-between;
  font-size: 6.8px;
  color: var(--m-slate400);
  margin-top: 5px;
}

.phone-fine-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--m-slate50);
}

.phone-fine-row:last-child {
  border-bottom: none;
}

.phone-fine-amount {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--m-slate900);
}

.phone-metrics {
  display: flex;
  gap: 8px;
}

.phone-metric {
  flex: 1;
  background: #fff;
  border: 1px solid var(--m-slate100);
  border-radius: 12px;
  padding: 8px 9px;
}

.phone-metric .label {
  font-size: 7px;
  color: var(--m-slate500);
}

.phone-metric .value {
  font-size: 12px;
  font-weight: 800;
  color: var(--m-slate900);
  margin: 2px 0;
}

.phone-metric .trend {
  font-size: 6.8px;
  font-weight: 700;
}

.phone-metric .trend.up {
  color: var(--m-green);
}

.phone-metric .trend.down {
  color: var(--m-rose);
}

.phone-fab {
  position: absolute;
  right: 12px;
  bottom: 18px;
  background: #2f54eb;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-donut-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-donut {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    var(--m-green-legend) 0% 80%,
    var(--m-amber) 80% 90%,
    var(--m-rose) 90% 100%
  );
}

.phone-donut-inner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.phone-donut-inner b {
  font-size: 10px;
  font-weight: 800;
  color: var(--m-slate900);
}

.phone-donut-inner span {
  font-size: 5.5px;
  color: var(--m-slate400);
}

.phone-legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.phone-legend-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  color: var(--m-slate600);
}

.phone-legend-row .sw {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  flex-shrink: 0;
}

.phone-legend-row b {
  margin-left: auto;
  color: var(--m-slate900);
  font-size: 8.5px;
}

.phone-cert-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--m-slate50);
}

.phone-cert-row:last-child {
  border-bottom: none;
}

/* ---------- comparison ---------- */

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 16px 20px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  background: var(--bg-alt);
}

.compare-table thead th:last-child {
  color: var(--accent-ink);
}

.compare-table tbody th {
  font-weight: 500;
  color: var(--ink);
  width: 34%;
}

.compare-table td {
  color: var(--ink-faint);
}

.compare-table td.good {
  color: var(--ink);
}

/* Segni disegnati con una maschera, così prendono il colore del ruolo di testo */
.compare-table td.bad::before,
.compare-table td.good::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  background: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}

.compare-table td.bad::before {
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.compare-table td.good::before {
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background: var(--accent-ink);
}

/* ---------- faq ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 500;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--ink-faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 62ch;
}

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .screens-row {
    justify-content: flex-start;
  }

  .screen-item:first-child {
    margin-left: auto;
  }

  .screen-item:last-child {
    margin-right: auto;
  }
}

@media (max-width: 880px) {
  .hero {
    padding: 64px 0;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .distinta {
    max-width: 300px;
  }

  .problem-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .table-scroll {
    overflow-x: auto;
  }

  .compare-table {
    min-width: 640px;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 620px) {
  .nav-right {
    gap: 12px;
  }

  /* su telefono resta solo il link alla lingua alternativa, per far stare la CTA */
  .lang-switch a[aria-current="page"] {
    display: none;
  }

  .lang-switch a {
    padding: 8px;
  }

  .nav-cta {
    padding: 0 12px;
    font-size: 13px;
  }

  section {
    padding: 64px 0;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-copy p.lede {
    font-size: 16px;
  }

  .problem-grid,
  .features-grid,
  .how-steps {
    grid-template-columns: 1fr;
  }

  .features-grid {
    gap: 32px;
  }

  .price-card {
    padding: 24px;
  }

  .final-cta .container {
    padding: 48px 24px;
  }

  .footer-grid {
    flex-direction: column;
  }
}
