/* Hallmark · genre: modern-minimal · macrostructure: Stat-Led · theme: Cobalt · nav: N1b · footer: Ft2 · pre-emit critique: P4 H4 E4 S4 R4 V4 */

/* ————— Design Tokens ————— */
:root {
  /* Colors — Cobalt theme (cool engineered near-white) */
  --color-paper:    oklch(98.5% 0.003 250);
  --color-paper-2:  oklch(97% 0.004 250);
  --color-paper-3:  oklch(95% 0.005 250);
  --color-rule:     oklch(90% 0.004 250);
  --color-rule-strong: oklch(85% 0.005 250);
  --color-neutral:  oklch(55% 0.008 250);
  --color-muted:    oklch(45% 0.008 250);
  --color-ink:      oklch(18% 0.01 250);
  --color-ink-soft: oklch(28% 0.01 250);
  --color-accent:   oklch(55% 0.2 250);
  --color-accent-hover: oklch(50% 0.22 250);
  --color-focus:    oklch(60% 0.18 250);
  
  /* Typography — Space Grotesk display + Inter body + JetBrains Mono */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  
  /* Spacing — 4pt scale */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;
  
  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  
  /* Duration */
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
  
  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  
  /* Z-index scale */
  --z-base: 1;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
  
  /* Layout */
  --page-max: 72rem;
  --page-gutter: clamp(1rem, 4vw, 2rem);
}

/* ————— Reset ————— */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body { 
  margin: 0; 
  overflow-x: clip;
  font-family: var(--font-body);
  background: var(--color-paper);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ————— Typography ————— */
.tnum { font-variant-numeric: tabular-nums; }

/* ————— Navigation (N1b) ————— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-sticky);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-short), border-color var(--dur-short), box-shadow var(--dur-short);
}

.nav.is-scrolled {
  background: color-mix(in oklch, var(--color-paper) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--color-rule);
  box-shadow: 0 8px 28px -18px oklch(0% 0 0 / 0.4);
}

.nav__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav__brand {
  justify-self: start;
  text-decoration: none;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.nav__x {
  color: var(--color-accent);
}

.nav__center {
  justify-self: center;
  display: flex;
  gap: 0.35rem;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur-micro), background var(--dur-micro);
}

.nav__link:hover {
  color: var(--color-ink);
  background: var(--color-paper-2);
}

.nav__right {
  justify-self: end;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ————— Buttons ————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-micro) var(--ease-out);
  min-height: 44px;
}

.btn--text {
  color: var(--color-muted);
  background: transparent;
}

.btn--text:hover {
  color: var(--color-ink);
  background: var(--color-paper-2);
}

.btn--accent {
  color: oklch(98% 0.005 250);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn--accent:active {
  transform: translateY(0);
}

/* ————— CTA Outline (C1) ————— */
.cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  transition: all var(--dur-micro) var(--ease-out);
  min-height: 44px;
}

.cta-outline:hover {
  background: var(--color-ink);
  color: var(--color-paper);
  transform: translateY(-1px);
}

.cta-outline:active {
  transform: translateY(0);
}

.cta-outline--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ————— Main Layout ————— */
main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
  padding-top: 64px;
}

/* ————— Hero Stat (H4) ————— */
.hero-stat {
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
}

.hero-stat__figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 15vw, 12rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  margin-bottom: var(--space-lg);
}

.figure {
  font-variant-numeric: tabular-nums;
}

.unit {
  font-size: 0.5em;
  font-weight: 500;
  color: var(--color-muted);
  margin-left: 0.05em;
}

.hero-stat__qualifier {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-muted);
  max-width: 32ch;
  margin: 0 auto var(--space-xl);
  line-height: 1.5;
}

/* ————— Logo Wall (T2) ————— */
.logo-wall {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
}

.logo-wall__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.logo-wall__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.logo-wall__list li {
  padding: var(--space-md);
  border-right: 1px solid var(--color-rule);
  display: grid;
  place-items: center;
  min-height: 4rem;
}

.logo-wall__list li:last-child {
  border-right: none;
}

.logo-wall__list li svg {
  height: 1.5rem;
  width: auto;
  fill: var(--color-muted);
  opacity: 0.6;
  transition: opacity var(--dur-micro);
}

.logo-wall__list li:hover svg {
  opacity: 1;
}

/* ————— Stat Strip (T4) ————— */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: var(--space-lg);
  padding: var(--space-3xl) 0;
}

.stat-strip__item {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.stat-strip__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-ink);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-strip__label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ————— Section ————— */
.section {
  padding: var(--space-3xl) 0;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.section__title--left {
  text-align: left;
}

/* ————— Spec Sheet (F3) ————— */
.spec-sheet {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.spec-sheet thead {
  border-bottom: 2px solid var(--color-ink);
}

.spec-sheet th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  vertical-align: bottom;
}

.spec-sheet td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-rule);
  vertical-align: top;
}

.spec-sheet tbody tr:hover {
  background: var(--color-paper-2);
}

.spec-sheet__step {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-accent);
  white-space: nowrap;
}

.spec-sheet__name {
  font-weight: 600;
  color: var(--color-ink);
}

.spec-sheet__detail {
  color: var(--color-muted);
  max-width: 32ch;
}

.spec-sheet__time {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.spec-sheet__status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-sheet__status--active {
  color: var(--color-accent);
}

/* ————— Split Section ————— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.split__text {
  max-width: 48ch;
}

.split__lede {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.split__checks {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
}

.split__checks li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-muted);
  padding: var(--space-xs) 0 var(--space-xs) var(--space-lg);
  position: relative;
}

.split__checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-accent);
  border-radius: 50%;
}

.split__visual {
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.split__visual-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.split__stat {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
}

.split__stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-ink);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.split__stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

/* ————— Pricing ————— */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-lg);
}

.pricing__tier {
  padding: var(--space-xl);
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  transition: all var(--dur-short) var(--ease-out);
}

.pricing__tier:hover {
  border-color: var(--color-rule-strong);
  transform: translateY(-2px);
}

.pricing__tier--featured {
  border-color: var(--color-accent);
  box-shadow: 0 4px 24px oklch(55% 0.2 250 / 0.15);
}

.pricing__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: oklch(98% 0.005 250);
  background: var(--color-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.pricing__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
}

.pricing__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--color-ink);
  line-height: 1;
  margin-bottom: var(--space-lg);
}

.pricing__period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted);
}

.pricing__price--custom {
  font-size: 1.75rem;
}

.pricing__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
}

.pricing__features li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-muted);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-rule);
}

.pricing__features li:last-child {
  border-bottom: none;
}

/* ————— FAQ ————— */
.faq {
  max-width: 48rem;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-rule);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__question {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-ink);
  padding: var(--space-lg) 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: var(--space-xl);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--color-muted);
  transition: transform var(--dur-short) var(--ease-out);
}

.faq__item[open] .faq__question::after {
  content: "−";
}

.faq__answer {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.7;
  padding: 0 0 var(--space-lg);
  margin: 0;
}

/* ————— CTA Section ————— */
.cta {
  text-align: center;
  padding: var(--space-4xl) var(--page-gutter);
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  margin: var(--space-3xl) 0;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.cta__text {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: var(--space-xl);
}

.cta__note {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: var(--space-md);
}

/* ————— Footer (Ft2) ————— */
.foot-line {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--page-gutter);
  border-top: 1px solid var(--color-rule);
  text-align: center;
}

.foot-line p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

.foot-line a {
  color: var(--color-muted);
  text-decoration: underline;
  text-decoration-color: var(--color-rule-strong);
  text-underline-offset: 2px;
  transition: color var(--dur-micro);
}

.foot-line a:hover {
  color: var(--color-ink);
}

/* ————— Responsive ————— */
@media (max-width: 60rem) {
  .nav__center {
    display: none;
  }
  
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .split__text {
    max-width: none;
  }
  
  .spec-sheet {
    font-size: 0.875rem;
  }
  
  .spec-sheet td {
    padding: var(--space-sm);
  }
  
  .spec-sheet__detail {
    max-width: none;
  }
}

@media (max-width: 40rem) {
  .hero-stat__figure {
    font-size: clamp(3rem, 12vw, 6rem);
  }
  
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing {
    grid-template-columns: 1fr;
  }
  
  .split__visual-inner {
    grid-template-columns: 1fr;
  }
  
  .cta {
    padding: var(--space-2xl) var(--page-gutter);
  }
}

/* ————— Reduced Motion ————— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
}
