/* Focused Scopes — homepage. Tokens only; no colour outside colors.css. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 28px; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; display: block; }

/* 2026-07-17 (Bryce): tighter section rhythm — the token default (up to 200px)
   read as dead air between sections. Homepage-scoped override. */
:root { --section-y: clamp(var(--space-8), 7vw, 112px); }

a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent); }

.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-size: var(--step--1); font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--text-muted); font-style: normal; margin: 0 0 var(--space-4);
}
.section-head { max-width: 62ch; }
.section-head h2 {
  font-size: var(--step-4); font-weight: var(--weight-extrabold);
  line-height: var(--leading-heading); letter-spacing: var(--tracking-display);
  color: var(--text-primary); margin: 0 0 var(--space-4); text-wrap: balance;
}
.section-head p {
  font-size: var(--step-1); color: var(--text-secondary);
  line-height: var(--leading-body); margin: 0; max-width: var(--measure);
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl { color: var(--accent-light); }
section { position: relative; }

/* ---------------------------------------------------------------- Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); padding: var(--space-3) var(--gutter);
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--edge-top);
}
.brand { display: flex; align-items: center; gap: var(--space-3); font-style: normal; }
.brand .logo.logo-wordmark { height: 88px; }
.brand .logo { height: 28px; width: auto; display: block; flex: none;
  filter: drop-shadow(0 0 10px rgba(5,184,179,.35)); }
.brand b { font-size: 15px; font-weight: var(--weight-extrabold); color: var(--text-primary); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: var(--weight-semibold); }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { display: flex; align-items: center; gap: var(--space-3); }

/* Mobile free-roam menu */
.nav-burger { display: none; width: 40px; height: 40px; border: none; cursor: pointer; border-radius: var(--radius);
  background: var(--glass-bg-strong); color: var(--text-primary); box-shadow: var(--ring-subtle);
  place-items: center; }
.nav-burger svg { width: 19px; height: 19px; }
.nav-menu { position: fixed; top: 0; left: 0; right: 0; z-index: 59; padding: 76px var(--gutter) var(--space-5);
  display: none; flex-direction: column; gap: 2px;
  background: var(--glass-bg-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border); box-shadow: var(--elev-4); }
.nav-menu.open { display: flex; }
.nav-menu a { padding: 12px var(--space-3); border-radius: var(--radius); font-size: 15px;
  font-weight: var(--weight-semibold); color: var(--text-secondary); }
.nav-menu a:hover { color: var(--text-primary); background: var(--accent-dim); }
.nav-menu .menu-cta { margin-top: var(--space-3); text-align: center; }

.btn {
  font-family: inherit; font-style: italic; font-weight: var(--weight-bold);
  font-size: 14px; border-radius: var(--radius); border: none; cursor: pointer;
  padding: 11px 20px; transition: transform var(--dur) var(--ease-out-expo), box-shadow var(--dur) var(--ease-out-expo);
}
.btn-primary { background: var(--grad); color: var(--bg-deep); box-shadow: var(--glow); }
.btn-primary:hover { transform: var(--lift); box-shadow: var(--elev-3), var(--glow); }
.btn-ghost { background: transparent; color: var(--text-primary); box-shadow: var(--ring-subtle); }
.btn-ghost:hover { transform: var(--lift); box-shadow: var(--ring-accent); }
.btn-lg { padding: 15px 30px; font-size: 15px; }

/* ---------------------------------------------------------------- Hero */
.hero { padding-top: calc(var(--space-11) + var(--space-5)); padding-bottom: var(--section-y); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--spotlight); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--vignette); pointer-events: none; opacity: .5; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); align-items: center; }
.hero-lock { display: inline-flex; align-items: center; gap: var(--space-3);
  margin: calc(var(--space-4) * -1) 0 var(--space-3) calc(var(--space-4) * -1);
  filter: drop-shadow(0 0 26px rgba(5,184,179,.42)) drop-shadow(0 0 64px rgba(5,184,179,.15)); }
.hero-logo { height: 168px; width: auto; display: block; flex: none; }
@media (max-width: 620px) { .hero-logo { height: 120px; } }
.hero-word { font-size: var(--step-2); font-weight: var(--weight-extrabold); font-style: normal;
  letter-spacing: -0.02em; color: var(--text-primary); }

.persona-switch {
  display: inline-flex; gap: 4px; padding: 5px; margin-bottom: var(--space-6);
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill); box-shadow: var(--ring-subtle);
}
.persona-switch button {
  font-family: inherit; font-style: normal; font-weight: var(--weight-bold);
  font-size: 12.5px; letter-spacing: 0.01em; cursor: pointer; border: none;
  padding: 8px 16px; border-radius: var(--radius-pill); color: var(--text-secondary);
  background: transparent; transition: color var(--dur) var(--ease-out-expo), background var(--dur) var(--ease-out-expo);
}
.persona-switch button:hover { color: var(--text-primary); }
.persona-switch button[aria-pressed="true"] { background: var(--grad); color: var(--bg-deep); box-shadow: var(--elev-2); }

.hero h1 {
  font-size: var(--step-6); font-weight: var(--weight-black);
  line-height: var(--leading-display); letter-spacing: var(--tracking-display);
  color: var(--text-primary); margin: 0 0 var(--space-5); text-wrap: balance;
}
.hero .lede {
  font-size: var(--step-1); color: var(--text-secondary);
  line-height: var(--leading-body); margin: 0 0 var(--space-6); max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.hero-note { font-size: 13px; color: var(--text-muted); font-style: normal; margin: var(--space-5) 0 0; }
.hero-note b { color: var(--accent); font-weight: var(--weight-bold); }
[data-persona-content] { display: none; }
[data-persona-content].is-active { display: block; }

.hero-stage { position: relative; }
[data-persona-screen] { display: none; }
[data-persona-screen].is-active { display: block; }

/* ---------------------------------------------------------------- App window chrome */
.app {
  position: relative; background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  box-shadow: var(--elev-4), var(--edge-top); overflow: hidden;
}
.app::before { content: ""; position: absolute; inset: 0; background: var(--glass-highlight); pointer-events: none; z-index: 5; }
.app-shot { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; border-radius: inherit; }

/* Phone mockup — identical across all six rail acts */
.phone { position: relative; width: 300px; max-width: 100%; margin-inline: auto; aspect-ratio: 626 / 895;
  padding: 12px; border-radius: 42px; background: var(--bg-elevated);
  box-shadow: var(--elev-4), var(--edge-top); }
.phone::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: var(--ring-accent); pointer-events: none; z-index: 3; }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 6px; border-radius: var(--radius-pill); background: rgba(1,24,32,.55); z-index: 4; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden;
  background: var(--bg-deep); box-shadow: inset 0 0 0 1px var(--glass-border); }
.phone-screen .app-shot { object-position: top; }
.app-bar {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 11px var(--space-4); border-bottom: 1px solid var(--border-subtle);
  background: rgba(1,24,32,0.35);
}
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; box-shadow: var(--ring-subtle); background: var(--bg-elevated); }
.app-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-style: normal; color: var(--text-muted);
  padding: 6px 10px; border-radius: var(--radius-sm); background: rgba(2,55,69,0.6);
  box-shadow: var(--ring-subtle);
}
.app-search kbd {
  font-family: inherit; font-style: normal; font-size: 10px; font-weight: var(--weight-bold);
  padding: 1px 6px; border-radius: 5px; color: var(--text-secondary);
  background: var(--bg-card); box-shadow: var(--ring-subtle);
}
.app-body { display: grid; grid-template-columns: 168px 1fr; }
.app-side {
  padding: var(--space-4) var(--space-3); border-right: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; gap: 2px; background: rgba(1,24,32,0.25);
}
.app-side .grp { font-size: 9.5px; font-style: normal; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--text-muted); font-weight: var(--weight-bold); margin: var(--space-3) 8px 4px; }
.app-side .nav-item {
  display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--text-secondary); font-weight: var(--weight-semibold);
}
.app-side .nav-item svg { width: 15px; height: 15px; flex: none; opacity: .8; }
.app-side .nav-item.on { background: var(--accent-dim); color: var(--accent-light); box-shadow: var(--ring-subtle); }
.app-side .nav-item.on svg { opacity: 1; }
.app-main { padding: var(--space-5); min-width: 0; }
.app-title { font-size: 16px; font-weight: var(--weight-extrabold); color: var(--text-primary); margin: 0 0 3px; }
.app-title span { color: var(--text-secondary); font-weight: var(--weight-medium); }
.app-sub { font-size: 11.5px; color: var(--text-muted); font-style: normal; margin: 0 0 var(--space-4); }
.app-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-style: normal;
  font-weight: var(--weight-bold); color: var(--accent-light); padding: 3px 9px;
  border-radius: var(--radius-pill); background: var(--accent-dim); box-shadow: var(--ring-subtle);
}

/* Stat tiles */
.tile-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.tile {
  background: var(--bg-card); border-radius: var(--radius); padding: var(--space-4);
  box-shadow: var(--elev-1); border-top: 2px solid var(--accent); position: relative;
}
.tile.amber { border-top-color: var(--amber); }
.tile .k { font-size: 10px; font-style: normal; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); font-weight: var(--weight-bold); margin: 0 0 8px; }
.tile .v { font-size: var(--step-2); font-weight: var(--weight-extrabold); color: var(--text-primary); line-height: 1; }
.tile .d { font-size: 10.5px; font-style: normal; color: var(--text-secondary); margin-top: 6px; }
.tile .d.up { color: var(--green); }
.tile .d.warn { color: var(--amber); }

/* Action queue */
.queue { display: flex; flex-direction: column; gap: var(--space-3); }
.q-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: center;
  background: var(--bg-card); border-radius: var(--radius); padding: var(--space-3) var(--space-4);
  box-shadow: var(--elev-1);
}
.q-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent-light); box-shadow: var(--ring-subtle); }
.q-ico svg { width: 15px; height: 15px; }
.q-ico.red { background: var(--red-dim); color: var(--red); }
.q-ico.amber { background: var(--gold-dim); color: var(--amber); }
.q-row b { display: block; font-size: 13px; font-weight: var(--weight-bold); color: var(--text-primary); }
.q-row .meta { font-size: 10.5px; font-style: normal; color: var(--text-muted); margin-top: 2px; }
.q-row .addr { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.q-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pill {
  font-size: 10px; font-style: normal; font-weight: var(--weight-bold); padding: 3px 9px;
  border-radius: var(--radius-pill); color: var(--accent-light); background: var(--accent-dim); box-shadow: var(--ring-subtle);
}
.pill.amber { color: var(--amber); background: var(--gold-dim); }
.pill.red { color: var(--red); background: var(--red-dim); }
.pill.green { color: var(--green); background: var(--green-dim); }
.q-btn { font-family: inherit; font-style: italic; font-size: 11.5px; font-weight: var(--weight-bold);
  padding: 6px 13px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  background: var(--accent-dim); color: var(--accent-light); box-shadow: var(--ring-subtle); }

.summary-line { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 var(--space-4); }
.summary-line b { color: var(--text-primary); font-weight: var(--weight-bold); font-style: normal; }

/* ---------------------------------------------------------------- Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: var(--space-3); }
.kcol { min-width: 0; }
.kcol-head { display: flex; align-items: center; gap: 7px; margin-bottom: var(--space-3); }
.kcol-head b { font-size: 11.5px; font-weight: var(--weight-bold); color: var(--text-secondary); font-style: normal; }
.kcol-head .n { font-size: 10px; font-style: normal; font-weight: var(--weight-bold); color: var(--text-muted);
  padding: 1px 7px; border-radius: var(--radius-pill); background: var(--bg-card); box-shadow: var(--ring-subtle); }
.kcol-head .dotc { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.kcards { display: flex; flex-direction: column; gap: var(--space-2); }
.kcard {
  background: var(--bg-card); border-radius: var(--radius-sm); padding: 10px 11px;
  box-shadow: var(--elev-1); border-left: 2px solid var(--accent-dim);
}
.kcard.accent { border-left-color: var(--accent); }
.kcard b { font-size: 11.5px; font-weight: var(--weight-bold); color: var(--text-primary); }
.kcard .sub { font-size: 10px; font-style: normal; color: var(--text-muted); margin-top: 3px; display: flex; gap: 6px; align-items: center; }
.kbar { height: 3px; border-radius: var(--radius-pill); background: rgba(5,184,179,.12); overflow: hidden; margin-top: 7px; }
.kbar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.ghost { opacity: .55; }

/* ---------------------------------------------------------------- Six acts / pinned rail */
.acts { padding-block: var(--section-y); }
.acts .wrap { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-8); align-items: start; }
.rail-pin { position: sticky; top: calc(var(--space-8) + var(--space-4)); }
.track { height: 3px; border-radius: var(--radius-pill); background: rgba(5,184,179,.14); overflow: hidden; margin: var(--space-5) 0 var(--space-6); }
.track [data-progress] { display: block; height: 100%; background: var(--grad); border-radius: inherit; transform-origin: left center; }
.acts-list { display: flex; flex-direction: column; gap: 2px; }
.act-item { display: grid; grid-template-columns: 34px 1fr; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius); }
.act-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: var(--weight-extrabold); font-style: normal; color: var(--text-secondary);
  background: var(--bg-card); box-shadow: var(--ring-accent); }
.act-item b { font-size: 14px; color: var(--text-primary); font-weight: var(--weight-bold); }
.act-item .stage { font-size: 11px; font-style: normal; color: var(--accent); font-weight: var(--weight-semibold); }
.act-item .cap { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.5; }

.acts-detail { display: flex; flex-direction: column; gap: var(--space-6); }
.plane-cap { font-size: 12px; color: var(--text-muted); font-style: normal; margin: var(--space-4) 0 0; }

/* ---------------------------------------------------------------- Punch */
.punch { padding-block: var(--section-y); }
.punch::before { content: ""; position: absolute; inset: 0; background: var(--aurora); pointer-events: none; }
.punch .wrap { position: relative; z-index: 1; }
.punch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-5); }
.pcard {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: var(--space-5);
  box-shadow: var(--elev-2); position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease-out-expo), box-shadow var(--dur) var(--ease-out-expo);
}
.pcard:hover { transform: var(--lift); box-shadow: var(--elev-3); }
.pcard .step { font-size: 11px; font-style: normal; font-weight: var(--weight-extrabold); color: var(--accent);
  letter-spacing: var(--tracking-eyebrow); }
.pcard .state { font-size: var(--step-1); font-weight: var(--weight-extrabold); color: var(--text-primary); margin: var(--space-2) 0 var(--space-3); }
.pcard p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.55; margin: 0 0 var(--space-4); }
.owner { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-style: normal; color: var(--text-muted); }
.owner .av { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-dim); color: var(--accent-light);
  display: grid; place-items: center; font-size: 9.5px; font-weight: var(--weight-bold); box-shadow: var(--ring-subtle); }
.owner b { color: var(--text-secondary); font-weight: var(--weight-bold); }

/* ---------------------------------------------------------------- Halo / Add-ons */
.halo { padding-block: var(--section-y); }
.halo.addons::before { content: ""; position: absolute; inset: 0; background: var(--aurora); pointer-events: none; z-index: 0; }
.addon-tag { align-self: flex-start; font-size: 10px; font-style: normal; font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--accent-light);
  padding: 3px 9px; border-radius: var(--radius-pill); background: var(--accent-dim); box-shadow: var(--ring-subtle); }
.halo .hub-note { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-5);
  font-size: 12.5px; font-style: normal; color: var(--text-secondary); }
.halo .hub-note svg { width: 16px; height: 16px; color: var(--accent); }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); margin-top: var(--space-6); }
.pillar { display: grid; gap: var(--space-4); border-radius: var(--radius-xl); padding: var(--space-4);
  transition: box-shadow var(--dur) var(--ease-out-expo), background var(--dur) var(--ease-out-expo); }
/* Function-story highlight: the pillar matching the hero toggle glows. */
.pillar.story-hl { background: var(--glass-bg); box-shadow: var(--ring-accent), var(--elev-2); }
.pillar.story-hl .addon-tag { color: var(--bg-deep); background: var(--grad); box-shadow: var(--elev-1); }
.pillar-copy { display: flex; flex-direction: column; gap: var(--space-2); }
.pillar-copy .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-dim);
  color: var(--accent-light); display: grid; place-items: center; box-shadow: var(--ring-subtle); margin-bottom: 4px; }
.pillar-copy .ic svg { width: 20px; height: 20px; }
.pillar-copy h3 { font-size: var(--step-1); font-weight: var(--weight-extrabold); color: var(--text-primary); margin: 0; }
.pillar-copy p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin: 0; max-width: 42ch; }
.pillar-copy .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pillar-copy .tags span { font-size: 10.5px; font-style: normal; color: var(--text-muted);
  padding: 3px 9px; border-radius: var(--radius-pill); background: var(--bg-card); box-shadow: var(--ring-subtle); }

/* module grid for accounting */
.modgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mod { background: var(--bg-card); border-radius: var(--radius-sm); padding: 11px; box-shadow: var(--elev-1); }
.mod .mi { width: 26px; height: 26px; border-radius: 7px; background: var(--accent-dim); color: var(--accent-light);
  display: grid; place-items: center; box-shadow: var(--ring-subtle); margin-bottom: 8px; }
.mod .mi svg { width: 14px; height: 14px; }
.mod b { font-size: 11.5px; font-weight: var(--weight-bold); color: var(--text-primary); display: block; }
.mod small { font-size: 10px; font-style: normal; color: var(--text-muted); line-height: 1.4; display: block; margin-top: 2px; }
.mod.hot { box-shadow: var(--elev-2); border: 1px solid var(--glass-border); }

/* properties + maintenance + tenant ops helpers */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-4); }
.chips span { font-size: 10.5px; font-style: normal; color: var(--text-secondary); padding: 4px 11px;
  border-radius: var(--radius-pill); background: var(--bg-card); box-shadow: var(--ring-subtle); }
.chips span.on { color: var(--accent-light); background: var(--accent-dim); box-shadow: var(--ring-accent); }
.prop-list { display: flex; flex-direction: column; gap: var(--space-2); }
.prop { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  background: var(--bg-card); border-radius: var(--radius); padding: var(--space-3) var(--space-4); box-shadow: var(--elev-1); }
.prop b { font-size: 12.5px; color: var(--text-primary); font-weight: var(--weight-bold); }
.prop small { font-size: 10.5px; font-style: normal; color: var(--text-muted); }
.alert-row { display: grid; grid-template-columns: 4px 1fr auto; gap: var(--space-3); align-items: center;
  background: var(--bg-card); border-radius: var(--radius); padding: var(--space-3) var(--space-4);
  box-shadow: var(--elev-1); margin-bottom: 8px; }
.alert-row .bar { width: 4px; height: 34px; border-radius: var(--radius-pill); background: var(--red); }
.alert-row.amber .bar { background: var(--amber); }
.alert-row b { font-size: 12.5px; color: var(--text-primary); font-weight: var(--weight-bold); }
.alert-row small { font-size: 10.5px; font-style: normal; color: var(--text-muted); display: block; margin-top: 1px; }
.wf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: var(--space-4); }
.wf { background: var(--bg-card); border-radius: var(--radius-sm); padding: 12px 11px; box-shadow: var(--elev-1);
  display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--text-secondary); font-weight: var(--weight-semibold); }
.wf svg { width: 15px; height: 15px; color: var(--accent-light); flex: none; }
.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: var(--radius-pill); background: var(--bg-card); box-shadow: var(--ring-subtle); margin-bottom: var(--space-3); }
.seg span { font-size: 10.5px; font-style: normal; font-weight: var(--weight-bold); padding: 5px 12px; border-radius: var(--radius-pill); color: var(--text-muted); }
.seg span.on { background: var(--accent-dim); color: var(--accent-light); }
.tabs { display: flex; gap: var(--space-4); border-bottom: 1px solid var(--border-subtle); margin-bottom: var(--space-4); }
.tabs span { font-size: 12px; font-style: normal; font-weight: var(--weight-bold); color: var(--text-muted); padding-bottom: 9px; }
.tabs span.on { color: var(--accent-light); box-shadow: inset 0 -2px 0 var(--accent); }
.insp-list { display: flex; flex-direction: column; gap: var(--space-2); }
.insp { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); align-items: center;
  background: var(--bg-card); border-radius: var(--radius); padding: var(--space-3) var(--space-4); box-shadow: var(--elev-1); }
.insp b { font-size: 12px; color: var(--text-primary); font-weight: var(--weight-bold); }
.insp small { font-size: 10px; font-style: normal; color: var(--text-muted); display: block; margin-top: 2px; }

/* ---------------------------------------------------------------- Proof */
.proof { padding-block: var(--section-y); }
.proof .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-8); align-items: center; }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-5); }
.metric { background: var(--bg-card); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--elev-2); }
.metric .v { font-size: var(--step-3); font-weight: var(--weight-black); color: var(--text-primary); line-height: 1; }
.metric .v span { -webkit-background-clip: text; background-clip: text; }
.metric .l { font-size: 12px; color: var(--text-secondary); margin-top: 8px; line-height: 1.45; }

/* ---------------------------------------------------------------- Pricing + CTA */
.pricing { padding-block: var(--section-y); }
.pricing .wrap { position: relative; z-index: 1; }
.price-card {
  max-width: 720px; margin-inline: auto; text-align: center;
  background: var(--glass-bg-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-xl); padding: var(--space-9) var(--space-7);
  box-shadow: var(--elev-4), var(--edge-top); position: relative; overflow: hidden;
}
.price-card::before { content: ""; position: absolute; inset: 0; background: var(--glass-highlight); pointer-events: none; }
.price-card::after { content: ""; position: absolute; inset: 0; background: var(--spotlight); pointer-events: none; }
.price-card > * { position: relative; z-index: 1; }
.price-card h2 { font-size: var(--step-3); font-weight: var(--weight-extrabold); color: var(--text-primary); margin: 0 0 var(--space-4); letter-spacing: var(--tracking-display); }
.price-card p { font-size: var(--step-0); color: var(--text-secondary); line-height: var(--leading-body); margin: 0 auto var(--space-6); max-width: 48ch; }
.price-points { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-bottom: var(--space-7); }
.price-points span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-secondary); font-style: normal; }
.price-points svg { width: 15px; height: 15px; color: var(--accent); }

/* Pricing table */
.price-head { max-width: none; text-align: center; margin-inline: auto; margin-bottom: var(--space-6); }
.price-head h2 { font-size: var(--step-4); font-weight: var(--weight-extrabold); color: var(--text-primary); margin: 0 0 var(--space-4); letter-spacing: var(--tracking-display); }
.price-head > p { font-size: var(--step-0); color: var(--text-secondary); line-height: var(--leading-body); margin: 0 auto; max-width: 52ch; }
.bill-switch { display: inline-flex; gap: 4px; padding: 5px; margin-top: var(--space-6);
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border); border-radius: var(--radius-pill); box-shadow: var(--ring-subtle); }
.bill-switch button { font-family: inherit; font-style: normal; font-weight: var(--weight-bold); font-size: 13px;
  cursor: pointer; border: none; padding: 9px 18px; border-radius: var(--radius-pill); color: var(--text-secondary);
  background: transparent; transition: color var(--dur) var(--ease-out-expo), background var(--dur) var(--ease-out-expo); }
.bill-switch button:hover { color: var(--text-primary); }
.bill-switch button[aria-pressed="true"] { background: var(--grad); color: var(--bg-deep); box-shadow: var(--elev-2); }
.bill-switch em { font-style: normal; font-size: 10.5px; font-weight: var(--weight-bold); letter-spacing: .02em; opacity: .85; margin-left: 5px; }

.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--glass-bg); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: var(--space-5);
  box-shadow: var(--elev-2), var(--edge-top);
  transition: transform var(--dur) var(--ease-out-expo), box-shadow var(--dur) var(--ease-out-expo);
}
.tier:hover { transform: var(--lift); box-shadow: var(--elev-3), var(--edge-top); }
.tier.featured { background: var(--glass-bg-strong); box-shadow: var(--elev-4), var(--glow), var(--edge-top); }
.tier-badge { position: absolute; top: 0; right: var(--space-5); transform: translateY(-50%);
  font-size: 10px; font-style: normal; font-weight: var(--weight-extrabold); letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--bg-deep); background: var(--grad); padding: 4px 11px;
  border-radius: var(--radius-pill); box-shadow: var(--elev-2); }
.tier-name { font-size: var(--step-1); font-weight: var(--weight-extrabold); color: var(--text-primary); margin: 0; }
.tier-for { font-size: 12px; color: var(--text-muted); margin: 0; }
.tier-price { display: flex; align-items: baseline; gap: 4px; margin: var(--space-2) 0 0; }
.tier-price .amt { font-size: var(--step-4); font-weight: var(--weight-black); color: var(--text-primary); font-style: normal; line-height: 1; letter-spacing: var(--tracking-display); }
.tier-price .per { font-size: 13px; color: var(--text-muted); font-style: normal; }
.tier-bill { font-size: 11px; font-style: normal; color: var(--text-muted); margin: 0; min-height: 1.2em; }
.tier-cta { text-align: center; margin: var(--space-2) 0; }
.tier-feats { list-style: none; margin: 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tier-feats li { position: relative; padding-left: 24px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.4; }
.tier-feats li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-dim); box-shadow: var(--ring-subtle);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
  background: var(--accent); }
.tier-addons { margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.ao-label { font-size: 9.5px; font-style: normal; font-weight: var(--weight-bold); letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }
.ao-grid { display: grid; grid-template-columns: 1fr auto; gap: 5px var(--space-3); }
.ao-grid span { font-size: 11px; color: var(--text-secondary); }
.ao-grid b { font-size: 11px; font-style: normal; font-weight: var(--weight-bold); color: var(--accent-light); text-align: right; }
.tiers-note { display: flex; align-items: center; justify-content: center; gap: 9px; margin: var(--space-7) auto 0;
  font-size: 13px; color: var(--text-secondary); text-align: center; }
.tiers-note svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

@media (max-width: 980px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } .bill-switch { width: 100%; } .bill-switch button { flex: 1; } }

.cta { padding-block: var(--section-y); text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0; background: var(--spotlight); pointer-events: none; }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { font-size: var(--step-5); font-weight: var(--weight-black); color: var(--text-primary);
  line-height: var(--leading-display); letter-spacing: var(--tracking-display); margin: 0 auto var(--space-5); max-width: 16ch; text-wrap: balance; }
.cta p { font-size: var(--step-1); color: var(--text-secondary); margin: 0 auto var(--space-7); max-width: 44ch; }
.cta-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Footer */
.foot { border-top: 1px solid var(--border-subtle); padding: var(--space-7) 0; }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
.foot small { font-size: 12px; font-style: normal; color: var(--text-muted); }
.foot .links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.foot .links a { font-size: 12px; color: var(--text-secondary); }

.fog-sep { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: var(--fog); pointer-events: none; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: var(--space-7); }
  .acts .wrap { grid-template-columns: 1fr; }
  .rail-pin { position: static; }
  .proof .wrap { grid-template-columns: 1fr; }
  .punch-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: grid; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: var(--step-5); }
  .persona-switch { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .persona-switch button { flex: 1 1 30%; padding: 9px 4px; font-size: 11.5px; }
  .tile-row { grid-template-columns: repeat(2, 1fr); }
  .punch-grid { grid-template-columns: 1fr; }
  .modgrid { grid-template-columns: repeat(2, 1fr); }
  .wf-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .app-body { grid-template-columns: 1fr; }
  .app-side { flex-direction: row; flex-wrap: wrap; gap: 6px; border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .app-side .grp { display: none; }
  .app-side .nav-item { padding: 6px 9px; }
  .app-side .nav-item span { display: none; }
  .app-search { display: none; }
  .kanban { grid-auto-columns: 78%; overflow-x: auto; padding-bottom: var(--space-3); scroll-snap-type: x proximity; }
  .kcol { scroll-snap-align: start; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr; }
}

/* ================================================================ Section rhythm
   Alternate the base tone down the page and blend edges with --fog so no two
   neighbours share a look and none meet at a hard line. The tone is a masked
   --bg-primary wash that fades into the --bg-deep floor top and bottom. */
.tone-primary { position: relative; isolation: isolate; }
.tone-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg-primary); pointer-events: none;
  -webkit-mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.tone-primary > .wrap { position: relative; z-index: 1; }
/* Fog seam: the section above fades down into the floor before the next rises. */
.blend-bottom::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  background: var(--fog); pointer-events: none; z-index: 0; }

/* ================================================================ Horizontal step-rail
   Base / mobile / no-timeline: a native horizontal swipe strip that snaps to each
   act — thumb-friendly, never scroll-jacked. This is also the universal fallback. */
.acts .wrap { display: block; }
.rail-head { max-width: 62ch; margin-bottom: var(--space-5); }
[data-rail] { position: relative; }
[data-rail-view] {
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
[data-rail-view]::-webkit-scrollbar { display: none; }
[data-rail-track] { display: flex; gap: var(--space-5); padding-inline: var(--gutter); }
.act-slide { flex: 0 0 86%; scroll-snap-align: center; min-width: 0; }
.rail-progress { display: none; }

.act-slide-inner {
  display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: center;
  background: var(--bg-card); border-radius: var(--radius-xl); padding: var(--space-6);
  box-shadow: var(--elev-2); height: 100%;
}
.act-copy .act-big { font-size: var(--step-5); font-weight: var(--weight-black); font-style: normal;
  line-height: 1; color: var(--accent); letter-spacing: var(--tracking-display); }
.act-copy .act-name { font-size: var(--step-3); font-weight: var(--weight-extrabold); color: var(--text-primary);
  margin: var(--space-2) 0 4px; letter-spacing: var(--tracking-display); }
.act-copy .act-stage { font-size: var(--step--1); font-style: normal; font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--text-muted); margin: 0 0 var(--space-4); }
.act-copy .act-desc { font-size: var(--step-0); color: var(--text-secondary); line-height: var(--leading-body); margin: 0 0 var(--space-4); max-width: 42ch; }
.act-caps { display: flex; flex-wrap: wrap; gap: 7px; }
.act-caps span { font-size: 11px; font-style: normal; color: var(--text-secondary); padding: 5px 11px;
  border-radius: var(--radius-pill); background: var(--bg-elevated); box-shadow: var(--ring-subtle); }

/* the one scope card, evolving through the six states */
.scard {
  position: relative; overflow: hidden;
  background: var(--glass-bg-strong); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: var(--space-5);
  box-shadow: var(--elev-4), var(--edge-top);
}
.scard::before { content: ""; position: absolute; inset: 0; background: var(--glass-highlight); pointer-events: none; }
.scard-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.scard-row .unit { font-size: var(--step-1); font-weight: var(--weight-extrabold); color: var(--text-primary); }
.scard .stagepill { font-size: 10.5px; font-style: normal; font-weight: var(--weight-bold); padding: 4px 11px;
  border-radius: var(--radius-pill); color: var(--accent-light); background: var(--accent-dim); box-shadow: var(--ring-subtle); white-space: nowrap; }
.scard .bar { height: 5px; border-radius: var(--radius-pill); background: rgba(5,184,179,.14); overflow: hidden; }
.scard .bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.scard .meta { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-4); font-size: 11.5px; color: var(--text-secondary); }
.scard .meta b { color: var(--text-primary); font-weight: var(--weight-bold); font-style: normal; }

/* Desktop pinned rail — the scrub is driven by JS (a pure function of scrollY,
   so backward scrolling always mirrors forward; the CSS scroll-timeline version
   sat frozen on the last act in real browsers). JS adds .rail-js only on
   desktop widths without reduced-motion; every other case keeps the native
   horizontal swipe strip above. */
@media (min-width: 900px) {
  /* Kill the token-level scroll-timeline rail (motion.css): it composes its own
     transform on top of the JS scrub and freezes on the last act in real
     browsers. Without JS the view must also fall back to the swipe strip
     instead of the token's sticky pin (which would trap act 1 on screen). */
  [data-rail] [data-rail-track] { animation: none; }
  [data-rail]:not(.rail-js) [data-rail-view] {
    position: static; height: auto; overflow-x: auto; overflow-y: hidden; display: block;
  }
  [data-rail].rail-js { height: 480vh; }
  [data-rail].rail-js [data-rail-view] {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: grid; align-content: center; scroll-snap-type: none;
  }
  [data-rail].rail-js [data-rail-track] {
    width: max-content; gap: 0; padding-inline: 0; align-items: center; will-change: transform;
  }
  [data-rail].rail-js .act-slide { flex: 0 0 100vw; width: 100vw; padding-inline: var(--gutter); scroll-snap-align: none; }
  [data-rail].rail-js .act-slide-inner {
    grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8);
    max-width: var(--container); margin-inline: auto; padding: var(--space-8);
    background: transparent; box-shadow: none;
  }
  [data-rail].rail-js .act-copy .act-big { font-size: var(--step-6); }
  [data-rail].rail-js .rail-progress {
    display: flex; align-items: center; gap: var(--space-4);
    position: absolute; left: 50%; transform: translateX(-50%); bottom: var(--space-8); z-index: 3;
    width: min(var(--container), calc(100% - 2 * var(--gutter)));
  }
  [data-rail].rail-js .rail-progress .track { flex: 1; height: 3px; margin: 0; border-radius: var(--radius-pill);
    background: rgba(5,184,179,.14); overflow: hidden; }
  [data-rail].rail-js .rail-progress .track i { display: block; height: 100%; width: 100%; background: var(--grad);
    border-radius: inherit; transform-origin: left center; transform: scaleX(0); }
  [data-rail].rail-js .rail-progress .lbl { font-size: var(--step--1); font-style: normal; font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
}

@media (max-width: 620px) {
  .act-slide { flex: 0 0 90%; }
  .act-copy .act-big { font-size: var(--step-4); }
  .act-copy .act-name { font-size: var(--step-2); }
}
