/* ==========================================================================
   HoldMyCode — landing site
   Strictly monochrome: every value below is white, black, or a grey between.
   No hue anywhere. Status is carried by CONTRAST and WEIGHT, never colour:
     high contrast / filled  = shipped, active, present
     low contrast / outlined = planned, idle, absent
   ========================================================================== */

/* ---------------------------------------------------------------------------
   DARK MODE TEMPORARILY LOCKED OFF (2026-09-15) — the site is forced to light.
   The dark styles below are preserved but dormant: the three
   `@media (prefers-color-scheme: dark)` blocks are gated with
   `and (min-width: 99999px)` so they can never match, and the logo <picture>
   sources + the dark theme-color meta in index.html / 404.html are gated the
   same way. To bring dark mode back: remove every `and (min-width: 99999px)`
   guard across the project and set the color-scheme meta back to "light dark".
   --------------------------------------------------------------------------- */

:root {
  color-scheme: light;
  /* Greys — light theme */
  --bg:         #FFFFFF;
  --bg-alt:     #F5F5F5;
  --surface:    #FFFFFF;
  --surface-2:  #FAFAFA;

  --ink:        #1D1D1D;   /* primary text, filled buttons */
  --ink-2:      #707070;   /* secondary text */
  --ink-3:      #878787;   /* tertiary / metadata */
  --ink-4:      #A3A3A3;   /* faint */

  --line:       #D4D4D4;
  --line-soft:  #E9E9E9;

  --on-fill:    #FFFFFF;   /* text on an ink-filled surface */

  /* Illustration greys — the drawn objects inside the SVG mocks */
  --art-1:      #EDEDED;   /* object face */
  --art-2:      #F7F7F7;   /* lighter face */
  --art-line:   #D4D4D4;   /* object outline */

  --radius-sm:  12px;
  --radius:     18px;
  --radius-lg:  28px;

  --maxw:   1000px;
  --gutter: 22px;
  --nav-h:  48px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) and (min-width: 99999px) {
  :root {
    --bg:        #000000;
    --bg-alt:    #0B0B0B;
    --surface:   #141414;
    --surface-2: #1A1A1A;

    --ink:       #F5F5F5;
    --ink-2:     #A3A3A3;
    --ink-3:     #878787;
    --ink-4:     #707070;

    --line:      #2A2A2A;
    --line-soft: #1F1F1F;

    --on-fill:   #000000;

    --art-1:     #2A2A2A;
    --art-2:     #333333;
    --art-line:  #3A3A3A;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.025em;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-fill);
  border-radius: 999px;
  z-index: 100;
  font-size: 14px;
}
.skip-link:focus { left: 16px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: 120px 0;
  scroll-margin-top: calc(var(--nav-h) + 18px);   /* anchors clear the sticky nav */
}
.band { background: var(--bg-alt); }

/* ---------- type helpers ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.section-head {
  max-width: 660px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -0.03em;
}
.section-head p {
  margin: 18px auto 0;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.5;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 980px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--on-fill);
}
.btn-primary:hover { opacity: 0.86; }

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

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
}
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-more::after { content: "›"; font-size: 18px; line-height: 1; }

/* ---------- status treatment (monochrome semantics) ---------- */

/* filled = it exists today */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}
.tag-shipped {
  background: var(--ink);
  color: var(--on-fill);
  border: 1px solid var(--ink);
}
/* outlined = not yet */
.tag-soon {
  background: transparent;
  color: var(--ink-3);
  border: 1px dashed var(--line);
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.dot-hollow {
  background: transparent;
  border: 1.5px solid currentColor;
  width: 7px; height: 7px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); }

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  margin-right: auto;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 13px;
  color: var(--ink-2);
}
.nav-links a {
  text-decoration: none;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  font-size: 13px;
  padding: 6px 15px;
}

/* ---------- hero ---------- */

.hero {
  padding: 92px 0 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 400;          /* plain words sit light... */
  letter-spacing: -0.035em;
  max-width: 15ch;
  margin: 0 auto;
}
/* ...so the three phrases carrying the pitch land with real contrast. */
.hero h1 strong { font-weight: 800; }

.hero-sub {
  margin: 24px auto 0;
  max-width: 36em;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink-2);
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-3);
  line-height: 1.8;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 26px;
}

.hero-figure {
  margin-top: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- figures ---------- */

.figure { text-align: center; }

/* Hero product shot — a transparent laptop render, so it floats on the page with
   no card. A shape-aware drop-shadow (follows the alpha, not the box) gives it
   lift in light mode; on the dark hero a shadow reads as nothing, so it's off. */
.hero-shot {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 44px rgba(0,0,0,0.16));
}
@media (prefers-color-scheme: dark) and (min-width: 99999px) {
  .hero-shot { filter: none; }
}

.figure-cap {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-4);
}

/* ---------- how it works: one card, five states ---------- */

.demo {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.demo-stage { display: grid; gap: 28px; }

/* Enhanced mode: all five frames share one grid cell and cross-fade.
   Without it (no JS) they simply stack and every step stays readable. */
.demo.is-enhanced .step {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
}
.demo.is-enhanced .step.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.step-visual {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 46px 30px 30px;
  min-height: 272px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-visual svg { max-width: 300px; }

.step-visual .pill {
  position: absolute;
  top: 18px;
  left: 18px;
}

.step-label,
.state-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.step-copy h3 {
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.step-copy > p { color: var(--ink-2); font-size: 17px; line-height: 1.5; }

.step-count {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--ink-4);
}
.demo.is-enhanced .step-count { display: none; }   /* the bar says this already */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
}
.pill-on  { background: var(--ink); color: var(--on-fill); }
.pill-off { background: transparent; color: var(--ink-3); border: 1px solid var(--line); }

/* --- controls --- */

.demo-controls {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.demo:not(.is-enhanced) .demo-controls { display: none; }

.demo-progress {
  display: flex;
  gap: 8px;
  flex: 1;
}

.seg {
  flex: 1;
  height: 22px;              /* generous hit area around a thin bar */
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.seg .seg-fill {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.seg .seg-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(0);
}
/* steps already played */
.seg.is-done .seg-fill::after { transform: scaleX(1); }
/* the step playing right now — fills across its dwell time */
.seg.is-current .seg-fill::after {
  animation: segFill var(--dwell, 4200ms) linear forwards;
}

.seg:hover .seg-fill { background: var(--ink-4); }

@keyframes segFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ---------- features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

.card-icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-bottom: 16px;
}
.card.is-soon .card-icon { color: var(--ink-4); }

.card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.card-title { margin-bottom: 7px; }
.card-title h3 { font-size: 17px; letter-spacing: -0.018em; }
.card.is-soon .card-title h3 { color: var(--ink-2); }
.card p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.card.is-soon p { color: var(--ink-3); }

/* ---------- agents ---------- */

.agent-lead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: center;
  margin-bottom: 26px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);   /* five agents, one clean row */
  gap: 12px;
}

.agent {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 142px;
}

/* shipped: full contrast, solid mark, filled badge */
.agent.is-live { border-color: var(--ink); }
.agent.is-live .agent-mark {
  background: var(--ink);
  color: var(--on-fill);
  border-color: var(--ink);
}
/* planned: recessed, dashed mark, outlined badge */
.agent.is-soon { background: transparent; }
.agent.is-soon .agent-mark {
  border-style: dashed;
  color: var(--ink-4);
}
.agent.is-soon .agent-name { color: var(--ink-2); font-weight: 500; }

.agent-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex: none;
}

.agent-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.agent-foot { margin-top: auto; }

.agent-note {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.7;
  color: var(--ink-3);
  text-align: center;
}
/* The legend just quotes the badge's wording, so it's bold text rather than a
   second filled pill — one heavy black chip per section is enough. The real
   badge on the Claude Code card keeps its fill; that one carries the
   shipped/planned distinction. */
.agent-note strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- getting started ---------- */

/* A hairline-divided run rather than another row of rounded cards — the page
   already has two card grids and needed a different device here. */
.setup-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.setup-step {
  background: var(--bg);
  padding: 30px 28px 34px;
}

.setup-num {
  display: block;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}

.setup-step h3 {
  font-size: 17px;
  letter-spacing: -0.018em;
  margin-bottom: 9px;
}
.setup-step p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}

.setup-note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.7;
  color: var(--ink-3);
}

/* ---------- faq ---------- */

.faq {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line-soft);
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 26px 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }

.faq .chev {
  flex: none;
  margin-top: 4px;
  color: var(--ink-3);
  transition: transform .25s ease;
}
.faq details[open] .chev { transform: rotate(45deg); }

.faq details p {
  padding: 0 0 28px;
  margin-top: -4px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
  max-width: 64ch;
}

/* ---------- download ---------- */

.download-panel { text-align: center; }
.download-panel h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -0.03em;
}
.download-panel > p {
  margin: 18px auto 0;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 19px;
}
.download-cta {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.specs {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}
.spec {
  background: var(--bg);
  padding: 26px 24px;
}
.spec-k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.spec-v { font-size: 16px; font-weight: 500; }
.spec-v small {
  display: block;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 400;
  margin-top: 5px;
  line-height: 1.4;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-alt);
  padding: 40px 0;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}
.footer-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.footer-row .brand { font-size: 13px; color: var(--ink); }
.footer-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.footer-note { margin-top: 16px; max-width: 60ch; }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 14px;
}
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--ink-2);
  transition: color .15s ease;
}
.footer-contact a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-contact svg { flex: none; opacity: 0.75; }

/* ---------- scroll reveal (progressive; off unless JS opts in) ---------- */

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal-ready .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
}

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .step { grid-template-columns: 1fr; gap: 26px; }
  .step-visual { min-height: 230px; padding: 44px 24px 26px; }
  .agent-grid { grid-template-columns: repeat(3, 1fr); }
  .setup-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  section { padding: 80px 0; }
  .hero { padding-top: 64px; }
  .hero-sub { font-size: 18px; }
  .section-head { margin-bottom: 44px; }
  .section-head p { font-size: 17px; }
  .feature-grid { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .setup-grid { grid-template-columns: 1fr; }
  .setup-step { padding: 26px 24px 28px; }
  .specs { grid-template-columns: 1fr; }
  .card { padding: 28px 24px; }
  .demo { padding: 16px; }
  .step { gap: 22px; }
  .step-visual { min-height: 200px; padding: 42px 18px 22px; }
  .demo-controls { margin-top: 20px; padding-top: 18px; gap: 12px; }
  .demo-progress { gap: 6px; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
  .faq summary { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
  /* The walkthrough still advances under reduced motion — it just does so
     without the cross-fade or the sweeping bar fill. */
  .seg.is-current .seg-fill::after { animation: none; transform: scaleX(1); }
  .demo.is-enhanced .step { transition: none; }
}


/* ---------- themed SVG illustrations ---------- */

.f-surface  { fill: var(--surface); }
.f-alt      { fill: var(--bg-alt); }
.f-ink      { fill: var(--ink); }
.f-ink2     { fill: var(--ink-2); }
.f-ink3     { fill: var(--ink-3); }
.f-ink4     { fill: var(--ink-4); }
.f-onfill   { fill: var(--on-fill); }
.f-track    { fill: var(--line); }
.f-art1     { fill: var(--art-1); }
.f-art2     { fill: var(--art-2); }
.f-none     { fill: none; }

.s-line     { stroke: var(--line); }
.s-soft     { stroke: var(--line-soft); }
.s-art      { stroke: var(--art-line); }
.s-ink      { stroke: var(--ink); }


/* ==========================================================================
   Motion — deliberately restrained. Everything here is switched off wholesale
   by the prefers-reduced-motion block above, and every animated element is
   fully visible in its resting state, so disabling motion never hides content.
   ========================================================================== */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
}

/* Hero settles in on load, staggered. `backwards` holds the start state
   through the delay; with animations off the elements simply appear. */
.hero .kicker      { animation: riseIn .55s  .00s backwards cubic-bezier(.2,.6,.2,1); }
.hero h1           { animation: riseIn .65s  .06s backwards cubic-bezier(.2,.6,.2,1); }
.hero .hero-sub    { animation: riseIn .65s  .13s backwards cubic-bezier(.2,.6,.2,1); }
.hero .hero-cta    { animation: riseIn .65s  .20s backwards cubic-bezier(.2,.6,.2,1); }
.hero .hero-meta   { animation: riseIn .65s  .26s backwards cubic-bezier(.2,.6,.2,1); }

/* Buttons lift a little on hover. */
.btn-primary:hover,
.btn-secondary:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* The chevron on a text link nudges forward. */
.link-more::after { transition: transform .2s ease; }
.link-more:hover::after { transform: translateX(3px); }

/* Agent cards lift like the feature cards. */
.agent { transition: border-color .2s ease, transform .2s ease; }
.agent:hover { transform: translateY(-2px); }
.agent.is-soon:hover { border-color: var(--line); }

/* A slow breath on the live indicator — the one place a pulse actually means
   something here, since the product's whole job is "still holding". */
@keyframes liveBreath {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.pill-on .dot,
.kicker .dot { animation: liveBreath 2.6s ease-in-out infinite; }

/* Matching breath on the holding rings in step 3 of the walkthrough. */
@keyframes ringBreath {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.06); opacity: 0.6; }
}
.step[data-step="3"] .ring {
  transform-origin: 120px 48px;
  animation: ringBreath 2.8s ease-in-out infinite;
}
.step[data-step="3"] .ring-2 { animation-delay: .35s; }

/* Placeholder + figure frames respond to the pointer just enough to feel alive. */
.hero-shot { transition: transform .35s cubic-bezier(.2,.6,.2,1); }
.hero-figure:hover .hero-shot { transform: translateY(-3px); }


/* ==========================================================================
   Craft pass — small typographic and interaction details. Each of these is
   the kind of thing that separates a considered page from a template; none
   of them changes the layout.
   ========================================================================== */

/* 1. Headings break where a typesetter would, not wherever the box ends.
      Kills orphaned last words. Ignored by browsers that don't support it. */
h1, h2, h3 {
  text-wrap: balance;
}
/* NOT on body copy — `balance` narrows the measure to even out line lengths,
   which is right for a 2-line headline and wrong for a paragraph. */
.section-head p, .hero-sub, .card p, .step-copy > p, .faq details p {
  text-wrap: pretty;
}

/* 2. Numbers line up in columns instead of wobbling. */
.spec-v, .step-count, .agent-status, .hero-meta {
  font-variant-numeric: tabular-nums;
}

/* 3. Selection follows the monochrome palette instead of the browser default. */
::selection {
  background: var(--ink);
  color: var(--on-fill);
}

/* 4. Section heads: grids get a left-aligned head so the page isn't centred
      top to bottom — the giveaway of a template. Sections built around a
      single object (hero, the walkthrough card, FAQ, download) stay centred. */
.section-head.lead {
  text-align: left;
  margin-left: 0;
  max-width: 620px;
}
.section-head.lead p { margin-left: 0; }

/* 5. Cards gain a whisper of depth on hover, not a drop shadow. */
.card:hover,
.agent:hover {
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.05);
}
@media (prefers-color-scheme: dark) and (min-width: 99999px) {
  .card:hover,
  .agent:hover { box-shadow: none; }
}

/* 6. Nav marks where you are on the page. */
.nav-links a {
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s cubic-bezier(.2,.6,.2,1);
}
.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-links a[aria-current="true"] { color: var(--ink); }

/* 7. The brand mark nudges when you hover the wordmark. */
.brand-mark { transition: transform .3s cubic-bezier(.2,.6,.2,1); }
.brand:hover .brand-mark { transform: translateY(-1px); }


/* ---------- brand mark ---------- */

/* The mark is cropped to the artwork with a transparent ground, so it sits on
   the page rather than in a tile. Height drives it; width follows the aspect. */
.brand-mark {
  display: block;
  height: 22px;
  width: auto;
  flex: none;
}

/* Light/dark variants are two real PNGs picked by <picture>
   (`logo-mark-on-light.png` / `logo-mark-on-dark.png`), not a CSS filter — the
   correct file is simply requested. */
.brand picture { display: block; flex: none; }

.site-footer .brand-mark {
  height: 18px;
  width: auto;
}


/* ---------- 404 ---------- */

.error-page {
  min-height: 62vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 100px 0;
}
.error-code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.error-page h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.error-lead {
  margin: 20px auto 0;
  max-width: 34em;
  font-size: 18px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.error-cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}


/* ---------- thank-you dialog ---------- */

/* Native <dialog>: showModal() gives us the top layer, focus trap and Esc for
   free. The element fills the viewport so a click outside the card closes it;
   ::backdrop carries the scrim. */
.modal {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  border: 0;
  padding: 24px;
  background: transparent;
  color: var(--ink);
  overflow: auto;
}
.modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 40px 34px 34px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 30px 70px rgba(0,0,0,0.18);
}

.modal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-fill);
  margin-bottom: 18px;
}

.modal-card h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-wrap: balance;
}
.modal-lead {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 auto 24px;
  max-width: 34ch;
  text-wrap: pretty;
}
.modal-lead a { color: var(--ink); text-underline-offset: 2px; }

.modal-steps {
  text-align: left;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 13px;
}
.modal-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}
.modal-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
}
.modal-steps code {
  font-family: var(--mono);
  font-size: 12px;
}

.modal-done { width: 100%; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--bg-alt); color: var(--ink); }

.modal[open] .modal-card { animation: modalIn .28s cubic-bezier(.2,.6,.2,1); }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .modal[open] .modal-card { animation: none; }
}

/* Optional email capture inside the dialog. Hidden until JS reveals it (only
   when an endpoint is configured). */
.modal-notify {
  border-top: 1px solid var(--line-soft);
  margin: 0 0 26px;
  padding-top: 22px;
  text-align: left;
}
.modal-notify-label {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 10px;
}
.modal-notify-label span { color: var(--ink-4); }
.modal-notify-row { display: flex; gap: 8px; }
.modal-notify-row[hidden] { display: none; }
.modal-notify-input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 11px 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 980px;
}
.modal-notify-input::placeholder { color: var(--ink-4); }
.modal-notify-btn {
  flex: none;
  font-size: 15px;
  padding: 11px 18px;
}
.modal-notify-msg {
  font-size: 13px;
  color: var(--ink-2);
  margin: 14px 0 0;
}
@media (max-width: 430px) {
  .modal-notify-row { flex-wrap: wrap; }
  .modal-notify-btn { width: 100%; }
}
