/* ==========================================================================
   Instaxis — industrial design system
   Dark steel + one hot accent (molten amber). Oswald display / Inter body /
   system mono for technical labels. No gradients-as-decoration, no slop.
   ========================================================================== */

:root {
  --steel-950: #0a0d10;
  --steel-900: #0e1216;
  --steel-850: #12171d;
  --steel-800: #171d24;
  --steel-700: #20272f;
  --line: #242c36;
  --line-soft: #1b2129;
  --amber: #ff9e2c;
  --amber-hot: #ffb84d;
  --amber-deep: #d97c0e;
  --amber-dim: rgba(255, 158, 44, 0.14);
  --ink: #eceff3;
  --ink-soft: #c3c9d1;
  --muted: #98a2ad;
  --faint: #6b7480;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

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

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--steel-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.08;
  margin: 0 0 0.55em;
  text-wrap: balance;
}
p { margin: 0 0 1.05em; }
a { color: var(--amber-hot); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--amber); }
::selection { background: var(--amber); color: var(--steel-950); }
img, svg { max-width: 100%; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.faq-narrow { max-width: 800px; }
section { padding: 96px 0; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--amber); color: var(--steel-950);
  padding: 12px 20px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Eyebrows — mono, industrial */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber-hot); margin: 0 0 1.4em;
}
.eyebrow .tick { width: 22px; height: 10px; background: var(--amber); flex: none;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }

.section-title {
  font-size: clamp(30px, 4.4vw, 54px);
  margin-bottom: 0.4em;
}
.section-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--muted); max-width: 640px; margin-bottom: 2.6em;
}

/* Hazard stripe — the signature divider */
.hazard {
  height: 12px;
  background: repeating-linear-gradient(-45deg,
    var(--amber) 0 16px, var(--steel-950) 16px 32px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 17px;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  color: var(--steel-950); background: var(--amber);
  border: 2px solid var(--amber); border-radius: 6px;
  padding: 15px 32px; cursor: pointer; white-space: nowrap;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease), border-color 0.16s;
}
.btn:hover { background: var(--amber-hot); border-color: var(--amber-hot); color: var(--steel-950); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-large { padding: 18px 44px; font-size: 19px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--steel-800); border-color: var(--muted); color: #fff; }
.btn-header { border-width: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 13, 16, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-top: 13px; padding-bottom: 13px;
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.wordmark-mark { width: 30px; height: 30px; color: var(--amber); flex: none; }
.wordmark-name { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: 0.1em; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--display);
  padding: 9px 13px; border-radius: 6px;
}
.site-nav a:hover { color: #fff; background: var(--steel-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--steel-950);
  padding: 104px 0 88px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(900px 480px at 50% 0%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 480px at 50% 0%, black, transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); font-weight: 700; max-width: 14em; }
.hero h1 .amber { color: var(--amber); }
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--ink-soft); max-width: 38em; }
.lede strong { color: #fff; font-weight: 650; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 2em 0 1.1em; }
.hero-note { font-family: var(--mono); font-size: 13px; color: var(--faint); letter-spacing: 0.03em; margin-bottom: 3.2em; }

/* The pipe — flow diagram */
.axis { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--steel-900); padding: 30px 28px 26px; }
.axis-title {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.6em; text-align: center;
}
.axis-stages {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
}
.stage { position: relative; padding: 0 18px; text-align: center; }
/* pipe body running behind the stages */
.stage::before {
  content: ""; position: absolute; top: 31px; left: -8px; right: -8px; height: 14px;
  background: var(--steel-700); border-top: 2px solid #39434e; border-bottom: 2px solid #0c0f13;
}
.stage:first-child::before { left: 18px; border-radius: 8px 0 0 8px; }
.stage:last-child::before { right: 18px; border-radius: 0 8px 8px 0; }
/* flow dashes inside the pipe */
.stage::after {
  content: ""; position: absolute; top: 36px; left: 6px; right: 6px; height: 4px;
  background-image: linear-gradient(90deg, var(--amber) 55%, transparent 45%);
  background-size: 22px 4px; background-repeat: repeat-x;
  animation: flow 1.1s linear infinite; opacity: 0.9;
}
.stage:first-child::after { left: 30px; }
.stage:last-child::after { right: 30px; }
@keyframes flow { to { background-position-x: 22px; } }
.stage-icon {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--steel-950); border: 2px solid var(--amber); color: var(--amber);
  margin-bottom: 14px;
}
.stage-icon svg { width: 28px; height: 28px; }
.stage-kicker { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--faint); text-transform: uppercase; margin-bottom: 4px; }
.stage-name { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.stage-desc { display: block; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Call record ---------- */
.record { background: var(--steel-900); }
.call-record {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--steel-950); max-width: 860px;
}
.cr-head {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line); background: var(--steel-850);
}
.cr-field { padding: 16px 20px; border-left: 1px solid var(--line); }
.cr-field:first-child { border-left: 0; }
.cr-label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.cr-val { font-weight: 650; font-size: 16px; }
.cr-outcome { color: var(--amber-hot); }
.cr-transcript { list-style: none; margin: 0; padding: 8px 0; }
.cr-transcript li {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px;
  padding: 11px 24px; font-size: 15.5px; border-bottom: 1px dashed var(--line-soft);
}
.cr-transcript li:last-child { border-bottom: 0; }
.who {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-hot); padding-top: 4px;
}
.cr-transcript li:nth-child(odd) .who { color: var(--muted); }
.line { color: var(--ink-soft); }
.cr-foot {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); background: var(--steel-850);
}
.cr-stat { padding: 18px 20px; border-left: 1px solid var(--line); text-align: left; }
.cr-stat:first-child { border-left: 0; }
.cr-stat-num { display: block; font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--amber); line-height: 1.1; }
.cr-stat-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.record-note { margin-top: 1.4em; font-size: 14.5px; color: var(--faint); max-width: 46em; }

/* ---------- Pain ---------- */
.pain { background: var(--steel-950); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 0.5em; }
.pain-card {
  background: var(--steel-900); border: 1px solid var(--line);
  border-top: 3px solid var(--amber); border-radius: var(--radius); padding: 30px 28px;
}
.pain-kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; color: var(--amber-hot); text-transform: uppercase; margin: 0 0 0.9em; }
.pain-card h3 { font-size: 22px; margin-bottom: 0.5em; }
.pain-card p:last-child { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Modules: spec sheet ---------- */
.modules { background: var(--steel-900); }
.spec-list { border-top: 1px solid var(--line); margin-top: 0.5em; }
.spec {
  display: grid; grid-template-columns: 110px 1fr; gap: 28px;
  padding: 38px 0; border-bottom: 1px solid var(--line);
}
.spec-num {
  font-family: var(--display); font-weight: 700; font-size: clamp(44px, 5vw, 64px);
  line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--amber);
  margin: 0;
}
.spec-body h3 { font-size: clamp(21px, 2.6vw, 28px); margin-bottom: 0.3em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tier-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber-hot); border: 1px solid var(--amber-deep); border-radius: 4px;
  padding: 5px 10px; white-space: nowrap;
}
.spec-powered { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 0.8em; }
.spec-body p { color: var(--ink-soft); font-size: 16px; max-width: 48em; }
.spec-outcome { font-weight: 650; color: #fff !important; margin-bottom: 0.4em !important; }
.spec-fine { font-size: 13.5px !important; color: var(--faint) !important; }

.trades { margin-top: 3em; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; background: var(--steel-950); }
.trades-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin: 0 0 1em; }
.trades-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trades-list li {
  font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 4px; padding: 8px 16px; color: var(--ink-soft); background: var(--steel-900);
}

/* ---------- Compliance ---------- */
.compliance { background: var(--steel-950); }
.guard-list { list-style: none; margin: 0 0 3.2em; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.guard-list li {
  display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.guard-icon {
  width: 52px; height: 52px; border: 1.5px solid var(--amber-deep); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--amber);
}
.guard-icon svg { width: 26px; height: 26px; }
.guard-list strong { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px; }
.guard-list span { color: var(--muted); font-size: 15.5px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; background: var(--steel-900); }
.compare-col h3 { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 1em; }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px dashed var(--line-soft); font-size: 15.5px; color: var(--muted); }
.compare-col li:last-child { border-bottom: 0; }
.compare-col li::before { position: absolute; left: 0; top: 10px; }
.compare-col:first-child li::before { content: "—"; color: var(--faint); }
.compare-ours { border-color: var(--amber-deep); background: var(--steel-850); }
.compare-ours h3 { color: var(--amber-hot); }
.compare-ours li { color: var(--ink-soft); }
.compare-ours li::before { content: "✓"; color: var(--amber); font-weight: 700; }

/* ---------- Proof / phases ---------- */
.proof { background: var(--steel-900); }
.phases { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; margin-top: 0.5em; }
.phase { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; background: var(--steel-950); }
.phase-now { border-color: var(--amber-deep); background: var(--amber-dim); }
.phase-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-hot); margin: 0 0 1em; }
.phase h3 { font-size: 22px; margin-bottom: 0.5em; }
.phase p { font-size: 15.5px; color: var(--muted); margin: 0; }
.phase p strong { color: #fff; }

/* ---------- Pricing ---------- */
.pricing { background: var(--steel-950); }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0.5em 0 2.5em; align-items: stretch; }
.tier {
  background: var(--steel-900); border: 1px solid var(--line); border-radius: 12px;
  padding: 34px 30px; display: flex; flex-direction: column;
}
.tier-featured { border-color: var(--amber); background: var(--steel-850); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.tier-kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 0 0 0.8em; }
.tier-featured .tier-kicker { color: var(--amber-hot); }
.tier h3 { font-size: 25px; margin-bottom: 0.15em; }
.tier-powered { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 1.1em; }
.tier-price { font-family: var(--display); font-size: 52px; font-weight: 700; margin: 0 0 0.5em; line-height: 1; }
.tier-price span { font-family: var(--body); font-size: 15px; font-weight: 500; color: var(--muted); }
.tier ul { list-style: none; margin: 0 0 1.4em; padding: 0; }
.tier li { padding: 9px 0 9px 28px; position: relative; font-size: 15px; color: var(--ink-soft); border-top: 1px solid var(--line-soft); }
.tier li::before { content: "✓"; position: absolute; left: 2px; color: var(--amber); font-weight: 700; }
.tier-annual { margin-top: auto; font-family: var(--mono); font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.1em; margin-bottom: 0; }

.terms { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.terms > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-hot); }
.terms dd { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { background: var(--steel-900); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-size: 20px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 22px 44px 22px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px;
  font-family: var(--body); font-size: 28px; font-weight: 400; color: var(--amber);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 16px; padding: 0 0 24px; margin: 0; max-width: 44em; }

/* ---------- Final CTA ---------- */
.final { background: var(--steel-950); text-align: left; padding: 110px 0; }
.final-inner { max-width: 860px; }
.final .btn-large { margin-top: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--steel-900); border-top: 1px solid var(--line); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 2.8em; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 14px 0 0; max-width: 26em; }
.footer-brand strong { font-family: var(--display); letter-spacing: 0.1em; color: var(--ink); }
.footer-head { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber-hot); margin: 0 0 1.1em; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li { margin-bottom: 0.6em; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.site-footer nav a:hover { color: #fff; }
.footer-fine { border-top: 1px solid var(--line); padding-top: 28px; }
.footer-fine p { font-size: 13px; color: var(--faint); max-width: 72em; margin-bottom: 0.9em; }
.copyright { font-family: var(--mono); font-size: 12px !important; letter-spacing: 0.04em; }

/* ---------- Focus ---------- */
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage::after { animation: none; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .axis-stages { grid-template-columns: 1fr; gap: 0; }
  .stage { text-align: left; padding: 0 0 34px 78px; }
  .stage:last-child { padding-bottom: 0; }
  /* axis runs vertical on mobile */
  .stage::before { top: 0; bottom: -6px; left: 30px; right: auto; width: 14px; height: auto; border: 0;
    border-left: 2px solid #39434e; border-right: 2px solid #0c0f13; background: var(--steel-700); border-radius: 0; }
  .stage:first-child::before { left: 30px; top: 0; border-radius: 8px 8px 0 0; }
  .stage:last-child::before { bottom: 0; border-radius: 0 0 8px 8px; }
  .stage::after { top: 8px; bottom: 8px; left: 35px; right: auto; width: 4px; height: auto;
    background-image: linear-gradient(180deg, var(--amber) 55%, transparent 45%);
    background-size: 4px 22px; animation-name: flowY; }
  .stage:first-child::after { left: 35px; top: 30px; }
  .stage:last-child::after { bottom: 0; }
  @keyframes flowY { to { background-position-y: 22px; } }
  .stage-icon { position: absolute; left: 0; top: 0; margin-bottom: 0; }
  .pain-grid, .phases, .tier-grid, .compare { grid-template-columns: 1fr; }
  .tier-grid { max-width: 520px; }
  .spec { grid-template-columns: 1fr; gap: 6px; padding: 30px 0; }
  .spec-num { font-size: 46px; }
  .cr-head, .cr-foot { grid-template-columns: 1fr 1fr; }
  .cr-field:nth-child(3), .cr-stat:nth-child(3) { border-left: 0; }
  .cr-field, .cr-stat { border-top: 1px solid var(--line); }
  .cr-field:nth-child(-n+2), .cr-stat:nth-child(-n+2) { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 60px; }
  .cr-transcript li { grid-template-columns: 1fr; gap: 2px; padding: 11px 18px; }
  .hero-cta .btn { width: 100%; }
  .terms > div { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .guard-list li { grid-template-columns: 44px 1fr; gap: 14px; }
  .guard-icon { width: 44px; height: 44px; }
}
