/* =========================================================
   Emily — Obsidian + Bone
   ========================================================= */

:root {
  /* canvas: warm near-black, ink: warm off-white */
  --ink-0: oklch(97% 0.008 80);          /* bone */
  --ink-1: oklch(92% 0.008 80);
  --ink-2: oklch(78% 0.010 80);
  --ink-3: oklch(60% 0.012 80);
  --ink-4: oklch(42% 0.012 80);
  --ink-5: oklch(28% 0.010 80);

  --bg-0: oklch(11% 0.012 280);          /* obsidian, warm-cool */
  --bg-1: oklch(14% 0.014 280);
  --bg-2: oklch(17% 0.016 280);
  --bg-3: oklch(22% 0.018 280);

  --line: oklch(28% 0.012 280 / 0.85);
  --line-soft: oklch(28% 0.012 280 / 0.45);

  /* one luminous accent — primary editorial accent */
  --violet: oklch(74% 0.18 295);
  --violet-soft: oklch(74% 0.18 295 / 0.18);
  --violet-line: oklch(74% 0.18 295 / 0.4);

  /* product UI cobalt — matches the EmilyAI app chrome */
  --cobalt: oklch(72% 0.16 245);
  --cobalt-soft: oklch(72% 0.16 245 / 0.18);
  --cobalt-line: oklch(72% 0.16 245 / 0.4);

  /* signal colors — used sparingly */
  --signal-good: oklch(78% 0.16 155);
  --signal-warn: oklch(82% 0.15 80);
  --signal-bad:  oklch(72% 0.20 25);

  --max-w: 1240px;
  --col-w: 1100px;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;

  --font-sans: "Geist", ui-sans-serif, -apple-system, "Inter", "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* warm grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(1200px 700px at 20% -10%, oklch(74% 0.18 295 / 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 30%, oklch(74% 0.18 295 / 0.06), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* selection */
::selection { background: var(--violet); color: var(--bg-0); }

/* =========================================================
   Type
   ========================================================= */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet);
  margin-right: 8px;
  vertical-align: 1px;
  box-shadow: 0 0 0 4px var(--violet-soft);
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink-0);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.display {
  font-size: clamp(48px, 7.4vw, 116px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.display .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-1);
  letter-spacing: -0.02em;
}

h2.section-title {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.0;
}
h2.section-title .serif {
  font-family: var(--font-serif);
  font-style: italic;
}

h3.tile-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-0);
}

p.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-2);
  line-height: 1.45;
  letter-spacing: -0.005em;
  max-width: 56ch;
}
p { color: var(--ink-2); margin: 0; }
p + p { margin-top: 0.9em; }

.mono { font-family: var(--font-mono); }

/* =========================================================
   Layout
   ========================================================= */

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 140px 0;
  position: relative;
}

.section.tight { padding: 88px 0; }

@media (max-width: 720px) {
  .section { padding: 88px 0; }
  .wrap { padding: 0 20px; }
}

.rule {
  height: 1px;
  background: var(--line);
  margin: 0;
  border: none;
}

.rule-soft { background: var(--line-soft); }

/* =========================================================
   Nav
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  background: oklch(11% 0.012 280 / 0.6);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-0);
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, oklch(74% 0.18 295), oklch(60% 0.16 295));
  display: grid; place-items: center;
  color: oklch(15% 0.01 280);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.04em;
  box-shadow:
    inset 0 1px 0 oklch(95% 0.03 295 / 0.6),
    0 0 24px oklch(74% 0.18 295 / 0.35);
}
.brand-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 13.5px;
}
.nav-links a {
  color: var(--ink-2);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink-0); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink-0);
  color: var(--bg-0) !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .2s ease, background .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink-0);
  color: var(--bg-0);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink-1);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink-0); }
.btn-violet {
  background: var(--violet-soft);
  color: var(--ink-0);
  border-color: var(--violet-line);
}
.btn-violet:hover { background: oklch(74% 0.18 295 / 0.28); }

.btn .arrow { transition: transform .25s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: oklch(14% 0.014 280 / 0.6);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin-bottom: 36px;
}
.hero-meta .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal-good);
  box-shadow: 0 0 0 0 oklch(78% 0.16 155 / 0.7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(78% 0.16 155 / 0.7); }
  70%  { box-shadow: 0 0 0 9px oklch(78% 0.16 155 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(78% 0.16 155 / 0); }
}

.hero h1 .stagger {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero h1 .stagger:nth-child(1) { animation-delay: .05s; }
.hero h1 .stagger:nth-child(2) { animation-delay: .18s; }
.hero h1 .stagger:nth-child(3) { animation-delay: .31s; }
.hero h1 .stagger:nth-child(4) { animation-delay: .44s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero p.lede { margin-top: 32px; }
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-foot {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.hero-foot .stat-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.hero-foot .stat-v {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}
@media (max-width: 600px) {
  .hero-foot { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Live alert console (hero right)
   ========================================================= */

.console {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, oklch(15% 0.014 280) 0%, oklch(12% 0.014 280) 100%);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 oklch(95% 0.02 80 / 0.05) inset,
    0 30px 80px -20px oklch(0% 0 0 / 0.6),
    0 0 0 1px oklch(74% 0.18 295 / 0.06);
  overflow: hidden;
}

.console::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 0% 0%, oklch(74% 0.18 295 / 0.08), transparent 60%);
  pointer-events: none;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.console-dots {
  display: flex; gap: 6px;
}
.console-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: oklch(28% 0.012 280);
}
.console-bar .path { flex: 1; }
.console-bar .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--signal-good);
}
.console-bar .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal-good);
  box-shadow: 0 0 8px var(--signal-good);
}

.console-body {
  padding: 22px 22px 26px;
  display: grid;
  gap: 18px;
}

.alert-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.alert-head .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.alert-head h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.alert-head .pri {
  display: inline-grid; place-items: center;
  width: 32px; height: 22px; border-radius: 5px;
  background: oklch(72% 0.20 25 / 0.18);
  color: oklch(80% 0.20 25);
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em;
  margin-right: 6px;
}
.alert-head .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  background: oklch(28% 0.012 280);
  color: var(--ink-2);
  margin-right: 6px;
}

.score-card {
  text-align: right;
  font-family: var(--font-mono);
}
.score-card .k {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.score-card .v {
  font-size: 28px;
  color: var(--ink-0);
  letter-spacing: -0.02em;
}

.reasoning {
  border: 1px solid var(--violet-line);
  background: var(--violet-soft);
  border-radius: 12px;
  padding: 16px 18px;
  position: relative;
}
.reasoning .r-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.reasoning .r-head .title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-0);
}
.reasoning .r-head .delta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--violet);
}
.reasoning .row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 0;
  border-top: 1px solid oklch(74% 0.18 295 / 0.18);
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(4px);
  animation: rowIn .5s ease forwards;
}
.reasoning .row:first-of-type { border-top: none; }
.reasoning .row .lbl { color: var(--ink-1); }
.reasoning .row .val {
  color: var(--violet);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.reasoning .row:nth-of-type(1) { animation-delay: .8s; }
.reasoning .row:nth-of-type(2) { animation-delay: 1.05s; }
.reasoning .row:nth-of-type(3) { animation-delay: 1.30s; }
.reasoning .row:nth-of-type(4) { animation-delay: 1.55s; }
.reasoning .row:nth-of-type(5) { animation-delay: 1.80s; }
@keyframes rowIn {
  to { opacity: 1; transform: translateY(0); }
}

.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 56px;
  gap: 12px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  padding: 4px 0;
}
.bar-track {
  height: 6px;
  background: oklch(28% 0.012 280);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, oklch(74% 0.18 295), oklch(60% 0.16 295));
  width: 0%;
  border-radius: 3px;
  animation: fillBar 1.4s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes fillBar { to { width: var(--w, 50%); } }

.cited {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.cited .pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: oklch(22% 0.018 280);
  color: var(--ink-2);
  border: 1px solid var(--line-soft);
}

.action-row {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  padding: 6px 10px;
  background: oklch(14% 0.014 280);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.action-row .ok { color: var(--signal-good); }
.action-row .verdict { color: var(--violet); }

/* typing cursor */
.cursor {
  display: inline-block;
  width: 1ch;
  background: var(--violet);
  color: transparent;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* =========================================================
   Marquee
   ========================================================= */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: oklch(13% 0.014 280);
  overflow: hidden;
  padding: 18px 0;
  margin-top: 60px;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-0), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-0), transparent); }

.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scroll 50s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.marquee-track span { white-space: nowrap; }
.marquee-track strong { color: var(--ink-0); font-weight: 500; }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* =========================================================
   Manifesto
   ========================================================= */

.manifesto {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .manifesto { grid-template-columns: 1fr; gap: 32px; }
}

.manifesto p {
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--ink-1);
  line-height: 1.32;
  letter-spacing: -0.015em;
  max-width: 28ch;
  font-weight: 400;
}
.manifesto p .em {
  color: var(--ink-0);
  font-family: var(--font-serif);
  font-style: italic;
}
.manifesto p .strike {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* =========================================================
   Reframe (Sutherland) cards
   ========================================================= */

.reframes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}
@media (max-width: 900px) {
  .reframes { grid-template-columns: 1fr; }
}
.reframe {
  border: 1px solid var(--line);
  background: oklch(13% 0.014 280);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.reframe .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.reframe .from {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 22px 0 6px;
}
.reframe .from-text {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: oklch(40% 0.012 280);
  font-size: 16px;
  line-height: 1.45;
}
.reframe .to {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 16px 0 6px;
}
.reframe .to-text {
  color: var(--ink-0);
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* =========================================================
   Capability tiles
   ========================================================= */

.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) {
  .caps { grid-template-columns: 1fr; }
}
.cap {
  background: oklch(12% 0.014 280);
  padding: 32px 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .2s ease;
}
.cap:hover { background: oklch(14% 0.016 280); }
.cap .glyph {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--violet-soft);
  border: 1px solid var(--violet-line);
  color: var(--violet);
  margin-bottom: 6px;
}
.cap h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.cap p { font-size: 14.5px; color: var(--ink-3); line-height: 1.55; }

/* =========================================================
   Architecture / flow
   ========================================================= */

.arch {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(900px 500px at 50% 0%, oklch(74% 0.18 295 / 0.07), transparent 60%),
    oklch(12% 0.014 280);
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}
.arch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
  z-index: 2;
}
.arch-row {
  display: contents;
}
.node {
  background: oklch(14% 0.014 280);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  text-align: center;
  position: relative;
}
.node .n-title {
  color: var(--ink-0);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 4px;
}
.node .n-sub {
  color: var(--ink-3);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.node-core {
  background: oklch(16% 0.025 295);
  border: 1px solid var(--violet-line);
  box-shadow: 0 0 28px oklch(74% 0.18 295 / 0.18);
}
.node-core .n-title { color: var(--ink-0); }
.node.span2 { grid-column: span 2; }
.node.span3 { grid-column: span 3; }
.arch-row .node { min-height: 64px; display: flex; flex-direction: column; justify-content: center; }

.arch-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* =========================================================
   Compare
   ========================================================= */

.compare-card {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: oklch(12% 0.014 280);
  overflow: hidden;
}
.cmp-head, .cmp-row {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  align-items: center;
}
.cmp-head {
  border-bottom: 1px solid var(--line);
  padding: 18px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cmp-head .vendor {
  text-align: center;
}
.cmp-head .emily-h {
  color: var(--ink-0);
  position: relative;
}
.cmp-head .emily-h::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 30px;
  background: var(--violet-soft);
  border-radius: 999px;
  z-index: -1;
}
.cmp-row {
  padding: 18px 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  position: relative;
}
.cmp-row .label { color: var(--ink-2); }
.cmp-row .cell { text-align: center; color: var(--ink-3); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; }
.cmp-row .emily {
  color: var(--ink-0);
  font-weight: 500;
  letter-spacing: -0.005em;
  font-family: var(--font-sans);
  font-size: 13.5px;
}
.cmp-row .emily-bg {
  background: linear-gradient(180deg, oklch(74% 0.18 295 / 0.10), oklch(74% 0.18 295 / 0.04));
  border-left: 1px solid var(--violet-line);
  border-right: 1px solid var(--violet-line);
}
.cmp-row .yes { color: var(--violet); }
.cmp-row .no { color: var(--ink-4); }
.cmp-row .partial { color: var(--signal-warn); }

@media (max-width: 900px) {
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; padding: 18px 22px; gap: 6px; }
  .cmp-row .label { color: var(--ink-0); margin-bottom: 4px; }
  .cmp-row .cell { text-align: left; }
  .cmp-row .cell::before { content: attr(data-vendor) " — "; color: var(--ink-3); }
  .cmp-row .emily-bg { border: none; background: none; }
}

/* =========================================================
   Pricing reframe
   ========================================================= */

.pricing-card {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: oklch(12% 0.014 280);
}
@media (max-width: 900px) {
  .pricing-card { grid-template-columns: 1fr; }
}

.price-side {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.price-side.left {
  background:
    radial-gradient(700px 400px at 0% 0%, oklch(74% 0.18 295 / 0.08), transparent 60%),
    oklch(13% 0.014 280);
  border-right: 1px solid var(--line);
}
@media (max-width: 900px) {
  .price-side.left { border-right: none; border-bottom: 1px solid var(--line); }
}

.price-tier {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.price-headline {
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--ink-0);
  line-height: 1;
}
.price-headline small {
  display: block;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--ink-3);
  font-family: var(--font-mono);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.price-list li {
  position: relative;
  padding-left: 22px;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1px;
  background: var(--violet);
}

.compare-line {
  display: grid;
  gap: 14px;
}
.cl-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}
.cl-row:first-child { border-top: none; }
.cl-row .what {
  font-size: 14px;
  color: var(--ink-2);
}
.cl-row .what small {
  display: block;
  color: var(--ink-3);
  font-size: 11.5px;
  margin-top: 2px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.cl-row .num {
  font-family: var(--font-mono);
  color: var(--ink-0);
  font-size: 18px;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.cl-row.win .num { color: var(--violet); }
.cl-row.win .what { color: var(--ink-0); }

/* =========================================================
   Voice of the customer
   ========================================================= */

.quote-block {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.quote-block blockquote {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}
.quote-block blockquote::before {
  content: "“";
  display: block;
  font-size: 64px;
  color: var(--violet);
  line-height: 0.6;
  margin-bottom: 32px;
}
.quote-block .attr {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* =========================================================
   FAQ-ish details
   ========================================================= */

.faq {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink-0);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  font-family: var(--font-mono);
  color: var(--violet);
  transition: transform .2s ease;
}
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p {
  margin-top: 14px;
  color: var(--ink-2);
  max-width: 60ch;
  font-size: 15.5px;
}

/* =========================================================
   Final CTA
   ========================================================= */

.cta {
  position: relative;
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 50% 0%, oklch(74% 0.18 295 / 0.18), transparent 60%);
  pointer-events: none;
}
.cta h2 {
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}
.cta h2 .serif {
  font-family: var(--font-serif);
  font-style: italic;
}
.cta p { margin-top: 24px; }
.cta-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   Footer
   ========================================================= */

.foot {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--ink-2); font-size: 14px; }
.foot ul a:hover { color: var(--ink-0); }
.foot p { color: var(--ink-3); font-size: 13px; max-width: 36ch; }
.foot-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
}
@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}

/* =========================================================
   Access Gate
   ========================================================= */

html.ag-locked { overflow: hidden !important; }
html.ag-locked body { overflow: hidden !important; }

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg-0);
  font-family: var(--font-sans);
  color: var(--ink-1);
  animation: ag-in .55s cubic-bezier(.2,.7,.2,1);
}
@keyframes ag-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.auth-gate.ag-out {
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.auth-gate .ag-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 22% 12%, oklch(74% 0.18 295 / 0.16), transparent 60%),
    radial-gradient(700px 500px at 78% 88%, oklch(72% 0.16 245 / 0.10), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 2px, oklch(0% 0 0 / 0.04) 2px 3px);
}

.auth-gate .ag-card {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  padding: 40px 36px 28px;
  background: oklch(13% 0.014 280);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 oklch(95% 0.02 80 / 0.05) inset,
    0 30px 80px -20px oklch(0% 0 0 / 0.6),
    0 0 0 1px oklch(74% 0.18 295 / 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: ag-rise .65s cubic-bezier(.2,.7,.2,1);
}
@keyframes ag-rise {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.auth-gate .ag-card.ag-shake {
  animation: ag-shake .42s cubic-bezier(.2, .7, .2, 1);
}
@keyframes ag-shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-7px); }
  40%  { transform: translateX(6px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.auth-gate .ag-mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, oklch(74% 0.18 295), oklch(60% 0.16 295));
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: oklch(15% 0.01 280);
  font-size: 18px;
  letter-spacing: -0.04em;
  box-shadow:
    inset 0 1px 0 oklch(95% 0.03 295 / 0.6),
    0 0 36px oklch(74% 0.18 295 / 0.35);
  margin-bottom: 4px;
}

.auth-gate .ag-brand {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-0);
}
.auth-gate .ag-brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-top: 2px;
}

.auth-gate .ag-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 22px;
}
.auth-gate .ag-eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet);
  margin-right: 8px;
  vertical-align: 1px;
  box-shadow: 0 0 0 4px var(--violet-soft);
}

.auth-gate .ag-title {
  font-size: 32px;
  letter-spacing: -0.03em;
  font-weight: 400;
  line-height: 1.0;
  color: var(--ink-0);
  margin: 6px 0 4px;
}
.auth-gate .ag-title .serif {
  font-family: var(--font-serif);
  font-style: italic;
}

.auth-gate .ag-lede {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0 0 12px;
}
.auth-gate .ag-lede a {
  color: var(--violet);
  border-bottom: 1px solid var(--violet-line);
}

.auth-gate .ag-row {
  display: grid;
  gap: 6px;
}
.auth-gate .ag-row label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.auth-gate .ag-row input {
  width: 100%;
  padding: 12px 14px;
  background: oklch(10% 0.014 280);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-0);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-gate .ag-row input::placeholder { color: var(--ink-4); }
.auth-gate .ag-row input:focus {
  outline: none;
  border-color: var(--violet-line);
  box-shadow: 0 0 0 3px var(--violet-soft);
}

.auth-gate .ag-err {
  min-height: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--signal-bad);
}

.auth-gate .ag-submit {
  position: relative;
  margin-top: 4px;
  padding: 13px 22px;
  background: var(--ink-0);
  color: var(--bg-0);
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .2s ease;
}
.auth-gate .ag-submit:hover { transform: translateY(-1px); }
.auth-gate .ag-submit .ag-arrow { transition: transform .25s ease; }
.auth-gate .ag-submit:hover .ag-arrow { transform: translateX(3px); }

.auth-gate .ag-submit.ag-loading .ag-submit-label { opacity: 0; }
.auth-gate .ag-submit.ag-loading .ag-arrow { opacity: 0; }
.auth-gate .ag-submit.ag-loading::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid oklch(15% 0 0 / 0.2);
  border-top-color: var(--bg-0);
  animation: ag-spin .7s linear infinite;
}
@keyframes ag-spin { to { transform: rotate(360deg); } }

.auth-gate .ag-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.auth-gate .ag-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.auth-gate .ag-flag {
  width: 14px; height: 10px;
  background: linear-gradient(180deg, #012169 50%, #C8102E 50%);
  border-radius: 1px;
}

.auth-indicator {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
}
.auth-indicator strong {
  color: var(--ink-2);
  font-weight: 500;
}
.auth-indicator a {
  color: var(--violet);
  border-bottom: 1px dashed var(--violet-line);
}
.auth-indicator a:hover { color: var(--ink-0); border-color: var(--ink-3); }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */

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

/* =========================================================
   Inline product chrome (Platform page)
   ========================================================= */

.app-frame {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: oklch(13% 0.014 280);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px oklch(0% 0 0 / 0.6);
}
.app-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: oklch(11% 0.014 280);
}
.app-bar .dots { display: flex; gap: 6px; }
.app-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: oklch(28% 0.012 280); }
.app-bar .url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  flex: 1;
  text-align: center;
}
.app-body {
  display: grid;
  grid-template-columns: 220px 1fr;
}
.app-side {
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  background: oklch(12% 0.014 280);
  display: grid;
  gap: 4px;
  align-content: start;
}
.app-side .item {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
}
.app-side .item.active {
  background: var(--violet-soft);
  color: var(--ink-0);
  border: 1px solid var(--violet-line);
}
.app-side .item .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4);
}
.app-side .item.active .dot { background: var(--violet); }
.app-main {
  padding: 28px 28px 32px;
  min-height: 460px;
}
.app-h1 {
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  margin-bottom: 18px;
}

/* alert table */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.tbl th, .tbl td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
}
.tbl th {
  color: var(--ink-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
}
.tbl tr:hover td { background: oklch(15% 0.014 280); }

.pri-pill {
  display: inline-grid; place-items: center;
  width: 26px; height: 18px; border-radius: 4px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
}
.pri-1 { background: oklch(72% 0.20 25 / 0.18); color: oklch(80% 0.20 25); }
.pri-2 { background: oklch(82% 0.15 80 / 0.16); color: oklch(85% 0.15 80); }
.pri-3 { background: oklch(78% 0.16 155 / 0.14); color: oklch(82% 0.16 155); }
.pri-4 { background: oklch(28% 0.012 280); color: var(--ink-3); }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: oklch(13% 0.014 280);
}
.kpi .k {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.kpi .v {
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  margin-top: 4px;
}
.kpi.win .v { color: var(--violet); }

/* chat */
.chat-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  height: 460px;
}
.chat-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: oklch(12% 0.014 280);
  padding: 10px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.chat-list .c {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-2);
}
.chat-list .c.active { background: var(--violet-soft); color: var(--ink-0); }
.chat-list .c small { display: block; color: var(--ink-3); font-family: var(--font-mono); font-size: 10px; }
.chat-thread {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: oklch(13% 0.014 280);
  display: flex;
  flex-direction: column;
}
.chat-msgs {
  flex: 1;
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: hidden;
}
.msg {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}
.msg.user {
  margin-left: auto;
  background: var(--violet-soft);
  border: 1px solid var(--violet-line);
  color: var(--ink-0);
}
.msg.bot {
  background: oklch(15% 0.014 280);
  border: 1px solid var(--line);
  color: var(--ink-1);
}
.msg .tools {
  display: grid; gap: 4px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.msg .tools code {
  background: oklch(11% 0.014 280);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 4px;
  display: block;
}
.chat-input {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  display: flex; gap: 8px;
}
.chat-input .field {
  flex: 1;
  padding: 10px 14px;
  background: oklch(11% 0.014 280);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-3);
}
.chat-input .send {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--violet);
  color: var(--bg-0);
  font-size: 13px;
  font-weight: 500;
  border: none;
}
.chat-input .ghost {
  padding: 10px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  border: 1px solid var(--line);
}

/* tab strip */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.tab {
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-size: 13px;
  border-bottom: 1px solid transparent;
  transform: translateY(1px);
}
.tab.active {
  color: var(--ink-0);
  border-bottom-color: var(--violet);
}

/* =========================================================
   Architecture — vertical pipeline (rebuilt)
   ========================================================= */

.arch-v {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(900px 500px at 50% 0%, oklch(74% 0.18 295 / 0.07), transparent 60%),
    oklch(11% 0.014 280);
  padding: 64px 56px 56px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 800px) {
  .arch-v { padding: 40px 20px; }
}

.arch-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto 0;
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) {
  .arch-inputs { grid-template-columns: 1fr; }
}

/* connecting line from 3 inputs down to the spine head is drawn by JS */
.arch-inputs { /* no ::after */ }

.arch-spine {
  margin: 80px auto 0;
  max-width: 880px;
  position: relative;
  padding-left: 56px;
}
@media (max-width: 720px) {
  .arch-spine { padding-left: 0; margin-top: 56px; }
  .arch-feedback { display: none; }
}

/* The central pipe and feedback rail are drawn entirely by JS in the
   #arch-feedback SVG overlay, using real measured node positions.
   No CSS connectors. */

.arch-feedback {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.arch-stages {
  display: grid;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.arch-stage {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: center;
}
@media (max-width: 720px) {
  .arch-stage {
    grid-template-columns: 32px 1fr;
  }
  .arch-stage .arch-side { grid-column: 1 / -1; padding-left: 50px; }
}

.arch-step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  text-align: right;
}

.arch-node {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: oklch(14% 0.014 280);
  padding: 14px 18px;
  position: relative;
  z-index: 2;
  transition: border-color .2s ease, transform .2s ease;
}
.arch-node:hover { border-color: var(--ink-3); transform: translateY(-1px); }

.arch-node .arch-title {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-0);
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.arch-node .arch-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-top: 4px;
  line-height: 1.4;
}

.arch-input {
  text-align: center;
  background: oklch(13% 0.014 280);
}

.arch-pipe {
  position: relative;
}
.arch-pipe-accent {
  border-color: var(--violet-line);
  background:
    radial-gradient(120% 200% at 0% 0%, oklch(74% 0.18 295 / 0.10), transparent 60%),
    oklch(14% 0.018 280);
  box-shadow: 0 0 24px oklch(74% 0.18 295 / 0.16);
}
.arch-pipe-accent .arch-title { color: var(--ink-0); }

.arch-side {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 1px;
}
.arch-side-line {
  width: 56px;
  height: 24px;
  flex-shrink: 0;
}
.arch-side-node {
  flex: 1;
  background: oklch(13% 0.014 280);
  border-color: var(--cobalt-line);
}
.arch-side-node .arch-title { color: var(--ink-1); }

/* legend */
.arch-legend {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.arch-legend i {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.arch-legend .dash {
  width: 18px; height: 0;
  border-top: 1px dashed currentColor;
}
.arch-legend .dash-violet { color: oklch(74% 0.18 295 / 0.8); }
.arch-legend .dash-cobalt { color: oklch(72% 0.16 245 / 0.8); }
.arch-legend .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.arch-legend .dot-violet {
  background: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-soft);
}

/* =========================================================
   Emily Guide — interactive product tour
   ========================================================= */

.guide {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: oklch(11% 0.014 280);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px oklch(0% 0 0 / 0.5);
}

.guide-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .guide-head { grid-template-columns: 1fr; }
}

.guide-rail {
  background: oklch(10% 0.014 280);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: grid;
  gap: 2px;
  align-content: start;
}
@media (max-width: 900px) {
  .guide-rail {
    border-right: none;
    border-bottom: 1px solid var(--line);
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 12px;
  }
}
.guide-rail-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 6px 10px 12px;
}
.guide-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink-3);
  transition: background .15s ease, color .15s ease;
  border: 1px solid transparent;
  text-align: left;
  background: transparent;
}
.guide-step:hover { color: var(--ink-1); background: oklch(13% 0.014 280); }
.guide-step.active {
  background: var(--violet-soft);
  color: var(--ink-0);
  border-color: var(--violet-line);
}
.guide-step .num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  width: 18px;
  flex-shrink: 0;
}
.guide-step.active .num { color: var(--violet); }
.guide-step .label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.guide-step .label small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  margin-top: 2px;
}

.guide-context {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.guide-context .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}
.guide-context h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--ink-0);
  margin-bottom: 14px;
  line-height: 1.1;
}
.guide-context h3 .serif {
  font-family: var(--font-serif);
  font-style: italic;
}
.guide-context p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 56ch;
}
.guide-context .meta {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.guide-context .meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: oklch(15% 0.014 280);
  border: 1px solid var(--line);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.guide-stage {
  padding: 28px;
  background:
    radial-gradient(900px 500px at 50% 0%, oklch(74% 0.18 295 / 0.06), transparent 60%),
    oklch(10% 0.014 280);
  border-top: 1px solid var(--line);
}
.guide-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: oklch(8% 0.014 280);
  overflow: hidden;
  box-shadow:
    0 1px 0 oklch(95% 0.02 80 / 0.03) inset,
    0 30px 60px -20px oklch(0% 0 0 / 0.6);
}
.guide-frame .gf-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: oklch(11% 0.014 280);
}
.guide-frame .gf-bar .dots { display: flex; gap: 6px; }
.guide-frame .gf-bar .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: oklch(28% 0.012 280);
}
.guide-frame .gf-bar .url {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  flex: 1;
  text-align: center;
}
.guide-frame .gf-bar .live {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--signal-good);
  display: inline-flex; align-items: center; gap: 6px;
}
.guide-frame .gf-bar .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal-good);
  box-shadow: 0 0 8px var(--signal-good);
}
.guide-frame .gf-img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: oklch(8% 0.014 280);
}

/* fade transitions when switching */
.guide-pane {
  display: none;
  animation: paneIn .45s cubic-bezier(.2,.7,.2,1);
}
.guide-pane.active { display: block; }
@keyframes paneIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* progress dots underneath stage */
.guide-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  background: oklch(11% 0.014 280);
}
.guide-foot .progress {
  display: flex; gap: 6px;
  align-items: center;
}
.guide-foot .progress span {
  width: 22px; height: 2px;
  background: oklch(28% 0.012 280);
  border-radius: 2px;
  transition: background .2s ease, width .2s ease;
}
.guide-foot .progress span.on { background: var(--violet); width: 36px; }
.guide-foot .nav {
  display: flex; gap: 8px;
}
.guide-foot button {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.guide-foot button:hover { color: var(--ink-0); border-color: var(--ink-3); }
.guide-foot button.primary {
  background: var(--ink-0);
  color: var(--bg-0);
  border-color: var(--ink-0);
}

/* Tenants strip / "Made in Britain" footer */
.bg-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
}
@media (max-width: 900px) {
  .bg-strip { grid-template-columns: 1fr 1fr; }
}
.bg-strip > div {
  background: oklch(12% 0.014 280);
  padding: 24px 22px;
}
.bg-strip .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.bg-strip .v {
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink-0);
}
.bg-strip .v .serif {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--violet);
}

/* full-width screenshot showcase (platform page) */
.screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .screen-grid { grid-template-columns: 1fr; }
}
.screen-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: oklch(11% 0.014 280);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.screen-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet-line);
}
.screen-card .sc-img-wrap {
  position: relative;
  overflow: hidden;
  background: oklch(8% 0.014 280);
  aspect-ratio: 16 / 10;
}
.screen-card .sc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.screen-card .sc-body {
  padding: 20px 22px 22px;
}
.screen-card .num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--violet);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.screen-card h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin-bottom: 6px;
}
.screen-card h3 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-2);
}
.screen-card p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* "Made in Britain" stamp */
.britain-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(12% 0.014 280);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.britain-stamp .flag {
  width: 14px; height: 10px;
  background: linear-gradient(180deg, #012169 50%, #C8102E 50%);
  position: relative;
  border-radius: 1px;
}

/* utilities */
.center { text-align: center; }
.muted { color: var(--ink-3); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
