/* ══════════════════════════════════════════════════════════════════════
   Inter, self-hosted.

   Served from our own origin rather than a font CDN: no third-party request
   on any page, nothing to block, and no dependency on a service we do not
   control. It is also the only way the design actually gets the typeface —
   linking a CDN would have failed silently and fallen back to a system font,
   which is what was happening before.

   One variable file per subset covers every weight, so the whole family
   costs a single 47KB request for Latin text. `font-display: swap` means
   text is readable immediately and reflows when the font lands, rather than
   the page sitting blank.

   Inter is SIL Open Font License 1.1 — self-hosting and redistribution are
   expressly permitted.
   ══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;          /* variable: one file, all weights */
  font-display: swap;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                 U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
                 U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ══════════════════════════════════════════════════════════════════════
   Design system.

   Palette and type follow the brand book: warm white ground, near-black
   type, deep cobalt accent, restrained grotesk. The site commits to a
   single light visual world — that is the specified identity, not an
   omission — so every colour is painted explicitly and `color-scheme`
   keeps form controls in the same world.

   Anti-patterns held to deliberately: no gradients, no glass, no blobs,
   no oversized animated figures, no decorative rounding.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;

  /* Ground and ink */
  --paper:      #FAFAF7;
  --paper-2:    #F3F3ED;   /* warm recessed surface */
  --paper-3:    #ECECE4;
  --ink:        #111111;
  --ink-2:      #3B3B37;   /* secondary prose */
  --muted:      #6E6E67;   /* labels, captions */
  --rule:       #E4E4DB;
  --rule-2:     #D3D3C8;

  /* Accent */
  --accent:     #2457FF;
  --accent-dark:#1740CC;
  --accent-wash:#EDF1FF;
  /* The cobalt is tuned for the warm-white ground; on near-black it drops to
     ~3.5:1 and reads dim. This lifted tint is the same hue for use on the
     dark bars (console header, preview chrome). */
  --accent-lt:  #6B8FFF;

  /* Semantic — used only for status, never as decoration */
  --ok:         #0F7A4A;
  --warn:       #9A6200;
  --err:        #B3261E;

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  /* Measure */
  --container: 68rem;
  --measure: 34rem;

  /* Rhythm */
  --sp-section: clamp(4.5rem, 10vw, 8.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ── Type ────────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 7.5vw, 5rem);
  letter-spacing: -0.042em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  letter-spacing: -0.034em;
}

h3 { font-size: 1.0625rem; letter-spacing: -0.012em; line-height: 1.4; }

p { margin: 0; }

.lede {
  font-size: clamp(1.0625rem, 1.9vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: var(--measure);
  text-wrap: pretty;
}

.label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose p + p { margin-top: 1.15em; }
.prose { max-width: var(--measure); color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }

a { color: inherit; }

/* ── The mark ────────────────────────────────────────────────────────── */

.mark {
  display: inline-block;
  color: var(--accent);
  font-size: 0.72em;
  vertical-align: 0.14em;
  line-height: 1;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-2);
}
.btn-secondary:hover { border-color: var(--ink); }

.btn-link {
  padding: 0;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  border-radius: 0;
}
.btn-link:hover { border-bottom-color: currentColor; }

:where(a, button, summary, input, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Masthead ────────────────────────────────────────────────────────── */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
}
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
@media (max-width: 52rem) { .nav .nav-hide { display: none; } }

/* ── Sections ────────────────────────────────────────────────────────── */

section { padding-block: var(--sp-section); }
.section-bordered { border-top: 1px solid var(--rule); }
.section-inset { background: var(--paper-2); }

.section-head { max-width: var(--measure); margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 1rem; }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero h1 { margin-bottom: 1.75rem; }
.hero .lede { margin-bottom: 2.5rem; max-width: 33rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.hero-aside {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
}

/* ── Handled list: the brand device, resolving once ──────────────────── */

.handled-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  max-width: 44rem;
}
@media (min-width: 40rem) {
  .handled-grid { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

.handled-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
}

.handled-item .state {
  width: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1;
  color: var(--rule-2);
  transition: color 0.3s ease;
}
.handled-item.is-handled .state { color: var(--accent); }

.handled-close {
  margin-top: 2.5rem;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* ── Steps: a real sequence, so genuinely ordered ────────────────────── */

.steps { display: grid; gap: 0; max-width: 46rem; }
.step {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-n {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  padding-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--ink-2); font-size: 0.9688rem; }

/* ── Pricing ─────────────────────────────────────────────────────────── */

.price-card {
  border: 1px solid var(--rule-2);
  background: var(--paper);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 34rem;
}

.price-rows { display: grid; gap: 1.5rem; }
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}
.price-figure {
  font-size: clamp(2.25rem, 5.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-figure .per {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.price-what { font-size: 0.9375rem; color: var(--muted); text-align: right; }

.price-included {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.price-included ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.6rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.price-included li { display: flex; gap: 0.6rem; align-items: baseline; }
.price-included li::before {
  content: "■";
  color: var(--accent);
  font-size: 0.6rem;
  line-height: 1.6;
}

.price-terms {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.45rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.price-terms strong { color: var(--ink); font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: 3.5rem 4rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 46rem) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* ── Build-time gate: refuses to let unverifiable claims ship ─────────── */

.launch-gate {
  background: #2B1A00;
  color: #FFD9A0;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.85rem 0;
}
.launch-gate strong { color: #FFF; font-weight: 600; }
.launch-gate code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

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