/* ============================================================
   Vigilo — Landing application styles
   Extends tokens.css with type scale, layout, components.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* ---------------- type scale ---------------- */
:root {
  --t-xs:   12px;
  --t-sm:   14px;
  --t-base: 16px;
  --t-md:   18px;
  --t-lg:   22px;
  --t-xl:   28px;
  --t-2xl:  34px;
  --t-3xl:  42px;
  --t-4xl:  56px;
  --t-5xl:  72px;

  --container: 1200px;
  --container-narrow: 880px;
  --gutter: 24px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

body {
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

/* — typographic primitives — */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary-600);
  border-radius: 999px;
}
.eyebrow.plain::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--n-900);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; }
h2 { font-size: var(--t-2xl); line-height: 1.15; }
h3 { font-size: var(--t-lg); line-height: 1.3; font-weight: 600; }
h4 { font-size: var(--t-md); line-height: 1.35; font-weight: 600; }

@media (min-width: 768px) {
  h1 { font-size: var(--t-4xl); }
  h2 { font-size: var(--t-3xl); }
}
@media (min-width: 1024px) {
  h1 { font-size: var(--t-5xl); }
}

p { margin: 0; color: var(--fg); font-size: var(--t-base); }
.lead {
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 60ch;
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .lead { font-size: 20px; line-height: 1.5; }
}

.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; }
.upper-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

a { color: inherit; text-decoration: none; }
a.inline { color: var(--primary-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.inline:hover { color: var(--primary-800); }

hr.rule {
  height: 1px;
  border: 0;
  background: var(--border);
  margin: 0;
}

/* ---------------- layout ---------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: var(--container-narrow); }

.section {
  padding-block: 64px;
}
@media (min-width: 768px) { .section { padding-block: 96px; } }
@media (min-width: 1024px) { .section { padding-block: 128px; } }

.section.tight { padding-block: 48px; }
.section.bleed-bg { background: var(--bg-subtle); }

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 760px;
}
.section-head h2 { text-wrap: balance; }
@media (min-width: 768px) {
  .section-head { margin-bottom: 72px; }
}

/* Editorial section head — heading left, lead right (used for Why, Monitor) */
.section-head.split {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
  margin-bottom: 56px;
}
@media (min-width: 1024px) {
  .section-head.split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    gap: 48px;
  }
}
.section-head.split .head-l { display: grid; gap: 16px; }
.section-head.split .head-r { padding-top: 8px; }

/* hairline above section content */
.section-rule {
  margin-bottom: 40px;
  height: 1px;
  background: var(--border);
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
  white-space: nowrap;
}
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.xl { height: 56px; padding: 0 28px; font-size: 16px; border-radius: var(--r-lg); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }

.btn-primary {
  background: var(--n-900);
  color: var(--n-0);
  border-color: var(--n-900);
}
.btn-primary:hover { background: var(--n-800); border-color: var(--n-800); }

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

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-hover); border-color: var(--n-200); }

.btn-quiet {
  background: transparent;
  color: var(--fg);
}
.btn-quiet:hover { background: var(--bg-hover); }

.btn-link {
  height: auto;
  padding: 0;
  background: transparent;
  color: var(--primary-700);
  font-weight: 500;
}
.btn-link:hover { color: var(--primary-800); }

.btn .arrow { transition: transform 200ms var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------------- pills + badges ---------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary-600);
}
.pill.success { background: var(--success-bg); border-color: color-mix(in srgb, var(--success) 18%, transparent); color: #14532D; }
.pill.success .dot { background: var(--success); }
.pill.warn { background: var(--warning-bg); border-color: color-mix(in srgb, var(--warning) 18%, transparent); color: #78350F; }
.pill.warn .dot { background: var(--warning); }
.pill.crit { background: var(--critical-bg); border-color: color-mix(in srgb, var(--critical) 18%, transparent); color: #7F1D1D; }
.pill.crit .dot { background: var(--critical); }
.pill.info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 18%, transparent); color: #1E3A8A; }
.pill.info .dot { background: var(--info); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  background: var(--bg-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* ---------------- cards ---------------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
}
.card.tight { padding: 14px; }
.card.hover { transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.card.hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

/* ---------------- header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .row {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav {
  display: none;
  gap: 28px;
  align-items: center;
}
.site-nav a {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
  transition: color 160ms var(--ease);
}
.site-nav a:hover { color: var(--fg); }
.site-nav a.active { color: var(--fg); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-actions .signin { display: none; }
@media (min-width: 768px) {
  .site-nav { display: flex; }
  .header-actions .signin { display: inline-flex; }
}

.lang-switch { display: none; /* TODO: enable when EN copy is ready */ }

/* ---------------- footer ---------------- */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px; }
}
.footer-col h5 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--fg-muted); font-size: 14px; }
.footer-col a:hover { color: var(--fg); }
.footer-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-meta a { color: var(--fg); text-decoration: none; border-bottom: 1px dashed var(--border-strong); }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  padding-block: 56px 72px;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding-block: 80px 96px; } }
@media (min-width: 1024px) { .hero { padding-block: 96px 112px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 72px; }
}

.hero h1 .accent { color: var(--primary-700); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
}

/* ---------------- hero visual ---------------- */
.hero-visual {
  position: relative;
  display: grid;
  gap: 14px;
}
.hv-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.hv-card.matrix { padding: 18px 18px 20px; }

.hv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.hv-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
.hv-title small { color: var(--fg-muted); font-weight: 500; }
.hv-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* matrix grid */
.matrix-rows { display: grid; gap: 8px; }
.matrix-row {
  display: grid;
  grid-template-columns: 1fr repeat(7, 18px);
  align-items: center;
  gap: 8px;
}
@media (min-width: 768px) {
  .matrix-row { grid-template-columns: 1fr repeat(12, 16px); }
}
.matrix-row .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.matrix-cell {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--bg-muted);
  position: relative;
}
.matrix-cell.ok    { background: var(--success); }
.matrix-cell.ok.dim { background: color-mix(in srgb, var(--success) 35%, var(--bg-muted)); }
.matrix-cell.warn  { background: var(--warning); }
.matrix-cell.crit  { background: var(--critical); }
.matrix-cell.empty { background: var(--bg-muted); }
.matrix-cell.pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 6px;
  border: 2px solid color-mix(in srgb, var(--primary-600) 40%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.05); }
}

.matrix-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* sparkline card */
.hv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hv-stat {
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hv-stat .value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--n-900);
}
.hv-stat .value .unit { font-size: 14px; color: var(--fg-muted); font-weight: 500; margin-left: 2px; }
.hv-stat .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hv-stat .delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--success);
}
.hv-stat .delta.neg { color: var(--critical); }

.sparkline { width: 100%; height: 56px; display: block; }

/* report card mini */
.report-mini {
  display: flex;
  align-items: center;
  gap: 14px;
}
.report-thumb {
  width: 52px;
  height: 68px;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.report-thumb::before, .report-thumb::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--n-200);
}
.report-thumb::before { top: 10px; right: 20px; background: var(--n-700); height: 4px; }
.report-thumb::after { top: 20px; box-shadow: 0 6px 0 var(--n-150), 0 12px 0 var(--n-150), 0 18px 0 var(--n-150), 0 24px 0 var(--n-150); }
.report-thumb .stripe {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: var(--primary-600);
}

.report-info { display: grid; gap: 4px; }
.report-info .name { font-weight: 600; font-size: 14px; }
.report-info .meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------------- problem section ---------------- */
/* Numbered editorial list with hairlines — no cards */
.ordered-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.ordered-list .o-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
@media (min-width: 768px) {
  .ordered-list .o-item {
    grid-template-columns: 140px 1fr;
    gap: 56px;
    padding: 40px 0;
  }
}
.ordered-list .o-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-700);
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.ordered-list .o-body {
  display: grid;
  gap: 12px;
  max-width: 60ch;
}
.ordered-list h3 {
  font-size: var(--t-xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ordered-list p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-muted);
}

/* ---------------- monitor — vertical feature list ---------------- */
.feature-list {
  display: grid;
  border-top: 1px solid var(--border);
}
.feature-list .f-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
@media (min-width: 768px) {
  .feature-list .f-row {
    grid-template-columns: 56px 1fr 200px;
    gap: 32px;
    padding: 32px 0;
    align-items: center;
  }
}
.feature-list .f-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-700);
  flex-shrink: 0;
}
@media (min-width: 768px) { .feature-list .f-icon { width: 52px; height: 52px; } }
.feature-list .f-body { display: grid; gap: 6px; max-width: 56ch; }
.feature-list h3 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.feature-list .f-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-muted);
}
.feature-list .f-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.feature-list .f-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary-600);
}
@media (max-width: 767px) {
  .feature-list .f-row { grid-template-columns: 44px 1fr; }
  .feature-list .f-meta { grid-column: 2; margin-top: 4px; }
}

/* ---------------- how-it-works — big display numbers, subgrid ---------------- */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto 1fr;
    gap: 56px;
  }
}
.how-step {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 28px;
  border-top: 1px solid var(--n-900);
  position: relative;
}
@media (min-width: 900px) {
  .how-step {
    grid-template-rows: subgrid;
    grid-row: span 4;
  }
}
.how-step .step-display {
  font-family: var(--font-sans);
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--n-900);
  margin-bottom: 4px;
}
.how-step h3 {
  font-size: var(--t-lg);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.how-step p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 38ch;
}
.how-step .vis-slot {
  align-self: end;
  margin-top: 8px;
}

.how-vis {
  margin: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  display: grid;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  overflow: hidden;
  align-content: start;
}

/* — Step 1: import list — */
.il-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12px;
  color: var(--fg);
}
.il-row:last-of-type { border-bottom: 0; }
.il-row .check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--success-bg);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.il-more {
  padding-top: 6px;
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-top: 1px solid var(--border);
}

/* — Step 2: status stream — */
.ss-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 4px 0;
}
.ss-row .d {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}
.ss-row.warn .d { background: var(--warning); }
.ss-row.crit .d { background: var(--critical); }
.ss-row .lbl { color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.ss-row .val { color: var(--n-900); font-weight: 500; }
.ss-row.warn .val { color: var(--warning); }
.ss-row.pulse .d {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--warning) 25%, transparent);
  animation: pulse-dot 2.2s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--warning) 40%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--warning) 10%, transparent); }
}

/* — Step 3: PDF preview (lives inside .how-vis.pdf) — */
.how-vis.pdf {
  position: relative;
  padding: 16px 16px 14px 20px;
}
.pdf-stripe {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary-600);
}
.pdf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.pdf-logo {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--n-900);
  letter-spacing: -0.01em;
}
.pdf-date {
  font-size: 10px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pdf-lines { display: grid; gap: 5px; padding: 4px 0; }
.pdf-line {
  height: 4px;
  border-radius: 2px;
  background: var(--n-150);
}
.pdf-line.lg { width: 70%; background: var(--n-300); height: 5px; }
.pdf-line.md { width: 90%; }
.pdf-line.sm { width: 55%; }
.pdf-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.pdf-score .score-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-700);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pdf-score .score-lbl {
  font-size: 9px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.pdf-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pdf-foot .wl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-700);
}
.pdf-foot .wl::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary-600);
}

/* ---------------- audience — table-style list ---------------- */
.audience-list {
  display: grid;
  border-top: 1px solid var(--border);
}
.audience-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
@media (min-width: 768px) {
  .audience-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) auto;
    gap: 32px;
    padding: 28px 0;
  }
}
.audience-row .who {
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--n-900);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.audience-row .desc {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.audience-row .reco {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-700);
  text-align: left;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.audience-row .reco::before {
  content: "→";
  color: var(--n-300);
}
@media (min-width: 768px) {
  .audience-row .reco { text-align: right; }
  .audience-row .reco::before { display: none; }
}

/* ---------------- why vigilo — editorial split ---------------- */
.why-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .why-split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: 64px;
  }
}
.why-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}
.why-list .w-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.why-list .w-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-700);
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.why-list .w-body { display: grid; gap: 8px; }
.why-list h3 {
  font-size: var(--t-lg);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.why-list p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 56ch;
}

/* ---------------- pricing preview ---------------- */
.pricing-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .pricing-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

.billing-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  position: relative;
}
.billing-toggle button {
  position: relative;
  z-index: 1;
  height: 32px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.billing-toggle button.active { color: var(--n-900); }
.billing-toggle .save-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--primary-100);
  color: var(--primary-800);
  padding: 2px 6px;
  border-radius: var(--r-xs);
}
.billing-toggle .glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  background: var(--bg);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition: left 240ms var(--ease), width 240ms var(--ease);
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plan-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

.plan {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  align-content: start;
  position: relative;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.plan:hover { border-color: var(--border-strong); }
.plan.featured {
  border-color: var(--n-900);
  box-shadow: var(--shadow-md);
  background: var(--bg-elev);
}
.plan.featured::before {
  content: "Più popolare";
  position: absolute;
  top: 0;
  right: 20px;
  transform: translateY(-50%);
  background: var(--n-900);
  color: var(--n-0);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: var(--r-pill);
}
.plan-name {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.plan-name h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.plan-name .audience {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.plan-price-block {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-price .amount {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--n-900);
  line-height: 1;
}
.plan-price .currency {
  font-size: 20px;
  font-weight: 500;
  color: var(--n-900);
  align-self: flex-start;
  margin-top: 8px;
}
.plan-price .per {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  margin-left: 4px;
  letter-spacing: 0.02em;
}
.plan-price.contact {
  align-items: baseline;
}
.plan-price.contact .amount {
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.plan-price.trial .amount {
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.plan-price.trial .currency,
.plan-price.contact .currency { display: none; }

.plan-billing-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.plan ul.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}
.plan ul.features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.45;
}
.plan ul.features li svg { flex-shrink: 0; margin-top: 3px; color: var(--primary-600); }
.plan ul.features li .muted { color: var(--fg-muted); }

.plan .btn { width: 100%; }

/* ---------------- faq ---------------- */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: var(--t-lg);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg);
  cursor: pointer;
  line-height: 1.3;
}
.faq-q .chev {
  flex-shrink: 0;
  transition: transform 220ms var(--ease);
  color: var(--fg-muted);
}
.faq-item.open .faq-q .chev { transform: rotate(45deg); color: var(--primary-700); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; padding-bottom: 28px; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--fg-muted); max-width: 64ch; font-size: 17px; line-height: 1.6; }
.faq-a p + p { margin-top: 8px; }

/* ---------------- waitlist form ---------------- */
.waitlist {
  background: var(--n-900);
  color: var(--n-50);
  border-radius: var(--r-xl);
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .waitlist { padding: 64px 56px; } }
.waitlist::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--primary-600) 18%, transparent), transparent 50%),
    radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--primary-600) 8%, transparent), transparent 50%);
  pointer-events: none;
}
.waitlist > * { position: relative; z-index: 1; }
.waitlist h2 { color: #fff; max-width: 22ch; }
.waitlist .lead { color: color-mix(in srgb, #fff 70%, transparent); }
.waitlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) { .waitlist-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }

.form-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  padding: 24px;
  backdrop-filter: blur(4px);
}
.form-row { display: grid; gap: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, #fff 65%, transparent);
}
.field input, .field select {
  height: 44px;
  width: 100%;
  padding: 0 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}
.field input::placeholder { color: rgba(255, 255, 255, 0.4); }
.field input:focus, .field select:focus {
  outline: 2px solid var(--primary-400);
  outline-offset: 2px;
  border-color: transparent;
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='%23ffffff99' stroke-width='1.5' d='M3 5l3 3 3-3'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: color-mix(in srgb, #fff 75%, transparent);
  cursor: pointer;
}
.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-500);
  flex-shrink: 0;
  margin-top: 1px;
}
.consent a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); text-underline-offset: 3px; }

.form-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.form-actions .btn-accent { width: 100%; }
.form-actions .note { font-family: var(--font-mono); font-size: 11px; color: color-mix(in srgb, #fff 50%, transparent); text-align: center; }

.waitlist-bullets { display: grid; gap: 18px; }
.waitlist-bullets .bullet { display: flex; gap: 14px; }
.waitlist-bullets .bullet .b-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-400);
  flex-shrink: 0;
}
.waitlist-bullets .bullet h4 { color: #fff; font-size: 15px; }
.waitlist-bullets .bullet p { color: color-mix(in srgb, #fff 65%, transparent); font-size: 13px; margin-top: 4px; }

/* form submitted state */
.form-ok {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 8px 0;
}
.form-ok .check {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-ok h3 { color: #fff; }
.form-ok p { color: color-mix(in srgb, #fff 70%, transparent); }

/* ---------------- pricing page ---------------- */
.pricing-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  overflow: hidden;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pricing-table th, .pricing-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.pricing-table th { font-weight: 500; color: var(--fg-muted); background: var(--bg-subtle); position: sticky; top: 64px; z-index: 1; }
.pricing-table thead th { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.pricing-table thead th.plan-col {
  text-transform: none;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
}
.pricing-table thead th.plan-col .plan-name-cell { display: flex; flex-direction: column; gap: 6px; }
.pricing-table thead th.plan-col .plan-name-cell strong { color: var(--n-900); font-size: var(--t-md); font-weight: 600; }
.pricing-table thead th.plan-col .plan-name-cell .price { font-family: var(--font-mono); color: var(--fg); }
.pricing-table thead th.plan-col.featured { background: var(--n-25); }
.pricing-table thead th.plan-col.featured strong { color: var(--primary-700); }
.pricing-table tbody td { color: var(--fg); }
.pricing-table tbody td.feature-name { font-weight: 500; color: var(--n-900); }
.pricing-table tbody td.featured { background: var(--n-25); }
.pricing-table tbody tr:last-child td { border-bottom: 0; }
.pricing-table tbody tr:nth-child(odd) td:not(.featured):not(.feature-name) { /* keep clean */ }
.pricing-table .section-divider td {
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  font-weight: 500;
}

.check-yes { color: var(--primary-600); }
.check-no { color: var(--n-200); }

/* Mobile pricing — fallback cards */
.pricing-mobile { display: grid; gap: 16px; }
@media (min-width: 900px) { .pricing-mobile { display: none; } }
.pricing-desktop { display: none; }
@media (min-width: 900px) { .pricing-desktop { display: block; } }

.ai-credits-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .ai-credits-box { grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 40px; align-items: center; }
}
.ai-credits-box h3 { font-size: var(--t-lg); }
.ai-credits-box .bullets { display: grid; gap: 10px; }
.ai-credits-box .bullets li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}
.ai-credits-box .bullets li svg { color: var(--primary-600); flex-shrink: 0; margin-top: 3px; }
.ai-credits-box .credits-vis {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
  display: grid;
  gap: 10px;
}
.credits-row { display: flex; justify-content: space-between; }
.credits-row.divider { border-top: 1px dashed var(--border); padding-top: 10px; }
.credits-row .num { color: var(--n-900); font-weight: 500; }
.credits-row .label { color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; }

/* ---------------- legal pages ---------------- */
.legal-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--warning-bg);
  border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
  border-radius: var(--r-md);
  font-size: 13px;
  color: #78350F;
}
.legal-banner .icon { color: var(--warning); flex-shrink: 0; margin-top: 1px; }
.legal-content { display: grid; gap: 16px; max-width: 72ch; }
.legal-content h3 { margin-top: 16px; }
.legal-content p { color: var(--fg); }
.legal-toc {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  align-content: start;
}
.legal-toc a { color: var(--fg-muted); padding: 4px 0; }
.legal-toc a:hover, .legal-toc a.active { color: var(--primary-700); }
.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 240px 1fr; gap: 64px; } }

/* ---------------- 404 ---------------- */
.notfound {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 64px 0;
}
.notfound-card {
  display: grid;
  gap: 24px;
  max-width: 560px;
}
.nf-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--critical-bg);
  border: 1px solid color-mix(in srgb, var(--critical) 20%, transparent);
  color: #7F1D1D;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: max-content;
}
.notfound h1 { font-size: var(--t-3xl); }
.notfound .check-log {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  color: var(--fg-muted);
  display: grid;
  gap: 4px;
}
.notfound .check-log .ok { color: var(--success); }
.notfound .check-log .bad { color: var(--critical); }

/* ---------------- trust strip ---------------- */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 18px 0;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.trust-row .sep {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
}
.trust-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.trust-label::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--border-strong);
}
@media (max-width: 640px) {
  .trust-row { font-size: 10px; gap: 8px 18px; }
}

/* ---------------- cost section (time-first narrative) ---------------- */
.cost-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--n-900);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) {
  .cost-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.cost-col {
  padding: 40px 0;
  display: grid;
  gap: 28px;
  align-content: start;
}
@media (min-width: 900px) {
  .cost-col {
    padding: 48px 48px 48px 0;
  }
  .cost-col.vigilo {
    padding-right: 0;
    padding-left: 48px;
    border-left: 1px solid var(--border);
  }
}
@media (max-width: 899px) {
  .cost-col.vigilo {
    border-top: 1px solid var(--border);
  }
}

/* head: eyebrow + big number */
.cost-head {
  display: grid;
  gap: 12px;
}
.cost-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.cost-col.vigilo .cost-eyebrow { color: var(--primary-700); }
.cost-big {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.cost-big .cost-num {
  font-family: var(--font-sans);
  font-size: clamp(72px, 9vw, 112px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--n-900);
}
.cost-col.vigilo .cost-big .cost-num { color: var(--primary-700); }
.cost-big .cost-unit {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  line-height: 1.4;
  padding-bottom: 10px;
}

/* month calendar visualization */
.month {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
  max-width: 360px;
}
.month .day {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--bg-muted);
  position: relative;
}
.month .day.consumed {
  background: var(--n-700);
}
.month .day.consumed::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 3px,
      rgba(255,255,255,0.12) 3px,
      rgba(255,255,255,0.12) 5px
    );
  border-radius: inherit;
}
.month .day--dotted::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary-600);
}
.month--dots .day { background: var(--bg-elev); border: 1px solid var(--border); }

/* body text */
.cost-text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  max-width: 44ch;
  text-wrap: pretty;
}
.cost-col.oggi .cost-text { color: var(--n-700); }

/* list */
.cost-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.cost-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-block: 2px;
}
.cost-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--n-300);
  margin-top: 8px;
  flex-shrink: 0;
}
.cost-col.vigilo .cost-list li::before { background: var(--primary-600); }

/* total */
.cost-total {
  display: grid;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.cost-total .t-amount {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--n-900);
  letter-spacing: -0.01em;
}
.cost-col.vigilo .cost-total .t-amount { color: var(--primary-700); }
.cost-total .t-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* closing line */
.cost-closing {
  margin-top: 40px;
  font-size: var(--t-md);
  line-height: 1.5;
  color: var(--fg);
  max-width: 56ch;
  text-wrap: pretty;
}
.cost-closing strong {
  color: var(--primary-700);
  font-weight: 600;
}

/* ---------------- mini calculator ---------------- */
.calc-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  max-width: 680px;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  gap: 22px;
}
@media (min-width: 768px) { .calc-card { padding: 40px; } }
.calc-card h3 {
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.calc-inputs { display: grid; gap: 14px; }
@media (min-width: 640px) { .calc-inputs { grid-template-columns: 1fr 1fr; gap: 16px; } }
.calc-field { display: grid; gap: 6px; }
.calc-field label {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}
.calc-stepper {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  height: 48px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.calc-stepper button {
  border: 0;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms var(--ease);
}
.calc-stepper button:hover { background: var(--bg-hover); }
.calc-stepper button:disabled { color: var(--n-200); cursor: not-allowed; }
.calc-stepper input {
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg-elev);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--n-900);
  -moz-appearance: textfield;
}
.calc-stepper input::-webkit-outer-spin-button,
.calc-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.calc-stepper input:focus { outline: 2px solid var(--primary-600); outline-offset: 0; }

.calc-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.calc-output {
  display: grid;
  gap: 14px;
}
.calc-output .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}
.calc-output .plan-name {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.calc-output .plan-name strong {
  font-size: var(--t-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--n-900);
}
.calc-output .plan-name .price {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--primary-700);
  font-weight: 500;
}
.calc-output p {
  color: var(--fg-muted);
  font-size: 14px;
  max-width: 56ch;
}
.calc-output p .annual {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
}
.calc-microcopy {
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
  max-width: 56ch;
  margin: 12px auto 0;
}

/* ---------------- pricing — 5 card grid ---------------- */
.plan-grid.five {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .plan-grid.five { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .plan-grid.five { grid-template-columns: repeat(5, 1fr); gap: 8px; }
}
.plan.trial {
  border-style: dashed;
  background: var(--bg-subtle);
}
.plan.trial .plan-price .amount { font-size: 22px; }

/* ---------------- founder note — inline minimal ---------------- */
.founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
@media (min-width: 768px) {
  .founder { grid-template-columns: 72px 1fr auto; gap: 28px; padding: 40px 0; }
}
.founder-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 32%, var(--primary-300) 0%, var(--primary-600) 55%, var(--primary-800) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  color: #fff;
  font-size: 26px;
  flex-shrink: 0;
}
.founder-quote p {
  font-size: var(--t-md);
  color: var(--fg);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 56ch;
}
.founder-quote .signature {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-style: normal;
  display: inline-block;
}

/* ---------------- final CTA ---------------- */
.final-cta {
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}
.final-cta h2 { font-size: clamp(28px, 4vw, 48px); }
.final-cta .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------------- waitlist gated ---------------- */
body:not(.pre-launch) .waitlist-section { display: none !important; }

/* ---------------- logo wordmarks ---------------- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--n-900);
  line-height: 1;
  user-select: none;
}
.wordmark.size-md { font-size: 20px; }
.wordmark.size-sm { font-size: 16px; }
.wordmark.size-lg { font-size: 28px; }

.wm-v1 .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary-600);
  border-radius: 999px;
  margin-left: 2px;
  transform: translateY(-1px);
}
.wm-v1.size-lg .dot { width: 8px; height: 8px; }

.wm-v2 {
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}
.wm-v2 .eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 1.6px solid var(--n-900);
  position: relative;
  margin-inline: 0.02em;
}
.wm-v2 .eye::after {
  content: "";
  width: 0.32em;
  height: 0.32em;
  background: var(--primary-600);
  border-radius: 50%;
}

.wm-v3 .mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  margin-right: 0.35em;
  background: var(--n-900);
  color: #fff;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8em;
  position: relative;
}
.wm-v3 .mono::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 0.5em;
  height: 0.5em;
  background: var(--primary-600);
  border-radius: 50%;
  border: 1.5px solid var(--bg);
}

.wm-v4 {
  font-weight: 600;
  position: relative;
}
.wm-v4 .scan {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--primary-600);
  transform-origin: left center;
  animation: scanline 3.6s ease-in-out infinite;
}
@keyframes scanline {
  0%, 100% { transform: scaleX(0.15); transform-origin: left center; }
  50% { transform: scaleX(1); transform-origin: left center; }
  50.001% { transform-origin: right center; }
}
@media (prefers-reduced-motion: reduce) {
  .wm-v4 .scan { animation: none; transform: scaleX(1); opacity: 0.7; }
}

/* ---------------- logo lab section ---------------- */
.logo-lab {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .logo-lab { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .logo-lab { grid-template-columns: repeat(4, 1fr); } }
.logo-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 200px;
}
.logo-card .preview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 24px;
}
.logo-card .meta { display: flex; align-items: center; justify-content: space-between; }
.logo-card .meta .name { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.logo-card .meta button { font-family: var(--font-mono); font-size: 11px; color: var(--primary-700); background: transparent; border: 0; cursor: pointer; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------------- subtle scroll progress on header — none, keep it bare ---------------- */

/* ---------------- utilities ---------------- */
.flex { display: flex; }
.flex.gap-2 { gap: 8px; }
.flex.gap-3 { gap: 12px; }
.flex.gap-4 { gap: 16px; }
.flex.gap-6 { gap: 24px; }
.flex.items-center { align-items: center; }
.flex.justify-between { justify-content: space-between; }
.flex.wrap { flex-wrap: wrap; }
.grid { display: grid; }
.muted { color: var(--fg-muted); }
.center { text-align: center; }
.hide-md { display: block; }
@media (min-width: 768px) { .hide-md { display: none; } }
.show-md { display: none; }
@media (min-width: 768px) { .show-md { display: block; } }

/* page transition */
main { animation: page-in 280ms var(--ease); }
@keyframes page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
