@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;   /* variable: the 550/650/750 weights below are real */
  font-display: swap;
  src: url("/assets/fonts/inter-subset.woff2?v=23730943") format("woff2");
}

/* =============================================================================
   LeoCore - brand site
   -----------------------------------------------------------------------------
   Light ground, deliberately. The APPLICATIONS are dark working surfaces; this
   is long-form reading, and the transparent wordmark sets "Leo" in near-black,
   so it only resolves on a light field. Oxblood and gold are sampled from the
   artwork and are the only saturated colours here, exactly as in the products.
   ========================================================================== */

:root {
  --ink:            #14151a;
  --ink-soft:       #3d4048;
  --ink-dim:        #686c76;   /* 4.7:1 on the warm surface; #6b6f79 was 4.48 */
  --ground:         #fbf9f7;
  --surface:        #ffffff;
  --surface-warm:   #f5f1ed;
  --line:           #e4ded8;
  --line-strong:    #cfc6bd;

  --oxblood:        #8b1f2f;
  --oxblood-bright: #b0293c;
  --oxblood-deep:   #6d1725;
  --gold:           #c9a35c;
  --gold-deep:      #8a6a28;   /* carries 13px type at 4.8:1; #a8853f was 3.28 */

  --navy:           #111d34;
  /* Body and lede on the two navy panels. These were written as literals in
     four places, which put them outside every contrast and palette check in
     tools/verify.py - the one kind of colour that survives a palette change
     untouched, sitting beside colours that cannot. */
  --on-navy:        #c7d0e2;
  --on-navy-soft:   #aebad2;

  --radius:      14px;
  --radius-sm:   9px;
  --shadow:      0 1px 2px rgba(20, 21, 26, .05), 0 8px 24px -12px rgba(20, 21, 26, .14);
  --shadow-lift: 0 2px 4px rgba(20, 21, 26, .06), 0 18px 44px -18px rgba(109, 23, 37, .28);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Every nav link on every page is an in-page anchor, and the header is sticky:
   without this the target heading scrolls to underneath the bar. */
:target, section[id], main[id] { scroll-margin-top: 84px; }

/* Invariant carried over from the application: nothing may make the document
   wider than the viewport. `clip` rather than `hidden`, so the sticky header
   keeps working instead of becoming a scroll container. */
html, body { max-width: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); text-decoration: none; }
a:hover { color: var(--oxblood-bright); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0; font-weight: 750; letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); letter-spacing: -.026em; }
h3 { font-size: 1.12rem; font-weight: 700; }
p  { margin: 0; text-wrap: pretty; }

/* ---------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 22px; }
.narrow { max-width: 780px; }

section { padding-block: clamp(56px, 8vw, 104px); }
.section-warm { background: var(--surface-warm); border-block: 1px solid var(--line); }

.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--oxblood); margin-bottom: 14px;
}
.lede { font-size: clamp(1.02rem, 1.9vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; }

.stack   { display: flex; flex-direction: column; gap: 18px; }
.grid    { display: grid; gap: 20px; }
.grid-2  { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3  { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* ---------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 247, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  min-height: 66px; padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
/* Pinned, never elastic: nothing in this bar may grow with its container. */
.brand img { width: 30px; height: 30px; flex: 0 0 30px; }
.brand-name { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -.02em; }
.brand-name span { color: var(--oxblood); }

/* The nav takes its own line when it cannot sit beside the brand. */
.site-header .wrap { flex-wrap: wrap; }

.site-nav {
  display: flex; flex-wrap: wrap; align-items: center;
  order: 3; width: 100%; gap: 10px 20px; padding-bottom: 10px;
}
.site-nav a { color: var(--ink-soft); font-size: 14.5px; font-weight: 550; }
.site-nav a:hover { color: var(--oxblood); }
.site-nav a[aria-current] { color: var(--oxblood); font-weight: 650; }

.header-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* The button is inert without the script, so it is not shown without it. */
.nav-burger { display: none; }
.js .nav-burger {
  display: grid; place-content: center; gap: 4px;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); cursor: pointer;
}
.js .nav-burger span { display: block; width: 17px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.js .nav-burger:hover { border-color: var(--oxblood); }

.js .site-nav { display: none; }
.js .site-nav.is-open {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 0; padding-bottom: 6px;
}
.js .site-nav.is-open a { padding: 11px 2px; border-top: 1px solid var(--line); font-size: 15px; }

@media (min-width: 880px) {
  .site-nav, .js .site-nav {
    display: flex; flex-direction: row; order: 0;
    width: auto; margin-left: auto; gap: 26px; padding-bottom: 0;
  }
  .js .site-nav.is-open a { padding: 0; border-top: none; font-size: 14.5px; }
  .header-cta { margin-left: 0; }
  .js .nav-burger { display: none; }
}

/* ------------------------------------------------------------ keyboard -- */
/* There were no focus styles at all: a keyboard user got the browser default,
   which on a solid oxblood button is close to invisible.  Gold-deep clears 4:1
   on every light surface here; on the two dark panels it is swapped for the
   brighter gold, which the navy ground can carry. */
:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 3px;
}
.cta-band :focus-visible, .panel-dark :focus-visible { outline-color: var(--gold); }

/* .sr-only has been in this file since the first commit with nothing using it.
   This is what it was for. */
.skip-link {
  position: absolute; left: 10px; top: 10px; z-index: 100;
  transform: translateY(-250%);
  background: var(--oxblood); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 650;
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* Smooth scrolling and every lift-on-hover are opt-outs, not defaults. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card-link:hover, .btn-primary:hover { transform: none; }
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 650; letter-spacing: -.005em;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--oxblood); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--oxblood-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--oxblood); color: var(--oxblood); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ hero -- */
.hero { padding-block: clamp(56px, 9vw, 116px) clamp(48px, 7vw, 88px); }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 20px; }
.hero .btn-row { margin-top: 30px; }

.hero-note {
  margin-top: 26px; font-size: 13.5px; color: var(--ink-dim);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
}
.hero-note strong { color: var(--ink); font-weight: 650; }

/* ------------------------------------------------------------------ card -- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
/* The whole card is an <a>, so `a { color: oxblood }` was cascading into every
   paragraph and every bullet inside it - the four product descriptions on the
   home page, set in brand red. The tell is the rule two lines below: .tagline
   is given oxblood explicitly, which would be redundant if the text around it
   were already oxblood. The card's own headline and foot set their colours; the
   body is meant to read as body. */
.card-link {
  color: var(--ink-soft);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }

.card h3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card .tagline { color: var(--oxblood); font-weight: 600; font-size: 14.5px; }
.card p { font-size: 14.8px; }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.2px; }
.card ul li { position: relative; padding-left: 17px; }
.card ul li::before { content: "\2022"; color: var(--gold-deep); font-weight: 800; position: absolute; left: 0; top: 0; }
.card-foot { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 650; color: var(--oxblood); }

.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase;
}
.chip-gold { background: rgba(201, 163, 92, .2); color: var(--gold-deep); }
.chip-ox   { background: rgba(139, 31, 47, .1); color: var(--oxblood); }
.chip-live { background: rgba(28, 120, 80, .12); color: #1c7850; }

/* -------------------------------------------------------------- features -- */
.feature { display: flex; flex-direction: column; gap: 9px; }
.feature h3 { font-size: 1.02rem; }
.feature p { font-size: 14.6px; }
.feature-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(139, 31, 47, .08); color: var(--oxblood); flex: 0 0 34px;
  font-weight: 800; font-size: 13px; font-family: var(--mono);
}

.feature-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}

/* ----------------------------------------------------------------- steps -- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--gold-deep);
  padding-top: 3px;
}
.step h3 { margin-bottom: 5px; }
.step p { font-size: 14.8px; }

/* --------------------------------------------------------------- pricing -- */
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); align-items: stretch; }
.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow);
}
.price-featured { border-color: var(--oxblood); box-shadow: var(--shadow-lift); position: relative; }
.price-featured::before {
  content: "Most chosen"; position: absolute; top: -11px; left: 24px;
  background: var(--oxblood); color: #fff; font-size: 10.5px; font-weight: 750;
  letter-spacing: .07em; text-transform: uppercase; padding: 3px 11px; border-radius: 999px;
}
.price-name { font-size: 13px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-dim); }
.price-amount { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price-amount b { font-size: 2.15rem; font-weight: 780; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.price-amount span { font-size: 14px; color: var(--ink-dim); }
.price-usd { font-size: 13px; color: var(--ink-dim); margin-top: 6px; line-height: 1.45; }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.4px; }
.price li { position: relative; padding-left: 22px; }
.price li::before { content: "\2713"; color: var(--oxblood); font-weight: 800; font-size: 12.5px; position: absolute; left: 0; top: 1px; }
.price li.muted { color: var(--ink-dim); }
.price li.muted::before { content: "\2013"; color: var(--line-strong); font-size: 14px; }
.price .btn { width: 100%; margin-top: auto; }

/* ----------------------------------------------------------------- table -- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.4px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 11.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-dim); background: var(--surface-warm); }
tbody tr:last-child td { border-bottom: none; }
td strong { color: var(--ink); }
.num { text-align: right; font-family: var(--mono); font-size: 13.6px; }
.row-ours { background: rgba(139, 31, 47, .045); }
.row-ours td { font-weight: 600; }

/* ------------------------------------------------------------------ note -- */
.note {
  background: var(--surface-warm); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: var(--radius-sm);
  padding: 18px 20px; font-size: 14.5px;
}
.note strong { color: var(--ink); }

.panel-dark {
  background: var(--navy); color: var(--on-navy); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lift);
}
.panel-dark h2, .panel-dark h3 { color: #fff; }
.panel-dark .eyebrow { color: var(--gold); }
.panel-dark code { color: var(--gold); background: rgba(255, 255, 255, .07); }
.panel-dark .sov-row { border-color: rgba(255, 255, 255, .12); }

.sov-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.sov-row:first-of-type { border-top: none; padding-top: 0; }
.sov-row h3 { font-size: 1rem; }
.sov-row p { font-size: 14.5px; }
@media (min-width: 720px) { .sov-row { grid-template-columns: 210px 1fr; gap: 22px; } }

code { font-family: var(--mono); font-size: .88em; background: rgba(139, 31, 47, .07); padding: 2px 6px; border-radius: 5px; color: var(--oxblood-deep); }

/* ------------------------------------------------------------------- faq -- */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary {
  cursor: pointer; font-weight: 650; color: var(--ink); font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: start;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--oxblood); font-weight: 700; font-size: 20px; line-height: 1; flex: 0 0 auto; }
details[open] summary::after { content: "\2013"; }
details p { margin-top: 11px; font-size: 14.8px; max-width: 72ch; }

/* ------------------------------------------------------------------- cta -- */
.cta-band { background: var(--navy); color: var(--on-navy); }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: var(--on-navy-soft); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------------------------------------------------------------- footer -- */
.site-footer { background: var(--surface-warm); border-top: 1px solid var(--line); padding-block: 44px 34px; font-size: 14px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-grid h4 { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 12px; font-weight: 750; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-soft); }
.footer-grid a:hover { color: var(--oxblood); }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between;
  font-size: 13px; color: var(--ink-dim);
}

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