/* LeadLift orbital operations visual system. Loaded after all page-level styles. */

@font-face {
  font-family: "Inter Variable";
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk Variable";
  src: url("assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font-display: "Space Grotesk Variable", "Bahnschrift", "Segoe UI", sans-serif;
  --font-ui: "Inter Variable", "Segoe UI Variable", "Segoe UI", sans-serif;
  --bg: #edf4f7;
  --surface: #fbfdfe;
  --surface-2: #e4eef2;
  --surface-3: #d8e6eb;
  --ink: #12242c;
  --muted: #526771;
  --line: #bfd0d7;
  --brand: #087d82;
  --brand-dark: #075d66;
  --brand-soft: #d9efee;
  --accent: #db7a1f;
  --danger: #b83f48;
  --success: #13745b;
  --paper: #fbfdfe;
  --canvas: #edf4f7;
  --soft: #e1efee;
  --teal: #087d82;
  --teal-dark: #075d66;
  --blue: #2869a8;
  --blue-soft: #e0ebf5;
  --amber: #db7a1f;
  --amber-soft: #f8ead9;
  --hero-bg: #e5f0f4;
  --section-blue: #e1edf3;
  --section-neutral: #e9f1f4;
  --surface-subtle: #f3f8fa;
  --field-bg: #f8fbfc;
  --header-bg: rgba(247, 251, 252, 0.9);
  --focus-ring: rgba(8, 125, 130, 0.26);
  --shadow: 0 18px 48px rgba(19, 46, 58, 0.1);
  --shadow-strong: 0 24px 68px rgba(18, 49, 62, 0.14);
  --radius: 6px;
  --max: 1180px;
  --orbital-band: rgba(247, 251, 252, 0.78);
  --orbital-band-alt: rgba(226, 238, 242, 0.76);
  --orbital-grid: rgba(45, 97, 116, 0.11);
  --orbital-glow: rgba(8, 125, 130, 0.18);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071116;
  --surface: #0d1a20;
  --surface-2: #12262d;
  --surface-3: #19343c;
  --ink: #eef6f7;
  --muted: #a8bcc3;
  --line: #28434b;
  --brand: #62d6d0;
  --brand-dark: #7fdfda;
  --brand-soft: #143a3c;
  --accent: #f1a23a;
  --danger: #ff8c93;
  --success: #74d5af;
  --paper: #0d1a20;
  --canvas: #071116;
  --soft: #12322f;
  --teal: #62d6d0;
  --teal-dark: #8ae5e0;
  --blue: #8bb8e6;
  --blue-soft: #122b3c;
  --amber: #f1a23a;
  --amber-soft: #3d2a16;
  --hero-bg: #08161c;
  --section-blue: #0d2029;
  --section-neutral: #09171d;
  --surface-subtle: #102128;
  --field-bg: #0c1a20;
  --header-bg: rgba(7, 17, 22, 0.9);
  --focus-ring: rgba(98, 214, 208, 0.3);
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.3);
  --shadow-strong: 0 28px 76px rgba(0, 0, 0, 0.4);
  --orbital-band: rgba(8, 23, 29, 0.82);
  --orbital-band-alt: rgba(13, 32, 39, 0.8);
  --orbital-grid: rgba(132, 190, 207, 0.09);
  --orbital-glow: rgba(98, 214, 208, 0.18);
}

html {
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  scroll-padding-top: 76px;
}

[hidden] {
  display: none !important;
}

body,
body.product-site,
body.product-app,
body.auth-page,
body.liftoff-page {
  min-width: 320px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 430;
  line-height: 1.58;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
.site-header,
.app-topbar,
.app-sidebar,
.liftoff-sidebar,
.liftoff-composer,
.feature,
.workflow-preview,
.ai-demo-form,
.ai-demo-output,
.opportunity-results,
.plan-card,
.auth-card,
.workspace-panel,
.metric,
.settings-nav-panel,
.settings-main-panel,
input,
select,
textarea,
button,
.button {
  transition: background-color 280ms ease, border-color 280ms ease, color 280ms ease, box-shadow 220ms ease;
}

h1,
h2,
.product-hero h1,
.section-heading h2,
.policy-heading h1,
.privacy-policy-heading h1,
.billing-hero h1,
.auth-copy h1 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.04;
  text-wrap: balance;
}

h1,
.product-hero h1,
.policy-heading h1,
.privacy-policy-heading h1,
.billing-hero h1 {
  font-size: 4rem;
}

h2,
.section-heading h2 {
  font-size: 2.85rem;
}

h3,
h4,
button,
.button,
input,
select,
textarea,
label,
.nav,
.app-nav,
.price,
.metric-value {
  font-family: var(--font-ui);
  letter-spacing: 0;
}

.auth-preview-state {
  min-height: 355px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 20px;
}

.auth-preview-state h2,
.auth-preview-state p,
.auth-preview-state small {
  margin: 0;
}

.auth-preview-state h2 {
  font: 650 clamp(1.25rem, 2vw, 1.55rem)/1.2 var(--font-display);
}

.auth-preview-state p,
.auth-preview-state small {
  color: var(--muted);
}

.auth-preview-status {
  width: max-content;
  padding: 5px 8px;
  border: 1px solid var(--orb-line-strong);
  color: var(--brand);
  background: var(--brand-soft);
  font-size: .75rem;
  font-weight: 750;
}

.auth-preview-fields {
  display: grid;
  gap: 10px;
}

.auth-preview-fields span {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--orb-line);
  background: var(--input-bg);
  color: var(--muted);
}

h3 { font-size: 1.125rem; font-weight: 720; line-height: 1.25; }
p { text-wrap: pretty; }

.eyebrow {
  min-height: 24px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  border-radius: 0;
  background: currentColor;
}

html.space-theme .eyebrow::after {
  width: 5px;
  height: 5px;
  animation-duration: 3.4s;
}

/* Daylight atmosphere and orbital-night bands */
html.space-theme { background: #edf4f7; }
html.space-theme[data-theme="dark"] { background: #071116; }

html.space-theme .hero,
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 .demo-shell,
html.space-theme .onboarding-page,
html.space-theme .payment-page,
html.space-theme .policy-page,
html.space-theme .success-page,
html.space-theme .privacy-policy-page {
  background: var(--orbital-band);
  border-color: var(--line);
  backdrop-filter: blur(4px);
}

html.space-theme body.product-site main > section:nth-of-type(even),
html.space-theme .policy-content section:nth-child(even),
html.space-theme .privacy-policy-content section:nth-child(even) {
  background: var(--orbital-band-alt);
}

html.space-theme body.product-site main > section,
html.space-theme main.policy-page,
html.space-theme main.privacy-policy-page {
  border-top: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
}

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: 44px;
  left: max(20px, calc((100vw - var(--max)) / 2 - 20px));
  width: 1px;
  height: 40px;
  background: var(--brand);
  opacity: 0.45;
}

.space-sector-tag { display: none !important; }

.mission-orbit-nav {
  --mission-rail-offset: 14px;
  right: 12px;
  gap: 2px;
  padding: 8px 5px;
  border-color: color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  box-shadow: 0 12px 30px rgba(11, 31, 40, 0.1);
}

.mission-orbit-nav a { min-height: 27px; }
.mission-orbit-dot { width: 6px; height: 6px; margin-inline: 6px; }
.mission-orbit-label { font-size: 0.6875rem; font-weight: 650; text-transform: none; }

/* Header and navigation */
.site-header,
.liftoff-header,
.app-topbar {
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--header-bg) 94%, transparent) !important;
  box-shadow: 0 8px 28px rgba(18, 45, 57, 0.06);
  backdrop-filter: blur(18px) saturate(120%);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .liftoff-header,
html[data-theme="dark"] .app-topbar {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

.site-header {
  min-height: 70px;
  gap: clamp(14px, 1.45vw, 22px);
}
.brand { gap: 11px; }
.brand strong,
.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
}

.brand small,
.brand-subtitle {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 550;
  letter-spacing: 0;
  text-transform: none;
}

.brand-logo,
.brand-mark { box-shadow: 0 8px 22px rgba(10, 37, 48, 0.16); }

.nav a {
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 620;
  line-height: 1;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

.site-header .nav { gap: clamp(12px, 1.25vw, 20px); }

.site-header .header-actions {
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.site-header .header-actions .button {
  flex: 0 0 auto;
  padding-inline: 14px;
  font-size: 0.8125rem;
  line-height: 1;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--brand-soft) 72%, transparent);
  color: var(--ink);
}

/* Icon system */
.ui-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  stroke-width: 1.8;
  pointer-events: none;
}

.theme-toggle {
  width: 40px;
  min-width: 40px;
  padding: 0;
}

.theme-toggle [data-theme-icon] {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.theme-toggle [data-theme-icon]::before { content: none !important; }

/* Buttons and controls */
.button,
button:not(.mobile-menu-button):not(.account-close) {
  min-height: 44px;
  border-radius: 5px;
  font-weight: 680;
  box-shadow: none;
}

/* Compact controls should read as labels, not wrap like body copy. */
:where(
  .button,
  .status-pill,
  .tool-kicker,
  .training-status,
  .mission-completion,
  .planned-badge,
  .billing-toggle button,
  .source-picker button,
  .flow-source,
  .auth-tabs button,
  .settings-category-nav button,
  .app-nav button,
  .app-top-actions button,
  [role="tab"]
) {
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

html.space-theme .button::after,
html.space-theme button:not(.mobile-menu-button):not(.account-close)::after { display: none; }

.button.primary,
button.primary,
.nav a.nav-cta {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #ffffff;
}

html[data-theme="dark"] .button.primary,
html[data-theme="dark"] button.primary,
html[data-theme="dark"] .nav a.nav-cta {
  color: #061215;
}

.button:hover,
button:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--brand) 72%, var(--line));
  transform: translateY(-1px);
}

.button.primary:hover,
button.primary:not(:disabled):hover {
  background: color-mix(in srgb, var(--brand-dark) 88%, var(--ink));
  border-color: color-mix(in srgb, var(--brand-dark) 88%, var(--ink));
}

button:disabled,
.button[aria-disabled="true"],
[aria-busy="true"] {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

button[aria-pressed="true"],
button.is-selected,
.button.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--brand);
}

input,
select,
textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--field-bg, var(--surface));
  color: var(--ink);
  font-weight: 470;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

input:hover,
select:hover,
textarea:hover { border-color: color-mix(in srgb, var(--brand) 42%, var(--line)); }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid,
.field-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 14%, transparent);
}

.success,
.success-message,
[data-state="success"] { color: var(--success); }
.warning,
.warning-message,
[data-state="warning"] { color: var(--accent); }
.error,
.error-message,
[data-state="error"] { color: var(--danger); }

/* Hero and operational sections */
.product-hero {
  min-height: 620px;
  padding-top: 62px;
  padding-bottom: 50px;
  gap: 52px;
}

.product-hero h1 { max-width: 640px; margin-bottom: 18px; }
.hero-statement { font-size: 1.35rem; font-weight: 610; line-height: 1.42; }
.hero-support { font-size: 1rem; line-height: 1.68; }
.hero-facts { gap: 24px; font-size: 0.8125rem; }

.product-section { padding-top: 80px; padding-bottom: 80px; }
.section-heading { max-width: 800px; margin-bottom: 34px; }
.section-heading > p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 1rem; }

html.space-theme .space-launch-zone::before {
  border-color: color-mix(in srgb, var(--brand) 24%, transparent);
  border-left-color: transparent;
  border-right-color: color-mix(in srgb, var(--accent) 34%, transparent);
  opacity: 0.82;
}

html.space-theme .space-launch-zone::after {
  height: 1px;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
}

.rocket-hero-scene { isolation: isolate; }

.feature,
.workflow-preview,
.ai-demo-form,
.ai-demo-output,
.opportunity-results,
.plan-card,
.auth-card,
.workspace-panel,
.metric,
.billing-card,
.settings-nav-panel,
.settings-main-panel,
.liftoff-message,
.liftoff-composer,
.faq-list details,
.faq-grid details {
  border-color: var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: none;
}

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(--brand) 58%, var(--line));
  box-shadow: 0 12px 32px rgba(9, 36, 47, 0.08);
  transform: none;
}

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 14px 36px rgba(0, 0, 0, 0.2);
}

.workflow-steps::before,
.flow-path,
.value-strip::before {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
}

.status-dot,
.ai-status-dot,
.live-dot {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 13%, transparent);
}

.empty-state,
[data-empty-state] {
  min-height: 180px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 34px 22px;
  border: 1px dashed color-mix(in srgb, var(--line) 90%, transparent);
  background: color-mix(in srgb, var(--surface-2) 56%, transparent);
  color: var(--muted);
  text-align: center;
}

.empty-state::before,
[data-empty-state]::before {
  content: "";
  width: 40px;
  height: 40px;
  border: 1px solid var(--brand);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px color-mix(in srgb, var(--brand) 8%, transparent);
}

/* Pricing hierarchy */
.plan-grid,
.plan-comparison { align-items: stretch; gap: 14px; }

.plan-card { padding: 26px; }
.plan-card.featured {
  border-width: 1px;
  border-color: var(--brand);
  box-shadow: 0 18px 44px var(--orbital-glow);
}

.plan-card .price,
.billing-card .price {
  font-family: var(--font-display);
  font-weight: 640;
  letter-spacing: 0;
}

.plan-feature-row { min-height: 47px; border-color: color-mix(in srgb, var(--line) 72%, transparent); }
.plan-feature-status { font-weight: 760; }
.plan-capacity-track { background: var(--surface-3); }

/* Workspace and LiftOff AI */
.app-shell { background: transparent; }
.app-sidebar,
.liftoff-sidebar {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px) saturate(115%);
}

.app-nav button,
.settings-category-nav button {
  border-radius: 4px;
  font-weight: 600;
}

.app-nav button.is-active,
.settings-category-nav button.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
}

.app-topbar h1 { font-family: var(--font-display); font-weight: 630; }
.workspace-panel h2,
.workspace-panel h3,
.settings-pane-heading h3,
.liftoff-chat-header h1 {
  font-family: var(--font-ui);
  font-weight: 720;
}

.settings-workspace { gap: 18px; }
.settings-nav-panel,
.settings-main-panel { overflow: clip; }
.settings-pane-heading { padding-bottom: 20px; }
.settings-save-bar { background: color-mix(in srgb, var(--surface) 92%, transparent); }

.liftoff-message.assistant {
  border-left: 2px solid color-mix(in srgb, var(--brand) 62%, transparent);
}

.liftoff-composer:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Legal, policy, onboarding and confirmation pages */
.policy-page,
.privacy-policy-page { min-height: calc(100vh - 70px); }

.policy-heading,
.privacy-policy-heading,
.billing-hero {
  padding-top: 72px;
  padding-bottom: 58px;
  background: color-mix(in srgb, var(--hero-bg) 86%, transparent) !important;
}

.policy-heading > p:not(.eyebrow),
.privacy-policy-heading p,
.billing-hero p { max-width: 760px; color: var(--muted); font-size: 1rem; }

.policy-layout,
.privacy-policy-layout { gap: 42px; }

.policy-content section,
.privacy-policy-content section {
  padding: 28px 0;
  border-color: var(--line);
  background: transparent !important;
}

.policy-content h2,
.privacy-policy-content h2 {
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 720;
  line-height: 1.3;
}

.policy-content p,
.privacy-policy-content p { color: var(--muted); line-height: 1.75; }
.policy-nav { border-color: var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); }

.demo-shell,
.onboarding-page,
.payment-page,
.success-page { min-height: calc(100vh - 70px); }

/* Theme transition: a restrained daylight-to-orbit scan */
html.theme-transitioning::after {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 9999;
  width: 2px;
  background: var(--brand);
  box-shadow: 0 0 34px 12px color-mix(in srgb, var(--brand) 26%, transparent);
  pointer-events: none;
  animation: orbital-theme-scan 620ms cubic-bezier(.2, .72, .22, 1) both;
}

@keyframes orbital-theme-scan {
  0% { left: 0; opacity: 0; }
  18% { opacity: 0.75; }
  82% { opacity: 0.75; }
  100% { left: 100%; opacity: 0; }
}

@media (max-width: 1080px) {
  h1,
  .product-hero h1,
  .policy-heading h1,
  .privacy-policy-heading h1,
  .billing-hero h1 { font-size: 3.35rem; }
  h2,
  .section-heading h2 { font-size: 2.45rem; }
  .product-hero { gap: 36px; }
}

@media (max-width: 900px) {
  .product-hero { min-height: auto; padding-top: 50px; padding-bottom: 48px; }
  .rocket-hero-scene { min-height: 400px; }
  .product-section { padding-top: 64px; padding-bottom: 64px; }
  .plan-grid,
  .plan-comparison { grid-template-columns: 1fr; }
  .mission-orbit-nav { display: none; }
}

@media (max-width: 680px) {
  h1,
  .product-hero h1,
  .policy-heading h1,
  .privacy-policy-heading h1,
  .billing-hero h1 { font-size: 2.65rem; }
  h2,
  .section-heading h2 { font-size: 2.05rem; }
  body,
  body.product-site,
  body.product-app,
  body.auth-page,
  body.liftoff-page { font-size: 15px; }
  .site-header { min-height: 64px; }
  .brand-logo { width: 38px; height: 38px; }
  .header-actions { gap: 6px; }
  .header-actions .button.primary { min-width: 0; padding-inline: 10px; font-size: 12.5px; }
  .product-hero { gap: 22px; padding: 30px 16px 26px; }
  .hero-statement { font-size: 1.15rem; }
  .hero-support { font-size: 0.98rem; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0; }
  .hero-actions .button { min-height: 46px; padding-inline: 10px; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .product-section { padding: 56px 16px; }
  .section-heading { margin-bottom: 28px; }
  .feature,
  .workflow-preview,
  .ai-demo-form,
  .ai-demo-output,
  .opportunity-results,
  .plan-card,
  .auth-card,
  .workspace-panel,
  .metric,
  .billing-card { border-radius: 5px; }
  .policy-heading,
  .privacy-policy-heading,
  .billing-hero { padding: 52px 20px 40px; }
  .policy-content section,
  .privacy-policy-content section { padding: 24px 0; }
  .rocket-hero,
  .rocket-hero-scene { height: clamp(220px, 60vw, 250px); min-height: 220px; }
}

@media (max-width: 480px) {
  h1,
  .product-hero h1,
  .policy-heading h1,
  .privacy-policy-heading h1,
  .billing-hero h1 { font-size: 2.35rem; }
  .product-hero { gap: 14px; padding-top: 24px; padding-bottom: 12px; }
  .hero-actions { margin: 16px 0; }
  .hero-facts { gap: 6px; }
  .rocket-hero,
  .rocket-hero-scene { height: 180px; min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  html.theme-transitioning::after { display: none; }
}

/* Open-space environment: content floats above the shared orbital canvas. */
:root {
  --orbital-panel: rgba(248, 252, 253, 0.76);
  --orbital-panel-strong: rgba(248, 252, 253, 0.9);
  --orbital-panel-soft: rgba(231, 241, 245, 0.64);
  --orbital-scrim: rgba(234, 243, 247, 0.7);
}

html[data-theme="dark"] {
  --orbital-panel: rgba(8, 22, 29, 0.72);
  --orbital-panel-strong: rgba(8, 22, 29, 0.9);
  --orbital-panel-soft: rgba(14, 35, 43, 0.62);
  --orbital-scrim: rgba(3, 10, 16, 0.68);
}

html.space-theme,
html.space-theme body {
  background: transparent;
}

html.space-theme .space-background {
  opacity: 1;
}

html.space-theme .product-section,
html.space-theme .faq-section,
html.space-theme body.product-site main > section:nth-of-type(even),
html.space-theme .band,
html.space-theme .comparison,
html.space-theme .pricing,
html.space-theme .audit,
html.space-theme .policy-page,
html.space-theme .privacy-policy-page,
html.space-theme .demo-shell,
html.space-theme .onboarding-page,
html.space-theme .payment-page,
html.space-theme .success-page {
  background: transparent;
  backdrop-filter: none;
}

html.space-theme body.product-site main > section,
html.space-theme main.policy-page,
html.space-theme main.privacy-policy-page {
  border-top-color: color-mix(in srgb, var(--line) 52%, transparent);
}

html.space-theme .section-heading,
html.space-theme .policy-heading > *,
html.space-theme .privacy-policy-heading > *,
html.space-theme .billing-hero > * {
  position: relative;
  z-index: 1;
}

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 .auth-card,
html.space-theme .workspace-panel,
html.space-theme .metric,
html.space-theme .billing-card,
html.space-theme .settings-nav-panel,
html.space-theme .settings-main-panel,
html.space-theme .liftoff-message,
html.space-theme .liftoff-composer,
html.space-theme .faq-list details,
html.space-theme .faq-grid details,
html.space-theme .pilot-stage-detail {
  background: var(--orbital-panel);
  backdrop-filter: blur(12px) saturate(112%);
}

html.space-theme .site-header,
html.space-theme .liftoff-header,
html.space-theme .app-topbar,
html.space-theme .clean-footer {
  background: var(--orbital-panel-strong) !important;
  backdrop-filter: blur(20px) saturate(118%);
}

html.space-theme .value-strip,
html.space-theme .source-picker,
html.space-theme .pilot-stage-tabs,
html.space-theme .plan-legend,
html.space-theme .app-sidebar,
html.space-theme .liftoff-sidebar {
  background: var(--orbital-panel-soft);
  backdrop-filter: blur(14px) saturate(110%);
}

html.space-theme .product-hero,
html.space-theme .space-launch-zone,
html.space-theme .closing-band {
  background: transparent;
}

html.space-theme .product-hero::before,
html.space-theme .product-hero::after,
html.space-theme .space-launch-zone::before,
html.space-theme .space-launch-zone::after {
  display: none;
}

html.space-theme .closing-band {
  border-block: 1px solid color-mix(in srgb, var(--line) 66%, transparent);
  color: var(--ink);
  backdrop-filter: none;
}

html.space-theme .closing-band > * {
  position: relative;
  z-index: 1;
}

html.space-theme .closing-band .button.quiet {
  border-color: var(--line);
  color: var(--ink);
}

html.space-theme .section-heading h2,
html.space-theme .product-hero h1 {
  text-shadow: 0 2px 24px color-mix(in srgb, var(--bg) 78%, transparent);
}

html[data-theme="dark"].space-theme .section-heading h2,
html[data-theme="dark"].space-theme .product-hero h1 {
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.72);
}

@media (max-width: 680px) {
  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 .plan-card,
  html.space-theme .workspace-panel,
  html.space-theme .faq-list details,
  html.space-theme .faq-grid details {
    backdrop-filter: blur(9px) saturate(108%);
  }
}
