/*
  LordGen AI brand tokens — sourced from the ratified identity, not invented for this page.
  See ../../Lordgen AI Skill builder/references/brand.md (pointer) and the source guideline
  it references for the full standard. Confirmed: palette, type, logo, zero-radius/square-
  container discipline, flush-left-always text alignment. NOT yet ratified by the brand:
  UI state colors (--state-*) and general product voice/tone -- those four hex values below
  are this page's own proposal, chosen to stay warm/desaturated so they don't compete with
  Regal Gold as the primary accent, and should be confirmed rather than assumed permanent.
*/
:root {
  --ink: #0A0A09;          /* field -- every background, ~80% of surface */
  --graphite: #141312;     /* raised field -- cards, panels */
  --gold: #C9A24B;         /* primary -- rules, eyebrows, links, the mark. under 15% of any surface. never a background for body copy. */
  --leaf: #F0E2BC;         /* trim -- headline emphasis, mark centre member */
  --brass: #8A6A24;        /* borders/dividers ONLY -- fails body-text contrast (3.9:1) */
  --bone: #E8E6E1;         /* body text on ink -- 15.9:1 */
  --slate: #8C8A85;        /* muted/captions -- 5.7:1 */

  /* Proposed UI-state extension (unratified -- see note above) */
  --state-critical: #C1503A;  /* warm rust, not a cold red -- stays tonally with gold/brass */
  --state-attention: var(--gold);
  --state-good: #7A9471;      /* muted warm sage, not a saturated green */
  --state-neutral: var(--slate);

  --shadow: 0 12px 36px rgba(0,0,0,0.5);
  --font: Archivo, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; border-radius: 0 !important; }

/* app.js reveals the diagnostic result panels by clearing their `hidden`
   attribute. Any rule that later gives .panel (or any hidden node) an explicit
   `display` beats the UA sheet's `[hidden] { display: none }` on specificity,
   which would render every result panel before the diagnostic has run. This
   guard makes `hidden` win regardless of what the visual layer does. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 {
  font-family: var(--font); font-weight: 800; letter-spacing: -0.02em; margin: 0;
  text-wrap: balance; color: #FFFFFF;
}
button { font-family: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,10,9,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brass);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; height: 100%; }
.brand-mark { height: 30px; width: auto; display: block; }
.header-nav { display: flex; gap: 32px; font-size: 0.85rem; }
.header-nav a { color: var(--slate); font-weight: 600; letter-spacing: 0.02em; }
.header-nav a:hover { color: var(--bone); text-decoration: none; }

/* Hero -- flush left, per brand discipline */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--brass); }
.hero-eyebrow {
  color: var(--gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; margin: 0 0 20px;
}
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); max-width: 760px; margin: 0 0 22px; letter-spacing: -0.03em; }
.hero-sub { color: var(--bone); font-size: 1.05rem; max-width: 620px; margin: 0 0 36px; }
.hero-ctas { display: flex; gap: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em;
  cursor: pointer; border: 1px solid transparent; transition: opacity .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-secondary { background: transparent; color: var(--bone); border-color: var(--brass); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); opacity: 1; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* How it works -- a real sequence, so the numbered/ordered treatment is earned, not decorative */
.how-it-works { padding: 64px 0; border-bottom: 1px solid var(--brass); }
.how-it-works h2 { font-size: 1.6rem; margin-bottom: 40px; max-width: 480px; }
.story-flow { display: flex; flex-direction: column; max-width: 620px; }
.story-step {
  display: flex; align-items: baseline; gap: 20px;
  border-left: 2px solid var(--brass); padding: 0 0 28px 20px; position: relative;
  font-size: 0.98rem; color: var(--bone);
}
.story-step::before {
  content: attr(data-step); position: absolute; left: -11px; top: 0;
  width: 20px; height: 20px; background: var(--ink); border: 2px solid var(--brass);
  color: var(--slate); font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.story-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.story-step-final { color: var(--leaf); font-weight: 700; }
.story-step-final::before { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* Demo section */
.demo-heading { margin-bottom: 32px; max-width: 560px; }
.demo-heading h2 { font-size: 1.6rem; margin-bottom: 10px; }
.demo-heading p { color: var(--slate); }

.business-selector { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 32px; border: 1px solid var(--brass); width: fit-content; }
.business-tab {
  background: var(--graphite); border: none; color: var(--slate);
  padding: 13px 22px; font-weight: 600; font-size: 0.88rem;
  cursor: pointer; transition: all .15s ease; display: flex; align-items: center; gap: 10px;
  border-right: 1px solid var(--brass);
}
.business-tab:last-child { border-right: none; }
.business-tab:hover { color: var(--bone); }
.business-tab.active { background: var(--gold); color: var(--ink); }
.business-tab .tab-icon { font-size: 1rem; }

.panel { background: var(--graphite); border: 1px solid var(--brass); padding: 28px; }
.panel-header { margin-bottom: 20px; }
.panel-eyebrow {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.panel-header h3 { font-size: 1.1rem; }

.form-fields { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.82rem; color: var(--slate); font-weight: 600; }
.field input, .field select, .field textarea {
  background: var(--ink); border: 1px solid var(--brass); color: var(--bone);
  padding: 11px 13px; font-size: 0.92rem; font-family: inherit;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 70px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--state-critical); }
.field-error { color: var(--state-critical); font-size: 0.78rem; display: none; }
.field.invalid .field-error { display: block; }

.tile-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); font-weight: 700; }

/* --- Sliding-card journey stepper -----------------------------------------
   Replaces the old flat, wrapping/horizontally-scrolling row of step chips
   (the exact overflow complaint this rebuild fixes). A fixed-width viewport
   shows exactly one card at a time; the track slides via a CSS transform as
   the active step advances. No new JS dependency, same hand-rolled-CSS
   convention as motion.js/hero3d.js, and gated by the global
   prefers-reduced-motion rule at the top of this file the same way those are. */
.stepper-viewport {
  border: 1px solid var(--brass); background: var(--ink); overflow: hidden;
}
.stepper-track { display: flex; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1); }
.stepper-card {
  flex: 0 0 100%; box-sizing: border-box; padding: 18px 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.stepper-index { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.stepper-label { font-size: 1rem; font-weight: 700; color: var(--slate); transition: color 0.2s ease; }
.stepper-card.active .stepper-label { color: var(--leaf); }
.stepper-card.active { border-left: 3px solid var(--gold); }
.stepper-card.done .stepper-label { color: var(--bone); }
.stepper-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.stepper-dot {
  width: 6px; height: 6px; background: var(--brass);
  transition: background 0.25s ease, transform 0.25s ease;
}
.stepper-dot.active { background: var(--gold); transform: scale(1.5); }
.stepper-dot.done { background: var(--state-good); }

/* Footer */
.site-footer { border-top: 1px solid var(--brass); padding: 32px 0; background: var(--graphite); }
.footer-inner p { color: var(--slate); font-size: 0.8rem; max-width: 640px; margin: 0; }

@media (max-width: 600px) {
  .hero { padding: 56px 0 48px; }
  .header-nav { gap: 18px; font-size: 0.78rem; }
}

/* ===========================================================================
   Design + accessibility pass
   Applied within the ratified identity, not on top of a new one: no new
   typeface, no new palette entries, zero-radius and flush-left discipline
   preserved. The hero texture is derived from the logo mark's own vertical
   bar rhythm rather than an imported decorative motif.
   =========================================================================== */

/* Body copy gets better rag now that headings already use `balance`. */
.hero-sub, .demo-heading p, .footer-inner p {
  text-wrap: pretty;
}

/* --- Hero: structural depth instead of a flat field ----------------------
   A warm radial glow (gold, low-opacity) gives the field a light source and
   focal point instead of reading as flat black; a hairline column grid
   echoing the mark's five vertical members sits underneath as substrate.
   A faint corner vignette deepens the edges for print-like polish. Hard
   edges only -- no blur/radius beyond the gradients themselves. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 780px 460px at 14% -8%, rgba(201,162,75,0.14), transparent 62%),
    radial-gradient(ellipse 620px 420px at 100% 0%, rgba(240,226,188,0.05), transparent 65%),
    linear-gradient(176deg, var(--graphite) 0%, var(--ink) 58%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--brass) 0 1px, transparent 1px 112px);
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 900px 400px at 50% 130%, rgba(0,0,0,0.35), transparent 70%);
}
.hero-inner { position: relative; }

/* --- Hero 3D layer -------------------------------------------------------
   Bounded to the hero, never full-page. Sits behind the copy (z-index 0
   here, copy promoted to z-index 1 below) so it can never overlap the CTA
   even if geometry/camera math drifts. Hidden below the existing 860px
   breakpoint -- hero3d.js makes the same check before doing any WebGL work,
   so mobile never pays the cost, this just prevents an empty box. */
.hero-3d {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(42%, 520px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.hero-3d canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 860px) {
  .hero-3d { display: none; }
}

/* --- One orchestrated page load, then stop -------------------------------
   `both` fill-mode matters: the reduced-motion block above collapses duration
   to ~0, which lands every element on its final state instead of hiding it. */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.hero-eyebrow,
.hero h1,
.hero-sub,
.hero-ctas {
  position: relative;
  z-index: 1;
  animation: riseIn 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.hero-eyebrow { animation-delay: 0.04s; }
.hero h1      { animation-delay: 0.12s; }
.hero-sub     { animation-delay: 0.22s; }
.hero-ctas    { animation-delay: 0.32s; }

/* A scroll-driven reveal was tried here and removed: leaving `.story-step`
   below full opacity outside the animation range made axe fail color-contrast
   on the step markers, and it would have hidden copy for anyone landing
   mid-page. Not worth a decorative gain. */

/* --- Micro-interactions with intent, not an opacity dip ------------------ */
.btn-primary:hover { background: var(--leaf); color: var(--ink); }
.btn:active { transform: translateY(1px); }

.business-tab { position: relative; }
.business-tab::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.business-tab:not(.active):hover::after { transform: scaleX(1); }

/* --- Page-wide depth, not hero-only --------------------------------------
   The hero got a layered treatment; everything below it was still flat
   --ink, which reads as "the depth stopped at the fold." A much fainter
   version of the same radial-glow + hairline-grid language, no vignette,
   no 3D, keeps it one continuous system instead of two different pages. */
body {
  background:
    radial-gradient(ellipse 900px 600px at 85% 15%, rgba(201,162,75,0.05), transparent 70%),
    repeating-linear-gradient(90deg, rgba(138,106,36,0.07) 0 1px, transparent 1px 112px),
    var(--ink);
}

/* --- Dimensional panels ---------------------------------------------------
   Elevation + a hairline border-sweep on hover *and* keyboard focus (never
   hover-only -- a keyboard user tabbing into a form field must get the same
   acknowledgment). Kept to a hairline, not a full-surface tint: this file
   already documents one near-miss where a bolder effect failed color-
   contrast, so this stays conservative by design. Actual pointer-tilt
   transform is applied inline by motion.js; this just defines the resting
   transition and the sweep, and is a no-op if motion.js never runs. */
.panel {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
  background: linear-gradient(120deg, transparent 30%, rgba(201,162,75,0.35) 50%, transparent 70%) 0 0 / 220% 100%;
  background-repeat: no-repeat;
  background-position: -220% 0;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.panel:hover,
.panel:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.panel:hover::before,
.panel:focus-within::before {
  opacity: 1;
  animation: panelSweep 1.1s ease forwards;
}
@keyframes panelSweep {
  from { background-position: -220% 0; }
  to   { background-position: 220% 0; }
}

/* --- Sliding stepper pulse -------------------------------------------------
   The active card gets a subtle breathing glow -- same visual intent as the
   old chip-pulse this replaces, applied to .stepper-card.active instead. */
.stepper-card.active {
  animation: stepperPulse 1.6s ease-in-out infinite;
}
@keyframes stepperPulse {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(201,162,75,0.25); }
  50%      { box-shadow: inset 6px 0 0 0 rgba(201,162,75,0.12); }
}

/* --- Scroll reveal ----------------------------------------------------------
   Progressive enhancement: content is visible by default (no [data-reveal]
   selector below sets opacity:0 on its own). motion.js adds .reveal-pending
   right before observing, so if that script never loads, nothing is ever
   hidden -- the safe failure mode is "no entrance animation," not "missing
   content." */
[data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(16px);
}
[data-reveal].reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ===========================================================================
   Business Diagnostic Journey (Phase 5 rebuild)
   Reuses .panel/.panel-header/.panel-eyebrow/.tile-label/.stepper-*/.field/
   .btn/.business-tab from above rather than inventing new primitives. New
   classes below only cover what those don't.
   =========================================================================== */
.diagnostic-section { padding: 0 0 96px; border-top: 1px solid var(--brass); }
.diagnostic-section .demo-heading { padding-top: 72px; }

.diag-request-panel { margin-bottom: 32px; }
.diag-request-readout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--brass);
}
.diag-request-readout p { color: var(--bone); font-size: 0.92rem; margin: 5px 0 0; }
@media (max-width: 600px) { .diag-request-readout { grid-template-columns: 1fr; } }

.field-hint { color: var(--slate); font-size: 0.78rem; }

.diag-mode-tooltip {
  position: relative;
  margin: 10px 0 0; padding: 10px 12px;
  background: var(--ink); border: 1px solid var(--gold);
  color: var(--bone); font-size: 0.82rem;
}
.diag-mode-tooltip::before {
  content: ''; position: absolute; top: -6px; left: 18px;
  width: 10px; height: 10px; background: var(--ink);
  border-left: 1px solid var(--gold); border-top: 1px solid var(--gold);
  transform: rotate(45deg);
}

.diag-decision-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.diag-status-wrap { margin: 32px 0; }
.diag-error {
  color: var(--state-critical); font-size: 0.9rem; margin: 16px 0 0;
  background: var(--graphite); border: 1px solid var(--state-critical); padding: 12px 14px;
}

.diag-results-panel, .diag-agents-panel, .diag-spec-panel { margin-bottom: 24px; }

.diag-findings-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--brass); margin-bottom: 16px; }
@media (max-width: 860px) { .diag-findings-grid { grid-template-columns: 1fr; } }
.diag-finding-col { background: var(--ink); padding: 16px; }
.diag-finding-col h4 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px;
}
.diag-finding-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.diag-finding-title { font-size: 0.9rem; font-weight: 700; color: var(--bone); }
.diag-finding-col p { font-size: 0.82rem; color: var(--slate); margin: 4px 0 0; }
.diag-finding-solution { color: var(--bone) !important; }
.diag-finding-solution strong { color: var(--gold); }
.diag-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 2px 7px; margin-top: 4px; border: 1px solid var(--brass); color: var(--slate);
}
.diag-badge-medium, .diag-badge-high { color: var(--state-attention); border-color: var(--state-attention); }
.diag-badge-low { color: var(--slate); }
.diag-sources { color: var(--slate); font-size: 0.78rem; margin: 0; }

.diag-agent-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; background: var(--brass); }
.diag-agent-option {
  display: flex; align-items: center; gap: 10px; background: var(--ink);
  padding: 12px 14px; font-size: 0.9rem; color: var(--bone); cursor: pointer;
}
.diag-agent-option input { accent-color: var(--gold); }

.diag-impact-note { font-size: 0.85rem; color: var(--bone); margin: 0 0 16px; }
.diag-impact-note .tile-label { display: block; margin-bottom: 4px; }
.diag-spec-panel p { color: var(--bone); font-size: 0.92rem; margin: 0 0 12px; }

/* Recommendation block lives inside #diagResultsPanel (not a new panel) --
   fades in with the rest of that panel via the existing [data-reveal]
   mechanism, so no motion rules are needed here, only the callout look. */
.diag-recommendation-block {
  background: var(--ink); border-left: 3px solid var(--gold);
  padding: 16px 18px; margin: 0 0 20px;
}
.diag-recommendation-block .field { max-width: 360px; }
.diag-recommendation-block .field-hint { margin: 8px 0 0; }

/* Connection-details fields live inside #diagOpportunityPanel (not a new
   panel) -- collapsed by default, revealed once an opportunity is picked.
   Eased consistently with the site's existing .reveal-in timing (0.5s ease). */
.diag-connection-details {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s ease, opacity .5s ease, margin .5s ease;
}
.diag-connection-details.is-visible {
  max-height: 260px; opacity: 1; margin: 4px 0 20px;
}
.diag-connection-details .field-hint { margin: 0 0 12px; }
.diag-connection-details .field { margin-bottom: 14px; }

/* ===========================================================================
   Site-upgrade layer: nav CTA / mobile menu, trust strip, problem section,
   operating model, solutions, prototype badges, proof, FAQ, about, final CTA.
   Reuses .container/.panel/.btn/.demo-heading/.tile-label/[data-reveal] --
   new classes below only cover what those don't. See docs/LORDGEN_SITE_UPGRADE.md.
   =========================================================================== */

.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;
}

.btn-small { padding: 8px 18px; font-size: 0.8rem; }
.header-nav a.nav-cta, .header-nav a.nav-cta:hover { color: var(--ink); }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--brass);
  width: 40px; height: 40px; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; cursor: pointer;
}
.nav-toggle-bar { display: block; width: 18px; height: 2px; background: var(--bone); }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .header-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--graphite);
    border-bottom: 1px solid var(--brass);
  }
  .header-nav.is-open { display: flex; }
  .header-nav a { padding: 14px 32px; border-top: 1px solid var(--brass); }
  .header-nav a:first-child { border-top: none; }
  .nav-cta { margin: 14px 32px 18px; text-align: center; }
}

/* --- Trust strip --- */
.trust-strip { padding: 26px 0; border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass); }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 0; list-style: none; margin: 0; padding: 0; justify-content: center; }
.trust-list li {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate); padding: 0 20px; border-left: 1px solid var(--brass);
}
.trust-list li:first-child { border-left: none; }
@media (max-width: 600px) {
  .trust-list { justify-content: flex-start; }
  .trust-list li { border-left: none; padding: 4px 14px 4px 0; }
}

/* --- Prototype/live labels --- */
.proto-badge {
  display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--brass);
  color: var(--gold); margin-left: 10px; vertical-align: middle;
}
.proof-card .proto-badge { margin-left: 0; margin-bottom: 4px; }

/* --- Problem section --- */
.problem-section { padding: 72px 0; border-top: 1px solid var(--brass); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--brass); }
@media (max-width: 768px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-tile { background: var(--ink); padding: 24px; }
.problem-tile h3 { font-size: 1rem; margin: 0 0 8px; color: var(--bone); }
.problem-tile p { font-size: 0.86rem; color: var(--slate); margin: 0; }

/* --- Operating model --- */
.model-section { padding: 72px 0; border-top: 1px solid var(--brass); }
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--brass); }
@media (max-width: 860px) { .model-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .model-grid { grid-template-columns: 1fr; } }
.model-step { background: var(--graphite); padding: 24px; }
.model-number { display: block; font-size: 0.8rem; font-weight: 800; color: var(--gold); letter-spacing: 0.06em; margin-bottom: 10px; }
.model-step h3 { font-size: 1.05rem; margin: 0 0 8px; }
.model-step p { font-size: 0.86rem; color: var(--slate); margin: 0; }

/* --- Solutions --- */
.solutions-section { padding: 72px 0; border-top: 1px solid var(--brass); }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .solutions-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .solutions-grid { grid-template-columns: 1fr; } }
.solution-card { display: flex; flex-direction: column; gap: 10px; }
.solution-card h3 { font-size: 1.05rem; }
.solution-problem { font-size: 0.85rem; color: var(--slate); margin: 0; }
.solution-outcome { font-size: 0.9rem; color: var(--bone); font-weight: 600; margin: 0; }
.solution-sample { font-size: 0.78rem; color: var(--slate); margin: 0; }
.solution-card a { font-size: 0.82rem; font-weight: 700; margin-top: auto; padding-top: 6px; }

/* --- Proof / example systems --- */
.proof-section { padding: 72px 0; border-top: 1px solid var(--brass); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-card { display: flex; flex-direction: column; gap: 8px; }
.proof-card h3 { font-size: 1rem; margin: 6px 0 0; }

/* --- FAQ --- */
.faq-section { padding: 72px 0; border-top: 1px solid var(--brass); }
.faq-list { display: flex; flex-direction: column; gap: 2px; background: var(--brass); }
.faq-list details { background: var(--ink); padding: 18px 20px; }
.faq-list summary { cursor: pointer; font-weight: 700; color: var(--bone); font-size: 0.95rem; }
.faq-list details[open] summary { color: var(--gold); margin-bottom: 10px; }
.faq-list p { font-size: 0.86rem; color: var(--slate); margin: 0; }

/* --- About --- */
.about-section { padding: 64px 0; border-top: 1px solid var(--brass); }
.about-section .demo-heading { max-width: 760px; margin-bottom: 0; }
.about-section p { font-size: 0.95rem; color: var(--bone); }

/* --- Final CTA --- */
.final-cta {
  padding: 88px 0; border-top: 1px solid var(--brass); text-align: center;
  background: linear-gradient(176deg, var(--graphite) 0%, var(--ink) 100%);
}
.final-cta-inner { display: flex; flex-direction: column; align-items: center; }
.final-cta h2 { max-width: 640px; margin: 0 0 12px; }
.final-cta p { color: var(--slate); margin: 0 0 28px; }
.final-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* --- Footer --- */
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin: 0 0 14px; font-size: 0.85rem; font-weight: 600; }
.footer-inner p { font-size: 0.8rem; color: var(--slate); margin: 0; }

/* --- Staggered card entrance (each card carries its own [data-reveal]) --- */
.problem-grid [data-reveal]:nth-child(2) { transition-delay: 60ms; }
.problem-grid [data-reveal]:nth-child(3) { transition-delay: 120ms; }
.problem-grid [data-reveal]:nth-child(4) { transition-delay: 180ms; }
.problem-grid [data-reveal]:nth-child(5) { transition-delay: 240ms; }
.problem-grid [data-reveal]:nth-child(6) { transition-delay: 300ms; }

.model-grid [data-reveal]:nth-child(2) { transition-delay: 60ms; }
.model-grid [data-reveal]:nth-child(3) { transition-delay: 120ms; }
.model-grid [data-reveal]:nth-child(4) { transition-delay: 180ms; }

.solutions-grid [data-reveal]:nth-child(2) { transition-delay: 60ms; }
.solutions-grid [data-reveal]:nth-child(3) { transition-delay: 120ms; }
.solutions-grid [data-reveal]:nth-child(4) { transition-delay: 180ms; }
.solutions-grid [data-reveal]:nth-child(5) { transition-delay: 240ms; }
.solutions-grid [data-reveal]:nth-child(6) { transition-delay: 300ms; }

.proof-grid [data-reveal]:nth-child(2) { transition-delay: 60ms; }
.proof-grid [data-reveal]:nth-child(3) { transition-delay: 120ms; }

.faq-list [data-reveal]:nth-child(2) { transition-delay: 40ms; }
.faq-list [data-reveal]:nth-child(3) { transition-delay: 80ms; }
.faq-list [data-reveal]:nth-child(4) { transition-delay: 120ms; }
.faq-list [data-reveal]:nth-child(5) { transition-delay: 160ms; }
.faq-list [data-reveal]:nth-child(6) { transition-delay: 200ms; }
