/* Myridian OS landing page. Tokens follow the live Myridian Technologies brand (DESIGN.md v4):
   near-black canvas, bone text, hairlines instead of shadows, signal orange only for live status. */

:root {
  --canvas: #101010;
  --lift: #1d1a18;
  --stroke: #3d3a39;
  --hair: #262322;
  --mid: #4d4947;
  --granite: #8a8380;
  --stone: #b8b3b0;
  --bone: #eeeeee;
  --chalk: #fafafa;
  --ink: #101010;
  --signal: #ee6018;
  --metric: #a0ca92;
  --frame: #0d0d0d;
  --panel: #151413;

  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: 24px;
  --section: 96px;
  --nav-h: 64px;
  --r-sm: 3px;
  --r-md: 10px;
  --r-lg: 20px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--canvas);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
p, h1, h2, h3, h4, dl, dd, figure, pre { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 2px; }
.lcard :focus-visible { outline-color: var(--ink); }
svg.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  background: var(--chalk); color: var(--ink); font-size: 14px; text-decoration: none; border-radius: var(--r-sm);
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.eyebrow, .mono, .brand__name, .brand__os, .nav__link, .tag, .app__title, .app__live, .kpi__l, .panel__h,
.pipe__h, .flow__k, .steps__n, .facts span, .chips li, .menu__toggle, .menu__link, .h-mods, .code__cap {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--stone); }
.mono { color: var(--stone); }
.display { font-size: 68px; line-height: 1; letter-spacing: -.04em; max-width: 13ch; }
.h2 { font-size: 44px; line-height: 1.12; letter-spacing: -.025em; max-width: 20ch; }
.h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.t { font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.lede { font-size: 18px; line-height: 1.5; color: var(--stone); max-width: 36em; }
.sub { color: var(--granite); max-width: 36em; }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mid); flex: none; display: inline-block; }
.dot--signal { background: var(--signal); }
.dot--metric { background: var(--metric); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 14px;
  font-size: 14px; font-weight: 500; text-decoration: none; border-radius: var(--r-sm); border: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--light { color: var(--ink); background: var(--chalk); border-color: var(--chalk); }
.btn--light:hover { background: var(--stone); border-color: var(--stone); }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }
.ghost {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px;
  font-size: 15px; color: var(--bone); text-decoration: none; border: 1px solid var(--stroke);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ghost:hover { border-color: var(--chalk); color: var(--chalk); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(16, 16, 16, .88); border-bottom: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); }
.brand__logo { display: block; height: 22px; width: auto; }
.mark { width: 18px; height: 18px; flex: none; overflow: visible; }
.mark__rim, .mark__m, .mark__prime { fill: none; }
.mark__rim { stroke: var(--bone); stroke-width: 1.5; }
.mark__m { stroke: var(--granite); stroke-width: 1.2; }
.mark__prime { stroke: var(--bone); stroke-width: 1.7; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__link { color: var(--stone); text-decoration: none; padding: 14px 0; transition: color var(--dur) var(--ease); }
.nav__link:hover { color: var(--chalk); }
.nav__end { display: flex; align-items: center; gap: 12px; }
.menu { display: none; position: relative; }
.menu__toggle { list-style: none; cursor: pointer; display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border: 1px solid var(--stroke); color: var(--bone); }
.menu__toggle::-webkit-details-marker { display: none; }
.menu__close { display: none; }
.menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: inline; }
.menu__panel {
  position: absolute; right: 0; top: 48px; min-width: 200px; padding: 8px;
  background: var(--canvas); border: 1px solid var(--stroke); border-radius: var(--r-md);
  display: flex; flex-direction: column;
}
.menu__link { display: flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--bone); }
.menu__link:hover { background: var(--lift); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 96px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero__side .lede { font-size: 17px; }
@media (max-width: 1100px) { .hero__grid { grid-template-columns: 1fr; } .hero__side .lede { font-size: 18px; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 16px; }
.facts li { display: grid; gap: 6px; }
.facts b { font-weight: 400; font-size: 22px; letter-spacing: -.02em; line-height: 1.1; }
.facts span { color: var(--granite); }

.app {
  margin-top: 72px; background: var(--frame); border: 1px solid var(--hair); border-radius: var(--r-md); overflow: hidden;
  animation: rise 300ms var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.app__bar { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--hair); }
.app__dots { display: inline-flex; gap: 6px; }
.app__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--mid); display: block; }
.app__title { color: var(--stone); }
.app__live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--stone); }
.app__body { display: grid; grid-template-columns: 64px 1fr; min-height: 420px; }
.app__side { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0; border-right: 1px solid var(--hair); }
.app__side .mark--app { width: 22px; height: 22px; margin-bottom: 12px; display: block; }
.app__side span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--granite); border-radius: 8px; }
.app__side span.is-on { background: var(--lift); color: var(--bone); }
.app__main { padding: 24px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.app__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app__head p { font-size: 20px; letter-spacing: -.015em; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--stroke); border-radius: var(--r-sm); color: var(--stone); white-space: nowrap; }
.tag--ok { color: var(--metric); border-color: rgba(160, 202, 146, .4); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--hair); border-radius: var(--r-md); }
.kpi { padding: 16px 20px; display: grid; gap: 10px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--hair); }
.kpi__l { color: var(--stone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__v { font-size: 30px; line-height: 1; letter-spacing: -.031em; }
.spark { width: 100%; height: 28px; display: block; }
.spark path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spark--up { stroke: var(--metric); }
.spark--mid { stroke: var(--stone); }
.spark--sig { stroke: var(--signal); }

.app__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; }
.panel { border: 1px solid var(--hair); border-radius: var(--r-md); padding: 16px 20px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.panel__h { color: var(--stone); }
.minipipe { display: grid; gap: 10px; }
.minipipe div { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 12px; font-size: 13px; color: var(--granite); }
.minipipe i { display: block; height: 8px; border-radius: 2px; background: var(--mid); }
.minipipe i.is-won { background: var(--metric); }
.w-90 { width: 90%; } .w-70 { width: 70%; } .w-50 { width: 50%; } .w-35 { width: 35%; } .w-20 { width: 20%; }

.feed { display: grid; gap: 0; height: 176px; overflow: hidden; }
.feed li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; height: 44px; font-size: 14px; color: var(--stone); border-bottom: 1px solid var(--hair); }
.feed li:last-child { border-bottom: 0; }
.feed li span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed__ic { width: 28px; height: 28px; border-radius: 6px; background: var(--lift); display: grid; place-items: center; color: var(--bone); }
.feed__ic .ic { width: 15px; height: 15px; }
.feed time { font-family: var(--font-mono); font-size: 12px; color: var(--granite); }
.feed li.is-new { animation: slidein 400ms var(--ease) both; }
.feed li.is-new .feed__ic { color: var(--signal); }
@keyframes slidein { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.pulse { animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Strip ---------- */
.strip { padding: 40px 0 56px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.strip .eyebrow { margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--hair); border-radius: var(--r-sm); color: var(--granite); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--rule { border-top: 1px solid var(--hair); }
.head { display: grid; gap: 20px; margin-bottom: 56px; }

/* Platform scale */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.stats div { padding: 28px 24px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: grid; gap: 12px; align-content: start; }
.stats dt { font-family: var(--font-mono); font-size: 12px; line-height: 1.25; letter-spacing: -.02em; text-transform: uppercase; color: var(--stone); }
.stats dd { font-size: 56px; line-height: 1; letter-spacing: -.04em; }
.stats p { font-size: 14px; color: var(--granite); }
.stats__note { margin-top: 20px; font-size: 13px; color: var(--granite); max-width: 52em; }
#platform { border-top: 1px solid var(--hair); }

/* Bento demos */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.demo { border: 1px solid var(--hair); border-radius: var(--r-md); padding: 28px; display: grid; gap: 28px; align-content: start; background: var(--frame); min-width: 0; }
.demo--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: center; }
.demo__copy { display: grid; gap: 12px; align-content: start; }
.demo__copy > p:last-child { color: var(--granite); font-size: 15px; }

/* Pipeline demo */
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; min-height: 260px; }
.pipe__col { background: var(--panel); border: 1px solid var(--hair); border-radius: 8px; padding: 12px; display: grid; grid-template-rows: auto 1fr; gap: 12px; min-width: 0; }
.pipe__h { color: var(--stone); display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; }
.pipe__h span { color: var(--granite); }
.pipe__list { display: grid; gap: 8px; align-content: start; }
.deal { background: var(--canvas); border: 1px solid var(--hair); border-radius: 6px; padding: 10px; display: grid; gap: 4px; font-size: 13px; line-height: 1.3; min-width: 0; }
.deal b { font-weight: 400; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal span { color: var(--granite); font-family: var(--font-mono); font-size: 11px; }
.deal.is-moved { animation: dealin 500ms var(--ease) both; border-color: var(--stroke); }
.pipe__col[data-stage="3"] .deal { border-color: rgba(160, 202, 146, .35); }
@keyframes dealin { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* Inbox demo */
.inbox { background: var(--panel); border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; }
.inbox__top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
.inbox__top div { display: grid; gap: 2px; font-size: 14px; min-width: 0; }
.inbox__top b { font-weight: 400; }
.inbox__top span { color: var(--granite); font-size: 13px; }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--lift); border: 1px solid var(--stroke); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--stone); flex: none; }
.av--lg { width: 44px; height: 44px; font-size: 13px; }
.thread { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 16px; height: 300px; overflow: hidden; }
.msg { max-width: 86%; display: grid; gap: 4px; font-size: 14px; line-height: 1.4; animation: slidein 350ms var(--ease) both; }
.msg p { padding: 10px 12px; border-radius: 10px; background: var(--lift); color: var(--bone); }
.msg small { font-family: var(--font-mono); font-size: 11px; color: var(--granite); text-transform: uppercase; letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; }
.msg small .ic { width: 12px; height: 12px; }
.msg--out { align-self: flex-end; }
.msg--out p { background: var(--bone); color: var(--ink); }
.msg--out small { justify-content: flex-end; }
.msg--sys { align-self: center; max-width: 100%; }
.msg--sys p { background: transparent; border: 1px dashed var(--stroke); color: var(--stone); font-size: 13px; padding: 6px 10px; }
.msg--ai p { background: transparent; border: 1px solid var(--stroke); color: var(--stone); }

/* Booking demo */
.book { background: var(--panel); border: 1px solid var(--hair); border-radius: 8px; padding: 16px; display: grid; gap: 16px; min-height: 300px; align-content: start; }
.book__head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.book__head b { font-weight: 400; }
.book__head span { color: var(--granite); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; }
.book__slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.book__slots span { height: 44px; display: grid; place-items: center; border: 1px solid var(--stroke); border-radius: 6px; font-size: 14px; color: var(--bone); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.book__slots span.is-taken { color: var(--mid); border-color: var(--hair); text-decoration: line-through; }
.book__slots span.is-picked { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.book__done { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--stone); padding: 12px; border: 1px solid rgba(160, 202, 146, .35); border-radius: 6px; opacity: 0; transition: opacity 300ms var(--ease); }
.book__done .ic { color: var(--metric); margin-top: 1px; }
.book__done.is-on { opacity: 1; }

/* Workflow demo */
.flow { display: grid; gap: 10px; counter-reset: none; }
.flow__step { position: relative; display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--panel); border: 1px solid var(--hair); border-radius: 8px; font-size: 14px; color: var(--stone); transition: border-color 250ms var(--ease), color 250ms var(--ease); }
.flow__step + .flow__step::before { content: ""; position: absolute; left: 28px; top: -11px; width: 1px; height: 10px; background: var(--stroke); }
.flow__k { flex: none; width: 64px; color: var(--granite); white-space: nowrap; }
.flow__step code { font-family: var(--font-mono); font-size: 12px; color: var(--bone); background: var(--lift); padding: 2px 6px; border-radius: 3px; }
.flow__step.is-active { border-color: var(--signal); color: var(--bone); }
.flow__step.is-active .flow__k { color: var(--signal); }
.flow__step.is-done .flow__k { color: var(--metric); }
.flow__split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; background: none; border: 0; }
.flow__lane { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--panel); border: 1px solid var(--hair); border-radius: 8px; transition: border-color 250ms var(--ease), color 250ms var(--ease); }
.flow__lane .flow__k { width: auto; }
.flow__lane.is-active { border-color: var(--signal); color: var(--bone); }
.flow__lane.is-active .flow__k { color: var(--signal); }

/* Module list */
.h-mods { color: var(--stone); margin: 72px 0 24px; }
.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.mods li { display: grid; gap: 8px; align-content: start; padding: 24px 20px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.mods .ic { color: var(--bone); margin-bottom: 4px; }
.mods b { font-weight: 400; font-size: 16px; letter-spacing: -.01em; }
.mods span { font-size: 14px; line-height: 1.43; color: var(--granite); }

/* Split sections */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split__copy { display: grid; gap: 20px; align-content: start; }
.split--rev .split__copy { order: 2; }
.ticks { display: grid; gap: 14px; margin-top: 8px; }
.ticks li { position: relative; padding-left: 22px; color: var(--granite); font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--stone); }
.ticks b { font-weight: 400; color: var(--bone); }
.ticks--tight { gap: 10px; }

/* Record visual */
.record { background: var(--frame); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 24px; display: grid; gap: 20px; min-width: 0; }
.record__top { display: flex; align-items: center; gap: 14px; }
.record__top div { display: grid; gap: 2px; min-width: 0; }
.record__top b { font-weight: 400; font-size: 18px; }
.record__top div span { color: var(--granite); font-size: 14px; }
.record__top .tag { margin-left: auto; }
.record__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.record__fields div { padding: 12px 14px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: grid; gap: 6px; min-width: 0; }
.record__fields dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--granite); letter-spacing: -.02em; }
.record__fields dd { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.record__rel { display: flex; flex-wrap: wrap; gap: 8px; }
.record__rel span { font-size: 13px; color: var(--granite); padding: 6px 10px; border: 1px solid var(--hair); border-radius: var(--r-sm); }
.record__rel b { font-weight: 400; color: var(--bone); }
.timeline { display: grid; gap: 0; border-left: 1px solid var(--hair); margin-left: 3px; }
.timeline li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 8px 0 8px 18px; font-size: 14px; color: var(--stone); }
.timeline .dot { position: absolute; left: -3.5px; top: 15px; }
.timeline time { font-family: var(--font-mono); font-size: 11px; color: var(--granite); text-transform: uppercase; white-space: nowrap; padding-top: 2px; }

/* Engine columns */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.col { border: 1px solid var(--hair); border-radius: var(--r-md); padding: 24px; display: grid; gap: 18px; align-content: start; }
.list { display: grid; gap: 0; }
.list li { padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 15px; color: var(--stone); }
.list li:last-child { border-bottom: 0; padding-bottom: 0; }

/* Code */
.code { background: var(--frame); border: 1px solid var(--hair); border-radius: var(--r-md); overflow: hidden; min-width: 0; }
.code__bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--hair); }
.code__bar .tag { margin-left: auto; }
.code pre { padding: 20px 24px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.65; color: var(--stone); }
.c-k { color: var(--bone); }
.c-s { color: var(--metric); }
.c-n { color: var(--signal); }
.code__cap { padding: 0 24px 20px; color: var(--granite); text-transform: none; font-size: 12px; line-height: 1.4; }

/* Security cards */
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fcard { border: 1px solid var(--hair); border-radius: var(--r-md); padding: 24px; display: grid; gap: 12px; align-content: start; }
.fcard .ic { color: var(--bone); }
.fcard p { color: var(--granite); font-size: 15px; }

/* Mobile */
.mobile { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-top: 96px; }
.mobile__copy { display: grid; gap: 20px; }
.phone { justify-self: center; width: 300px; max-width: 100%; border: 1px solid var(--stroke); border-radius: 36px; padding: 18px 16px 20px; background: var(--frame); display: grid; gap: 14px; }
.phone__notch { width: 84px; height: 20px; border-radius: 12px; background: var(--lift); margin: 0 auto 4px; }
.phone__h { font-size: 22px; letter-spacing: -.02em; padding: 0 4px; }
.phone__list { display: grid; }
.phone__list li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--hair); }
.phone__list div { display: grid; gap: 2px; min-width: 0; }
.phone__list b { font-weight: 400; font-size: 14px; }
.phone__list div span { font-size: 13px; color: var(--granite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__list .ch { color: var(--granite); }
.phone__list .ch .ic { width: 16px; height: 16px; }
.phone__push { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--stone); padding: 12px; background: var(--lift); border-radius: 12px; }
.phone__push b { font-weight: 500; color: var(--bone); margin-right: 4px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { border-top: 1px solid var(--stroke); padding-top: 20px; display: grid; gap: 12px; align-content: start; }
.steps__n { color: var(--signal); }
.steps p { color: var(--granite); font-size: 15px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; align-items: start; }
.faq__head { display: grid; gap: 20px; position: sticky; top: calc(var(--nav-h) + 32px); }
.faq__list { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 64px; padding: 16px 0; font-size: 17px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 18px; color: var(--stone); flex: none; transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--chalk); }
.faq details p { padding: 0 48px 24px 0; color: var(--granite); font-size: 15px; }

/* CTA light card */
.cta { padding-top: 120px; padding-bottom: 120px; }
.lcard { background: var(--bone); color: var(--ink); border-radius: var(--r-lg); padding: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.lcard .eyebrow { color: var(--ink); }
.lcard__copy { display: grid; gap: 20px; align-content: start; padding-top: 8px; }
.lcard__copy p:not(.eyebrow) { color: var(--mid); max-width: 30em; }
.lcard__list { display: grid; gap: 10px; margin-top: 8px; }
.lcard__list li { position: relative; padding-left: 22px; font-size: 15px; color: var(--mid); }
.lcard__list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 1px; background: var(--ink); }
.lcard__form { background: var(--chalk); border: 1px solid #d9d6d4; border-radius: var(--r-md); padding: 12px; min-width: 0; }
.lcard__form iframe { display: block; width: 100%; height: 800px; border: 0; background: var(--chalk); }

/* Footer */
.footer { border-top: 1px solid var(--hair); padding: 40px 0 56px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer__note { font-size: 14px; color: var(--granite); }
.footer__note:last-child { margin-left: auto; }
.footer__note a { color: var(--stone); text-underline-offset: 3px; }
.footer__note a:hover { color: var(--chalk); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .display { font-size: 60px; }
  .mods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats dd { font-size: 44px; }
  .demo--wide { grid-template-columns: 1fr; }
  .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__end { margin-left: auto; }
  .menu { display: block; }
  .bento { grid-template-columns: 1fr; }
  .split, .mobile, .faq { grid-template-columns: 1fr; gap: 48px; }
  .split--rev .split__copy { order: 0; }
  .faq__head { position: static; }
  .cols3 { grid-template-columns: 1fr; }
  .lcard { grid-template-columns: 1fr; gap: 32px; }
  .app__grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 64px; }
  .display { font-size: 44px; }
  .h2 { font-size: 32px; }
  .h3 { font-size: 22px; }
  .lede { font-size: 17px; }
  .hero { padding: 56px 0 64px; }
  .app { margin-top: 48px; }
  .app__body { grid-template-columns: 1fr; min-height: 0; }
  .app__side { display: none; }
  .app__main { padding: 16px; }
  .kpi { padding: 14px; }
  .kpi__v { font-size: 24px; }
  .facts { gap: 16px 28px; }
  .actions { width: 100%; }
  .actions .btn, .actions .ghost { flex: 1 1 100%; justify-content: center; }
  .demo { padding: 20px; }
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
  .pipe__col { min-height: 150px; }
  .flow__split { grid-template-columns: 1fr; }
  .flow__step, .flow__lane { gap: 10px; padding: 12px; }
  .flow__k { width: auto; min-width: 44px; }
  .mods { grid-template-columns: 1fr; }
  .mods li { padding: 18px 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div { padding: 20px 14px; }
  .stats dd { font-size: 34px; }
  .cards4, .steps { grid-template-columns: 1fr; }
  .record { padding: 16px; }
  .record__fields { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .mobile { margin-top: 64px; }
  .lcard { padding: 24px 16px; border-radius: var(--r-md); }
  .lcard__form { padding: 4px; margin: 0 -8px; }
  .lcard__form iframe { height: 820px; }
  .cta { padding-top: 64px; padding-bottom: 64px; }
  .faq details p { padding-right: 0; }
  .footer__note:last-child { margin-left: 0; }
  .btn { height: 44px; }
}

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