/* ===== RelayMoor Landing — Openference Editorial System ===== */

:root[data-theme="light"] {
  color-scheme: light;
  --background: #f9f8f6;
  --foreground: #1c1b19;
  --card: #ffffff;
  --secondary: #f4f3f1;
  --muted: #f4f3f1;
  --muted-foreground: #5d5a53;
  --faint: #6b675f;
  --accent: #f0efec;
  --primary: #5c74b8;
  --primary-hover: #4f67ab;
  --primary-foreground: #ffffff;
  --primary-ink: #465c9e;
  --border: #ddd9d2;
  --border-strong: #c9c4ba;
  --band-tint: #f2f0eb;
  --terminal-bg: #17150f;
  --terminal-fg: #d6efe4;
  --cta-bg: #1c1b19;
  --cta-fg: #ffffff;
  --mark: #7d94d9;
  --mark-ink: #14130f;
  --stage-bg: linear-gradient(155deg, #dfe6f7 0%, #c6d3f1 42%, #9eb3e6 100%);
  --stage-hill-1: rgba(92, 116, 184, 0.22);
  --stage-hill-2: rgba(70, 92, 158, 0.28);
  --window-shadow: 0 2px 4px rgba(24,30,60,.06), 0 24px 48px -16px rgba(24,30,60,.24), 0 56px 112px -32px rgba(24,30,60,.28);
  --lift-shadow: 0 1px 2px rgba(28,27,25,.05), 0 6px 18px -8px rgba(28,27,25,.1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #181715;
  --foreground: #ece8e1;
  --card: #211f1c;
  --secondary: #292621;
  --muted: #292621;
  --muted-foreground: #a39d92;
  --faint: #958f83;
  --accent: #37332e;
  --primary: #7d94d9;
  --primary-hover: #93a8e6;
  --primary-foreground: #14130f;
  --primary-ink: #9db1e8;
  --border: #37332e;
  --border-strong: #4a453e;
  --band-tint: #1d1b18;
  --terminal-bg: #12100d;
  --terminal-fg: #d6efe4;
  --cta-bg: #ece8e1;
  --cta-fg: #181715;
  --mark: #7d94d9;
  --mark-ink: #14130f;
  --stage-bg: linear-gradient(155deg, #252b3b 0%, #2d3855 48%, #3c4d78 100%);
  --stage-hill-1: rgba(125, 148, 217, 0.14);
  --stage-hill-2: rgba(125, 148, 217, 0.22);
  --window-shadow: 0 2px 4px rgba(0,0,0,.35), 0 28px 56px -16px rgba(0,0,0,.6), 0 64px 120px -32px rgba(0,0,0,.6);
  --lift-shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 20px -8px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--background);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Google Sans", "Product Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  line-height: 1.5;
  overflow-x: clip;
  transition: background-color .22s ease, color .22s ease;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }

.page-x {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}
.band { border-bottom: 1px solid var(--border); }
.band-tint { background: var(--band-tint); }
.section-y { padding-block: clamp(3.5rem, 6vw, 5.75rem); }

/* ---- Top Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--background) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.header-inner .brand { justify-self: start; }
.header-inner .nav-center { justify-self: center; }
.header-inner .header-right { justify-self: end; }
@media (max-width: 760px) {
  .header-inner { display: flex; justify-content: space-between; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}
.brand-mark { width: 1.75rem; height: 1.75rem; }
.brand-word {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.brand-word em { font-style: normal; color: var(--primary); }

.nav-center {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.nav-center a { transition: color .15s ease; white-space: nowrap; }
.nav-center a:hover { color: var(--foreground); }

.header-right {
  display: flex;
  align-items: center;
  gap: .625rem;
}
.icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  color: var(--muted-foreground);
  transition: background-color .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--secondary); color: var(--foreground); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }

.btn-link {
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .875rem;
  border-radius: 9999px;
  color: var(--muted-foreground);
  transition: color .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn-link:hover { color: var(--foreground); background: var(--secondary); }

.pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 2.35rem;
  padding-inline: 1.15rem;
  border-radius: 9999px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .15s ease, transform .15s ease;
}
.pill-cta:hover { opacity: .9; transform: translateY(-1px); }
.pill-cta.lg { height: 2.95rem; padding-inline: 1.5rem; font-size: .95rem; }

.pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 2.95rem;
  padding-inline: 1.4rem;
  border-radius: 9999px;
  background: var(--card);
  border: 1px solid var(--border-strong, var(--border));
  color: var(--foreground);
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color .15s ease, transform .15s ease;
}
.pill-outline:hover { border-color: var(--primary); transform: translateY(-1px); }

/* ---- Hero ---- */
.hero-sec {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  text-align: center;
}
.hero-title {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(2.35rem, 5.5vw, 4.15rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--primary-ink); }
.hero-deck {
  margin: 1.35rem auto 0;
  max-width: 54ch;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: var(--muted-foreground);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}
.hero-trust {
  margin-top: 1.5rem;
  font-size: .8125rem;
  color: var(--faint);
}

/* ---- Stage Window Mockup ---- */
.stage-wrap { padding-bottom: clamp(3.5rem, 6vw, 5rem); }
.stage {
  position: relative;
  border-radius: 1.75rem;
  background: var(--stage-bg);
  padding: clamp(1.25rem, 3.5vw, 3.25rem);
  overflow: hidden;
  border: 1px solid var(--border);
}
.stage-mountains {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.mac-window {
  position: relative;
  z-index: 2;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--window-shadow);
  overflow: hidden;
}
.mac-bar {
  height: 2.75rem;
  padding-inline: 1rem;
  display: grid;
  grid-template-columns: 4rem minmax(0,1fr) 4rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--secondary);
}
.mac-dots { display: flex; gap: .45rem; }
.mac-dots span { width: .6875rem; height: .6875rem; border-radius: 9999px; display: block; }
.mac-dots .r { background: #ff5f57; }
.mac-dots .y { background: #febc2e; }
.mac-dots .g { background: #28c840; }
.mac-url {
  justify-self: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .75rem;
  color: var(--muted-foreground);
  background: var(--card);
  border: 1px solid var(--border);
  padding: .2rem .9rem;
  border-radius: 9999px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  min-height: 24.5rem;
}
.app-sidebar {
  border-right: 1px solid var(--border);
  background: var(--secondary);
  padding: 1rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.side-tab {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .55rem .75rem;
  border-radius: .625rem;
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-align: left;
  transition: background-color .15s ease, color .15s ease;
}
.side-tab:hover { color: var(--foreground); background: color-mix(in srgb, var(--card) 55%, transparent); }
.side-tab.active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.side-tab svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--primary-ink); }

.app-main { padding: 1.5rem 1.75rem; min-width: 0; }
.app-pane[hidden] { display: none; }
.pane-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.model-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.15rem;
}
.m-pill {
  height: 2.2rem;
  padding-inline: .95rem;
  border-radius: 9999px;
  font-size: .8125rem;
  font-weight: 500;
  background: var(--secondary);
  color: var(--muted-foreground);
  transition: background-color .15s ease, color .15s ease;
}
.m-pill:hover { color: var(--foreground); }
.m-pill.active {
  background: var(--primary);
  color: var(--primary-foreground);
}
.term-box {
  position: relative;
  border-radius: 1rem;
  background: var(--terminal-bg);
  color: var(--terminal-fg);
  padding: 1.2rem 1.35rem;
  overflow-x: auto;
}
.term-box pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8125rem;
  line-height: 1.6;
}
.term-copy {
  position: absolute;
  top: .75rem;
  right: .75rem;
  height: 2rem;
  padding-inline: .75rem;
  border-radius: 9999px;
  font-size: .75rem;
  background: rgba(255,255,255,.08);
  color: var(--terminal-fg);
  transition: background-color .15s ease;
}
.term-copy:hover { background: rgba(255,255,255,.16); }
.term-foot {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .625rem 1rem;
  font-size: .8125rem;
  color: var(--muted-foreground);
}
.lane-badge {
  display: inline-flex;
  align-items: center;
  height: 1.65rem;
  padding-inline: .7rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 13%, transparent);
  color: var(--primary-ink);
  font-size: .75rem;
  font-weight: 600;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .875rem;
  margin-bottom: 1.15rem;
}
.kpi-card {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: .875rem;
  padding: 1rem;
}
.kpi-label { font-size: .75rem; color: var(--muted-foreground); }
.kpi-val { font-size: 1.5rem; font-weight: 700; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.quota-mock {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: .875rem;
  padding: 1rem 1.15rem;
}
.quota-mock-top { display: flex; justify-content: space-between; font-size: .84rem; font-weight: 500; margin-bottom: .5rem; }
.quota-track { height: .45rem; border-radius: 9999px; background: var(--border); overflow: hidden; }
.quota-bar { height: 100%; width: 100%; background: var(--foreground); border-radius: 9999px; }

/* ---- 3-Cell Metrics Strip ---- */
.metrics-bar {
  margin-top: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  box-shadow: var(--lift-shadow);
  overflow: hidden;
}
.metric-cell {
  padding: 1.35rem 1.6rem;
}
.metric-cell + .metric-cell { border-left: 1px solid var(--border); }
.metric-k { font-size: .8125rem; color: var(--muted-foreground); }
.metric-v {
  margin-top: .3rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.metric-sub { margin-top: .15rem; font-size: .75rem; color: var(--faint); }

/* ---- Section Headings ---- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}
.sec-title {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.sec-title em { font-style: normal; color: var(--primary-ink); }
.sec-deck {
  margin: .75rem 0 0;
  max-width: 56ch;
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* ---- Integrations Split Card ---- */
.int-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.int-tab {
  height: 2.25rem;
  padding-inline: 1rem;
  border-radius: 9999px;
  font-size: .875rem;
  font-weight: 500;
  background: var(--secondary);
  color: var(--muted-foreground);
}
.int-tab.active { background: var(--cta-bg); color: var(--cta-fg); }

.split-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  box-shadow: var(--lift-shadow);
}
.split-badge {
  display: inline-flex;
  padding: .25rem .75rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary-ink);
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: .875rem;
}
.split-card h3 { margin: 0 0 .625rem; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.split-card p { margin: 0 0 1.25rem; color: var(--muted-foreground); font-size: .95rem; line-height: 1.65; }

.tools-strip {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.tools-label { font-size: .8125rem; color: var(--faint); margin-right: .5rem; }
.tool-chip {
  padding: .45rem .95rem;
  border-radius: .75rem;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* ---- 3 Steps ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--lift-shadow);
}
.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--secondary);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary-ink);
}
.step-card h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.step-card p { margin: 0; font-size: .9rem; color: var(--muted-foreground); line-height: 1.6; }
.step-mock {
  margin-top: auto;
  border-radius: .875rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: .85rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  color: var(--muted-foreground);
}

/* ---- Asymmetric Endpoint Features ---- */
.feat-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 3rem;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}
.feat-item h3 { margin: 0 0 .45rem; font-size: 1.0625rem; font-weight: 600; }
.feat-item p { margin: 0; font-size: .92rem; color: var(--muted-foreground); line-height: 1.65; }

/* ---- Pricing (Openference 2-Card + Full-Width Banner) ---- */
.pricing-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.p-card {
  border-radius: 1.75rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid var(--border);
}
.p-card.is-dark {
  background: #1c1b19;
  color: #f9f8f6;
  border-color: #2f2c27;
}
.p-card.is-light {
  background: var(--card);
  color: var(--foreground);
}
.p-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.p-name { font-size: 1.35rem; font-weight: 600; }
.p-tag {
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 9999px;
  background: rgba(125, 148, 217, 0.2);
  color: #9db1e8;
}
.p-card.is-light .p-tag {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary-ink);
}
.p-price { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.p-price small { font-size: .95rem; font-weight: 400; opacity: .7; }
.p-desc { margin: 0; font-size: .9375rem; opacity: .82; line-height: 1.6; }
.p-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  font-size: .9rem;
  opacity: .9;
  flex: 1;
}
.p-list li { display: flex; align-items: center; gap: .6rem; }
.p-list svg { width: 1rem; height: 1rem; color: var(--mark); flex-shrink: 0; }
.p-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.85rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #1c1b19;
  font-size: .9rem;
  font-weight: 600;
  transition: opacity .15s ease;
}
.p-btn-dark:hover { opacity: .9; }
.p-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.85rem;
  border-radius: 9999px;
  border: 1px solid var(--border-strong, var(--border));
  background: var(--card);
  font-size: .9rem;
  font-weight: 600;
  transition: border-color .15s ease;
}
.p-btn-light:hover { border-color: var(--primary); }

.free-banner {
  margin-top: 1.25rem;
  border-radius: 1.75rem;
  background: var(--stage-bg);
  border: 1px solid var(--border);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.free-banner-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 36rem;
  box-shadow: var(--lift-shadow);
}
.free-banner-card h3 { margin: 0 0 .5rem; font-size: 1.35rem; font-weight: 600; }
.free-banner-card p { margin: 0 0 1.25rem; font-size: .9375rem; color: var(--muted-foreground); line-height: 1.65; }

/* ---- FAQ ---- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2.5rem;
}
.faq-list { display: flex; flex-direction: column; gap: .625rem; }
.faq-item {
  border-radius: 1.5rem;
  background: var(--secondary);
  padding-inline: 1.5rem;
}
.faq-item summary {
  list-style: none;
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--card);
  color: var(--muted-foreground);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p {
  margin: 0;
  padding-bottom: 1.4rem;
  padding-right: 2.5rem;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ---- Bottom CTA Stage ---- */
.cta-window {
  position: relative;
  z-index: 2;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  max-width: 44rem;
  padding: clamp(2rem, 4.5vw, 3.5rem);
  box-shadow: var(--window-shadow);
}
.cta-window h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.cta-window p {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}
.cta-notes {
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .625rem 1.5rem;
  font-size: .875rem;
  color: var(--muted-foreground);
}
.cta-notes li { display: inline-flex; align-items: center; gap: .45rem; }
.cta-notes svg { width: 1rem; height: 1rem; color: var(--primary-ink); }

/* ---- Footer + Giant Cropped Wordmark ---- */
.site-footer {
  background: var(--band-tint);
  padding-top: 4rem;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-tag {
  margin: .875rem 0 1.25rem;
  font-size: .875rem;
  color: var(--muted-foreground);
  max-width: 30ch;
  line-height: 1.6;
}
.footer-col h4 {
  margin: 0 0 .875rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--foreground);
}
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: .875rem;
  color: var(--muted-foreground);
}
.footer-col a:hover { color: var(--foreground); }
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: .8125rem;
  color: var(--faint);
}
.giant-wordmark {
  user-select: none;
  pointer-events: none;
  text-align: center;
  font-size: clamp(4.5rem, 16.5vw, 13.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.78;
  margin-bottom: -0.1em;
  background: linear-gradient(90deg, color-mix(in srgb, var(--foreground) 14%, transparent) 0%, color-mix(in srgb, var(--primary) 34%, transparent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .split-card, .feat-layout, .faq-layout, .pricing-pair, .footer-top {
    grid-template-columns: 1fr;
  }
  .steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-center { display: none; }
  .metrics-bar, .kpi-grid, .feat-grid { grid-template-columns: 1fr; }
  .metric-cell + .metric-cell { border-left: 0; border-top: 1px solid var(--border); }
}

/* === Openference Popover & Nav Pills === */
.nav-center { gap: .375rem; }
.nav-center > a, .nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  height: 2.35rem;
  padding: 0 .875rem;
  border-radius: 9999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background-color .15s ease, color .15s ease;
}
.nav-center > a:hover, .nav-drop-btn:hover, .nav-drop.is-open .nav-drop-btn {
  background: var(--secondary);
  color: var(--foreground);
}
.nav-drop { position: relative; }
.nav-drop-btn svg { width: 14px; height: 14px; transition: transform .16s ease; }
.nav-drop.is-open .nav-drop-btn svg { transform: rotate(180deg); }
.of-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 12.75rem;
  border-radius: 20px;
  background: var(--popover, var(--card, #fff));
  padding: 6px;
  color: var(--foreground);
  box-shadow: 0 12px 32px -8px rgba(28,27,25,.14), 0 2px 8px rgba(28,27,25,.05);
  border: 1px solid var(--border-strong, #c9c4ba);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.of-popover[hidden] { display: none; }
.of-popover-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px;
  padding: 9px 14px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 450;
  color: var(--foreground);
  text-decoration: none;
  transition: background-color .12s ease;
}
.of-popover-item:hover, .of-popover-item.is-active {
  background: var(--accent, #f0efec);
}


/* === GLOBAL DEFAULT CURSOR (NO POINTER HAND) === */
*, *::before, *::after {
  cursor: default !important;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
textarea,
[contenteditable="true"] {
  cursor: text !important;
}

/* Footer fold */
.footer-fold{display:grid;grid-template-rows:1fr;transition:grid-template-rows .28s ease}
.footer-fold.is-closed{grid-template-rows:0fr}
.footer-fold-in{overflow:hidden;min-height:0}
.footer-fold.is-closed .footer-top{border-bottom-color:transparent}
.footer-toggle{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:1px solid var(--border);border-radius:999px;background:transparent;color:var(--muted-foreground);font:inherit;font-size:.8125rem;cursor:default}
.footer-toggle:hover{color:var(--foreground);background:color-mix(in srgb, var(--foreground) 5%, transparent)}
.footer-toggle svg{transition:transform .28s ease}
.footer-toggle[aria-expanded="false"] svg{transform:rotate(180deg)}

/* Footer wordmark: show full glyphs incl. descender */
.site-footer{overflow:visible;padding-bottom:0}
.giant-wordmark{line-height:1.05 !important;margin-bottom:0 !important;padding-bottom:.12em;overflow:visible}

/* Mobile header overflow fix */
@media (max-width: 680px) {
  html, body { overflow-x: hidden; }
  .header-inner { gap: 0.5rem !important; }
  .header-right { gap: 0.4rem !important; min-width: 0; }
  .header-right .icon-btn { width: 2rem; height: 2rem; flex-shrink: 0; }
  .header-right .btn-link { font-size: 0.8125rem; padding: 0 0.35rem; white-space: nowrap; }
  .header-right .pill-cta { height: 2rem; padding: 0 0.7rem; font-size: 0.8125rem; white-space: nowrap; }
  .brand-word { font-size: 1rem; }
}
@media (max-width: 400px) {
  .header-right .btn-link { display: none; }
}
