:root {
  --bg: #f6f4ee;
  --bg-elevated: #fffdf8;
  --bg-panel: #fffdf8;
  --text: #1c1c19;
  --muted: #5f5e57;
  --faint: #8a887f;
  --line: rgba(28, 28, 25, 0.12);
  --line-strong: rgba(28, 28, 25, 0.22);
  --accent: #8ec73a;
  --accent-ink: #59831c;
  --accent-text: #14200a;
  --hover: rgba(28, 28, 25, 0.055);
  --radius: 12px;
  --header-h: 64px;
  --gutter: clamp(20px, 3.5vw, 72px);
  --prose: 680px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--accent-ink);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-text);
  padding: 8px 12px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  padding: 0 var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 238, 0.85);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 28px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-item {
  position: relative;
}

.nav-btn,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px;
}

.nav-btn:hover,
.nav-link:hover,
.nav-item.open > .nav-btn {
  color: var(--text);
  background: var(--hover);
}

.nav-btn svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* The nav panel gets its own copy of the CTA once the header bar drops it */
.nav .nav-cta {
  display: none;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}

.mega {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 560px;
  max-width: min(880px, calc(100vw - 2 * var(--gutter)));
  max-height: min(70vh, 560px);
  overflow: auto;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(28, 28, 25, 0.13);
  padding: 16px;
}

.nav-item.open > .mega {
  display: block;
}

.mega-journeys {
  min-width: 320px;
}

.mega h3 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}

.mega-search {
  width: 100%;
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.mega-search:focus {
  outline: 2px solid var(--accent-ink);
  outline-offset: 1px;
}

.app-list,
.journey-list {
  display: grid;
  gap: 2px;
}

.app-list.cols {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.app-row,
.journey-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
}

.app-row:hover,
.journey-row:hover {
  background: var(--hover);
  color: inherit;
}

.app-row .name,
.journey-row .name {
  font-size: 13px;
  color: var(--text);
}

.app-row .blurb,
.journey-row .blurb {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.badge {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.badge.core {
  border-color: rgba(142, 199, 58, 0.55);
  background: rgba(142, 199, 58, 0.14);
  color: var(--accent-ink);
}

.badge.os {
  color: #2f6d9e;
  border-color: rgba(47, 109, 158, 0.32);
  background: rgba(47, 109, 158, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: var(--bg-elevated);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--bg-elevated);
}

.btn-ghost:hover {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* Hero / pages */
main {
  padding-bottom: 80px;
}

.hero {
  padding: 88px 0 56px;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 560;
  max-width: 32ch;
  margin: 0 0 20px;
}

.hero p.lead {
  font-size: clamp(18px, 1.35vw, 22px);
  color: var(--muted);
  max-width: var(--prose);
  margin: 0 0 28px;
}

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

.kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 14px;
  font-weight: 600;
}

section.block {
  padding: 28px 0 8px;
}

section.block h2 {
  font-size: clamp(26px, 1.9vw, 36px);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

section.block > p {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: var(--prose);
}

.grid {
  display: grid;
  gap: 12px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.card {
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 20px;
  color: inherit;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgba(28, 28, 25, 0.07);
  color: inherit;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card .meta {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.steps {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.step:first-child {
  border-top: 0;
}

.step .n {
  color: var(--accent-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--faint);
  font-size: 13px;
  padding: 8px 0 0;
}

.cta-band {
  margin-top: 56px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(800px 240px at 20% 0%, rgba(142, 199, 58, 0.22), transparent 55%),
    var(--bg-elevated);
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.cta-band p {
  color: var(--muted);
  margin: 0 0 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent-ink);
}

.app-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

/* Landing page */
.home-hero {
  padding: 44px 0 38px;
}

.home-hero .kicker {
  margin-bottom: 10px;
}

.home-hero h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(38px, 4.5vw, 80px);
  margin-bottom: 24px;
}

.hero-sub {
  max-width: none;
  margin: 0 0 30px;
  font-size: clamp(22px, 2.35vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 420;
  color: var(--muted);
}

.product-showcase {
  min-height: clamp(620px, 61vw, 920px);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 12%, rgba(142, 199, 58, 0.22), transparent 30%),
    linear-gradient(145deg, #eeece5, #dfddd5);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75);
}

.showcase-window {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(28, 28, 25, 0.2);
  border-radius: 12px;
  background: white;
  box-shadow: 0 26px 70px rgba(28, 28, 25, 0.18);
  color: var(--text);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.showcase-window:hover {
  color: var(--text);
  transform: translateY(-5px);
  box-shadow: 0 32px 80px rgba(28, 28, 25, 0.24);
}

.showcase-dashboard {
  z-index: 1;
  left: 6%;
  top: 7%;
  width: 78%;
}

.showcase-topography {
  z-index: 3;
  right: 5%;
  top: 43%;
  width: 52%;
}

.showcase-crm {
  z-index: 2;
  left: 10%;
  top: 57%;
  width: 48%;
}

.showcase-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.showcase-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbc8bf;
}

.showcase-bar strong {
  margin-left: 5px;
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
}

.showcase-window img {
  display: block;
  width: 100%;
  height: auto;
}

.customer-proof {
  padding: clamp(70px, 8vw, 120px) 0 36px;
}

.customer-proof-head {
  margin-bottom: 24px;
}

.customer-proof-head .kicker {
  margin-bottom: 10px;
}

.customer-proof-head h2 {
  margin: 0;
  font-size: clamp(26px, 2.3vw, 42px);
  letter-spacing: -0.03em;
}

.customer-cascade {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.customer-logo {
  min-width: 0;
  height: clamp(100px, 10vw, 150px);
  display: grid;
  place-items: center start;
  padding: clamp(16px, 2vw, 30px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.55);
}

.customer-logo img {
  display: block;
  width: 100%;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

/* Alternating screenshot / text rows, golden-ratio columns */
.cascade {
  padding: clamp(60px, 8vw, 110px) 0 0;
}

.cascade-head {
  margin-bottom: clamp(24px, 3vw, 44px);
}

.cascade-head .kicker {
  margin-bottom: 10px;
}

.cascade-head h2 {
  margin: 0;
  font-size: clamp(26px, 2.3vw, 42px);
  letter-spacing: -0.03em;
}

.cascade-row {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: clamp(28px, 4.5vw, 88px);
  align-items: center;
  padding: clamp(30px, 4vw, 58px) 0;
  border-top: 1px solid var(--line);
}

.cascade-row.reverse {
  grid-template-columns: 1fr 1.618fr;
}

.cascade-row.reverse .cascade-shot {
  order: 2;
}

.cascade-row.reverse .cascade-text {
  order: 1;
}

.cascade-shot {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elevated);
  box-shadow: 0 18px 44px rgba(28, 28, 25, 0.09);
}

.cascade-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* For marks and mockups that are not wide screenshots */
.cascade-shot.pad {
  display: grid;
  place-items: center;
  padding: clamp(18px, 2.5vw, 44px);
}

.cascade-shot.pad img {
  width: auto;
  max-width: 100%;
  max-height: clamp(240px, 26vw, 420px);
}

.cascade-text {
  min-width: 0;
}

.cascade-text h3 {
  margin: 0 0 12px;
  font-size: clamp(21px, 1.7vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 550;
}

.cascade-text p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: var(--prose);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 550;
  color: var(--accent-ink);
}

.link-arrow::after {
  content: "→";
  transition: transform 160ms ease;
}

.link-arrow:hover {
  color: var(--accent-ink);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.app-catalog {
  padding-top: clamp(60px, 8vw, 110px);
}

.app-category {
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) 1fr;
  gap: clamp(24px, 4vw, 72px);
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.app-category h3 {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.visual-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
}

.visual-app {
  min-width: 0;
  min-height: 150px;
  display: grid;
  place-items: center start;
  align-content: center;
  gap: 12px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.visual-app:hover {
  color: var(--text);
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(28, 28, 25, 0.08);
}

.visual-app img {
  width: 68px;
  height: 68px;
  border-radius: 15px;
  object-fit: cover;
}

.visual-app span {
  font-size: 13px;
  font-weight: 550;
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0 0 calc(170px + clamp(24px, 4vw, 72px));
}

/* Reusable app landing-page components */
.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 22vw);
  gap: clamp(32px, 7vw, 120px);
  align-items: center;
}

.app-mark {
  justify-self: end;
  width: min(100%, 280px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 25% 20%, rgba(142, 199, 58, 0.2), transparent 45%),
    var(--bg-elevated);
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 56px);
  position: relative;
}

.app-mark img {
  width: 100%;
  border-radius: 22%;
}

.app-mark span {
  position: absolute;
  left: 18px;
  bottom: 14px;
  color: var(--faint);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.app-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}

.app-flow li {
  min-width: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  border-left: 1px solid var(--line);
}

.app-flow li:first-child {
  border-left: 0;
}

.app-flow span {
  grid-row: 1 / 3;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.app-flow strong,
.app-flow small {
  display: block;
}

.app-flow small {
  color: var(--muted);
  font-size: 13px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}

.feature {
  background: var(--bg-elevated);
  padding: clamp(20px, 2.2vw, 32px);
  min-height: 220px;
}

.feature-n {
  display: block;
  color: var(--accent-ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 28px;
}

.feature h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.feature ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.feature li {
  position: relative;
  padding-left: 16px;
  margin-top: 7px;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.7fr);
  gap: 12px;
  align-items: stretch;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 12px;
  margin-top: 12px;
}

.media-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}

.media-card > a {
  display: block;
  background: #eef0ee;
}

.media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2.15 / 1;
  object-fit: cover;
  object-position: top left;
}

.media-card figcaption {
  display: grid;
  gap: 3px;
  padding: 14px 16px 16px;
}

.media-card figcaption strong {
  font-size: 14px;
}

.media-card figcaption span {
  color: var(--muted);
  font-size: 13px;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
}

.video-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: white;
  background: #111;
  cursor: pointer;
  position: relative;
}

.video-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.68));
}

.video-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.video-trigger .play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  color: var(--accent-text);
  background: var(--accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
  font-size: 20px;
}

.video-trigger .video-label {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 14px;
  font-size: 13px;
  font-weight: 600;
}

.video-trigger:hover .play {
  transform: translate(-50%, -50%) scale(1.06);
}

.chapters {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 18px;
}

.chapters h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.chapters a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.chapters a:hover {
  color: var(--text);
}

.chapters a span {
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

/* Demo system */
.demo-hero {
  padding-bottom: 44px;
}

.demo-hero h1 {
  max-width: 19ch;
}

.demo-hero .lead {
  max-width: 900px;
}

.demo-safety {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  max-width: 1100px;
  padding: 20px;
  border: 1px solid rgba(142, 199, 58, 0.42);
  border-radius: 14px;
  background: rgba(142, 199, 58, 0.1);
}

.demo-safety-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 750;
}

.demo-safety strong {
  display: block;
  margin-bottom: 4px;
}

.demo-safety p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.demo-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 clamp(40px, 6vw, 80px);
}

.demo-jump a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.demo-jump a:hover {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}

.demo-section {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.portal-card {
  min-width: 0;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.48);
}

.portal-card:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.portal-card-featured {
  background:
    radial-gradient(circle at 10% 5%, rgba(142, 199, 58, 0.2), transparent 45%),
    var(--bg-elevated);
}

.portal-card-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
  color: var(--faint);
  font-size: 12px;
}

.portal-card-top span {
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.portal-card-top small {
  font-size: inherit;
}

.portal-card h3 {
  margin: 0 0 9px;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.03em;
}

.portal-card > p {
  max-width: 560px;
  margin: 0 0 24px;
  color: var(--muted);
}

.portal-url {
  max-width: 100%;
  margin-top: auto;
  overflow: hidden;
  color: var(--faint);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-card .link-arrow {
  margin-top: 12px;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.credential-card {
  min-width: 0;
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elevated);
}

.credential-card-wide {
  grid-column: 1 / -1;
}

.credential-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.credential-head span {
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.credential-head h3 {
  margin: 3px 0 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.credential-head > a {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.credential-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) 1fr auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.credential-row > span {
  color: var(--muted);
}

.credential-value {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
}

.copy-button {
  min-width: 60px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.copy-button:hover,
.copy-button.copied {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}

.demo-source-note {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 12px;
}

.demo-source-note a {
  color: var(--accent-ink);
}

.demo-tour {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.demo-tour li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  padding: clamp(22px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
}

.demo-tour li > span {
  color: var(--accent-ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.demo-tour h3 {
  margin: 0 0 5px;
  font-size: clamp(18px, 1.5vw, 24px);
  letter-spacing: -0.025em;
}

.demo-tour p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.demo-tour a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.demo-docs {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: clamp(34px, 6vw, 110px);
  align-items: start;
  margin: clamp(60px, 9vw, 130px) 0;
  padding: clamp(28px, 5vw, 70px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 5% 0%, rgba(142, 199, 58, 0.2), transparent 38%),
    var(--bg-elevated);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.demo-docs h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.demo-docs div > p:not(.kicker) {
  max-width: 650px;
  margin: 0 0 20px;
  color: var(--muted);
}

.demo-docs ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-docs li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.demo-docs li span {
  color: var(--accent-ink);
  font-size: 12px;
}

.resource-list {
  border-top: 1px solid var(--line);
}

.resource-list a {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.resource-list a:hover {
  color: var(--accent-ink);
}

.resource-list span {
  color: var(--faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.resource-list strong {
  font-size: 15px;
}

.resource-list i {
  font-style: normal;
}

/* Contact / strategy-call funnel */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-intro {
  padding: 44px 0 0;
}

.contact-intro-copy {
  max-width: 1120px;
}

.contact-intro h1,
.funnel-question h1,
.funnel-thanks h1 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 560;
}

.contact-intro .lead {
  max-width: 900px;
  margin: 20px 0 34px;
  color: var(--muted);
  font-size: clamp(18px, 1.35vw, 22px);
}

.contact-video {
  max-width: 1500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #111;
  box-shadow: 0 24px 70px rgba(28, 28, 25, 0.14);
}

.contact-video .video-trigger img {
  object-position: center;
}

.contact-start {
  display: grid;
  grid-template-columns: 1.618fr 1fr;
  gap: clamp(28px, 5vw, 90px);
  align-items: end;
  padding: clamp(48px, 7vw, 100px) 0;
  border-bottom: 1px solid var(--line);
}

.contact-start h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 2.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.contact-start p:not(.kicker) {
  max-width: var(--prose);
  margin: 0;
  color: var(--muted);
}

.contact-start-button {
  justify-self: start;
}

.funnel-shell {
  min-height: calc(100vh - var(--header-h) - 80px);
  padding: clamp(36px, 6vw, 84px) 0;
}

.funnel-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.funnel-logo img {
  display: block;
  width: auto;
  height: 30px;
}

.funnel-progress-copy {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.funnel-progress-copy strong {
  color: var(--accent-ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.funnel-progress {
  height: 3px;
  margin-top: 18px;
  overflow: hidden;
  background: var(--line);
}

.funnel-progress span {
  display: block;
  width: 8%;
  height: 100%;
  background: var(--accent);
  transition: width 240ms ease;
}

.funnel-form {
  width: min(100%, 1300px);
  padding-top: clamp(46px, 7vw, 100px);
}

.funnel-question {
  margin-bottom: 32px;
}

.funnel-question h1 {
  max-width: 18ch;
  font-size: clamp(32px, 4vw, 64px);
  outline: none;
}

.funnel-question > p:not(.kicker) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 20px);
}

.funnel-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.funnel-field {
  display: grid;
  gap: 8px;
}

.funnel-field > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.funnel-field > span > span {
  color: var(--accent-ink);
}

.funnel-field > span small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 450;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.funnel-field input,
.funnel-field select,
.funnel-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.funnel-field input,
.funnel-field select {
  min-height: 56px;
  padding: 0 16px;
}

.funnel-field textarea {
  min-height: 180px;
  padding: 15px 16px;
  resize: vertical;
}

.funnel-field input:focus,
.funnel-field select:focus,
.funnel-field textarea:focus {
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px rgba(142, 199, 58, 0.17);
}

.funnel-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice {
  min-width: 0;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  font-size: 14px;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.choice i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--bg);
}

.choice input[type="radio"] + span i {
  border-radius: 50%;
}

.choice:hover span {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

.choice input:checked + span {
  border-color: var(--accent-ink);
  background: rgba(142, 199, 58, 0.12);
}

.choice input:checked + span i {
  border-color: var(--accent-ink);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--bg-elevated);
}

.funnel-legal {
  max-width: 720px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 24px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 13px;
}

.funnel-legal input {
  margin-top: 3px;
  accent-color: var(--accent-ink);
}

.funnel-legal a,
.funnel-error a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.funnel-error {
  max-width: 720px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #b34832;
  background: rgba(179, 72, 50, 0.08);
  color: #853421;
  font-size: 14px;
}

.funnel-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.funnel-actions .btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.funnel-thanks {
  min-height: calc(100vh - var(--header-h));
  padding: clamp(60px, 9vw, 140px) 0;
}

.funnel-thanks .lead {
  max-width: 820px;
  margin: 22px 0 44px;
  color: var(--muted);
  font-size: clamp(18px, 1.35vw, 22px);
}

.funnel-thanks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 34px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.funnel-thanks-grid > div {
  padding: clamp(20px, 3vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.5);
}

.funnel-thanks-grid span {
  display: block;
  margin-bottom: 22px;
  color: var(--accent-ink);
  font-size: 12px;
}

.funnel-thanks-grid strong {
  display: block;
  margin-bottom: 8px;
}

.funnel-thanks-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .header-cta .btn {
    display: none;
  }

  .nav .nav-cta {
    display: inline-flex;
    margin-top: 10px;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }

  body.nav-open .nav {
    display: flex;
  }

  .mega {
    position: static;
    min-width: 0;
    max-width: none;
    max-height: 50vh;
    box-shadow: none;
    margin-top: 4px;
  }

  .hero {
    padding-top: 48px;
  }

  .step {
    grid-template-columns: 32px 1fr;
  }

  .step .badge {
    grid-column: 2;
  }

  .app-hero {
    grid-template-columns: 1fr;
  }

  .app-mark {
    justify-self: start;
    width: 180px;
  }

  .media-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    padding-top: 30px;
  }

  .home-hero h1 {
    white-space: normal;
  }

  .product-showcase {
    min-height: 0;
    padding: 18px;
    display: grid;
    gap: 14px;
  }

  .showcase-window,
  .showcase-dashboard,
  .showcase-topography,
  .showcase-crm {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .showcase-dashboard {
    order: 1;
  }

  .showcase-topography {
    order: 2;
  }

  .showcase-crm {
    order: 3;
  }

  .customer-cascade {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cascade-row,
  .cascade-row.reverse {
    grid-template-columns: 1fr;
  }

  .cascade-row.reverse .cascade-shot {
    order: 1;
  }

  .cascade-row.reverse .cascade-text {
    order: 2;
  }

  .app-category {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .catalog-actions {
    padding-left: 0;
  }

  .portal-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .credential-card-wide {
    grid-column: auto;
  }

  .demo-docs {
    grid-template-columns: 1fr;
  }

  .contact-start {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .funnel-thanks-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .app-flow {
    grid-template-columns: 1fr;
  }

  .app-flow li,
  .app-flow li:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .app-flow li:first-child {
    border-top: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .customer-cascade {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-safety {
    grid-template-columns: 34px 1fr;
  }

  .demo-safety-mark {
    width: 34px;
    height: 34px;
  }

  .portal-card {
    min-height: 280px;
  }

  .credential-row {
    grid-template-columns: 1fr auto;
  }

  .credential-row > span {
    grid-column: 1 / -1;
  }

  .demo-tour li {
    grid-template-columns: 34px 1fr;
  }

  .demo-tour a {
    grid-column: 2;
    justify-self: start;
  }

  .resource-list a {
    grid-template-columns: 1fr auto;
    gap: 5px 18px;
  }

  .resource-list span {
    grid-column: 1;
  }

  .resource-list strong {
    grid-column: 1;
  }

  .resource-list i {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .contact-intro {
    padding-top: 30px;
  }

  .contact-intro h1,
  .funnel-thanks h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .funnel-top {
    align-items: center;
  }

  .funnel-logo {
    display: none;
  }

  .funnel-progress-copy {
    width: 100%;
    justify-content: space-between;
  }

  .funnel-form {
    padding-top: 46px;
  }

  .funnel-question h1 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .funnel-choices {
    grid-template-columns: 1fr;
  }

  .funnel-actions {
    position: sticky;
    bottom: 0;
    padding: 14px 0;
    background: linear-gradient(transparent, var(--bg) 20%);
  }
}
