/* ═══════════════════════════════════════════════════════════════
   main.css — AuditWalk global styles
   Clean consolidated version — no duplicate declarations,
   no patch overrides. Every property stated once in the right place.
   ═══════════════════════════════════════════════════════════════ */

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --card-pad-standard: var(--space-4);
  --card-pad-compact: var(--space-3);

  /* Measure (line-length) scale */
  --measure-hero:  68ch;
  --measure-intro: 62ch;
  --measure-body:  66ch;
  --measure-dense: 58ch;

  /* Typography */
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-display: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-code:    "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Surface colours — dark theme (default) */
  --surface-page:          #0b0d11;
  --surface-panel:         #171b21;
  --surface-panel-alt:     #12161d;
  --surface-panel-strong:  #0d0f13;
  --surface-panel-contrast:#111111;
  --surface-code:          #0d1117;
  --surface-chip:          #1b1f26;

  /* Text colours */
  --text-primary:   #f1f2f4;
  --text-secondary: #d0d6de;
  --text-strong:    #f2f2f2;
  --text-accent:    #eeff55;
  --text-inverse:   #111108;

  /* Border colours */
  --border-default:  #4a515c;
  --border-strong:   #3f4550;
  --border-accent:   #eeff55;
  --border-contain:  var(--border-strong);
  --border-sep:      rgba(255, 255, 255, 0.12);
  --border-emphasis: var(--border-accent);

  /* Action colours */
  --action-bg:     #000000;
  --action-fg:     #eeff55;
  --action-bg-alt: #eeff55;
  --action-fg-alt: #000000;
  --action-hover:  #141414;
  --link-color:    #eeff55;

  /* Hero-specific overlays */
  --hero-overlay-start:  rgba(8, 10, 14, 0.3);
  --hero-overlay-end:    rgba(6, 8, 12, 0.45);
  --hero-shell-overlay:  rgba(255, 255, 255, 0.015);
  --hero-shell-shadow:   rgba(238, 255, 85, 0.12);

  /* Aliases used by older component CSS */
  --bg:          #111317;
  --bg-strong:   #1c2128;
  --panel:       #171b21;
  --ink:         #f1f2f4;
  --ink-soft:    #d0d6de;
  --line:        #4a515c;
  --brand:       #eeff55;
  --brand-strong:#d5e846;
  --accent:      #eeff55;

  /* Shared effects */
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
  --radius: 0px;
}

/* ── Light theme overrides ──────────────────────────────────── */
html[data-theme="light"] {
  --surface-page:          #f4f4ee;
  --surface-panel:         #ffffff;
  --surface-panel-alt:     #f1f1ea;
  --surface-panel-strong:  #f1f1ea;
  --surface-panel-contrast:#ffffff;
  --surface-code:          #f1f1ea;
  --surface-chip:          #ffffff;
  --text-primary:   #111108;
  --text-secondary: #2d3138;
  --text-strong:    #111108;
  --text-accent:    #111108;
  --text-inverse:   #111108;
  --border-default:  #b8b8ae;
  --border-strong:   #8f9580;
  --border-accent:   #8f9580;
  --border-contain:  var(--border-strong);
  --border-sep:      rgba(17, 17, 8, 0.12);
  --border-emphasis: var(--border-accent);
  --action-bg:     #111108;
  --action-fg:     #f1f1ec;
  --action-bg-alt: #eeff55;
  --action-fg-alt: #111108;
  --action-hover:  #2a2d33;
  --link-color:    #111108;
  --hero-overlay-start: rgba(255, 255, 255, 0.6);
  --hero-overlay-end:   rgba(241, 241, 234, 0.75);
  --hero-shell-overlay: rgba(17, 17, 8, 0.02);
  --hero-shell-shadow:  rgba(17, 17, 8, 0.1);
  --bg:       #f4f4ee;
  --bg-strong:#ffffff;
  --panel:    #ffffff;
  --ink:      #111108;
  --ink-soft: #2d3138;
  --line:     #b8b8ae;
  --brand:       #111108;
  --brand-strong:#111108;
}

/* ── Hero light-theme pin ───────────────────────────────────────
   The hero background canvas is always dark. These overrides keep
   all hero text and controls on dark-theme values regardless of
   which theme is active on the rest of the page.
   ─────────────────────────────────────────────────────────────── */
html[data-theme="light"] .hero {
  --text-primary:          #f1f2f4;
  --text-secondary:        #d0d6de;
  --text-strong:           #f2f2f2;
  --text-accent:           #eeff55;
  --ink:                   #f1f2f4;
  --ink-soft:              #d0d6de;
  --border-default:        #4a515c;
  --border-strong:         #3f4550;
  --border-accent:         #eeff55;
  --surface-panel:         #171b21;
  --surface-panel-strong:  #0d0f13;
  --surface-panel-contrast:#111111;
  --action-bg:     #000000;
  --action-fg:     #eeff55;
  --action-bg-alt: #eeff55;
  --action-fg-alt: #000000;
  --action-hover:  #141414;
  --bullet-bg:     #eeff55;
  --bullet-fg:     #000000;
  --hero-brand-text:#ffffff;
}

html[data-theme="light"] .hero .section-label {
  background: #eeff55;
  color: #000000;
  border-color: #eeff55;
}

html[data-theme="light"] .hero-pricing         { background: #0d0f13; border-color: #4a515c; color: #f1f2f4; }
html[data-theme="light"] .hero-pricing-title   { color: #eeff55; }
html[data-theme="light"] .hero-pricing-grid p  { background: #111111; border-color: #4a515c; color: #f1f2f4; }
html[data-theme="light"] .hero-pricing-grid strong { color: #f2f2f2; }
html[data-theme="light"] .hero-pricing-grid span  { color: #eeff55; }
html[data-theme="light"] .hero-visual-shell    { background-color: #111111; border-color: #4a515c; }
html[data-theme="light"] .hero-laptop-screen   { border-color: #eeff55; background: #0d0f13; }
html[data-theme="light"] .hero-laptop-base     { background: #12161d; border-color: #4a515c; }
html[data-theme="light"] .hero-laptop-caption  { color: #d0d6de; }
html[data-theme="light"] .hero .hero-bullets   { color: #d8dde4; }
html[data-theme="light"] .hero .hero-bullets li::before { background: #eeff55; color: #000000; }

/* ── Purchase page light theme ──────────────────────────────── */
html[data-theme="light"] .purchase-tier-strip  { border-color: #111108; background: #ffffff; }
html[data-theme="light"] .purchase-tier-card   { border-color: #111108; background: #eeff55; }
html[data-theme="light"] .purchase-tier-card h2,
html[data-theme="light"] .purchase-tier-note   { color: #111108; }
html[data-theme="light"] .purchase-tier-card.is-active { box-shadow: inset 0 0 0 1px #111108; }
html[data-theme="light"] .tier-symbol          { border-color: #111108; background: #ffffff; }
html[data-theme="light"] .tier-symbol-core,
html[data-theme="light"] .tier-symbol-line,
html[data-theme="light"] .tier-symbol-dot      { stroke: #111108; }
html[data-theme="light"] .tier-symbol-dot      { fill: #111108; }

/* ── Global reset ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-page);
  font-family: var(--font-body);
  line-height: 1.55;
  position: relative;
}

body::before {
  content: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

code {
  font-family: var(--font-code);
}

/* ── Page shell / layout containers ────────────────────────────
   All main variants share the same full-width, full-bleed base.
   max-width constraints are opt-in via modifier classes only.
   padding uses clamp() so no media query overrides are needed.
   ─────────────────────────────────────────────────────────────── */
main,
main.page-shell {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: clamp(0.5rem, 1.2vw, 0.95rem) clamp(0.75rem, 3vw, 32px) 4rem;
  box-sizing: border-box;
}

/* Utility containers */
.container-system {
  width: 90%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.container-reading {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Section layout ─────────────────────────────────────────── */
section {
  margin-bottom: 1.25rem;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  border: 1px solid var(--border-sep);
  border-radius: var(--radius);
  background: var(--surface-panel);
  box-shadow: var(--shadow);
}

.stack-flow > .section-label  { margin-bottom: var(--space-2); }
.stack-flow > h1,
.stack-flow > h2,
.stack-flow > h3               { margin-bottom: var(--space-3); }
.stack-flow > .section-intro   { margin-bottom: var(--space-4); }
.stack-flow > :last-child      { margin-bottom: 0; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 6vw, 3.2rem);  letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }

p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 72ch;
  font-family: var(--font-body);
}

.front-shell-title { font-size: clamp(1.85rem, 4vw, 2.4rem); }

.measure-hero  { max-width: var(--measure-hero); }
.measure-intro { max-width: var(--measure-intro); }
.measure-body  { max-width: var(--measure-body); }
.measure-dense { max-width: var(--measure-dense); }

/* ── Section label ──────────────────────────────────────────── */
.section-label {
  margin: 0 0 0.75rem;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0;
  border: 1px solid var(--border-strong);
  background: var(--action-bg-alt);
  color: var(--action-fg-alt);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-display);
}

section:nth-of-type(even) .section-label {
  background: var(--action-bg-alt);
  color: var(--action-fg-alt);
  border-color: var(--action-bg-alt);
}

/* ── Buttons ────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  border-radius: 0;
  border: 1px solid var(--border-default);
  background: var(--action-bg);
  color: var(--action-fg);
  font-weight: 700;
  font-size: 0.93rem;
  font-family: var(--font-display);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--action-hover);
  border-color: var(--action-bg-alt);
  outline: none;
}

.button.secondary {
  background: var(--action-bg-alt);
  color: var(--action-fg-alt);
  border-color: var(--action-bg-alt);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: #e1f241;
}

.button.paypal {
  background: transparent;
  color: #eeff55;
  border-color: #eeff55;
}

.button.paypal:hover,
.button.paypal:focus-visible {
  background: #eeff55;
  color: #000000;
}

.button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Hero (old-style .hero class, used by non-shell pages) ──── */
.hero {
  background-color: var(--surface-panel);
  background-image:
    linear-gradient(145deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 78%),
    url("../assets/hero-bg.png");
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  border-color: var(--border-default);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lead { font-size: 1.1rem; margin-bottom: 0.15rem; }

.hero-pricing {
  margin-top: 0.4rem;
  margin-bottom: 0.3rem;
  border: 1px solid var(--border-default);
  border-radius: 0;
  background: var(--surface-panel-strong);
  color: var(--text-primary);
  padding: 0.7rem 0.8rem;
}

.hero-pricing-title {
  margin: 0 0 0.5rem;
  color: var(--text-accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.hero-pricing-grid p {
  margin: 0;
  border: 1px solid var(--border-default);
  border-radius: 0;
  background: var(--surface-panel-contrast);
  color: var(--text-primary);
  padding: 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-pricing-grid strong { font-size: 0.82rem; color: var(--text-strong); }
.hero-pricing-grid span   { color: var(--text-accent); font-weight: 800; font-size: 1.08rem; line-height: 1; }

.hero-visual { display: flex; }

.hero-visual-shell {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: 0;
  background-color: var(--surface-panel-contrast);
  background-image:
    linear-gradient(180deg, var(--surface-panel-contrast) 0%, var(--surface-panel-strong) 100%),
    repeating-linear-gradient(
      -45deg,
      var(--hero-shell-overlay) 0,
      var(--hero-shell-overlay) 10px,
      transparent 10px,
      transparent 20px
    );
  box-shadow: inset 0 0 0 1px var(--hero-shell-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 220px;
  padding: 1rem;
}

.hero-laptop { gap: 0.7rem; justify-content: flex-end; }

.hero-laptop-screen {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-accent);
  background: var(--surface-panel-strong);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hero-shell-shadow);
}

.hero-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-shot.is-active { opacity: 1; }

.hero-laptop-base {
  width: min(420px, 95%);
  height: 10px;
  border: 1px solid var(--border-default);
  background: var(--surface-panel-alt);
}

.hero-laptop-caption {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1rem 0 0.6rem;
}

.hero-bullets {
  margin: 0.35rem 0 0.45rem;
  padding-left: 0;
  list-style: none;
  color: #d8dde4;
  font-weight: 600;
}

.hero-bullets li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-bullets li::before {
  content: "✓";
  width: 16px;
  height: 16px;
  background: #eeff55;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.hero-brand { color: #ffffff; }

/* ── Cards ──────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.card {
  border: 1px solid var(--border-strong);
  border-radius: 0;
  padding: 1rem;
  background: var(--surface-panel-alt);
}

#features .card {
  background: var(--surface-panel-contrast);
  border-color: var(--border-strong);
  box-shadow: inset 0 -4px 0 var(--border-strong);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#features .card:hover {
  border-color: var(--border-accent);
  box-shadow: inset 0 -4px 0 var(--border-accent);
}

#features .card h2           { color: var(--text-secondary); transition: color 0.2s ease; }
#features .card:hover h2     { color: var(--text-accent); }

.features-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.2rem;
}

.features-intro p { margin: 0; }

.features-list {
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.features-list li {
  margin-bottom: 0.48rem;
  padding-left: 1.1rem;
  position: relative;
  color: #d1d6de;
}

.features-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: #eeff55;
}

.blurb-separator { height: 1px; background: #4a505c; margin: 0.7rem 0; }

.features-notes          { margin-top: 0.65rem; display: grid; gap: 0.45rem; }
.features-notes .icon-note { margin: 0; }

.updates-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.updates-intro p { margin: 0; }

/* ── Spec / price cards ─────────────────────────────────────── */
.spec-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.spec-card {
  border: 1px solid #4a505c;
  border-radius: 0;
  padding: 1rem;
  background: #13161c;
}

.swatch-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.swatch {
  width: 24px;
  height: 24px;
  border-radius: 0;
  border: 1px solid #4a505c;
  flex-shrink: 0;
}

.swatch-accent { background: #eeff55; }
.swatch-ink    { background: #000000; }

.spec-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: #111111;
  border: 1px solid #5b616c;
  box-shadow: inset 0 -4px 0 #5b616c;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  border-color: #eeff55;
  box-shadow: inset 0 -4px 0 #eeff55;
}

/* ── OS buy buttons ─────────────────────────────────────────── */
.os-buy-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.os-buy-buttons .button {
  width: 100%;
  font-size: 0.82rem;
  padding: 0.5rem 0.7rem;
  min-width: 0;
  text-align: center;
  background: #000000;
  color: #eeff55;
  border: 1px solid #5b616c;
}

.os-buy-buttons .button:hover,
.os-buy-buttons .button:focus-visible {
  background: #eeff55;
  color: #000000;
  border-color: #eeff55;
}

.os-label          { margin: 0.45rem 0 0; font-size: 0.82rem; font-weight: 600; color: #cfd4dc; }
.license-summary   { margin-bottom: 0.35rem; }
.license-price     { margin: 0 0 0.35rem; font-size: 1.3rem; font-weight: 800; color: #eeff55; }
.license-divider   { margin-top: auto; width: 100%; height: 1px; background: #656b76; }

/* ── Purchase page ──────────────────────────────────────────── */
.purchase-shell  { margin-bottom: 1rem; }
.purchase-intro  { max-width: 88ch; }

.purchase-tier-strip {
  margin-bottom: 1rem;
  border: 1px solid rgba(238, 255, 85, 0.4);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.purchase-tier-card {
  border: 1px solid var(--border-contain);
  background: var(--surface-panel-alt);
  padding: 0.6rem;
}

.purchase-tier-card h2 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.purchase-tier-card.is-active { border-color: var(--border-emphasis); }

.purchase-tier-note {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #d0d6de;
  font-weight: 500;
}

.tier-symbol {
  width: 100%;
  border: 1px solid var(--border-contain);
  background: var(--surface-panel-strong);
  padding: 0.35rem 0.45rem;
}

.tier-symbol svg { width: 100%; height: 28px; }

.tier-symbol-core,
.tier-symbol-line,
.tier-symbol-dot {
  fill: none;
  stroke: #eeff55;
  stroke-width: 1.5;
}

.tier-symbol-dot { fill: #eeff55; }

.purchase-panel {
  border: 1px solid var(--border-strong);
  background: var(--surface-panel-strong);
  box-shadow: inset 0 -4px 0 var(--border-strong);
}

.purchase-panel h2 { margin-bottom: 0.8rem; }

.purchase-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.meta-card {
  border: 1px solid var(--border-strong);
  background: var(--surface-panel-alt);
  padding: 0.7rem;
}

.meta-card h2 {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.meta-value { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--text-accent); }

.purchase-ack {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-panel-strong);
}

.purchase-ack label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-secondary);
  font-weight: 500;
}

.purchase-ack input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--action-bg-alt);
  flex: 0 0 auto;
}

.ack-links {
  margin-top: 0.55rem;
  margin-left: 1.6rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.ack-links a { color: var(--link-color); }

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1rem;
}

.purchase-note { margin-top: 0.9rem; font-size: 0.88rem; color: #d0d6de; font-weight: 500; }
.purchase-note a { color: #eeff55; }

/* ── Engineering log strip ──────────────────────────────────── */
.engineering-log-strip {
  margin-top: 0.25rem;
  margin-bottom: 0.9rem;
  padding: 0;
  border-radius: 10px;
  background: #000000;
  border-color: #424852;
  box-shadow: var(--shadow);
}

.log-ticker {
  min-height: 0;
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.35;
  color: #f0f2f4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-ticker a {
  display: block;
  width: 100%;
  padding-right: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  color: #eeff55;
}

.log-ticker a:hover,
.log-ticker a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

/* ── Engineering log page ───────────────────────────────────── */
.engineering-log-page .search-input {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border: 1px solid #5f4a1f;
  background: #101114;
  color: #f0f2f4;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.88rem;
}

.engineering-log-page .search-input::placeholder { color: #8e939d; }
.engineering-log-page .log-results  { display: grid; gap: 0.75rem; }
.engineering-log-page .log-row {
  border: 1px solid var(--border-strong);
  background: var(--surface-panel-strong);
  border-radius: 10px;
  padding: 0.85rem;
  font-family: var(--font-display);
}

.engineering-log-page .log-row h2    { margin-bottom: 0.45rem; font-size: 1rem; }
.engineering-log-page .log-row p     { max-width: 100%; margin-bottom: 0.42rem; font-size: 0.88rem; }
.engineering-log-page .log-row .meta { color: var(--text-secondary); font-size: 0.78rem; }
.engineering-log-page .log-row .tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.55rem; }
.engineering-log-page .log-row .tag  {
  border: 1px solid var(--border-strong);
  background: var(--surface-chip);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 0.14rem 0.4rem;
  font-size: 0.72rem;
}

.engineering-log-page .log-row .links {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.engineering-log-page .log-empty { color: #afb4bc; font-family: var(--font-display); }

/* ── List utilities ─────────────────────────────────────────── */
.steps,
.audience-list {
  margin: 0.25rem 0 0;
  padding-left: 0;
  list-style: none;
  color: var(--ink-soft);
}

.steps li,
.audience-list li {
  margin-bottom: 0.48rem;
  padding-left: 1.15rem;
  position: relative;
}

.steps li::before,
.audience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.53em;
  width: 7px;
  height: 7px;
  background: #eeff55;
}

.workflow-list {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.workflow-list li          { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.workflow-list li::marker  { color: #eeff55; font-weight: 700; }

.preflight-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.preflight-list li {
  margin-bottom: 0.48rem;
  padding-left: 1.1rem;
  position: relative;
  color: #d1d6de;
}

.preflight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: #eeff55;
}

.stack-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack-list li {
  background: var(--surface-chip);
  border: 1px solid var(--border-sep);
  padding: 0.35rem 0.6rem;
  border-radius: 0;
  color: var(--text-primary);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.stack-list li:hover,
.stack-list li:focus-visible {
  border-color: var(--border-emphasis);
  color: var(--text-accent);
  background: var(--surface-panel);
}

/* ── Grid layouts ───────────────────────────────────────────── */
#quick-overview {
  border-color: #555c68;
  background: linear-gradient(180deg, #14171d 0%, #101318 100%);
}

.overview-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-card { min-height: 100%; }
.overview-card .section-label { margin-bottom: 0.45rem; }

.overview-grid > .overview-card + .overview-card {
  border-left: 1px solid #4a505c;
  padding-left: 1.1rem;
}

#preflight {
  border-color: #555c68;
  background: linear-gradient(180deg, #14171d 0%, #101318 100%);
}

.preflight-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 0.9rem;
}

.preflight-card {
  background: #111111;
  border-color: #666d79;
  box-shadow: inset 0 -4px 0 #5b616c;
}

.preflight-note {
  margin-top: 0.65rem;
  margin-bottom: 0;
  font-size: 0.92rem;
  color: #d0d6de;
  font-weight: 600;
  line-height: 1.45;
  max-width: none;
}

/* ── Icon notes ─────────────────────────────────────────────── */
.icon-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #d0d6de;
  font-weight: 500;
}

.icon-note span {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.icon-note-warning span { background: #eeff55; color: #000000; }
.icon-note-info span    { background: #4a505c; color: #ffffff; }
.icon-note-success span { background: #eeff55; color: #000000; }

.icon-note-baseline          { align-items: flex-start; }
.icon-note-baseline span     { margin-top: 0.18em; }
.license-note                { max-width: none; margin-top: 0.7rem; }

/* ── Platform misc ──────────────────────────────────────────── */
.platform-icons { display: inline-flex; align-items: center; gap: 0.28rem; }
.platform-icon  { width: 16px; height: 16px; fill: #eeff55; }

.platform-list              { margin: 0.25rem 0 0.35rem; padding: 0; list-style: none; }
.platform-list li           { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }

/* ── Links ──────────────────────────────────────────────────── */
.policy-links              { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.policy-links a,
.inline-link               { color: var(--link-color); font-weight: 600; text-decoration: none; }
.policy-links a:hover,
.inline-link:hover,
.policy-links a:focus-visible,
.inline-link:focus-visible { text-decoration: underline; outline: none; }
.policy-link,
.highlight-link            { color: var(--link-color); }
.highlight-link:hover,
.highlight-link:focus-visible { text-decoration: underline; }

/* ── Connect / misc ─────────────────────────────────────────── */
.connect-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alerts-feedback { margin: 0.55rem 0 0; font-size: 0.86rem; font-family: var(--font-body); }

/* ── Site update stamp ──────────────────────────────────────── */
.site-update-stamp {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3.5rem) 1rem;
  text-align: right;
}

.site-update-stamp__pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8d94a0;
  border: 1px solid #3f444d;
  background: #090b0f;
  padding: 0.22rem 0.5rem;
}

/* ── Cookie notice ──────────────────────────────────────────── */
.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(92vw, 680px);
  z-index: 40;
  background: #000000;
  color: #eeff55;
  border: 1px solid #6f6f6f;
  border-radius: 0;
  padding: 0.7rem 0.9rem;
  text-align: center;
  font-size: 0.88rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* ── Code / terminal output ─────────────────────────────────── */
pre,
.ui-output,
.terminal-output,
.report-output,
.log-output {
  font-family: var(--font-code);
  background: var(--surface-code);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: 0;
  padding: 0.8rem 0.9rem;
  overflow-x: auto;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
   Add class="sr" to any element to opt into fade-in on scroll.
   Add class="sr sr-delay-1" through "sr-delay-6" to stagger
   children (e.g. cards in a grid).
   JS adds .sr-visible when element enters viewport.
   prefers-reduced-motion: JS skips entirely, so these elements
   remain at full opacity with no transition.
   ═══════════════════════════════════════════════════════════════ */

.sr {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sr.sr-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.sr-delay-1 { transition-delay: 0.08s; }
.sr-delay-2 { transition-delay: 0.16s; }
.sr-delay-3 { transition-delay: 0.24s; }
.sr-delay-4 { transition-delay: 0.32s; }
.sr-delay-5 { transition-delay: 0.40s; }
.sr-delay-6 { transition-delay: 0.48s; }

/* Safety net: if JS never runs, elements remain visible */
@media (prefers-reduced-motion: reduce) {
  .sr {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   One block per breakpoint, all concerns grouped together.
   ═══════════════════════════════════════════════════════════════ */

/* ── Large screens: hero background repositions ─────────────── */
@media (max-width: 1200px) {
  .hero {
    background-image:
      linear-gradient(145deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 78%),
      url("../assets/hero-bg.png");
    background-position: 74% center;
    background-size: cover;
  }
}

/* ── Medium screens (tablet) ────────────────────────────────── */
@media (max-width: 980px) {
  .hero {
    background: linear-gradient(145deg, #151922 0%, #0d1016 100%);
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual-shell {
    min-height: 140px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid > .overview-card + .overview-card {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #4a505c;
    padding-top: 1rem;
  }

  .features-intro,
  .updates-intro {
    grid-template-columns: 1fr;
  }
}

/* ── Small screens (mobile) ─────────────────────────────────── */
@media (max-width: 600px) {
  .purchase-tier-strip,
  .purchase-meta,
  .payment-options {
    grid-template-columns: 1fr;
  }

  .hero-pricing-grid {
    grid-template-columns: 1fr;
  }

  .os-buy-buttons {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  section {
    padding: 1rem;
  }

  .site-update-stamp {
    padding-bottom: 0.85rem;
  }
}

/* ── Legal page typography ──────────────────────────────── */
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0.5rem 0 1.25rem;
  font-family: var(--font-code);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  opacity: 0.6;
}

.measure-legal { max-width: 72ch; }

.legal-body h2 {
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-accent);
  opacity: 0.75;
  margin: 1.75rem 0 0.5rem;
}

.legal-body p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0 0 0.65rem;
  max-width: none;
}

.legal-body ul {
  margin: 0 0 0.65rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.legal-body ul li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 500;
}

.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: var(--border-strong);
}

.legal-body a {
  color: var(--text-accent);
  text-decoration: none;
  font-weight: 600;
}

.legal-body a:hover { text-decoration: underline; }

.legal-contact {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.legal-contact p {
  margin: 0;
}

.legal-contact strong {
  color: var(--text-primary);
  font-weight: 700;
}
