/* ==========================================================================
   BlueJeans (블루진스 · bluejeansglobal.com)
   Toss.im-Inspired Product Storytelling + Raw Indigo Architectural System
   Anti-Slop Compliant: Zero neon purple, zero emoji spam, zero pill-dot spam,
   zero card-in-card clutter. Crisp Pretendard + JetBrains Mono hierarchy.
   ========================================================================== */

:root {
  /* Toss-Clean Light Surfaces & Deep Indigo Cinema Surfaces */
  --bg-white: #ffffff;
  --bg-subtle: #f9fafb;
  --bg-muted: #f2f4f6;
  --bg-cinema: #070d19;
  --bg-indigo: #0b1324;
  --bg-indigo-elevated: #121e36;

  /* Typography Ink (Toss High-Contrast Scale) */
  --ink-900: #191f28;
  --ink-700: #333d4b;
  --ink-500: #4e5968;
  --ink-400: #6b7684;
  --ink-on-dark: #f9fafb;
  --ink-on-dark-sub: rgba(249, 250, 251, 0.74);
  --ink-on-dark-muted: rgba(249, 250, 251, 0.50);

  /* Brand & Functional Accents */
  --brand-blue: #1b64da;
  --brand-blue-hover: #1552b8;
  --brand-blue-soft: #e8f3ff;
  --brand-blue-on-dark: #4dabf7;
  --copper-accent: #c96a22;
  --copper-on-dark: #f0984e;
  --status-ok: #0ca678;
  --status-ok-bg: #e6fcf5;
  --status-warn: #d9480f;
  --status-warn-bg: #fff4e6;
  --status-alert: #e03131;
  --status-alert-bg: #fff5f5;

  /* Hairlines & Elevation */
  --line-light: #e5e8eb;
  --line-strong: #d1d6db;
  --line-dark: rgba(255, 255, 255, 0.12);
  --shadow-device: 0 28px 64px rgba(15, 25, 42, 0.12), 0 4px 16px rgba(15, 25, 42, 0.05);
  --shadow-sheet: 0 18px 44px rgba(15, 25, 42, 0.07);

  /* Typography & Layout */
  --font-sans: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;
  --container: 1140px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-white);
  color: var(--ink-900);
  line-height: 1.65;
  letter-spacing: -0.015em;
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

img, video, canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

/* Scroll Reveal Motion (Toss Smooth Rise) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s var(--ease-out-expo), transform 0.72s var(--ease-out-expo);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-sm {
  height: 38px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-blue-hover);
}

.btn-glass-dark {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-glass-dark:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-secondary {
  background: var(--bg-muted);
  color: var(--ink-700);
}

.btn-secondary:hover {
  background: #e5e8eb;
  color: var(--ink-900);
}

.btn-outline-dark {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.30);
}

.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* ==========================================================================
   Floating Adaptive Header (Toss-Style Transparent -> Crisp White)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 100;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.24s ease;
}

body.is-scrolled .site-header {
  border-bottom-color: var(--line-light);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: block;
  flex: none;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.68;
  padding-left: 10px;
  border-left: 1px solid currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.86;
  transition: opacity 0.16s ease, background-color 0.16s ease;
}

.nav-links a:hover {
  opacity: 1;
  background: rgba(128, 128, 128, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Scroll chapters: each .story is one sticky stage. JS writes --open (card 0 -> full bleed 1),
   --swap (crossfade to the second clip) and --v per beat (0 hidden -> 1 shown).
   --screens sets how many viewport heights the chapter scrolls for.
   ========================================================================== */
.story {
  --open: 0;
  --swap: 0;
  --screens: 4;
  --gap-t: 8px;
  --gap-x: 16px;
  --gap-b: 16px;
  --radius: 32px;
  --pad: clamp(28px, 6vw, 96px);
  position: relative;
  background: var(--bg-white);
}

.story.is-live {
  height: calc(var(--screens) * 100svh);
}

.story-stage {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
}

.story.is-live .story-stage {
  position: sticky;
  top: 0;
}

.story-media {
  position: absolute;
  inset: 64px 0 0;
  background: var(--bg-cinema);
  clip-path: inset(
    calc((1 - var(--open)) * var(--gap-t)) calc((1 - var(--open)) * var(--gap-x))
    calc((1 - var(--open)) * var(--gap-b)) round calc((1 - var(--open)) * var(--radius))
  );
}

.story-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.story-video--swap {
  opacity: var(--swap);
}

.story-scrim {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 13, 25, 0.72) 0%, rgba(7, 13, 25, 0.34) 46%, rgba(7, 13, 25, 0) 72%),
    linear-gradient(0deg, rgba(7, 13, 25, 0.5) 0%, rgba(7, 13, 25, 0) 48%);
}

.beat {
  opacity: var(--v, 0);
  transform: translateY(calc((1 - var(--v, 0)) * 28px));
}

.beat--keep {
  --v: 1;
}

.beat--intro {
  position: absolute;
  left: calc(var(--gap-x) + var(--pad));
  right: calc(var(--gap-x) + var(--pad));
  bottom: calc(var(--gap-b) + clamp(40px, 8vh, 84px));
  max-width: 760px;
}

.hero-category {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.story h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}

.hero-desc {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: rgba(249, 250, 251, 0.86);
  line-height: 1.68;
  max-width: 560px;
  margin-bottom: 32px;
}

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

.beat-words {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(48px, 10vh, 96px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.beat--big {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: 50%;
  translate: 0 -50%;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.beat--outro {
  position: absolute;
  left: calc(var(--gap-x) + var(--pad));
  right: calc(var(--gap-x) + var(--pad));
  top: 50%;
  translate: 0 -50%;
  max-width: 560px;
}

.beat--outro h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.beat--outro p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: rgba(249, 250, 251, 0.86);
  margin-bottom: 28px;
}

.story:not(.is-live) .beat-words,
.story:not(.is-live) .beat:not(.beat--keep) {
  display: none;
}

/* Light chapter: bright footage, dark ink, copy at the top over a white fade. */
.story--light .story-stage {
  color: var(--ink-900);
}

.story--light .story-scrim {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.5) 30%, rgba(255, 255, 255, 0) 52%);
}

.story--light .beat--big,
.story--light .beat-words {
  top: calc(64px + clamp(40px, 9vh, 96px));
  bottom: auto;
  translate: none;
  text-align: center;
  justify-content: center;
}

.beat-words--list {
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
}

@media (prefers-reduced-motion: reduce) {
  .beat {
    transform: none;
  }
}

/* ==========================================================================
   Common Section Rhythm (Toss Spacious Hierarchy)
   ========================================================================== */
.section-light {
  background: var(--bg-white);
  padding: 128px 0;
}

.section-subtle {
  background: var(--bg-subtle);
  padding: 128px 0;
}

.section-dark {
  background: var(--bg-indigo);
  color: var(--ink-on-dark);
  padding: 128px 0;
}

.section-kicker {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 14px;
}

.section-dark .section-kicker {
  color: var(--brand-blue-on-dark);
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.95rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  margin-bottom: 18px;
}

.section-dark .section-title {
  color: var(--ink-on-dark);
}

.section-desc {
  font-size: 1.08rem;
  color: var(--ink-500);
  line-height: 1.7;
  max-width: 640px;
}

.section-dark .section-desc {
  color: var(--ink-on-dark-sub);
}

/* ==========================================================================
   2. Toss-Style Manifesto & 8 Neutral Input Sources
   ========================================================================== */
.manifesto-wrap {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 72px;
}

.manifesto-wrap .section-desc {
  margin: 0 auto;
}

.source-ledger-strip {
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 28px 0;
  margin-bottom: 56px;
}

.source-strip-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.source-strip-head strong {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink-900);
}

.source-strip-head span {
  font-size: 0.88rem;
  color: var(--ink-400);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 24px;
  list-style: none;
}

.source-grid li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-muted);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink-700);
}

.source-grid li small {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-400);
}

.benchmark-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.benchmark-item {
  padding-top: 20px;
  border-top: 2px solid var(--ink-900);
}

.benchmark-val {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.benchmark-label {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 4px;
}

.benchmark-note {
  font-size: 0.88rem;
  color: var(--ink-400);
}

/* ==========================================================================
   3. Sticky Split Showcase — Field App v1 (Interactive Mobile Device)
   ========================================================================== */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.split-sticky {
  position: sticky;
  top: 108px;
}

.role-Seg {
  display: inline-flex;
  background: var(--bg-muted);
  padding: 4px;
  border-radius: 12px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.role-seg-btn {
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-500);
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.role-seg-btn.active {
  background: var(--bg-white);
  color: var(--ink-900);
  box-shadow: 0 2px 8px rgba(25, 31, 40, 0.08);
}

.app-clean-facts {
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.app-clean-facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.93rem;
}

.app-clean-facts span {
  color: var(--ink-500);
}

.app-clean-facts strong {
  color: var(--ink-900);
  font-weight: 700;
}

/* Realistic Tactile Smartphone Frame */
.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  max-width: 410px;
  background: #141923;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-device);
}

.phone-screen {
  background: var(--bg-white);
  border-radius: 34px;
  overflow: hidden;
  min-height: 610px;
  display: flex;
  flex-direction: column;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-900);
  background: var(--bg-white);
}

.phone-notch {
  width: 76px;
  height: 20px;
  border-radius: 99px;
  background: #141923;
}

.phone-appbar {
  padding: 10px 22px 16px;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.phone-appbar h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink-900);
}

.phone-appbar span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.phone-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.worker-att-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
}

.worker-att-item:first-child {
  padding-top: 2px;
}

.worker-att-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.worker-att-top strong {
  font-size: 0.96rem;
  color: var(--ink-900);
}

.worker-att-top small {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-400);
}

.tri-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.tri-btn {
  height: 36px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  background: var(--bg-muted);
  color: var(--ink-500);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tri-btn:hover {
  background: #e5e8eb;
}

.tri-btn.active[data-val="간다"] {
  background: var(--brand-blue);
  color: #ffffff;
}

.tri-btn.active[data-val="못 간다"] {
  background: var(--ink-700);
  color: #ffffff;
}

.tri-btn.active[data-val="아직"] {
  background: var(--copper-accent);
  color: #ffffff;
}

.phone-append-feed {
  background: var(--bg-subtle);
  border-top: 2px solid var(--ink-900);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-700);
}

.phone-append-feed .feed-head {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.phone-append-feed ul {
  list-style: none;
  display: grid;
  gap: 4px;
}

.phone-append-feed li {
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-append-feed li.latest {
  color: var(--brand-blue);
  font-weight: 700;
}

/* Worker 1-Time Payslip Screen inside Phone */
.payslip-mobile-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-400);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
}

.payslip-total-block {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
}

.payslip-total-block span {
  font-size: 0.84rem;
  color: var(--ink-500);
}

.payslip-total-block strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin-top: 2px;
}

.payslip-lines {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 14px 0;
  font-size: 0.88rem;
}

.payslip-lines li {
  display: flex;
  justify-content: space-between;
}

.payslip-lines li span {
  color: var(--ink-500);
}

.payslip-lines li strong {
  font-family: var(--font-mono);
  color: var(--ink-900);
}

.dispute-btn {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  background: var(--status-warn-bg);
  color: var(--status-warn);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid rgba(217, 72, 15, 0.25);
}

.dispute-btn:hover {
  background: #ffe8cc;
}

.no-confirm-note {
  font-size: 0.78rem;
  color: var(--ink-400);
  line-height: 1.5;
  margin-top: 8px;
}

/* ==========================================================================
   4. Dark Stage — 6-Source Neutral Reconciliation & Browser Tokenization
   ========================================================================== */
.recon-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 44px;
}

.privacy-boundary-bar {
  background: var(--bg-indigo-elevated);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.boundary-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.boundary-node {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-on-dark);
}

.boundary-arrow {
  color: var(--brand-blue-on-dark);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.token-switch-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  background: var(--brand-blue);
  color: #ffffff;
  transition: background-color 0.16s ease;
}

.token-switch-btn.is-local {
  background: var(--copper-accent);
}

.recon-workbench {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.recon-tabs {
  display: grid;
  gap: 8px;
}

.recon-tab {
  text-align: left;
  padding: 15px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  color: var(--ink-on-dark-sub);
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.recon-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.recon-tab.active {
  background: #ffffff;
  color: var(--ink-900);
  border-color: #ffffff;
}

.recon-tab-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--copper-on-dark);
  margin-bottom: 3px;
}

.recon-tab.active .recon-tab-code {
  color: var(--brand-blue);
}

.recon-tab strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.recon-panel {
  background: #ffffff;
  color: var(--ink-900);
  border-radius: 16px;
  padding: 32px;
}

.recon-panel-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 20px;
}

.recon-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--status-alert);
}

.recon-worker-id {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-700);
  background: var(--bg-muted);
  padding: 6px 12px;
  border-radius: 8px;
}

.recon-panel h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.recon-coords {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-400);
  margin-bottom: 24px;
}

.six-source-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
}

.six-source-table th {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-400);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
}

.six-source-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.9rem;
}

.six-source-table tr.row-conflict td {
  background: var(--status-alert-bg);
  font-weight: 700;
}

.six-source-table .src-status-ok {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--status-ok);
}

.six-source-table .src-status-diff {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--status-alert);
}

.recon-verdict-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  font-size: 0.88rem;
  color: var(--ink-500);
}

.recon-verdict-bar strong {
  color: var(--ink-900);
}

/* ==========================================================================
   5. 8-Step Closing Pipeline (Interactive Step + Sticky Detail Inspector)
   ========================================================================== */
.pipeline-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
  margin-top: 52px;
}

.pipeline-steps {
  border-top: 2px solid var(--ink-900);
}

.pipe-row {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 52px 110px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 18px 12px;
  border-bottom: 1px solid var(--line-light);
  transition: background-color 0.15s ease;
}

.pipe-row:hover {
  background: var(--bg-subtle);
}

.pipe-row.active {
  background: var(--brand-blue-soft);
}

.pipe-num {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--brand-blue);
}

.pipe-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-900);
}

.pipe-summary {
  font-size: 0.92rem;
  color: var(--ink-500);
}

.pipe-touch {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-700);
  white-space: nowrap;
}

.pipe-touch.zero {
  color: var(--status-ok);
}

.pipe-inspector {
  position: sticky;
  top: 104px;
  background: var(--bg-subtle);
  border-top: 3px solid var(--brand-blue);
  padding: 30px;
  border-radius: 0 0 14px 14px;
}

.pipe-inspector-step {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.pipe-inspector h3 {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 10px;
}

.pipe-inspector p {
  font-size: 0.95rem;
  color: var(--ink-500);
  margin-bottom: 22px;
}

.pipe-io-list {
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.pipe-io-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.pipe-io-list span {
  color: var(--ink-400);
  white-space: nowrap;
}

.pipe-io-list strong {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-900);
  text-align: right;
}

/* ==========================================================================
   6. 5 Standard Outputs & Prime-Contractor 4-Question Check
   ========================================================================== */
.output-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 44px;
  margin-bottom: 28px;
}

.out-tab-btn {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 700;
  background: var(--bg-white);
  color: var(--ink-500);
  border: 1px solid var(--line-light);
  transition: all 0.16s ease;
}

.out-tab-btn:hover {
  color: var(--ink-900);
  border-color: var(--line-strong);
}

.out-tab-btn.active {
  background: var(--ink-900);
  color: #ffffff;
  border-color: var(--ink-900);
}

.output-stage {
  background: var(--bg-white);
  border-radius: 18px;
  box-shadow: var(--shadow-sheet);
  border: 1px solid var(--line-light);
  padding: 40px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.output-info h3 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.output-info p {
  font-size: 0.98rem;
  color: var(--ink-500);
  margin-bottom: 24px;
}

.output-spec-list {
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.output-spec-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.92rem;
  color: var(--ink-700);
}

.doc-sheet {
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--ink-900);
  padding: 24px;
  font-size: 0.86rem;
}

.doc-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-light);
}

.doc-sheet-head strong {
  font-size: 0.96rem;
  color: var(--ink-900);
}

.doc-sheet-head span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brand-blue);
}

.doc-kv-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-light);
}

.doc-kv-row:last-child {
  border-bottom: none;
}

.doc-kv-row span {
  color: var(--ink-500);
}

.doc-kv-row strong {
  font-family: var(--font-mono);
  color: var(--ink-900);
  text-align: right;
}

.doc-kv-row strong.ok {
  color: var(--status-ok);
}

.interactive-check-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}

.check-item-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
}

.check-item-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-blue);
}

/* ==========================================================================
   7. Product Guardrails & 4-Step Launch Sequence
   ========================================================================== */
.guardrails-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
  margin-top: 48px;
  margin-bottom: 96px;
  border-top: 2px solid var(--ink-900);
}

.guard-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line-light);
}

.guard-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.guard-item h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.guard-item p {
  font-size: 0.94rem;
  color: var(--ink-500);
}

.roadmap-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
}

.roadmap-head h3 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.roadmap-head span {
  font-size: 0.92rem;
  color: var(--ink-400);
}

.roadmap-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 88px;
}

.rm-step {
  padding-top: 18px;
  border-top: 3px solid var(--line-strong);
}

.rm-step.current {
  border-top-color: var(--brand-blue);
}

.rm-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-400);
  margin-bottom: 8px;
}

.rm-step.current .rm-tag {
  color: var(--brand-blue);
}

.rm-step h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.rm-step p {
  font-size: 0.9rem;
  color: var(--ink-500);
}


/* ==========================================================================
   Footer & Modal
   ========================================================================== */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line-light);
  padding: 56px 0 44px;
  color: var(--ink-500);
  font-size: 0.88rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-light);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-weight: 600;
  color: var(--ink-700);
}

.footer-links a:hover {
  color: var(--brand-blue);
}

.footer-meta {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-400);
}

/* Legal pages (privacy/) */
.legal {
  max-width: 760px;
  padding-top: 120px;
  padding-bottom: 96px;
  color: var(--ink-700);
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--ink-400);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-900);
  margin: 40px 0 12px;
}

.legal p,
.legal ul {
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 20px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
  font-size: 0.9rem;
}

.legal th,
.legal td {
  border: 1px solid var(--line-light);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.legal th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
}

.legal mark {
  background: var(--status-warn-bg);
  color: var(--status-warn);
  font-weight: 700;
  padding: 0 4px;
}

.legal-home {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-700);
  padding: 8px 12px;
  border-radius: 8px;
}

.legal-home:hover {
  background: var(--bg-muted);
}

.legal-home:focus-visible,
.footer-links a:focus-visible,
.form-consent a:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.form-consent a {
  color: var(--brand-blue);
  text-decoration: underline;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 23, 38, 0.58);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: grid;
}

.modal-dialog {
  width: 100%;
  max-width: 460px;
  background: var(--bg-white);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-device);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-muted);
  font-size: 1.15rem;
  color: var(--ink-500);
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink-900);
  background: var(--bg-white);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  margin: 4px 0 14px;
  font-size: 0.86rem;
  color: var(--ink-700);
}

.form-consent label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
}

.form-consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-blue);
}

.form-consent p {
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-400);
}

.form-error {
  min-height: 1.4em;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--status-alert);
}

#demo-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .split-grid,
  .recon-workbench,
  .pipeline-layout,
  .output-stage {
    grid-template-columns: 1fr;
  }

  .split-sticky,
  .pipe-inspector {
    position: static;
  }

  .source-grid,
  .roadmap-steps,
  .guardrails-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .brand-sub {
    display: none;
  }

  .story {
    --gap-x: 8px;
    --gap-b: 8px;
    --radius: 24px;
    --pad: 24px;
  }

  .story:not(.story--light) .story-scrim {
    background: linear-gradient(0deg, rgba(7, 13, 25, 0.86) 0%, rgba(7, 13, 25, 0.5) 52%, rgba(7, 13, 25, 0) 80%);
  }

  .beat-words {
    flex-direction: column;
    gap: 4px;
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .beat--big,
  .beat--outro {
    top: auto;
    bottom: 56px;
    translate: none;
  }

  .beat--big {
    font-size: clamp(2rem, 8.6vw, 2.6rem);
  }

  .story--light .beat--big,
  .story--light .beat-words {
    top: calc(64px + 32px);
    bottom: auto;
  }

  .beat-words--list {
    flex-direction: row;
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .section-light,
  .section-subtle,
  .section-dark {
    padding: 84px 0;
  }

  .source-grid,
  .benchmark-row,
  .roadmap-steps,
  .guardrails-grid {
    grid-template-columns: 1fr;
  }

  .pipe-row {
    grid-template-columns: 42px 1fr;
    gap: 6px 12px;
  }

  .pipe-summary,
  .pipe-touch {
    grid-column: 2;
  }

  .output-stage,
  .recon-panel {
    padding: 26px 20px;
  }

  .six-source-table th:nth-child(3),
  .six-source-table td:nth-child(3) {
    display: none;
  }
}
