/* =========================================================
   Acemed — agency landing page
   Aesthetic: "measurement instrument / proof readout"
   Color: Committed (warm graphite + warm paper + vermilion signal)
   Type: Hanken Grotesk (display/body) + Spline Sans Mono (data/labels)
   ========================================================= */

:root {
  /* paper (default/body) */
  --paper:      oklch(0.985 0.006 85);
  --paper-2:    oklch(0.965 0.008 85);
  --ink:        oklch(0.24 0.014 70);
  --ink-soft:   oklch(0.44 0.012 70);
  --line:       oklch(0.90 0.008 80);

  /* graphite (hero, proof, cta) */
  --graphite:   oklch(0.215 0.012 70);
  --graphite-2: oklch(0.27 0.013 70);
  --on-dark:    oklch(0.96 0.006 85);
  --soft-dark:  oklch(0.74 0.012 75);
  --line-dark:  oklch(0.36 0.012 70);

  /* signal + measured-good */
  --signal:     oklch(0.63 0.205 32);
  --signal-2:   oklch(0.58 0.20 32);
  --signal-ink: oklch(0.47 0.17 32);
  --good:       oklch(0.60 0.115 155);
  --good-dark:  oklch(0.74 0.13 158);
  --signal-btn: oklch(0.55 0.20 32);  /* AA-passing CTA fill (>=4.5:1 with white text) */
  --good-ink:   oklch(0.48 0.13 152); /* AA-passing "you keep" green on paper */
  --clay:       oklch(0.635 0.115 45); /* warm logo accent (the Acemed dot / Claude-clay) */

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --r: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* ease-out-expo-ish */

  --step-fast: 60ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.0625rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif; line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
em { font-style: italic; }

/* ---------- shared atoms ---------- */
.mono-label {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.eyebrow {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal-ink);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.eyebrow--on-dark { color: var(--signal); }
.u-signal { color: var(--signal); }

.section { padding-block: clamp(4.5rem, 9vw, 8rem); padding-inline: var(--pad); }
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title { font-size: clamp(1.85rem, 3.6vw, 3rem); }
.section__sub { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 0.85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--signal { background: var(--signal-btn); color: oklch(0.99 0.006 85); }
.btn--signal:hover { background: oklch(0.50 0.19 32); transform: translateY(-2px); }
.btn--wa { background: transparent; border-color: var(--good-dark); color: var(--good-dark); }
.btn--wa:hover { background: color-mix(in oklch, var(--good-dark) 14%, transparent); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--on-dark); }
.btn--ghost:hover { background: color-mix(in oklch, var(--on-dark) 12%, transparent); transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.9rem var(--pad);
  background: color-mix(in oklch, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto; font-variation-settings: "opsz" 144, "SOFT" 70;
  font-weight: 480; font-size: 1.5rem; letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.wordmark__mark { width: 1.85em; height: 1.85em; margin: -0.3em 0; flex-shrink: 0; overflow: visible; }
.wm-a { fill: none; stroke: currentColor; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.wm-dot { fill: var(--clay); }
.wordmark__text { line-height: 1; }
.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a { font-size: 0.95rem; color: var(--ink-soft); transition: color 0.2s; }
.site-nav a:hover { color: var(--ink); }
.site-header .btn { flex-shrink: 0; }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .wordmark { margin-right: auto; }
}

/* ---------- hero ---------- */
.hero {
  background: var(--graphite); color: var(--on-dark);
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--pad) clamp(4rem, 8vw, 7rem);
  display: grid; gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: 1fr;
  align-items: center;
  position: relative; overflow: hidden;
}
.hero::after { /* faint measured-grid texture, not glass */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px);
  background-size: 100% 3.2rem;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 40%, transparent);
}
.hero__copy, .hero .funnel { position: relative; z-index: 1; }
/* live "signal sweep": an ECG-style trace plotting behind the hero, like a monitor.
   Sits above the ::after grid, below all content. Masked to the lower field so it
   never crosses the headline; drawn/animated in script.js (respects reduced-motion). */
.hero__signal {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 44%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 44%, #000 100%);
}
/* the same canvas echoed behind the final CTA (data-signal="calm") */
.cta { position: relative; overflow: hidden; }
.cta > *:not(.hero__signal) { position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.04; }
.hero__lede { margin-top: 1.6rem; color: var(--soft-dark); font-size: clamp(1.08rem, 1.4vw, 1.28rem); line-height: 1.66; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero__assurance {
  margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center;
  font-family: "Spline Sans Mono", monospace; font-size: 0.78rem; color: var(--soft-dark); letter-spacing: 0.02em;
}
.hero__assurance span:nth-child(even) { opacity: 0.4; }

/* hero: copy left, proof statement right (numbers live once, here in the hero) */
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; }
}
.hero .statement { max-width: none; }

/* ---------- funnel readout (mechanism diagram, drawn on reveal) ---------- */
.funnel {
  background: var(--graphite-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  padding: clamp(1.3rem, 2vw, 1.8rem);
  color: var(--on-dark);
}
.funnel__head { margin-bottom: 1.3rem; }
.funnel__head .mono-label { color: var(--soft-dark); }
.funnel__steps { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.funnel__step {
  position: relative; padding: 0.85rem 1rem; border-radius: 9px; overflow: hidden;
  background: color-mix(in oklch, var(--on-dark) 4%, transparent);
}
.funnel__step::before { /* the measured bar — drawn via scaleX on reveal (transform only, no layout) */
  content: ""; position: absolute; inset: 0; transform-origin: left;
  transform: scaleX(0);
  background: color-mix(in oklch, var(--on-dark) 9%, transparent);
  transition: transform 0.85s var(--ease);
}
.funnel.is-in .funnel__step::before { transform: scaleX(var(--w)); }
.funnel.is-in .funnel__step:nth-child(1)::before { transition-delay: 0.05s; }
.funnel.is-in .funnel__step:nth-child(3)::before { transition-delay: 0.16s; }
.funnel.is-in .funnel__step:nth-child(4)::before { transition-delay: 0.27s; }
.funnel.is-in .funnel__step:nth-child(5)::before { transition-delay: 0.38s; }
.funnel__step--win::before { background: color-mix(in oklch, var(--signal) 24%, transparent); }
.funnel__step > * { position: relative; }
.funnel__step .mono-label { color: var(--soft-dark); }
.funnel__step--win .mono-label { color: var(--signal); }
.funnel__desc { color: var(--soft-dark); font-size: 0.9rem; line-height: 1.45; margin-top: 0.15rem; max-width: 42ch; }
.funnel__step--win .funnel__desc { color: var(--on-dark); }
.funnel__cut {
  font-family: "Spline Sans Mono", monospace; font-size: 0.66rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--signal); padding: 0.35rem 0.1rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.funnel__cut::before, .funnel__cut::after { content: ""; height: 1px; flex: 1; background: color-mix(in oklch, var(--signal) 45%, transparent); }
.funnel__foot { margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); color: var(--soft-dark); font-size: 0.9rem; line-height: 1.5; }

/* ---------- proof ---------- */
.proof {
  background: var(--graphite); color: var(--on-dark);
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
}
.proof__lead { max-width: 760px; }
.proof__lead h2 { font-size: clamp(1.8rem, 3.4vw, 2.85rem); margin-bottom: 0; }
.proof__lead .eyebrow { }
.proof__text { margin-top: 1.3rem; color: var(--soft-dark); font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 64ch; }
.proof__text strong { color: var(--on-dark); }
.proof__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: var(--line-dark);
  border: 1px solid var(--line-dark); border-radius: var(--r); overflow: hidden;
}
.stat { background: var(--graphite); padding: clamp(1.4rem, 2.5vw, 2rem); }
.stat dt { margin-bottom: 0.8rem; color: var(--soft-dark); }
.stat__val { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__val--good { color: var(--good-dark); }
.stat__val--word { color: var(--signal); }

/* ---------- leak ---------- */
.leak__grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-bottom: 2.4rem; }
@media (min-width: 760px) { .leak__grid { grid-template-columns: 1fr 1fr; } }
.leak__card { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--paper-2); }
.leak__card--accent { border-color: color-mix(in oklch, var(--signal) 40%, var(--line)); background: color-mix(in oklch, var(--signal) 6%, var(--paper)); }
.leak__tag { display: block; margin-bottom: 1rem; }
.leak__card--accent .leak__tag { color: var(--signal-ink); }
.leak__big { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.7rem; }
.leak__card--accent .leak__big { color: var(--signal-ink); }
.leak__desc { color: var(--ink-soft); max-width: 46ch; }
.leak__line { font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 500; line-height: 1.4; max-width: 30ch; letter-spacing: -0.01em; }
.leak__line strong { color: var(--signal-ink); }

/* ---------- how / steps ---------- */
.how { background: var(--paper-2); }
/* steps as a vertical numbered timeline (not the AI 4-card grid) */
.steps { list-style: none; display: flex; flex-direction: column; max-width: 720px; }
.step { position: relative; padding: 0 0 2.2rem 3rem; border-left: 2px solid var(--line); }
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step__n { position: absolute; left: -1rem; top: -0.15rem; width: 2rem; height: 2rem; margin: 0; display: grid; place-content: center; border-radius: 50%; background: var(--signal-btn); color: oklch(0.99 0.006 85); font-family: "Spline Sans Mono", monospace; font-size: 0.8rem; }
.step__t { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.45rem; }
.step p { color: var(--ink-soft); font-size: 1rem; max-width: 58ch; }

/* ---------- pricing ---------- */
.price-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .price-grid { grid-template-columns: 1.1fr 0.9fr; } }
.price-card { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--paper-2); }
.price-card--main { background: var(--graphite); color: var(--on-dark); border-color: var(--line-dark); }
.price-card--main .mono-label { color: var(--soft-dark); }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 1.4rem; margin-top: 1.4rem; }
.price-list li { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; align-items: baseline; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line-dark); }
.price-list li:last-child { border-bottom: none; padding-bottom: 0; }
.price-list__k { font-weight: 600; font-size: 1.1rem; }
.price-list__v { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; text-align: right; font-variant-numeric: tabular-nums; }
.price-list__v--signal { color: var(--signal); }
.price-list__u { font-size: 0.9rem; font-weight: 500; color: var(--soft-dark); letter-spacing: 0; }
.price-list__note { grid-column: 1 / -1; color: var(--soft-dark); font-size: 0.92rem; }
.price-card__foot { margin-top: 1.8rem; color: var(--soft-dark) !important; }

.price-math { padding: clamp(1.4rem, 3vw, 2rem); }
.math-table { width: 100%; border-collapse: collapse; margin-top: 1.2rem; }
.math-table th, .math-table td { text-align: left; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.math-table thead th { font-family: "Spline Sans Mono", monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.math-table tbody td { font-size: 1.15rem; font-weight: 600; }
.math-table td:last-child { text-align: right; }
.math-table__sub { font-family: "Spline Sans Mono", monospace; font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; margin-left: 0.4rem; }
.math-table__pos { color: var(--good-ink); }
.price-math__note { margin-top: 1.3rem; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.55; }

/* ---------- versus ---------- */
.versus { background: var(--paper-2); }
.compare { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; overflow-x: auto; background: var(--paper); }
.compare__table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare__table th, .compare__table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare__table thead th { background: var(--paper-2); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.compare__table tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.compare__table td { color: var(--ink-soft); }
.compare__table tr:last-child th, .compare__table tr:last-child td { border-bottom: none; }
.compare__mine { background: color-mix(in oklch, var(--signal) 6%, var(--paper)); color: var(--ink) !important; font-weight: 600; }
thead .compare__mine { color: var(--signal-ink) !important; }

/* ---------- compliance ---------- */
.compliance { background: var(--graphite); color: var(--on-dark); }
.compliance__inner { max-width: 820px; }
.compliance__text { margin-top: 1.3rem; color: var(--soft-dark); font-size: clamp(1.05rem, 1.3vw, 1.22rem); max-width: 64ch; }
.compliance__text strong { color: var(--on-dark); }
.compliance__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.9rem; }
.compliance__tags li { border: 1px solid var(--line-dark); border-radius: 4px; padding: 0.5rem 0.95rem; color: var(--soft-dark); }

/* ---------- faq ---------- */
.faq__list { max-width: 820px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 0; font-size: clamp(1.08rem, 1.6vw, 1.3rem); font-weight: 600; letter-spacing: -0.015em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { position: relative; flex-shrink: 0; width: 1.1rem; height: 1.1rem; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; background: var(--signal); border-radius: 2px; transition: transform 0.4s var(--ease); }
.qa__icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.qa__icon::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.qa[open] .qa__icon::after { transform: translateX(-50%) scaleY(0); }
.qa__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.qa__body > p { overflow: hidden; color: var(--ink-soft); max-width: 60ch; }
.qa[open] .qa__body { grid-template-rows: 1fr; }
.qa[open] .qa__body > p { padding-bottom: 1.4rem; }

/* ---------- cta / contact ---------- */
.cta {
  background: var(--graphite); color: var(--on-dark);
  display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 880px) { .cta { grid-template-columns: 1fr 1fr; } }
.cta__title { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.cta__lede { margin-top: 1.2rem; color: var(--soft-dark); font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 50ch; }
.cta__wa { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.8rem; font-weight: 600; color: var(--good-dark); border-bottom: 2px solid currentColor; padding-bottom: 0.2rem; transition: opacity 0.2s; }
.cta__wa:hover { opacity: 0.8; }
.cta__wa-icon { font-size: 0.9rem; }

.lead-form { background: var(--graphite-2); border: 1px solid var(--line-dark); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-family: "Spline Sans Mono", monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft-dark); }
.field input, .field select {
  font: inherit; color: var(--on-dark); background: var(--graphite);
  border: 1px solid var(--line-dark); border-radius: 9px; padding: 0.8rem 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder { color: color-mix(in oklch, var(--soft-dark) 75%, transparent); }
.field input:focus, .field select:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px color-mix(in oklch, var(--signal) 28%, transparent); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b9b3a8' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--soft-dark); line-height: 1.45; }
.consent input { margin-top: 0.2rem; accent-color: var(--signal); flex-shrink: 0; }
.consent__link { color: var(--soft-dark); text-decoration: underline; }
.lead-form__status { font-size: 0.92rem; min-height: 1.2em; }
.lead-form__status.is-ok { color: var(--good-dark); }
.lead-form__status.is-err { color: var(--signal); }

/* ---------- footer ---------- */
.site-footer { padding: clamp(2.5rem, 5vw, 3.5rem) var(--pad); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-end; }
.site-footer__brand .wordmark { font-size: 1.15rem; margin-bottom: 0.6rem; }
.site-footer__legal { max-width: 52ch; line-height: 1.7; }

/* ---------- focus visibility ---------- */
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

/* ---------- reveal animation ---------- */
/* Progressive enhancement: only hide reveal content once JS is confirmed (html.js).
   Without JS (or if the script fails) everything stays visible. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .funnel__step::before { transition: none; transform: scaleX(var(--w)); }
  .btn, .field input, .field select { transition: none; }
}

/* ---------- tags: measured vs estimated (honesty signal) ---------- */
.tag {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  display: inline-block; padding: 0.12rem 0.5rem; border-radius: 4px; vertical-align: middle;
}
.tag--measured { color: var(--good); background: color-mix(in oklch, var(--good) 14%, transparent); }
.tag--est { color: var(--ink-soft); background: color-mix(in oklch, var(--ink-soft) 12%, transparent); }
.hero .tag--measured, .proof .tag--measured { color: var(--good-dark); background: color-mix(in oklch, var(--good-dark) 18%, transparent); }
.proof .tag--est { color: var(--soft-dark); background: color-mix(in oklch, var(--soft-dark) 16%, transparent); }

/* ---------- hero proofline ---------- */
.hero__proofline {
  margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  font-family: "Spline Sans Mono", monospace; font-size: 0.8rem; color: var(--soft-dark); line-height: 1.5;
}

/* ---------- proof: real screenshot + estimate line ---------- */
.proof__shot { max-width: 640px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 26px 64px -28px oklch(0 0 0 / 0.6); }
.proof__shot img { width: 100%; display: block; }
.proof__shot-ph { aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 0.5rem; text-align: center; padding: 2rem; color: var(--ink-soft); }
.proof__shot-ph[hidden] { display: none; }
.proof__shot figcaption { padding: 0.7rem 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); background: var(--paper-2); font-family: "Spline Sans Mono", monospace; font-size: 0.72rem; letter-spacing: 0.04em; }
.proof__est { max-width: 66ch; color: var(--soft-dark); font-size: 0.95rem; line-height: 1.6; }
.proof__est .tag { margin-right: 0.3rem; }

/* ---------- about / founder ---------- */
.about__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .about__grid { grid-template-columns: 280px 1fr; } }
.about__photo { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); aspect-ratio: 4 / 5; display: grid; place-content: center; justify-items: center; gap: 0.4rem; text-align: center; padding: 1.5rem; color: var(--ink-soft); overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__body p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 60ch; font-size: clamp(1.02rem, 1.2vw, 1.15rem); }
.about__body p strong { color: var(--ink); }
.about__sign { font-weight: 700; letter-spacing: -0.02em; color: var(--ink) !important; margin-top: 0.4rem; }

/* ---------- form risk-reversal ---------- */
.lead-form__risk { color: var(--soft-dark); margin-top: -0.3rem; }

/* ---------- footer legal stack ---------- */
.site-footer__legal-wrap { display: flex; flex-direction: column; gap: 0.8rem; }

/* ---------- skip link (a11y) ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; border-radius: 0 0 8px 0; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- exhibit: the numbers ladder (replaces the funnel widget) ---------- */
.exhibit { position: relative; z-index: 1; background: var(--graphite-2); border: 1px solid var(--line-dark); border-radius: var(--r); padding: clamp(1.3rem, 2vw, 1.8rem); }
.exhibit__cap { color: var(--soft-dark); font-size: 0.9rem; line-height: 1.5; margin-bottom: 1.2rem; }
.ladder { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.ladder__row { display: grid; grid-template-columns: 5rem auto; grid-template-areas: "k v" "k n"; column-gap: 1rem; row-gap: 0.15rem; align-items: baseline; padding: 0.75rem 0.95rem; border-radius: 9px; background: color-mix(in oklch, var(--on-dark) 6%, transparent); }
.ladder__row--est { background: color-mix(in oklch, var(--on-dark) 3%, transparent); border: 1px dashed var(--line-dark); }
.ladder__k { grid-area: k; font-family: "Spline Sans Mono", monospace; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft-dark); align-self: center; }
.ladder__v { grid-area: v; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--on-dark); }
.ladder__row--est .ladder__v { color: var(--good-dark); }
.ladder__n { grid-area: n; color: var(--soft-dark); font-size: 0.92rem; line-height: 1.45; }
.exhibit__foot { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line-dark); color: var(--soft-dark); font-family: "Spline Sans Mono", monospace; font-size: 0.78rem; line-height: 1.5; }

/* ---------- repeated section CTA ---------- */
.section__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; margin-top: clamp(2rem, 4vw, 3rem); }
.section__cta-note { color: var(--ink-soft); }
.proof__shot-sub { font-size: 0.85rem; opacity: 0.85; }
.about__body { max-width: 720px; }

/* ---------- compare table: stack into cards on mobile (so "Con Acemed" is never clipped) ---------- */
@media (max-width: 760px) {
  .compare { border: none; background: transparent; overflow: visible; }
  .compare__table { min-width: 0; }
  .compare__table thead { position: absolute; left: -9999px; }
  .compare__table, .compare__table tbody, .compare__table tr, .compare__table th, .compare__table td { display: block; width: 100%; }
  .compare__table tr { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); margin-bottom: 1rem; padding: 0.3rem 1rem 0.8rem; }
  .compare__table tbody th { width: auto; padding: 0.8rem 0 0.5rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .compare__table td { border: none; padding: 0.55rem 0 0 8.5rem; position: relative; min-height: 1.6rem; color: var(--ink-soft); }
  .compare__table td::before { content: attr(data-l); position: absolute; left: 0; top: 0.55rem; width: 8rem; font-family: "Spline Sans Mono", monospace; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
  .compare__table td.compare__mine { background: transparent !important; color: var(--ink) !important; font-weight: 600; }
}

/* ---------- how: mechanism grid (funnel + steps) ---------- */
.how__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .how__grid { grid-template-columns: 1fr 0.92fr; } }
.how__intro { max-width: 560px; }
.how__intro .steps { margin-top: clamp(1.8rem, 3vw, 2.4rem); }

/* ---------- pricing: acquisition-cost block (replaces the P&L table) ---------- */
.acq { margin-top: 1.3rem; display: flex; flex-direction: column; gap: 1.1rem; }
.acq__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.acq__k { font-weight: 600; font-size: 1.05rem; max-width: 22ch; }
.acq__v { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acq__v--good { color: var(--good-ink); }
.acq__note { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; margin-top: -0.65rem; max-width: 50ch; }
.price-math__foot { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.9rem; line-height: 1.55; }
.pricing .compare { margin-top: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- contatto extras (chi siamo line + compliance tags) ---------- */
.cta__about { margin-top: 1.4rem; color: var(--soft-dark); font-size: 1rem; line-height: 1.6; max-width: 50ch; }
.cta__tags { margin-top: 1.7rem; }

/* ---------- proof: native account statement (replaces the raw screenshot) ---------- */
.statement {
  max-width: 560px; background: var(--graphite-2); color: var(--on-dark);
  border: 1px solid var(--line-dark); border-radius: 14px;
  padding: clamp(1.4rem, 3vw, 2rem);
}
.statement__head { display: flex; justify-content: space-between; gap: 0.6rem 1rem; flex-wrap: wrap; align-items: baseline; }
.statement__head .mono-label { color: var(--soft-dark); }
.statement__range { color: var(--soft-dark); }
.statement__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 10px;
  overflow: hidden; margin: 1.2rem 0;
}
.kpi { background: var(--graphite-2); padding: clamp(1rem, 2.5vw, 1.35rem); }
.kpi__k { display: block; margin-bottom: 0.55rem; color: var(--soft-dark); }
.kpi__v { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; color: var(--on-dark); }
.kpi__v--signal { color: var(--signal); }
.statement__foot { color: var(--soft-dark); line-height: 1.5; }

/* ---------- footer CTA (Contattaci + Privacy) ---------- */
.site-footer__cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1rem; }
.site-footer__privacy { color: var(--ink-soft); }
.site-footer__privacy:hover { color: var(--ink); }
