:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #5c6873;
  --line: #d9e3ea;
  --paper: #ffffff;
  --canvas: #f7faf9;
  --soft: #eef7f3;
  --teal: #0b7a63;
  --teal-dark: #075542;
  --blue: #245fbd;
  --blue-soft: #edf4ff;
  --amber: #c97818;
  --amber-soft: #fff4df;
  --shadow: 0 18px 45px rgba(16, 24, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 12px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(215, 224, 229, 0.82);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.05);
}

.brand,
.nav,
.hero-actions,
.proof-row,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  overflow: hidden;
  background: #101214;
  box-shadow: 0 10px 22px rgba(16, 24, 32, 0.18);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-wordmark {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 950;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 750;
}

.nav a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.nav a.nav-cta {
  background: var(--ink);
  color: #ffffff;
}

.nav a.nav-cta:hover {
  background: var(--blue);
  color: #ffffff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: min(780px, calc(100vh - 70px));
  padding: clamp(38px, 6vw, 74px) clamp(20px, 4vw, 56px) 30px;
  border-bottom: 1px solid var(--line);
  background: #f2fbf7;
  overflow: hidden;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-left: clamp(18px, 2vw, 28px);
  border-left: 6px solid var(--blue);
}

.hero-media {
  position: relative;
  z-index: 2;
}

.signal-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(18, minmax(28px, 1fr));
  grid-auto-rows: minmax(34px, 1fr);
  gap: 8px;
  padding: clamp(18px, 3vw, 44px);
  opacity: 0.32;
  pointer-events: none;
  touch-action: pan-y;
}

.signal-cell {
  min-height: 34px;
  border: 1px solid rgba(36, 95, 189, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition:
    background-color 900ms ease,
    border-color 900ms ease,
    opacity 900ms ease,
    transform 900ms ease;
}

.signal-cell.is-active-blue {
  border-color: rgba(36, 95, 189, 0.62);
  background: rgba(36, 95, 189, 0.38);
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(36, 95, 189, 0.24);
}

.signal-cell.is-active-green {
  border-color: rgba(11, 122, 99, 0.62);
  background: rgba(11, 122, 99, 0.36);
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(11, 122, 99, 0.24);
}

.signal-cell.is-active-amber {
  border-color: rgba(201, 120, 24, 0.62);
  background: rgba(201, 120, 24, 0.34);
  opacity: 1;
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(201, 120, 24, 0.24);
}

.eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.45rem, 5.4vw, 4.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  margin: 0;
  font-size: 1.1rem;
}

.hero-text,
.section p,
.price-card li,
.compare-card li,
.form-note {
  color: var(--muted);
  line-height: 1.65;
}

.optional-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.consent-row {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  line-height: 1.55;
}

.consent-row input {
  flex: 0 0 auto;
  margin-top: 0.3rem;
  min-height: 1rem;
  width: 1rem;
}

.consent-row a {
  color: var(--blue);
  font-weight: 700;
}

.website-check {
  height: 0;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.audit-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.hero-text {
  max-width: 580px;
  margin: 20px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: var(--blue);
  color: white;
}

.primary:hover {
  background: #17498f;
}

.secondary {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.proof-row {
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 0;
}

.proof-row div {
  min-width: 136px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.06);
}

.proof-row dt {
  color: var(--blue);
  font-weight: 900;
}

.proof-row dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 24, 32, 0.08);
}

.pilot-strip {
  display: grid;
  grid-template-columns: 1.2fr repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 1px;
  margin: 0 clamp(20px, 4vw, 56px) clamp(24px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 14px 34px rgba(16, 24, 32, 0.08);
}

.pilot-strip span,
.pilot-strip strong {
  min-height: 58px;
  display: grid;
  align-items: center;
  padding: 14px 16px;
  background: #ffffff;
}

.pilot-strip span {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.pilot-strip strong {
  font-size: 0.95rem;
}

.section {
  padding: clamp(54px, 8vw, 92px) clamp(20px, 4vw, 56px);
}

.band {
  background: #ffffff;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 32px;
}

.feature-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature,
.price-card,
.audit-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.feature {
  padding: 22px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #e2f5ed;
  color: var(--teal-dark);
  font-weight: 900;
  font-size: 0.78rem;
}

.workflow-lab {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
}

.workflow-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.workflow-copy .eyebrow {
  margin-bottom: 0;
}

.flow-source-buttons {
  display: grid;
  gap: 10px;
}

.flow-source,
.handoff-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.flow-source:hover,
.flow-source.is-selected,
.handoff-button:hover,
.handoff-button.is-selected {
  border-color: rgba(36, 95, 189, 0.36);
  background: var(--blue-soft);
  color: var(--blue);
}

.flow-preview {
  display: grid;
  gap: 14px;
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

.flow-preview.is-updated {
  transform: translateY(-2px);
}

.flow-lead-card {
  padding: 18px;
  border: 1px solid rgba(36, 95, 189, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 24, 32, 0.06);
}

.flow-lead-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #8a4d08;
  font-size: 0.75rem;
  font-weight: 900;
}

.flow-lead-card p {
  margin-bottom: 0;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.flow-step {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
}

.flow-step p {
  margin-bottom: 0;
}

.two-column,
.audit {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.pill-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(16, 24, 32, 0.05);
}

.industry-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.industry-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(16, 24, 32, 0.05);
}

.industry-button:hover,
.industry-button.is-selected {
  border-color: rgba(36, 95, 189, 0.35);
  background: var(--blue-soft);
  color: var(--blue);
}

.tools-section {
  background: #f7faf9;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 16px;
}

.calculator-panel,
.industry-panel,
.timeline-step,
.recap-card,
.faq-grid details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.calculator-panel,
.industry-panel,
.timeline-step {
  padding: 24px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.panel-heading .feature-icon {
  margin-bottom: 0;
}

.panel-heading p {
  margin: 6px 0 0;
}

.calculator-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calculator-result {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 18px;
  border-left: 4px solid var(--teal);
  background: #f1fbf6;
}

.calculator-result span {
  color: var(--muted);
  font-weight: 800;
}

.calculator-result strong {
  color: var(--teal-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.calculator-result small {
  color: var(--muted);
  line-height: 1.5;
}

.industry-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.industry-list li {
  color: var(--muted);
  line-height: 1.55;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timeline-step {
  border-top: 5px solid var(--blue);
}

.timeline-step span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.timeline-step p {
  margin-bottom: 0;
}

.recap-section {
  background: #eef7f3;
}

.recap-card {
  max-width: 1040px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.09);
}

.recap-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.recap-header .eyebrow {
  margin-bottom: 8px;
}

.recap-header span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #8a4d08;
  font-weight: 900;
  white-space: nowrap;
}

.recap-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.recap-metrics div {
  display: grid;
  gap: 4px;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.recap-metrics div:last-child {
  border-right: 0;
}

.recap-metrics strong {
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
}

.recap-metrics span {
  color: var(--muted);
  font-weight: 800;
}

.recap-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.recap-body article {
  padding: 24px;
  background: #ffffff;
}

.recap-body p {
  margin-bottom: 0;
}

.comparison {
  background: #f4f8fb;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.handoff-demo {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.handoff-toggle {
  display: grid;
  gap: 10px;
  align-content: start;
}

.handoff-visual {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(220px, 1fr);
  gap: 16px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 24, 32, 0.07);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.handoff-visual.is-updated {
  transform: translateY(-2px);
}

.handoff-visual.is-before {
  border-color: rgba(201, 120, 24, 0.34);
}

.handoff-visual.is-after {
  border-color: rgba(11, 122, 99, 0.34);
  box-shadow: 0 18px 42px rgba(11, 122, 99, 0.12);
}

.handoff-screen {
  padding: 18px;
  border-radius: 8px;
  background: #fbfdfc;
}

.handoff-screen span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #8a4d08;
  font-size: 0.75rem;
  font-weight: 900;
}

.handoff-visual.is-after .handoff-screen span {
  background: #e2f5ed;
  color: var(--teal-dark);
}

.handoff-screen p {
  margin-bottom: 0;
}

.handoff-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
}

.handoff-path article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.handoff-path article span {
  color: #8a4d08;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.handoff-path article strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.handoff-path article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.handoff-visual.is-after .handoff-path article {
  background: linear-gradient(180deg, #e2f5ed, #ffffff);
}

.handoff-visual.is-after .handoff-path article span {
  color: var(--teal-dark);
}

.handoff-path article:nth-child(2) {
  transform: translateY(10px);
}

.handoff-path article:nth-child(3) {
  transform: translateY(-6px);
}

.handoff-visual.is-after .handoff-path article {
  transform: translateY(0);
}

.compare-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.compare-card.before {
  border-top: 5px solid var(--amber);
  background: #fffaf0;
}

.compare-card.after {
  border-top: 5px solid var(--teal);
  background: #f1fbf6;
}

.compare-card ul,
.risk-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.value-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(36, 95, 189, 0.24);
  border-radius: 8px;
  background: var(--blue-soft);
}

.value-bar strong {
  color: var(--blue);
}

.pricing {
  background: #edf4ff;
}

.price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.plan-action {
  margin-top: auto;
  padding-top: 0;
}

.price-card > .plan-action {
  margin-top: 22px;
}

.price-card.featured {
  border-color: rgba(36, 95, 189, 0.34);
  box-shadow: var(--shadow);
  background: #ffffff;
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 16px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price {
  margin: 18px 0 2px;
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 900;
}

.price span,
.monthly {
  font-size: 1rem;
  color: var(--muted);
}

.plan-reason {
  margin: 18px 0 0;
  padding: 14px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  font-weight: 700;
}

.perk-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(11, 122, 99, 0.18);
  border-radius: 8px;
  background: #f1fbf6;
}

.perk-box strong {
  display: block;
  color: var(--teal-dark);
}

.perk-box ul {
  margin-top: 10px;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 20px;
}

.plan-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.plan-guide article {
  padding: 20px;
  border: 1px solid rgba(36, 95, 189, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.plan-guide span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.plan-guide p {
  margin-bottom: 0;
}

.pricing-note {
  max-width: 760px;
  margin: 18px 0 0;
  font-weight: 700;
}

.pricing-extra {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 980px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(36, 95, 189, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.pricing-extra strong {
  flex: 0 0 auto;
  color: var(--blue);
}

.pricing-extra span {
  color: var(--muted);
  line-height: 1.55;
}

.audit {
  background: var(--paper);
}

.audit-copy {
  position: sticky;
  top: 94px;
}

.contact-box {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 18px;
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
}

.contact-box span {
  color: var(--muted);
}

.audit-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.08);
}

.form-heading {
  display: grid;
  gap: 8px;
  padding-bottom: 4px;
}

.form-heading .eyebrow,
.form-heading p {
  margin: 0;
}

.form-heading p {
  color: var(--muted);
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(11, 122, 99, 0.18);
  border-color: var(--teal);
}

.full {
  width: 100%;
}

.form-note {
  min-height: 24px;
  margin: 0;
}

.success-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(11, 122, 99, 0.24);
  border-radius: 8px;
  background: #f1fbf6;
}

.success-panel[hidden] {
  display: none;
}

.success-panel p {
  margin: 0;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-section {
  background: #ffffff;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-grid details {
  padding: 18px 20px;
}

.faq-grid summary {
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-grid p {
  margin: 12px 0 0;
}

.closing-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: clamp(42px, 6vw, 70px) clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #101820;
  color: #ffffff;
}

.closing-cta h2 {
  max-width: 860px;
}

.closing-cta p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.closing-cta .secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #ffffff;
}

.closing-cta .secondary:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.onboarding-page {
  min-height: calc(100vh - 70px);
  background:
    linear-gradient(180deg, rgba(237, 244, 255, 0.74), rgba(247, 250, 249, 0.96) 420px),
    var(--canvas);
}

.onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: end;
  padding: clamp(42px, 7vw, 86px) clamp(20px, 5vw, 70px) 28px;
}

.onboarding-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.95;
}

.onboarding-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.setup-checklist {
  display: grid;
  gap: 10px;
}

.check-card,
.onboarding-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 42px rgba(16, 24, 32, 0.08);
}

.check-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 12px;
  padding: 16px;
}

.check-card span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 950;
}

.check-card strong {
  align-self: end;
}

.check-card p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.onboarding-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 70px) clamp(48px, 7vw, 92px);
}

.onboarding-card {
  padding: clamp(20px, 3vw, 32px);
}

.intake-form {
  display: grid;
  gap: 18px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.output-panel {
  align-self: start;
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal-dark);
  font-weight: 850;
  white-space: nowrap;
}

.output-panel pre {
  min-height: 420px;
  max-height: 620px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
  color: #25313b;
  font: 0.92rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-link {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.demo-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(20px, 4vw, 42px);
  min-height: calc(100vh - 68px);
  padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, #f4fbf8 0%, #ffffff 42%);
}

.demo-panel {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(23, 33, 38, 0.08);
}

.demo-input,
.demo-output {
  padding: clamp(20px, 3vw, 30px);
}

.demo-input h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.demo-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.sample-button {
  min-height: 40px;
}

.sample-button.is-selected {
  border-color: rgba(36, 95, 189, 0.35);
  background: var(--blue-soft);
  color: var(--blue);
}

.lead-demo-form {
  display: grid;
  gap: 14px;
}

.demo-output {
  display: grid;
  gap: 18px;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.demo-output.is-updated {
  border-color: rgba(36, 95, 189, 0.42);
  box-shadow: 0 18px 42px rgba(36, 95, 189, 0.16);
  transform: translateY(-2px);
}

.output-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.output-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #8a4d08;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.estimate {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-pill.standard {
  background: #e2f5ed;
  color: var(--teal-dark);
}

.output-grid {
  display: grid;
  gap: 12px;
}

.output-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfdfc;
}

.reasoning-card {
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

.output-card p,
.output-card ol {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.output-card ol {
  padding-left: 20px;
}

.tracker-preview {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tracker-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
  min-width: 720px;
}

.tracker-row span {
  padding: 12px;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.tracker-row span:last-child {
  border-right: 0;
}

.tracker-head span {
  border-top: 0;
  background: var(--soft);
  color: var(--teal-dark);
  font-weight: 900;
}

.demo-next,
.demo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.demo-actions {
  padding-top: 2px;
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .workflow-lab,
  .handoff-demo,
  .handoff-visual,
  .audit,
  .closing-cta,
  .onboarding-hero,
  .onboarding-layout,
  .experience-grid,
  .demo-shell {
    grid-template-columns: 1fr;
  }

  .output-panel {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .price-grid,
  .plan-guide,
  .industry-picker,
  .flow-steps,
  .timeline-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-copy {
    position: static;
  }

  .pilot-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .signal-field {
    grid-template-columns: repeat(12, minmax(24px, 1fr));
    gap: 7px;
    opacity: 0.28;
  }

  .calculator-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 34px;
  }

  .signal-field {
    grid-template-columns: repeat(7, minmax(24px, 1fr));
    grid-auto-rows: minmax(30px, 1fr);
    gap: 6px;
    padding: 14px;
    opacity: 0.22;
  }

  .feature-grid,
  .price-grid,
  .plan-guide,
  .compare-grid,
  .flow-steps,
  .handoff-path,
  .calculator-fields,
  .timeline-grid,
  .recap-metrics,
  .recap-body,
  .faq-grid,
  .split-actions,
  .demo-next,
  .demo-actions,
  .pill-list,
  .industry-picker,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .pilot-strip {
    grid-template-columns: 1fr;
  }

  .value-bar,
  .closing-actions,
  .pricing-extra {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-row div {
    flex: 1 1 100%;
  }

  .recap-header {
    flex-direction: column;
  }

  .recap-metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .recap-metrics div:last-child {
    border-bottom: 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .output-header {
    flex-direction: column;
  }
}

/* Modern site shell and persistent appearance settings */
:root {
  --header-bg: rgba(255, 255, 255, 0.88);
  --hero-bg: #f2fbf7;
  --section-blue: #edf4ff;
  --section-neutral: #f4f8fb;
  --surface-subtle: #fbfdfc;
  --field-bg: #ffffff;
  --scrim: rgba(7, 14, 18, 0.5);
  --focus-ring: rgba(36, 95, 189, 0.28);
  --header-height: 76px;
}

html[data-theme="dark"] {
  --ink: #eef5f7;
  --muted: #a6b5bd;
  --line: #2a3b43;
  --paper: #111b20;
  --canvas: #0b1216;
  --soft: #153b34;
  --teal: #4fd0ad;
  --teal-dark: #8ae5cb;
  --blue: #78aaff;
  --blue-soft: #152944;
  --amber: #f1a544;
  --amber-soft: #3e2b16;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --header-bg: rgba(11, 18, 22, 0.9);
  --hero-bg: #0d1a1d;
  --section-blue: #101c29;
  --section-neutral: #0e171c;
  --surface-subtle: #132127;
  --field-bg: #101a20;
  --scrim: rgba(0, 0, 0, 0.7);
  --focus-ring: rgba(120, 170, 255, 0.34);
}

body {
  min-width: 320px;
  background: var(--canvas);
  transition: background-color 180ms ease, color 180ms ease;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.site-header {
  min-height: var(--header-height);
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--header-bg);
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
  box-shadow: 0 8px 30px rgba(16, 24, 32, 0.06);
}

.nav {
  margin-left: auto;
}

.nav a {
  position: relative;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav a[aria-current="page"]:not(.nav-cta) {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav a[aria-current="page"]:not(.nav-cta)::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.nav a.nav-cta,
.nav a.nav-cta:hover {
  color: #ffffff;
  background: var(--blue);
}

.nav a.nav-cta:hover {
  background: color-mix(in srgb, var(--blue) 82%, #000000);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-button,
.account-trigger,
.back-to-top {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  cursor: pointer;
  font: inherit;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
}

.icon-button:hover,
.account-trigger:hover,
.back-to-top:hover {
  border-color: color-mix(in srgb, var(--blue) 44%, var(--line));
  background: var(--blue-soft);
  color: var(--blue);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
}

.account-trigger {
  grid-auto-flow: column;
  gap: 9px;
  min-height: 42px;
  padding: 5px 11px 5px 6px;
  border-radius: 8px;
  font-weight: 850;
}

.guest-avatar {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--muted) 42%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 12%, var(--paper));
}

.guest-avatar::before {
  position: absolute;
  top: 21%;
  left: 50%;
  width: 31%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 76%, var(--ink));
  content: "";
  transform: translateX(-50%);
}

.guest-avatar::after {
  position: absolute;
  right: 18%;
  bottom: 12%;
  left: 18%;
  height: 36%;
  border-radius: 50% 50% 22% 22%;
  background: color-mix(in srgb, var(--muted) 76%, var(--ink));
  content: "";
}

.guest-avatar-small {
  width: 30px;
  height: 30px;
}

.guest-avatar-large {
  width: 64px;
  height: 64px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--amber));
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin-bottom: 22px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--teal) 34%, var(--line));
  border-radius: 999px;
  color: var(--teal-dark);
  background: color-mix(in srgb, var(--soft) 82%, transparent);
  font-size: 0.82rem;
  font-weight: 850;
}

.availability-badge span,
.status-line i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--teal) 14%, transparent);
}

.hero {
  background: var(--hero-bg);
}

.band,
.comparison {
  background: var(--section-neutral);
}

.pricing {
  background: var(--section-blue);
}

.faq-section,
.audit {
  background: var(--paper);
}

.demo-shell {
  background: linear-gradient(180deg, var(--hero-bg) 0%, var(--canvas) 42%);
}

.onboarding-page {
  background: var(--canvas);
}

.button {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button.primary {
  box-shadow: 0 8px 20px rgba(36, 95, 189, 0.18);
}

.secondary,
.proof-row div,
.pilot-strip span,
.pilot-strip strong,
.flow-source,
.handoff-button,
.flow-lead-card,
.flow-step,
.pill-list li,
.industry-button {
  color: var(--ink);
  background: var(--paper);
}

.primary:hover {
  background: color-mix(in srgb, var(--blue) 82%, #000000);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.feature,
.price-card,
.timeline-step,
.calculator-panel,
.industry-panel,
.compare-card,
.faq-grid details,
.demo-panel,
.onboarding-card,
.check-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .feature:hover,
  .timeline-step:hover,
  .price-card:hover,
  .faq-grid details:hover,
  .check-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
    box-shadow: 0 18px 42px rgba(16, 24, 32, 0.1);
  }
}

input,
select,
textarea {
  color: var(--ink);
  background: var(--field-bg);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.account-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}

.account-drawer-root.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: var(--scrim);
  backdrop-filter: blur(5px);
  transition: opacity 200ms ease;
}

.account-drawer-root.is-open .drawer-scrim {
  opacity: 1;
}

.account-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(460px, 100%);
  height: 100%;
  overflow: hidden;
  border-left: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.account-drawer-root.is-open .account-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.drawer-brand div {
  display: grid;
  gap: 3px;
}

.drawer-brand strong {
  font-size: 1rem;
}

.drawer-brand span {
  color: var(--muted);
  font-size: 0.82rem;
}

.drawer-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.drawer-tab:hover {
  color: var(--ink);
  background: var(--surface-subtle);
}

.drawer-tab.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

.drawer-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer-panel {
  display: none;
  padding: 24px 20px 40px;
}

.drawer-panel.is-active {
  display: block;
}

.account-summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}

.account-summary > img,
.account-summary > .guest-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.16);
}

.account-summary h2,
.settings-heading h2 {
  margin: 9px 0 8px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.account-summary p,
.settings-heading p:not(.eyebrow),
.setting-group p,
.settings-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.profile-form {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.account-billing-link {
  grid-column: 1 / -1;
}

/* Stripe-ready plan and billing pages */
.payment-page,
.policy-page,
.success-page {
  min-height: calc(100vh - var(--header-height));
  background: var(--canvas);
}

.billing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  padding: clamp(48px, 7vw, 86px) clamp(20px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  background: var(--hero-bg);
}

.billing-hero h1,
.policy-heading h1,
.payment-success-card h1 {
  max-width: 900px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.billing-hero > div > p:not(.eyebrow),
.policy-heading > p:not(.eyebrow),
.payment-success-card > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.billing-assurance {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-left: 4px solid var(--teal);
  background: var(--soft);
}

.billing-assurance strong {
  color: var(--teal-dark);
  font-size: 1.05rem;
}

.billing-assurance span {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.billing-assurance span::before {
  position: absolute;
  top: 0.45em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.billing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
  padding: clamp(48px, 7vw, 82px) clamp(20px, 5vw, 70px);
}

.billing-plans {
  display: grid;
  gap: 14px;
}

.compact-heading {
  margin-bottom: 8px;
}

.compact-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.billing-plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 100px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.billing-plan-card:hover {
  border-color: color-mix(in srgb, var(--blue) 44%, var(--line));
  transform: translateY(-2px);
}

.billing-plan-card.is-selected {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent);
}

.billing-plan-card > span {
  display: grid;
  gap: 5px;
}

.billing-plan-card > span:last-child {
  justify-items: end;
  text-align: right;
}

.billing-plan-card strong {
  font-size: 1.15rem;
}

.billing-plan-card b {
  color: var(--blue);
  font-size: 1.05rem;
}

.billing-plan-card small {
  color: var(--muted);
  font-size: 0.84rem;
}

.pilot-reminder {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 8px;
  padding: 20px;
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
}

.pilot-reminder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.checkout-card {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.checkout-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.checkout-heading span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.checkout-heading strong {
  color: var(--teal-dark);
  font-size: 0.84rem;
}

.checkout-card h2 {
  font-size: 2.2rem;
}

.checkout-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.checkout-prices {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-prices div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
}

.checkout-prices div + div {
  border-top: 1px solid var(--line);
}

.checkout-prices dt {
  color: var(--muted);
}

.checkout-prices dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.checkout-schedule {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.checkout-schedule ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.checkout-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.checkout-consent a,
.portal-link,
.policy-content a {
  color: var(--blue);
  font-weight: 800;
}

.policy-content a.button.primary {
  color: #ffffff;
  text-decoration: none;
}

html[data-theme="dark"] .policy-content a.button.primary {
  color: #071315;
}

.button.is-disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto;
  box-shadow: none;
  transform: none;
}

.checkout-status {
  min-height: 44px;
  padding: 12px;
  border-left: 4px solid var(--blue);
  color: var(--muted);
  background: var(--blue-soft);
  font-size: 0.86rem;
  line-height: 1.45;
}

.checkout-status.is-pending {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.checkout-status.is-ready {
  border-color: var(--teal);
  background: var(--soft);
}

.portal-link {
  justify-self: center;
  font-size: 0.86rem;
  text-underline-offset: 3px;
}

.policy-page {
  padding-bottom: 72px;
}

.policy-heading {
  padding: clamp(48px, 7vw, 86px) clamp(20px, 5vw, 70px) 36px;
  border-bottom: 1px solid var(--line);
  background: var(--hero-bg);
}

.policy-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 820px);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding: 48px clamp(20px, 5vw, 70px);
}

.policy-nav {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: grid;
  gap: 4px;
}

.policy-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.policy-nav a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.policy-content {
  display: grid;
  gap: 16px;
}

.policy-content section {
  scroll-margin-top: calc(var(--header-height) + 20px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.policy-content h2 {
  font-size: 1.55rem;
}

.policy-content p {
  color: var(--muted);
  line-height: 1.7;
}

.policy-content p:last-child {
  margin-bottom: 0;
}

.success-page {
  display: grid;
  place-items: center;
  padding: clamp(42px, 7vw, 84px) 20px;
}

.payment-success-card {
  width: min(980px, 100%);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--soft);
  font-size: 1.7rem;
  font-weight: 900;
}

.success-mark.is-neutral {
  background: var(--surface-soft);
  color: var(--text-muted);
}

.success-next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.success-next-steps article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.success-next-steps article > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 900;
}

.success-next-steps p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

@media (max-width: 900px) {
  .billing-hero,
  .billing-layout,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .checkout-card,
  .policy-nav {
    position: static;
  }

  .policy-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .billing-plan-card,
  .success-next-steps,
  .policy-nav {
    grid-template-columns: 1fr;
  }

  .billing-plan-card > span:last-child {
    justify-items: start;
    text-align: left;
  }

  .checkout-card,
  .payment-success-card,
  .policy-content section {
    padding: 20px;
  }

  .checkout-prices div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

.text-action {
  display: block;
  margin: 20px auto 0;
  padding: 6px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-action:hover {
  color: var(--ink);
}

.settings-heading {
  margin-bottom: 24px;
}

.setting-group {
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.setting-group legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 900;
}

.theme-segments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 4px 0 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
}

.theme-segments button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.theme-segments button:hover {
  color: var(--ink);
}

.theme-segments button.is-selected {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 4px 14px rgba(16, 24, 32, 0.1);
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row > div {
  display: grid;
  gap: 5px;
}

.setting-row span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.switch {
  position: relative;
  display: inline-flex;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch > span {
  position: relative;
  width: 48px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.switch > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition: transform 160ms ease, background-color 160ms ease;
}

.switch input:checked + span {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 28%, var(--paper));
}

.switch input:checked + span::after {
  background: var(--teal);
  transform: translateX(20px);
}

.switch input:focus-visible + span {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.settings-note {
  margin-top: 20px;
  padding: 16px;
  border-left: 4px solid var(--teal);
  background: var(--soft);
}

.settings-note p {
  margin-top: 5px;
}

.shell-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.shell-toast[hidden] {
  display: none;
}

.install-help-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--scrim);
  backdrop-filter: blur(5px);
}

.install-help-modal[hidden] {
  display: none;
}

.install-help-card {
  width: min(480px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.install-help-card h2 {
  margin: 5px 0 10px;
  font-size: 1.5rem;
}

.install-help-card > p:not(.eyebrow),
.install-help-steps {
  color: var(--muted);
}

.install-help-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding-left: 22px;
}

.install-help-actions {
  display: flex;
  justify-content: flex-end;
}

.install-help-open {
  overflow: hidden;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  font-size: 1.25rem;
  font-weight: 900;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.drawer-open {
  overflow: hidden;
}

.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;
}

.compact-header {
  --header-height: 62px;
}

.compact-header .site-header {
  padding-top: 6px;
  padding-bottom: 6px;
}

.compact-header .brand-mark {
  width: 40px;
  height: 40px;
}

html[data-theme="dark"] .signal-cell {
  border-color: rgba(120, 170, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .workflow-lab,
html[data-theme="dark"] .tools-section,
html[data-theme="dark"] .recap-section {
  color: var(--ink);
  background: var(--section-neutral);
}

html[data-theme="dark"] .calculator-result {
  background: #10251f;
}

html[data-theme="dark"] .feature-icon {
  background: var(--soft);
}

html[data-theme="dark"] .flow-step span {
  color: var(--blue);
  background: var(--blue-soft);
}

html[data-theme="dark"] .plan-guide span {
  color: var(--teal);
  background: var(--soft);
}

html[data-theme="dark"] .flow-source:not(.is-selected),
html[data-theme="dark"] .handoff-button:not(.is-selected),
html[data-theme="dark"] .industry-button:not(.is-selected) {
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
}

html[data-theme="dark"] .flow-lead-card span,
html[data-theme="dark"] .recap-header > span {
  color: #ffc273;
}

html[data-theme="dark"] .feature,
html[data-theme="dark"] .calculator-panel,
html[data-theme="dark"] .industry-panel,
html[data-theme="dark"] .timeline-step,
html[data-theme="dark"] .recap-card,
html[data-theme="dark"] .compare-card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .audit-form,
html[data-theme="dark"] .faq-grid details,
html[data-theme="dark"] .demo-panel,
html[data-theme="dark"] .output-card,
html[data-theme="dark"] .onboarding-card,
html[data-theme="dark"] .check-card,
html[data-theme="dark"] .handoff-visual,
html[data-theme="dark"] .handoff-screen,
html[data-theme="dark"] .handoff-path article,
html[data-theme="dark"] .recap-body article,
html[data-theme="dark"] .recap-metrics {
  color: var(--ink);
  background: var(--paper);
}

html[data-theme="dark"] .compare-card.before,
html[data-theme="dark"] .handoff-visual.is-before .handoff-path article {
  background: #241c13;
}

html[data-theme="dark"] .compare-card.after,
html[data-theme="dark"] .handoff-visual.is-after .handoff-path article,
html[data-theme="dark"] .perk-box,
html[data-theme="dark"] .success-panel {
  background: #10251f;
}

html[data-theme="dark"] .reasoning-card,
html[data-theme="dark"] .plan-reason,
html[data-theme="dark"] .value-bar,
html[data-theme="dark"] .plan-guide article,
html[data-theme="dark"] .pricing-extra {
  background: var(--blue-soft);
}

html[data-theme="dark"] .output-panel pre,
html[data-theme="dark"] .flow-lead-card,
html[data-theme="dark"] .flow-step,
html[data-theme="dark"] .tracker-row:not(.tracker-head) span {
  color: var(--ink);
  background: var(--surface-subtle);
}

html[data-theme="dark"] .closing-cta {
  background: #070d10;
}

html[data-theme="dark"] .brand-mark {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] img {
  color-scheme: dark;
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

.reduce-motion .signal-field {
  display: none;
}

@media (max-width: 1100px) {
  .site-header {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: clamp(16px, 3vw, 32px);
    display: none;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100vh - var(--header-height) - 24px);
    padding: 10px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .nav {
    display: grid;
  }

  .nav a {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
  }

  .nav a.nav-cta {
    justify-content: center;
    margin-top: 4px;
  }

  .mobile-menu-button {
    display: inline-grid;
    order: -1;
  }

  .header-tools {
    grid-column: 3;
  }
}

@media (max-width: 680px) {
  .site-header {
    flex-direction: row;
    padding: 9px 14px;
  }

  .brand-wordmark {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .account-trigger {
    width: 42px;
    padding: 5px;
  }

  .account-trigger > span:not(.guest-avatar) {
    display: none;
  }

  .header-tools {
    gap: 6px;
  }

  .hero-copy {
    padding-left: 16px;
    border-left-width: 4px;
  }

  .availability-badge {
    white-space: normal;
  }

  .account-drawer {
    width: 100%;
    border-left: 0;
  }

  .account-summary {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .account-summary > img,
  .account-summary > .guest-avatar {
    width: 52px;
    height: 52px;
  }

  .account-actions {
    grid-template-columns: 1fr;
  }

  .shell-toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shared orbital backdrop for public pages and customer workspaces. */
html.space-theme {
  background: #f4f7fb;
}

html.space-theme[data-theme="dark"] {
  background: #050b12;
}

html.space-theme body {
  min-height: 100vh;
  isolation: isolate;
  background: transparent;
}

.space-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  user-select: none;
}

html.space-theme .site-header,
html.space-theme .liftoff-header {
  overflow: hidden;
}

html.space-theme .app-topbar {
  overflow: visible;
}

html.space-theme .site-header::after,
html.space-theme .app-topbar::after,
html.space-theme .liftoff-header::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -1px;
  width: 84px;
  height: 2px;
  background: var(--aqua, #62d5ce);
  opacity: 0.65;
  transform: translateX(0);
  animation: space-header-scan 9s ease-in-out infinite alternate;
  pointer-events: none;
}

html.space-theme .eyebrow::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.72;
  animation: space-signal-pulse 2.8s ease-in-out infinite;
}

html.space-theme .button,
html.space-theme button:not(.mobile-menu-button):not(.account-close),
html.space-theme .feature,
html.space-theme .workflow-preview,
html.space-theme .ai-demo-form,
html.space-theme .ai-demo-output,
html.space-theme .opportunity-results,
html.space-theme .workspace-preview,
html.space-theme .plan-card,
html.space-theme .workspace-panel,
html.space-theme .metric,
html.space-theme .faq-list details,
html.space-theme .faq-grid details,
html.space-theme .auth-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

html.space-theme .button,
html.space-theme button:not(.mobile-menu-button):not(.account-close) {
  position: relative;
  overflow: hidden;
}

html.space-theme .button::after,
html.space-theme button:not(.mobile-menu-button):not(.account-close)::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -24px;
  width: 10px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: skewX(-18deg);
  transition: left 430ms ease, opacity 180ms ease;
  pointer-events: none;
}

html.space-theme .button:hover::after,
html.space-theme button:not(.mobile-menu-button):not(.account-close):hover::after {
  left: calc(100% + 24px);
  opacity: 0.62;
}

html.space-theme .feature:hover,
html.space-theme .workflow-preview:hover,
html.space-theme .ai-demo-form:hover,
html.space-theme .ai-demo-output:hover,
html.space-theme .opportunity-results:hover,
html.space-theme .workspace-preview:hover,
html.space-theme .plan-card:hover,
html.space-theme .workspace-panel:hover,
html.space-theme .metric:hover,
html.space-theme .faq-list details:hover,
html.space-theme .faq-grid details:hover,
html.space-theme .auth-card:hover {
  border-color: color-mix(in srgb, var(--aqua, #62d5ce) 58%, var(--line));
  box-shadow: 0 18px 46px rgba(4, 20, 30, 0.13);
  transform: translateY(-2px);
}

html[data-theme="dark"].space-theme .feature:hover,
html[data-theme="dark"].space-theme .workflow-preview:hover,
html[data-theme="dark"].space-theme .ai-demo-form:hover,
html[data-theme="dark"].space-theme .ai-demo-output:hover,
html[data-theme="dark"].space-theme .opportunity-results:hover,
html[data-theme="dark"].space-theme .workspace-preview:hover,
html[data-theme="dark"].space-theme .plan-card:hover,
html[data-theme="dark"].space-theme .workspace-panel:hover,
html[data-theme="dark"].space-theme .metric:hover,
html[data-theme="dark"].space-theme .faq-list details:hover,
html[data-theme="dark"].space-theme .faq-grid details:hover,
html[data-theme="dark"].space-theme .auth-card:hover {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

html.space-theme .product-section,
html.space-theme .band,
html.space-theme .comparison,
html.space-theme .pricing,
html.space-theme .faq-section,
html.space-theme .audit,
html.space-theme .policy-page {
  position: relative;
}

html.space-theme .product-section::before,
html.space-theme .band::before,
html.space-theme .comparison::before,
html.space-theme .pricing::before,
html.space-theme .faq-section::before,
html.space-theme .audit::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 18px;
  width: 2px;
  height: 54px;
  background: var(--aqua, #62d5ce);
  opacity: 0.4;
  pointer-events: none;
}

.space-motion-ready .space-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 660ms ease var(--space-reveal-delay, 0ms), transform 660ms cubic-bezier(.2, .75, .25, 1) var(--space-reveal-delay, 0ms);
}

.space-motion-ready .space-reveal.is-space-visible {
  opacity: 1;
  transform: translateY(0);
}

html.space-theme .hero,
html.space-theme .band,
html.space-theme .comparison,
html.space-theme .pricing,
html.space-theme .faq-section,
html.space-theme .audit,
html.space-theme .demo-shell,
html.space-theme .onboarding-page,
html.space-theme .payment-page,
html.space-theme .policy-page,
html.space-theme .success-page {
  background: color-mix(in srgb, var(--canvas) 68%, transparent);
  backdrop-filter: blur(2px);
}

html.space-theme .billing-hero,
html.space-theme .policy-heading {
  background: color-mix(in srgb, var(--hero-bg) 76%, transparent);
}

html.space-theme .site-header {
  background: color-mix(in srgb, var(--header-bg) 90%, transparent);
}

.mission-interface-ready .space-sector {
  position: relative;
  isolation: isolate;
}

.space-sector-tag {
  position: absolute;
  top: 22px;
  right: max(24px, calc((100vw - 1180px) / 2));
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--aqua, #62d5ce) 32%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface, #fff) 66%, transparent);
  color: color-mix(in srgb, var(--ink, #122025) 66%, transparent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
  pointer-events: none;
}

.space-sector-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aqua, #62d5ce);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--aqua, #62d5ce) 13%, transparent);
  animation: space-sector-signal 2.6s ease-in-out infinite;
}

.space-launch-zone > .space-sector-tag,
.auth-shell > .space-sector-tag,
.liftoff-main > .space-sector-tag {
  right: 24px;
}

.mission-orbit-nav {
  --mission-rail: color-mix(in srgb, var(--aqua, #62d5ce) 28%, var(--line));
  --mission-rail-offset: 16px;
  position: fixed;
  top: 50%;
  right: 14px;
  z-index: 35;
  display: grid;
  gap: 5px;
  padding: 10px 7px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface, #fff) 82%, transparent);
  box-shadow: 0 14px 36px rgba(4, 18, 27, 0.12);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.mission-orbit-nav::before,
.mission-orbit-progress {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  right: var(--mission-rail-offset);
  width: 1px;
  background: var(--mission-rail);
  pointer-events: none;
}

.mission-orbit-progress {
  bottom: auto;
  height: var(--mission-scroll, 0%);
  max-height: calc(100% - 36px);
  background: var(--aqua, #62d5ce);
  box-shadow: 0 0 8px color-mix(in srgb, var(--aqua, #62d5ce) 46%, transparent);
  transition: height 160ms linear;
}

.mission-orbit-nav a {
  position: relative;
  z-index: 1;
  min-width: 20px;
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-left: 6px;
  color: var(--muted);
  text-decoration: none;
}

.mission-orbit-dot {
  order: 2;
  width: 7px;
  height: 7px;
  margin: 0 6px;
  border: 1px solid color-mix(in srgb, var(--muted) 76%, transparent);
  border-radius: 50%;
  background: var(--surface, #fff);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.mission-orbit-label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: max-width 220ms ease, opacity 180ms ease;
}

.mission-orbit-nav:hover .mission-orbit-label,
.mission-orbit-nav:focus-within .mission-orbit-label {
  max-width: 74px;
  opacity: 1;
}

.mission-orbit-nav a:hover,
.mission-orbit-nav a:focus-visible,
.mission-orbit-nav a.is-active {
  color: var(--ink);
}

.mission-orbit-nav a.is-active .mission-orbit-dot {
  border-color: var(--aqua, #62d5ce);
  background: var(--aqua, #62d5ce);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--aqua, #62d5ce) 16%, transparent);
  transform: scale(1.16);
}

html[data-theme="dark"].space-theme .space-sector-tag,
html[data-theme="dark"].space-theme .mission-orbit-nav {
  background: color-mix(in srgb, var(--surface, #131f23) 78%, transparent);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

@keyframes space-sector-signal {
  0%, 100% { opacity: 0.42; transform: scale(0.78); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes space-header-scan {
  0% { transform: translateX(-32vw); opacity: 0.22; }
  45% { opacity: 0.7; }
  100% { transform: translateX(4vw); opacity: 0.3; }
}

@keyframes space-signal-pulse {
  0%, 100% { transform: scale(0.72); opacity: 0.38; }
  50% { transform: scale(1.18); opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .space-background {
    transform: none;
  }

  html.space-theme .site-header::after,
  html.space-theme .app-topbar::after,
  html.space-theme .liftoff-header::after,
  html.space-theme .eyebrow::after {
    animation: none;
  }

  .space-sector-tag i {
    animation: none;
  }

  .mission-orbit-progress {
    transition: none;
  }

  .space-motion-ready .space-reveal,
  .space-motion-ready .space-reveal.is-space-visible {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 680px) {
  .space-sector-tag,
  .mission-orbit-nav {
    display: none;
  }

  html.space-theme .product-section::before,
  html.space-theme .band::before,
  html.space-theme .comparison::before,
  html.space-theme .pricing::before,
  html.space-theme .faq-section::before,
  html.space-theme .audit::before {
    top: 18px;
    left: 7px;
    height: 36px;
  }
}
