/* =========================================================================
   SiteProof — WordPress TrustOps Platform
   Marketing site stylesheet. Pure CSS, no dependencies.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --ink: #0F172A;          /* Navy — strong text, dark surfaces */
  --slate-800: #1F2937;    /* table headers, secondary dark surfaces */
  --emerald: #10B981;      /* primary accent, "Proof", CTA, OK */
  --emerald-600: #059669;  /* hover CTA */
  --emerald-50: #ECFDF5;
  --blue: #2563EB;         /* secondary accent, links, gradient */
  --blue-50: #EFF6FF;
  --amber: #F59E0B;        /* warning / medium severity */
  --orange: #F97316;       /* high severity */
  --red: #EF4444;          /* critical / high severity */
  --slate-50: #F8FAFC;     /* page background */
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;    /* borders, dividers */
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;    /* secondary text */
  --slate-600: #475569;
  --slate-700: #334155;
  --white: #FFFFFF;

  /* Gradient brand */
  --grad: linear-gradient(135deg, #10B981 0%, #2563EB 100%);
  --grad-soft: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(37,99,235,0.12) 100%);

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;

  /* Shape */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 20px -5px rgba(15, 23, 42, 0.10), 0 6px 10px -8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
  --shadow-glow: 0 20px 60px -20px rgba(16, 185, 129, 0.45);

  /* Layout */
  --maxw: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 68px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--emerald-600); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

strong { font-weight: 700; }

/* Focus visibility (accessibility) */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.on-dark :focus-visible,
.site-header--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: #7dd3fc;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.section--slate { background: var(--slate-50); }
.section--white { background: var(--white); }
.section--alt { background: var(--slate-100); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p {
  font-size: 1.12rem;
  color: var(--slate-600);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.eyebrow--center { justify-content: center; }
.on-dark .eyebrow { color: #6ee7b7; }

.lede { font-size: 1.18rem; color: var(--slate-600); }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--slate-500); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(16,185,129,0.6);
}
.btn--primary:hover { background: var(--emerald-600); color: #fff; box-shadow: 0 10px 26px -8px rgba(16,185,129,0.7); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--slate-300);
}
.btn--ghost:hover { border-color: var(--slate-500); background: var(--white); color: var(--ink); }

.btn--ghost-dark {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.5); }

.btn--light {
  background: #fff;
  color: var(--ink);
}
.btn--light:hover { background: var(--slate-100); color: var(--ink); }

.btn--lg { font-size: 1.05rem; padding: 1rem 1.75rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.btn-row--center { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--slate-200);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.site-header__logo { display: inline-flex; align-items: center; }
.site-header__logo svg { height: 30px; width: auto; }
.site-header__logo .logo-light { display: block; }
.site-header__logo .logo-dark { display: none; }
.site-header__logo img { height: 30px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--slate-100); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Desktop: nav links + actions sit on ONE row (right cluster) */
.site-header__nav { display: flex; align-items: center; gap: 1rem; }
.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .site-header__nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    padding: 0.75rem var(--gutter) 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    display: none;
  }
  .site-header__nav.is-open { display: flex; }
  .site-header__nav .nav { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .site-header__nav .nav a { padding: 0.8rem 0.75rem; font-size: 1.05rem; }
  .site-header__nav .site-header__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--slate-200);
  }
  .site-header__nav .btn { width: 100%; }
  .header-cta-desktop { display: none; }
}
@media (min-width: 1025px) {
  .header-cta-mobile { display: none; }
}

/* Long-form language blocks (legal pages): IT is the embedded default; hide EN
   until i18n.js decides, so both languages never flash at once. */
[data-i18n-lang="en"] { display: none; }

/* Contact form result message */
.form-result { margin-top: 0.85rem; padding: 0.7rem 0.95rem; border-radius: 10px; font-size: 0.92rem; }
.form-result.is-pending { background: #EFF6FF; color: #1E3A8A; }
.form-result.is-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-result.is-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ---------- Language switch (IT | EN) ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-pill);
  background: var(--white);
}
.lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--slate-500);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch__btn:hover { color: var(--ink); }
.lang-switch__btn.is-active {
  background: var(--ink);
  color: #fff;
}
.lang-switch__sep {
  color: var(--slate-300);
  font-size: 0.8rem;
  user-select: none;
}
@media (max-width: 1024px) {
  .site-header__nav .lang-switch {
    align-self: flex-start;
    margin-top: 0.85rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 130% at 80% -10%, #1e293b 0%, #0F172A 55%, #0b1120 100%);
  color: #e2e8f0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* emerald glow */
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  left: -180px; top: -220px;
  background: radial-gradient(circle, rgba(16,185,129,0.28), transparent 62%);
  filter: blur(10px);
  z-index: -1;
}
.hero::after {
  /* blue glow */
  content: "";
  position: absolute;
  width: 680px; height: 680px;
  right: -240px; bottom: -300px;
  background: radial-gradient(circle, rgba(37,99,235,0.30), transparent 62%);
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hero__logo { margin-bottom: 1.75rem; }
.hero__logo svg { height: 38px; width: auto; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero__sub { font-size: 1.2rem; color: #cbd5e1; max-width: 36ch; margin-bottom: 1.9rem; }
.hero .btn-row { margin-bottom: 1.9rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.92rem;
  color: #94a3b8;
}
.hero__meta li { list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.hero__meta { padding: 0; margin: 0; }
.hero__meta svg { width: 18px; height: 18px; color: var(--emerald); flex: none; }

/* on-dark generic */
.on-dark { color: #cbd5e1; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p { color: #cbd5e1; }

/* ---------- Dashboard mockup (faux product) ---------- */
.mock {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--ink);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
}
.mock__dots { display: flex; gap: 0.35rem; }
.mock__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-300); }
.mock__dots span:nth-child(1){ background:#fca5a5;}
.mock__dots span:nth-child(2){ background:#fcd34d;}
.mock__dots span:nth-child(3){ background:#86efac;}
.mock__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
  margin-left: 0.4rem;
}
.mock__body { padding: clamp(1.1rem, 3vw, 1.6rem); }

.mock__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.mock__score-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); }
.mock__score-value { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.mock__score-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.8rem; font-weight: 700;
  color: var(--emerald-600);
  background: var(--emerald-50);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-top: 0.45rem;
}

/* Score ring (gauge) */
.gauge { position: relative; width: 116px; height: 116px; flex: none; }
.gauge svg { transform: rotate(-90deg); width: 116px; height: 116px; }
.gauge__track { fill: none; stroke: var(--slate-200); stroke-width: 11; }
.gauge__value { fill: none; stroke: url(#gauge-grad); stroke-width: 11; stroke-linecap: round; }
.gauge__num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; letter-spacing: -0.02em;
}
.gauge__num b { font-size: 1.85rem; line-height: 1; }
.gauge__num span { font-size: 0.7rem; color: var(--slate-500); font-weight: 600; }

/* Severity rows */
.mock__rows { display: grid; gap: 0.55rem; margin-bottom: 1.25rem; }
.sev-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.sev-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sev-row__label { font-weight: 600; color: var(--slate-700); }
.sev-row__meta { color: var(--slate-500); font-size: 0.82rem; }
.sev-pill {
  font-size: 0.72rem; font-weight: 700; padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill); white-space: nowrap;
}
.sev--critico { background:#fef2f2; color:#b91c1c; }
.sev--critico .sev-dot, .dot--critico { background: var(--red); }
.sev--alto { background:#fff7ed; color:#c2410c; }
.sev--alto .sev-dot, .dot--alto { background: var(--orange); }
.sev--medio { background:#fffbeb; color:#b45309; }
.sev--medio .sev-dot, .dot--medio { background: var(--amber); }
.sev--ok { background:#ecfdf5; color:#047857; }
.sev--ok .sev-dot, .dot--ok { background: var(--emerald); }

/* Sparkline bars */
.spark {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
  padding: 0.85rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}
.spark span {
  flex: 1;
  background: var(--grad);
  border-radius: 3px 3px 0 0;
  min-height: 6px;
  opacity: 0.85;
}
.mock__caption { font-size: 0.78rem; color: var(--slate-500); margin: 0.6rem 0 0; }

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.75rem);
  padding-block: 1.4rem;
}
.trust-strip__item {
  display: flex; align-items: center; gap: 0.55rem;
  color: #94a3b8; font-size: 0.92rem; font-weight: 500;
}
.trust-strip__item svg { width: 18px; height: 18px; color: var(--emerald); flex: none; }

/* light variant for in-page trust strips */
.logos-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  color: var(--slate-500);
}
.logos-strip__label { width: 100%; text-align: center; font-size: 0.85rem; color: var(--slate-500); margin-bottom: 0.4rem; }
.logos-strip__item { display:flex; align-items:center; gap:0.5rem; font-weight:600; color: var(--slate-600); font-size: 0.95rem; }
.logos-strip__item svg { width: 20px; height: 20px; color: var(--slate-400); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--grad-soft);
  color: var(--emerald-600);
  margin-bottom: 1rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card__num {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em;
  color: var(--blue); margin-bottom: 0.4rem;
}

/* feature mini-list with check icons */
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.feat-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.97rem; color: var(--slate-700); }
.feat-list svg { width: 19px; height: 19px; color: var(--emerald); flex: none; margin-top: 2px; }
.feat-list--tight li { font-size: 0.92rem; }

/* ---------- Risk pitch ---------- */
.risk {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.risk::after {
  content:"";
  position:absolute; right:-120px; top:-120px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(16,185,129,0.25), transparent 65%);
}
.risk h2 { color: #fff; position: relative; }
.risk p { color: #cbd5e1; margin-bottom: 0; position: relative; }
.risk__stat {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.risk__stat b { display:block; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.risk__stat span { color: #94a3b8; font-size: 0.95rem; }

/* ---------- Trust Score explainer ---------- */
.trustscore {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.ts-inputs { display: grid; gap: 0.75rem; }
.ts-input {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.ts-input__icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--grad-soft); color: var(--emerald-600);
}
.ts-input__icon svg { width: 22px; height: 22px; }
.ts-input__name { font-weight: 700; }
.ts-input__desc { font-size: 0.85rem; color: var(--slate-500); }
.ts-input__bar {
  grid-column: 1 / -1;
  height: 7px; border-radius: 999px;
  background: var(--slate-200);
  overflow: hidden;
  margin-top: 0.2rem;
}
.ts-input__bar i { display:block; height:100%; border-radius: 999px; background: var(--grad); }
.ts-input__score { font-weight: 800; font-variant-numeric: tabular-nums; }

.ts-result { text-align: center; }
.ts-result .gauge { width: 200px; height: 200px; margin: 0 auto 1rem; }
.ts-result .gauge svg { width: 200px; height: 200px; }
.ts-result .gauge__num b { font-size: 3.2rem; }
.ts-result .gauge__track { stroke-width: 13; }
.ts-result .gauge__value { stroke-width: 13; }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: flex-start;
}
.step__num {
  counter-increment: step;
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff; font-weight: 800;
  box-shadow: 0 6px 14px -6px rgba(37,99,235,0.6);
}
.step__num::before { content: counter(step); }
.step h4 { margin-bottom: 0.2rem; }
.step p { margin-bottom: 0; color: var(--slate-600); font-size: 0.97rem; }

/* ---------- Module deep-dive sections (funzionalita) ---------- */
.module {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--slate-200);
}
.module:first-of-type { border-top: 0; }
.module--rev .module__media { order: -1; }
.module__tag {
  display:inline-flex; align-items:center; gap:0.5rem;
  font-size:0.8rem; font-weight:700; letter-spacing:0.05em; text-transform:uppercase;
  color: var(--emerald-600); margin-bottom: 0.75rem;
}
.module__tag .module__chip {
  background: var(--grad-soft); color: var(--emerald-600);
  width: 34px; height: 34px; border-radius: 9px;
  display:grid; place-items:center;
}
.module__tag .module__chip svg { width: 18px; height: 18px; }
.module__pain {
  background: var(--blue-50);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  color: var(--slate-700);
  margin: 1.1rem 0 1.25rem;
}
.module__pain strong { color: var(--ink); }

.media-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.4rem;
}
.media-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin-bottom: 1rem; }

/* callout */
.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: var(--emerald-50);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-top: 1.5rem;
}
.callout__icon { color: var(--emerald-600); }
.callout__icon svg { width: 24px; height: 24px; }
.callout h4 { margin-bottom: 0.25rem; color: var(--emerald-600); }
.callout p { margin: 0; font-size: 0.95rem; color: var(--slate-700); }
.callout--amber { background: #fffbeb; border-color: #fde68a; }
.callout--amber .callout__icon, .callout--amber h4 { color: #b45309; }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  padding: 0.35rem;
  box-shadow: var(--shadow-sm);
}
.billing-toggle button {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: var(--slate-600);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.billing-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.billing-toggle .save-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald-600);
  background: var(--emerald-50);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (min-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}

.plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.plan--featured {
  border-color: var(--emerald);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--emerald);
}
.plan--featured::before {
  content: "Più scelto";
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.plan__name { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.2rem; }
.plan__target { font-size: 0.85rem; color: var(--slate-500); min-height: 2.4em; margin-bottom: 0.9rem; }
.plan__price { display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: 0.2rem; }
.plan__price b { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.plan__price span { color: var(--slate-500); font-size: 0.9rem; }
.plan__price-note { font-size: 0.8rem; color: var(--slate-500); min-height: 1.2em; margin-bottom: 1.1rem; }
.plan .btn { margin-bottom: 1.25rem; }
.plan__features { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.plan__features li { display:flex; gap:0.5rem; align-items:flex-start; font-size:0.9rem; color: var(--slate-700); }
.plan__features svg { width:18px; height:18px; color: var(--emerald); flex:none; margin-top: 1px; }

.plan__price .annual-only,
.plan__price-note .annual-only { display: inline; }
.plan__price .monthly-only,
.plan__price-note .monthly-only { display: none; }
[data-billing="monthly"] .plan__price .annual-only,
[data-billing="monthly"] .plan__price-note .annual-only { display: none; }
[data-billing="monthly"] .plan__price .monthly-only,
[data-billing="monthly"] .plan__price-note .monthly-only { display: inline; }

/* includes-all band */
.includes {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.includes ul {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.8rem 1.5rem;
}
.includes li { display:flex; gap:0.6rem; align-items:flex-start; font-size:0.97rem; }
.includes svg { width:20px; height:20px; color: var(--emerald); flex:none; margin-top:2px; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 820px; margin-inline: auto; }
.faq__item {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
}
.faq__q:hover { background: var(--slate-50); }
.faq__icon {
  width: 24px; height: 24px; flex: none;
  position: relative;
  transition: transform 0.2s ease;
  color: var(--slate-400);
}
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); color: var(--emerald-600); }
.faq__a {
  padding: 0 1.35rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease;
}
.faq__a-inner { padding-bottom: 1.25rem; color: var(--slate-600); }
.faq__a-inner p:last-child { margin-bottom: 0; }
.faq__item.is-open .faq__a { max-height: 520px; }

/* ---------- Segments / vertical bullets ---------- */
.segment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: flex-start;
}
.segment__icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--grad-soft); color: var(--blue);
  flex: none;
}
.segment__icon svg { width: 22px; height: 22px; }
.segment h4 { margin-bottom: 0.2rem; }
.segment p { margin: 0; font-size: 0.92rem; color: var(--slate-600); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content:"";
  position:absolute; inset:0;
  background: var(--grad);
  opacity: 0.12;
}
.cta-band > * { position: relative; }
.cta-band h2 { color:#fff; }
.cta-band p { color:#cbd5e1; max-width: 56ch; margin-inline:auto; margin-bottom: 1.75rem; }

/* ---------- Stat / metric tiles ---------- */
.metrics { display:grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.metric {
  background:#fff; border:1px solid var(--slate-200); border-radius: var(--radius);
  padding: 1.4rem; text-align:center; box-shadow: var(--shadow-sm);
}
.metric b { display:block; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric span { color: var(--slate-500); font-size: 0.92rem; }

/* ---------- Before/after chips ---------- */
.ba {
  display:grid; grid-template-columns: 1fr auto 1fr; gap: 0.9rem; align-items:center;
}
.ba__col {
  background:#fff; border:1px solid var(--slate-200); border-radius: var(--radius);
  padding: 1.1rem; text-align:center;
}
.ba__col h5 { margin:0 0 0.5rem; font-size:0.78rem; text-transform:uppercase; letter-spacing:0.05em; color: var(--slate-500); }
.ba__arrow { color: var(--slate-400); }
.ba__arrow svg { width: 28px; height: 28px; }

/* ---------- Testimonial ---------- */
.quote {
  background:#fff; border:1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem); box-shadow: var(--shadow-sm);
}
.quote blockquote { margin:0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.quote__mark { font-size: 3rem; line-height: 0.5; color: var(--emerald); font-weight: 800; }
.quote figcaption { margin-top: 1.1rem; color: var(--slate-500); font-size: 0.95rem; }
.quote figcaption b { color: var(--ink); display:block; font-size: 1rem; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: radial-gradient(120% 130% at 85% -20%, #1e293b 0%, #0F172A 60%, #0b1120 100%);
  color: #cbd5e1;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.page-hero h1 { color:#fff; max-width: 18ch; }
.page-hero p { font-size: 1.18rem; color:#cbd5e1; max-width: 60ch; margin-bottom: 0; }
.page-hero .btn-row { margin-top: 1.75rem; }
.page-hero__grid { display:grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,3.5rem); align-items:center; }

.breadcrumb { font-size: 0.85rem; color: #94a3b8; margin-bottom: 1rem; display:flex; gap:0.4rem; flex-wrap:wrap; }
.breadcrumb a { color:#cbd5e1; }
.breadcrumb a:hover { color:#fff; }
.breadcrumb span[aria-current] { color:#94a3b8; }

/* ---------- Forms ---------- */
.form-card {
  background:#fff; border:1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow);
}
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display:flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field .req { color: var(--red); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
}
.field__hint { font-size: 0.8rem; color: var(--slate-500); }
.form-note {
  font-size: 0.85rem; color: var(--slate-500);
  background: var(--slate-50);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}
.checkbox-row { display:flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--slate-600); }
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; flex:none; }

.contact-grid { display:grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(1.5rem, 4vw, 3rem); align-items:start; }
.contact-aside { display:grid; gap: 1rem; }
.contact-aside .card { box-shadow: var(--shadow-sm); }
.contact-aside h3 { font-size: 1.1rem; }
.contact-method { display:flex; gap:0.75rem; align-items:flex-start; }
.contact-method svg { width:22px; height:22px; color: var(--emerald-600); flex:none; margin-top:2px; }
.contact-method b { display:block; }
.contact-method span { color: var(--slate-500); font-size: 0.9rem; }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.prose p, .prose li { color: var(--slate-700); font-size: 1rem; }
.prose ul { padding-left: 1.25rem; display:grid; gap: 0.4rem; }
.prose a { text-decoration: underline; }
.prose .updated { color: var(--slate-500); font-size: 0.9rem; }
.legal-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  color: #92400e;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.legal-notice strong { color: #78350f; }
.toc {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2.5rem;
}
.toc h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin: 0 0 0.75rem; }
.toc ol { margin: 0; padding-left: 1.25rem; display:grid; gap: 0.35rem; }
.toc a { text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #94a3b8;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer__brand svg { height: 30px; width: auto; margin-bottom: 1rem; }
.site-footer__brand p { font-size: 0.92rem; color: #94a3b8; max-width: 32ch; }
.site-footer h4 { color: #e2e8f0; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: #94a3b8; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.88rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display:flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-badges { display:flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.footer-badge {
  display:inline-flex; align-items:center; gap:0.4rem;
  font-size: 0.78rem; font-weight: 600; color: #cbd5e1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem;
}
.footer-badge svg { width: 15px; height: 15px; color: var(--emerald); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.flow > * + * { margin-top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divider { height:1px; background: var(--slate-200); border:0; margin-block: clamp(2rem,5vw,3.5rem); }

/* ---------- Responsive collapses ---------- */
@media (max-width: 980px) {
  .hero__grid,
  .page-hero__grid,
  .trustscore,
  .risk,
  .contact-grid { grid-template-columns: 1fr; }
  .risk { text-align: left; }
  .module { grid-template-columns: 1fr; gap: 1.75rem; }
  .module--rev .module__media { order: 0; }
  .grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .metrics { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; }
  .ba__arrow { transform: rotate(90deg); justify-self:center; }
  .hero__meta { gap: 0.75rem 1.4rem; }
  .btn-row .btn { flex: 1 1 auto; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .mock__top { grid-template-columns: 1fr; text-align:center; justify-items:center; }
  .risk__stat { margin-top: 0.5rem; }
}
