/* ============================================================
   thiagosgarbi.com — shared stylesheet (all languages)
   Incumbent design system: ink / blue accent / gold, DM Serif Display + DM Sans
   ============================================================ */

/* ── Self-hosted webfonts ───────────────────────────────────────
   Served from /fonts/ so the LCP (the DM Serif headline) never waits on a
   cross-origin round trip to fonts.googleapis.com/fonts.gstatic.com.
   Latin subset only: every shipped locale (it/en/pt) lives entirely inside
   U+0000–00FF, so the latin-ext files would add ~53KB for zero glyphs.
   DM Sans ships its variable file once: it covers the 400/500/600 weights
   this system actually uses, and italics exist only on <em> inside h1/h2
   (DM Serif Display), so no DM Sans italic is loaded. */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/fonts/dm-sans-var-latin.woff2?v=ca72d2bcea') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display-latin.woff2?v=fdf61e20fd') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-serif-display-italic-latin.woff2?v=ed8b291611') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* The hidden attribute must win over component display rules (flex/grid),
   or [hidden] elements stay visible. */
[hidden] { display: none !important; }

:root { color-scheme: light; }

:root {
  --ink: #0D1117;
  --ink-muted: #4A5260;
  --ink-light: #66717F;   /* darkened from #8B95A2 for AA contrast on tinted surfaces */
  --surface: #FFFFFF;
  --surface-2: #F7F8FA;
  --surface-3: #EFF1F4;
  --accent: #1A56C4;
  --accent-light: #E8EFFE;
  --accent-dark: #0F3A8A;
  --accent-glow: rgba(26,86,196,0.12);
  --accent-bright: #7AABFF;   /* blue on dark sections (AA as text on --ink) */
  --accent-soft: rgba(122,171,255,0.12);   /* tinted chips/icons on dark */
  --gold: #C08A2A;
  --gold-text: #8A5F13;   /* darkened gold for text on light surfaces: 5.6:1 on white */
  --negative: #E24B4A;   /* "before" bars / negative delta only */
  --gold-light: #FDF3E1;
  --border: rgba(13,17,23,0.08);
  --border-strong: rgba(13,17,23,0.14);
  /* dark-section card tokens */
  --dark-surface: rgba(255,255,255,0.05);
  --dark-border: rgba(255,255,255,0.08);
  --dark-border-strong: rgba(255,255,255,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(13,17,23,0.06), 0 1px 2px rgba(13,17,23,0.04);
  --shadow: 0 4px 16px rgba(13,17,23,0.08), 0 1px 4px rgba(13,17,23,0.04);
  --shadow-lg: 0 12px 40px rgba(13,17,23,0.10), 0 4px 12px rgba(13,17,23,0.06);
  /* dark-section text tokens (AA on #0D1117) */
  --dark-text: rgba(255,255,255,0.72);
  --dark-text-strong: rgba(255,255,255,0.92);
  --dark-text-soft: rgba(255,255,255,0.55);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── FOCUS (visible for keyboard users, never removed) ─── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.on-dark :focus-visible, .cta-final :focus-visible, footer :focus-visible {
  outline-color: #7AABFF;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 0;
  z-index: 300;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-logo { min-height: 44px; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; gap: 2rem; list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="location"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav-links a.nav-cta[aria-current="location"] {
  background: var(--accent-dark);
  text-decoration: none;
}

.nav-links a.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background .2s;
}
.nav-links a.nav-cta:hover { background: var(--accent-dark); }

/* language links (static, no JS needed) */
.lang-links {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 3px;
}
.lang-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.lang-links a:hover { background: var(--surface-3); color: var(--ink); }
.lang-links a[aria-current="true"] {
  background: var(--accent);
  color: #fff;
}

/* hamburger: hidden on desktop */
.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 44px; height: 44px;
  min-width: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; padding-top: 0.75rem; }
  .nav-links a {
    display: block;
    padding: 0.9rem 0.5rem;
    font-size: 1rem;
  }
  .nav-cta { text-align: center; }
  .nav-links a.nav-cta { padding-block: 0.85rem; }
}

/* Touch devices: all controls ≥44px tap size (WCAG 2.5.8); fine pointers keep the compact look */
@media (pointer: coarse) {
  .lang-links a { padding: 0.7rem 0.9rem; }
  .nav-links a { padding: 1rem 0; }
  footer p a { display: inline-block; padding: 0.7rem 0.25rem; }
}

/* Ultra-narrow viewports (320px reflow): keep the header on one row */
@media (max-width: 360px) {
  nav { padding: 0 0.75rem; gap: 0.5rem; }
  .nav-logo { font-size: 0.85rem; gap: 8px; }
  .lang-links { gap: 0; }
  .lang-links a { padding-inline: 0.5rem; }
}

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: 120px 2rem 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1.125rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(26,86,196,0.28);
}
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 6px 20px rgba(26,86,196,0.36); }
.btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.875rem 0;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color .2s;
}
.btn-ghost:hover { color: var(--accent); }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.83rem;
  color: var(--ink-muted);
}
/* ─── HERO CARD ────────────────────────────────────────── */
.hero-card {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 2rem; right: 2rem; height: 3px;
  background: linear-gradient(90deg, var(--accent), #5B8FEA);
  border-radius: 0 0 3px 3px;
}

.hero-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 1.25rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.kpi-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.kpi-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.kpi-val.accent { color: var(--accent); }
.kpi-val.gold { color: var(--gold-text); }
.kpi-label { font-size: 0.78rem; color: var(--ink-muted); font-weight: 500; }

.hero-chart-bar { margin-bottom: 0.6rem; }
.hero-chart-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.hero-chart-bar-track {
  background: var(--border);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}
.hero-chart-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--accent);
  transform-origin: left center;
  animation: barGrow .9s cubic-bezier(.22,1,.36,1) both;
  animation-delay: var(--delay, 0s);
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.hero-chart-bar-fill.gold { background: var(--gold); width: 92%; --delay: 0.9s; }
.hero-chart-bar-fill.lite { background: #5B8FEA; width: 12%; --delay: 0.7s; }
.hero-chart-bar-fill.negative { background: var(--negative); width: 95%; --delay: 0.5s; }
.hero-card-label--gap { margin-bottom: 0.85rem; }
.hero-chart-bar:last-child { margin-top: 1rem; }

/* static fallback + reduced motion: bars shown at full width instantly */
.no-js .hero-chart-bar-fill,
html[lang] .no-motion .hero-chart-bar-fill { animation: none; transform: none; }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 100px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .hero-card { max-width: 480px; }
}

/* ─── SECTIONS GENERIC ─────────────────────────────────── */
section { padding: 96px 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
  display: block;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h2 em { font-style: italic; color: var(--accent); }

.section-intro {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 560px;
  margin-top: 1rem;
  line-height: 1.7;
}
.section-intro--center { margin: 1rem auto 0; text-align: center; }

/* ─── PROBLEMS ─────────────────────────────────────────── */
.problems { background: var(--ink); }
.problems h2 { color: #fff; }
.problems h2 em { color: #7AABFF; }
.problems .section-label { color: #7AABFF; }
.problems .section-intro { color: var(--dark-text); }

/* Editorial two-column list — not a card grid. Hairline rules carry the
   separation so the six symptoms read as one diagnosis, not six boxes. */
.problems-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--dark-border-strong);
}
@media (max-width: 800px) { .problems-list { grid-template-columns: 1fr; } }

.problems-list li {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--dark-border);
}
@media (max-width: 800px) { .problems-list li { border-bottom: 1px solid var(--dark-border); } }

.problems-list .icon-head {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.problems-list .icon-head svg {
  width: 18px; height: 18px;
  color: var(--accent-bright);
  flex-shrink: 0;
  margin-top: 2px;
}
.problems-list h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-text-strong);
  line-height: 1.35;
}
.problems-list p {
  font-size: 0.9rem;
  color: var(--dark-text); /* 0.72 white on ink ≈ 9.5:1 */
  line-height: 1.65;
  padding-left: 2.4rem;
}
@media (max-width: 800px) { .problems-list p { padding-left: 0; } }

/* ─── CHIP (extracted: service-tag + tech-badge + case-sector) ── */
.chip {
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--ink-muted);
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.chip.main {
  background: var(--accent-light);
  color: var(--accent-dark);
  border-color: rgba(26,86,196,0.2);
}
.chip.case-sector {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── POINT CARD (extracted: icon + title + body proof rows) ── */
.point-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.point-icon {
  width: 36px; height: 36px;
  background: var(--accent-light);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.point-icon svg { width: 17px; height: 17px; }
.why-head { margin-bottom: 1rem; }
.why-lede { font-size: 1rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 2rem; }
.why-list { display: flex; flex-direction: column; gap: 1rem; }
.point-title { font-weight: 600; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.25rem; }
.point-desc { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.65; }

/* ─── SERVICES ─────────────────────────────────────────── */
.services { background: var(--surface); }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.services-note { font-size: 0.95rem; color: var(--ink-muted); max-width: 320px; line-height: 1.7; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 700px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.service-card:hover {
  border-color: rgba(26,86,196,0.25);
  box-shadow: var(--shadow);
}
.service-card:hover::after { opacity: 1; }

.service-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.service-card.featured::after { display: none; }
.service-card.featured h3 { color: var(--dark-text-strong); }
.service-card.featured p { color: var(--dark-text); }
.service-card.featured .chip { background: var(--accent-soft); color: var(--accent-bright); border-color: rgba(122,171,255,0.25); }

.service-card .icon-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}
.service-card .icon-head .service-icon {
  margin-bottom: 0;
  width: 34px; height: 34px;
  border-radius: 9px;
}
.service-card .icon-head .service-icon svg { width: 18px; height: 18px; }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ─── BENEFITS ─────────────────────────────────────────── */
.benefits { background: var(--surface-2); }

.benefits-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 800px) { .benefits-layout { grid-template-columns: minmax(0, 1fr); gap: 3rem; } }

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.benefit-item { display: flex; gap: 1rem; align-items: flex-start; }
.benefit-item > div { min-width: 0; }

.benefit-icon {
  width: 36px; height: 36px;
  background: var(--accent-light);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.benefit-icon svg { width: 18px; height: 18px; color: var(--accent-dark); }

.benefit-item h4, .benefit-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.benefit-item p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.stat-bar-group { margin-top: 1rem; }
.stat-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 0.55rem; }
.stat-bar-name { font-size: 0.78rem; color: var(--ink-muted); width: 110px; flex-shrink: 0; }
.stat-bar-track { flex: 1; height: 6px; background: var(--surface-3); border-radius: 100px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 100px; background: var(--accent); transform-origin: left center; }
.stat-bar-val { font-size: 0.78rem; color: var(--ink-muted); width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.stat-bar-fill--96 { width: 96%; }
.stat-bar-fill--91 { width: 91%; }
.stat-bar-fill--88 { width: 88%; }
.stat-bar-fill--100 { width: 100%; }

/* Impact panel — the folded benefits stats, now living beside the cases
   they actually describe. Surface-2 panel, not a shadowed card. */
.impact-panel {
  margin-top: 2.5rem;
  padding: 1.6rem 1.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.impact-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}

/* ─── CASE STUDIES (new) ───────────────────────────────── */
.cases { background: var(--surface); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }

.case-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color .2s, box-shadow .2s;
}
.case-card:hover { border-color: rgba(26,86,196,0.25); box-shadow: var(--shadow); }

.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.case-sector {
  color: var(--accent-dark);
  background: var(--accent-light);
  border-color: rgba(26,86,196,0.2);
}
.case-scope { font-size: 0.75rem; color: var(--ink-light); font-weight: 500; }

.case-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.case-problem {
  font-size: 0.87rem;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 62ch;
}

.case-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.case-result-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  line-height: 1.1;
}
.case-result-num.gold { color: var(--gold-text); }
.case-result-label {
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 500;
  line-height: 1.35;
}

.cases-note {
  margin: 1.5rem auto 0;
  max-width: 56ch;
  font-size: 0.78rem;
  color: var(--ink-light);
  text-align: center;
}

/* ─── PROCESS ──────────────────────────────────────────── */
.process { background: var(--surface-2); }
.process-head { text-align: center; margin-bottom: 1rem; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 4rem;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: calc(50px + 2rem); right: calc(50px + 2rem);
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, var(--accent) 50%, var(--border) 100%);
  pointer-events: none;
}
@media (max-width: 700px) {
  .process-steps::before { display: none; }
  .process-steps { grid-template-columns: 1fr; gap: 2rem; }
}

.process-step { padding: 0 1.5rem; text-align: center; }

.process-num {
  width: 56px; height: 56px;
  background: var(--surface-2);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-dark);
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.process-step p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.65; }

/* ─── CREDIBILITY ──────────────────────────────────────── */
.credibility { background: var(--surface); }

.cred-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 860px) { .cred-layout { grid-template-columns: minmax(0, 1fr); gap: 3rem; } }

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.profile-bio { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.7; margin-bottom: 1.25rem; }

.profile-card-top {
  background: var(--ink);
  padding: 2rem 2rem 3.5rem;
  position: relative;
}

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2);
  object-fit: cover;
  object-position: center top;
  display: block;
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark-text-strong);
  margin-bottom: 0.25rem;
}
.profile-title { font-size: 0.85rem; color: var(--dark-text-soft); }

.profile-card-body {
  padding: 2rem;
  margin-top: -1.5rem;
  position: relative;
}
.profile-card-body > * { position: relative; }
.profile-card-body::before {
  content: '';
  position: absolute;
  top: 24px; left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-radius: var(--radius);
}

.profile-stat-row {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.profile-stat { flex: 1; padding: 0.875rem; text-align: center; border-right: 1px solid var(--border); }
.profile-stat:last-child { border-right: none; }
.profile-stat-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  display: block;
}
.profile-stat-label { font-size: 0.72rem; color: var(--ink-muted); font-weight: 500; }

.tech-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-badges .chip { font-weight: 600; padding: 0.3rem 0.7rem; border-color: var(--border-strong); }

.contact-lines { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.contact-lines a {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color .2s;
}
.contact-lines a:hover { color: var(--accent-dark); }
.contact-lines svg { width: 15px; height: 15px; flex-shrink: 0; }

/* References strip (replaces testimonials — LinkedIn carries the proof) */
.refs-strip {
  margin-top: 2.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.refs-strip h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.refs-strip p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 480px;
}
.refs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
.refs-btn:hover { background: var(--accent-dark); }
@media (max-width: 600px) {
  .refs-strip { flex-direction: column; align-items: flex-start; }
}

/* ─── CTA FINAL ────────────────────────────────────────── */
.cta-final {
  background: var(--ink);
  text-align: center;
  padding: 120px 2rem;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122,171,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,171,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

.cta-tag {
  display: inline-block;
  background: rgba(122,171,255,0.12);
  color: #7AABFF;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(122,171,255,0.2);
  margin-bottom: 1.75rem;
}

.cta-final h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.cta-final h2 em { color: #7AABFF; }

.cta-sub {
  font-size: 1.05rem;
  color: var(--dark-text);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1rem 2.25rem;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.btn-primary-lg:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.32); }

.btn-outline-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-outline-lg:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.cta-trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--dark-text-soft);
}
.cta-trust-row span::before { content: '✓ '; color: rgba(122,171,255,0.8); }

/* ─── CONTACT FORM ─────────────────────────────────────── */
.contact-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 540px;
  margin: 3rem auto 0;
  text-align: left;
}

.contact-block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-text-strong);
  margin-bottom: 1.5rem;
}

.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark-text);
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #fff;
  color-scheme: dark;
  transition: border-color .2s;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(255,255,255,0.45); }
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { border-color: rgba(122,171,255,0.6); }
.form-row textarea { resize: vertical; min-height: 90px; }
.form-counter {
  display: block;
  text-align: right;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.form-counter.full { color: #F0A0A0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-grid { grid-template-columns: 1fr; } }

.btn-form {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.btn-form:hover { background: var(--accent-dark); }
.btn-form[disabled] { opacity: 0.7; cursor: wait; }

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(26,124,74,0.18); color: #7BD8A6; border: 1px solid rgba(26,124,74,0.35); }
.form-status.err { background: rgba(163,45,45,0.2); color: #F0A0A0; border: 1px solid rgba(163,45,45,0.4); }

/* ─── FOOTER ───────────────────────────────────────────── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 2rem;
  text-align: center;
}
footer p {
  max-width: 56ch;
  margin-inline: auto;
  font-size: 0.82rem;
  color: var(--dark-text); /* 0.72 white on ink ≈ 9.5:1, was 0.3 (2.67:1) */
}
footer a { color: rgba(255,255,255,0.75); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: #fff; }

/* ─── ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .7s cubic-bezier(.22,1,.36,1) both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .45s; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* JS is off: everything visible, no entrance animation */
.no-js .reveal { opacity: 1; transform: none; transition: none; }
.no-js .fade-up { animation: none; }
.no-js .hero-chart-bar-fill { animation: none; transform: none; }

/* prefers-reduced-motion: state and hierarchy preserved, motion removed */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .reveal, .hero-chart-bar-fill, .cookie-card { animation: none !important; transition: none !important; }
  .fade-up, .reveal { opacity: 1 !important; transform: none !important; }
  .hero-chart-bar-fill { transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ─── PRIVACY PAGE ─────────────────────────────────────── */
.legal { padding: 140px 2rem 80px; }
.legal .container { max-width: 760px; }
.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.legal-updated { font-size: 0.85rem; color: var(--ink-light); margin-bottom: 2.5rem; }
.legal p.legal-langnote {
  font-size: 0.85rem;
  line-height: 1.55;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin: -1.5rem 0 2.5rem;
}
.legal-langnote strong { display: block; margin-bottom: 0.15rem; }
.legal-langnote span { display: block; }
.legal-back { margin-top: 2.5rem; }
.legal h2 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.legal p, .legal li {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.legal ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal strong { color: var(--ink); }

/* ─── GRAZIE PAGE ──────────────────────────────────────── */
.thanks { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.thanks-card { max-width: 520px; }
.thanks-card h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.thanks-card p { font-size: 1.05rem; color: var(--ink-muted); margin-bottom: 2rem; line-height: 1.7; }

/* ─── COOKIE CONSENT — FLOATING BOTTOM-OVERLAY CARD ───── */
.cookie-card {
  position: fixed;
  z-index: 90;                                  /* under the nav (100), above page content */
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  width: min(24.5rem, calc(100vw - 2.5rem));
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);                 /* elevation: shadow only, no ghost border */
  padding: 1rem 1.15rem 1.1rem;
  animation: cookieCardIn .55s cubic-bezier(.22,1,.36,1) both;
}
@keyframes cookieCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .cookie-card {
    left: max(1rem, env(safe-area-inset-left, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    width: auto;
  }
}
.cookie-inner { display: flex; flex-direction: column; gap: 0.65rem; }
.cookie-label {
  font-size: 0.75rem; /* 12px — clears the undersized-UI-text threshold; was 0.68rem (10.88px) */
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.cookie-text { font-size: 0.8rem; line-height: 1.55; color: var(--ink-muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.cookie-slim { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.cookie-accept,
.cookie-reject,
.cookie-customize {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.cookie-accept {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.cookie-accept:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.cookie-reject {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.cookie-reject:hover { border-color: var(--ink); }
.cookie-customize {
  background: transparent;
  color: var(--accent);
  border: 1px solid transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-inline: 0.35rem;
}
.cookie-customize:hover { color: var(--accent-dark); }
.cookie-panel {
  border-top: 1px solid var(--border);
  padding-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cookie-opt {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.cookie-opt input { accent-color: var(--accent); margin-top: 2px; }
.cookie-opt strong { color: var(--ink); font-weight: 600; }

@media (pointer: coarse) {
  .cookie-accept, .cookie-reject, .cookie-customize { padding: 0.7rem 1rem; }
}

/* Footer "cookie preferences" button — styled like the footer links */
.footer-consent {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer-consent:hover { color: #fff; }
@media (pointer: coarse) {
  .footer-consent { display: inline-block; padding: 0.7rem 0.25rem; }
}
