:root {
  --navy: #17231f; --navy-2: #263831; --teal: #087f68; --teal-dark: #056552;
  --teal-soft: #dff4ec; --canvas: #f4f7f5; --surface: #fff; --surface-2: #edf3f0;
  --text: #1d2925; --muted: #5c6b65; --line: #ccd8d3; --focus: #f0a21a;
  --success: #17663f; --warning: #80540c; --danger: #a13535; --info: #326bd6;
  --radius: 8px; --shadow: 0 12px 30px rgba(21,32,28,.10); --max: 1180px;
  --desktop-brand-anchor: #102a43; --desktop-accent-anchor: #0d7c74;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--surface); font-family: Inter, Aptos, "Segoe UI Variable", "Segoe UI", sans-serif; line-height: 1.55; }
body.portal-page { background: var(--canvas); }
.public-beta-notice { padding: 12px max(20px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid #b9d7d2; background: #e8f6f3; color: #123f3a; font-size: .9rem; line-height: 1.45; }
.beta-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid #197366; border-radius: 6px; background: #e8f6f3; color: #0b554b; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.test-document-preview { border: 2px solid #197366; padding: 20px; background: #fff; }
.test-document-watermark { color: #a12d22; font-size: 1.1rem; font-weight: 900; text-transform: uppercase; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--navy); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 40; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px max(24px, calc((100vw - var(--max))/2)); background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-size: 20px; font-weight: 800; }
.brand img { width: 38px; height: 38px; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.main-nav a:hover { color: var(--teal-dark); }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: transparent; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: var(--navy); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 19px; border: 1px solid transparent; border-radius: 6px; text-decoration: none; font-weight: 750; cursor: pointer; }
.button-small { min-height: 40px; padding: 0 15px; }
.button-primary { color: #fff !important; background: var(--teal); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { color: var(--teal-dark); background: #fff; border-color: var(--teal); }
.button-subtle { color: var(--navy); background: var(--surface-2); border-color: var(--line); }
.button-danger { color: var(--danger); background: #fff; border-color: #dfaaaa; }
.button[disabled] { opacity: .55; cursor: not-allowed; }
.button-row, .form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 13px; font-weight: 800; text-transform: uppercase; }
h1, h2, h3, p { letter-spacing: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: 56px; line-height: 1.06; }
h2 { margin: 0; font-size: 38px; line-height: 1.14; }
h3 { line-height: 1.25; }
.hero { position: relative; min-height: 650px; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--navy); }
.hero-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(23,35,31,.82); }
.ccai-orbit-signature { position: absolute; z-index: 1; top: 13%; right: max(7%, calc((100vw - var(--max))/2)); width: clamp(116px, 15vw, 190px); aspect-ratio: 1; pointer-events: none; border: 1px solid rgba(105,212,202,.40); border-radius: 57% 43% 61% 39%; box-shadow: 0 0 0 18px rgba(105,212,202,.05), 0 0 0 42px rgba(105,212,202,.025); transform: rotate(-17deg); animation: ccai-orbit-drift 9s ease-in-out infinite; }
.ccai-orbit-signature::before { position: absolute; inset: 23%; border: 2px solid rgba(105,212,202,.78); border-radius: 50%; content: ""; }
.ccai-orbit-signature i { position: absolute; width: 8px; height: 8px; background: #a7ede6; border-radius: 50%; box-shadow: 0 0 18px rgba(167,237,230,.55); }
.ccai-orbit-signature i:nth-child(1) { top: 13%; right: 19%; }
.ccai-orbit-signature i:nth-child(2) { right: 10%; bottom: 30%; }
.ccai-orbit-signature i:nth-child(3) { bottom: 14%; left: 24%; }
@keyframes ccai-orbit-drift { 0%, 100% { transform: rotate(-17deg) translateY(0); } 50% { transform: rotate(-12deg) translateY(-5px); } }
.hero-content { position: relative; z-index: 2; width: min(700px, calc(100% - 48px)); margin-left: max(24px, calc((100vw - var(--max))/2)); padding: 72px 0; }
.hero .eyebrow { color: #69d4ca; }
.hero-content > p:not(.eyebrow):not(.mode-note) { max-width: 650px; margin: 22px 0 0; color: #edf5f8; font-size: 20px; }
.mode-note { margin: 18px 0 0; color: #c6d7e1; font-size: 13px; }
.proof-band { display: grid; grid-template-columns: repeat(4,1fr); max-width: var(--max); margin: auto; padding: 28px 0; }
.proof-band div { padding: 0 24px; border-right: 1px solid var(--line); }
.proof-band div:last-child { border: 0; }
.proof-band strong, .proof-band span { display: block; }
.proof-band span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.section { padding: 88px max(24px, calc((100vw - var(--max))/2)); }
.section-tint { background: var(--canvas); }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading > p:last-child, .lead { color: var(--muted); font-size: 18px; }
.feature-grid, .plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.feature, .plan-card, .panel { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px rgba(21,32,28,.06); }
.feature-tag { margin: 0; color: var(--teal); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.feature h2, .feature h3 { margin: 13px 0 8px; font-size: 21px; }
.feature p:last-child { margin-bottom: 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps li { min-width: 0; padding: 24px; border-top: 3px solid var(--teal); background: #fff; }
.steps li > span { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--navy); border-radius: 50%; font-weight: 800; }
.steps h3 { margin: 17px 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.security-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.control-list { border-top: 1px solid var(--line); }
.control-list div { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.control-list span { color: var(--muted); }
.text-link { color: var(--teal-dark); font-weight: 750; }
.plan-card { display: flex; flex-direction: column; }
.plan-card h2, .plan-card h3 { margin: 0; font-size: 24px; }
.plan-label { align-self: flex-start; margin: -8px 0 14px; padding: 4px 8px; color: var(--teal-dark); background: var(--teal-soft); border-radius: 4px; font-size: 12px; font-weight: 800; }
.plan-audience { min-height: 48px; color: var(--muted); }
.plan-price { margin: 16px 0 0; font-size: 34px; font-weight: 800; }
.plan-price span { color: var(--muted); font-size: 14px; font-weight: 600; }
.plan-card ul { flex: 1; margin: 20px 0; padding: 0; list-style: none; }
.plan-card li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.plan-card[data-plan="pro"] { border-top: 4px solid var(--teal); }
.tax-note, .loading-state, .helper { color: var(--muted); font-size: 13px; }
.error-state, .success-state, .notice { padding: 16px; border: 1px solid; border-radius: 6px; }
.error-state { color: var(--danger); border-color: #e4b2b2; background: #fff5f5; }
.success-state { color: var(--success); border-color: #aad7ca; background: #effaf6; }
.notice { color: var(--navy); border-color: #b9cbd8; background: #f2f7fa; }
.faq-list { max-width: 900px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 20px 3px; cursor: pointer; font-weight: 750; }
.faq-list details p { margin: 0 3px 20px; color: var(--muted); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 54px max(24px, calc((100vw - var(--max))/2)); color: #fff; background: var(--navy); }
.cta-band .eyebrow { color: #69d4ca; }
.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; padding: 32px max(24px, calc((100vw - var(--max))/2)); border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a, .site-footer p { color: var(--muted); font-size: 13px; }
.main-nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.page-hero { padding: 72px max(24px, calc((100vw - var(--max))/2)) 60px; background: var(--teal-soft); }
.page-hero > * { max-width: 800px; }
.page-hero p:last-child { color: var(--muted); font-size: 18px; }
.comparison-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.comparison { width: 100%; border-collapse: collapse; font-size: 14px; }
.comparison th, .comparison td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.comparison th { background: var(--surface-2); }
.comparison tr:last-child td { border-bottom: 0; }
.test-banner { padding: 9px 16px; color: #71440b; background: #fff5df; border-bottom: 1px solid #ebd3a2; text-align: center; font-size: 13px; font-weight: 700; }
.auth-layout { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(0,1fr) minmax(430px,560px); }
.auth-context { position: relative; min-height: 680px; display: flex; align-items: end; padding: 64px max(36px, calc((100vw - var(--max))/2)); overflow: hidden; color: #fff; background: var(--navy); }
.auth-context img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .20; }
.auth-context div { position: relative; max-width: 570px; }
.auth-context .eyebrow { color: #69d4ca; }
.auth-context p { color: #dbe8ef; }
.auth-panel { padding: 52px; background: #fff; }
.auth-panel h1 { font-size: 38px; }
.auth-benefits { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.auth-benefits li { position: relative; padding-left: 25px; color: #eaf4f1; }
.auth-benefits li::before { position: absolute; left: 0; content: "✓"; color: #69d4ca; font-weight: 800; }
.auth-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 14px; }
.auth-links a { font-weight: 700; }
.auth-panel [aria-busy="true"] { cursor: progress; opacity: .72; }
.step-progress { display: flex; gap: 6px; margin: 20px 0 28px; }
.step-progress span { height: 5px; flex: 1; background: var(--line); border-radius: 3px; }
.step-progress span.active { background: var(--teal); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field-wide { grid-column: 1/-1; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.field input, .field select { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--text); border: 1px solid #9fb1bf; border-radius: 6px; background: #fff; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; }
.checkbox input { margin-top: 4px; }
.form-message { min-height: 24px; margin-top: 15px; font-size: 14px; }
.form-message.error { color: var(--danger); }
.form-message.success { color: var(--success); }
.portal-shell { display: grid; grid-template-columns: 248px minmax(0,1fr); min-height: calc(100vh - 42px); }
.portal-nav { padding: 26px 18px; color: #fff; background: var(--navy); }
.portal-nav .brand { color: #fff; }
.portal-nav nav { display: grid; gap: 5px; margin-top: 34px; }
.portal-nav nav a { padding: 10px 12px; color: #d6e3ea; border-radius: 6px; text-decoration: none; font-size: 14px; }
.portal-nav nav a.active { color: var(--navy); background: #fff; }
.portal-main { min-width: 0; padding: 38px; }
.portal-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.portal-header h1 { font-size: 38px; }
.status-pill { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; color: var(--success); background: #e6f5ef; font-size: 12px; font-weight: 750; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.panel-wide { grid-column: 1/-1; }
.panel h2 { font-size: 21px; }
.metric { margin-top: 18px; }
.metric-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.progress { height: 9px; margin-top: 7px; overflow: hidden; background: #dfe8ee; border-radius: 5px; }
.progress span { display: block; height: 100%; background: var(--teal); }
.progress.warning span { background: var(--warning); }
.flow-panel { margin-top: 18px; padding: 18px; border-left: 4px solid var(--teal); background: var(--canvas); }
.flow-panel h3 { margin-top: 0; }
.empty-state { padding: 26px; color: var(--muted); border: 1px dashed #9fb1bf; text-align: center; }
.welcome-shell { width: min(920px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 96px; }
.welcome-panel { padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.welcome-panel h1 { max-width: 760px; color: var(--navy); font-size: 46px; }
.welcome-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 28px 0 38px; }
.welcome-summary div { padding: 18px; border: 1px solid var(--line); background: var(--canvas); }
.welcome-summary span, .welcome-summary strong { display: block; }
.welcome-summary span { color: var(--muted); font-size: 13px; }
.welcome-summary strong { margin-top: 5px; font-size: 18px; }
.welcome-steps { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: setup; }
.welcome-steps li { position: relative; min-height: 64px; padding: 14px 16px 14px 62px; border-left: 3px solid var(--teal); background: var(--canvas); counter-increment: setup; }
.welcome-steps li::before { content: counter(setup); position: absolute; left: 17px; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: var(--navy); border-radius: 50%; font-weight: 800; }
.welcome-steps strong, .welcome-steps span { display: block; }
.welcome-steps span { color: var(--muted); }
.legal-status { display: inline-flex; padding: 4px 8px; color: #71440b; background: #fff0ce; border-radius: 4px; font-size: 12px; font-weight: 750; }
.legal-page { background: var(--canvas); }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 10px max(24px, calc((100vw - var(--max))/2)); background: var(--surface); border-bottom: 1px solid var(--line); }
.legal-back { color: var(--teal-dark); font-weight: 700; }
.legal-main { width: min(900px,calc(100% - 48px)); margin: auto; padding: 64px 0 96px; }
.legal-main h1 { color: var(--navy); font-size: 46px; }
.legal-main h2 { font-size: 27px; }
.legal-main h3 { font-size: 19px; }
.legal-main section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.legal-main p, .legal-main li { color: var(--muted); }
.legal-address { color: var(--text); font-style: normal; }
.legal-intro { font-size: 18px; }
.legal-date { font-size: 14px; }
.legal-note { padding: 14px 16px; border-left: 4px solid var(--teal); background: var(--surface); }
.legal-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.legal-table th, .legal-table td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--surface-2); }
.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; }
.form-page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 88px; display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); gap: 48px; align-items: start; }
.form-intro { position: sticky; top: 96px; }
.form-intro h1 { font-size: 46px; line-height: 1.08; margin: 8px 0 18px; }
.form-intro > p { color: var(--muted); font-size: 18px; line-height: 1.65; }
.form-panel { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.form-panel h2 { margin-top: 0; font-size: 28px; }
.optional { color: var(--muted); font-size: 13px; font-weight: 500; }
.platform-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; }
.platform-options legend { padding: 0 8px; font-weight: 700; }
.platform-options label { display: flex; gap: 8px; align-items: center; }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.onboarding-header { min-height: 72px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--surface); }
.pilot-label { color: var(--teal-dark); background: var(--teal-soft); padding: 6px 10px; border-radius: 4px; font-size: 13px; font-weight: 700; }
.onboarding-layout { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 80px; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: start; }
.onboarding-progress { position: sticky; top: 24px; }
.onboarding-progress h1 { margin: 6px 0 10px; font-size: 30px; }
.onboarding-progress > p { color: var(--muted); }
.onboarding-progress ol { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 5px; }
.onboarding-progress li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 9px; border-left: 3px solid transparent; }
.onboarding-progress li > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 13px; font-weight: 700; }
.onboarding-progress li strong, .onboarding-progress li small { display: block; }
.onboarding-progress li small { margin-top: 2px; color: var(--muted); }
.onboarding-progress li.current { background: var(--teal-soft); border-left-color: var(--teal); }
.onboarding-progress li.current > span { color: #fff; background: var(--teal-dark); border-color: var(--teal-dark); }
.onboarding-card { min-height: 560px; padding: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.onboarding-card h2 { margin: 6px 0 20px; font-size: 34px; }
.onboarding-copy { min-height: 300px; color: var(--text); font-size: 17px; line-height: 1.65; }
.onboarding-highlight, .lunar-example { margin: 24px 0; padding: 20px; background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 4px; }
.onboarding-highlight strong, .onboarding-highlight span, .lunar-example strong, .lunar-example span { display: block; }
.onboarding-highlight span, .lunar-example span { margin-top: 5px; }
.check-list { margin: 22px 0; display: grid; gap: 10px; }
.check-list p { margin: 0; padding-left: 30px; position: relative; }
.check-list p::before { content: "✓"; position: absolute; left: 0; color: var(--teal-dark); font-weight: 800; }
.onboarding-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.onboarding-preview div { padding: 20px; border: 1px solid var(--line); border-radius: 6px; }
.onboarding-preview strong, .onboarding-preview span { display: block; }
.onboarding-preview span { margin-top: 6px; color: var(--muted); }
.onboarding-actions { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 22px; }
.onboarding-secondary-actions { display: flex; gap: 22px; margin-top: 18px; }
.text-button { padding: 0; color: var(--teal-dark); border: 0; background: transparent; text-decoration: underline; cursor: pointer; font: inherit; }
.verification-shell { width: min(100% - 32px, 680px); margin: 0 auto; padding: 72px 0 96px; }
.verification-card { padding: 42px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: #101820; color: #f7f9fc; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.verification-card h1 { margin: 8px 0 16px; color: #fff; font-size: clamp(32px, 6vw, 46px); }
.verification-card p { color: #bac5d1; }
.verification-card strong { color: #fff; }
.verification-icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(49,224,174,.45); border-radius: 8px; color: #31e0ae; background: rgba(49,224,174,.08); font-size: 22px; font-weight: 800; }
.verification-actions { display: grid; gap: 12px; margin: 28px 0 22px; }
.verification-card .text-button { justify-self: start; color: #85e9cb; }
.setup-provider-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 24px 0; }
.setup-provider-grid > button, .setup-provider-grid > a, .setup-provider-grid > div { display: grid; align-content: start; gap: 7px; min-height: 116px; padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 6px; color: var(--text); background: var(--surface); text-align: left; text-decoration: none; font: inherit; }
.setup-provider-grid > button, .setup-provider-grid > a { cursor: pointer; }
.setup-provider-grid span { color: var(--muted); font-size: 14px; }
.setup-provider-action input { width: 100%; margin-top: 6px; }
.setup-provider-action .button { justify-self: start; margin-top: 6px; }
.toggle-row { display: flex; align-items: center; gap: 10px; margin: 18px 0; font-weight: 700; }
.setup-status, .setup-review > div { display: grid; gap: 5px; margin: 18px 0; padding: 18px; border-left: 4px solid var(--warning); background: var(--surface-2); }
.setup-status.healthy { border-left-color: var(--teal); }
.setup-status span, .setup-review span { color: var(--muted); }
.setup-summary-line { padding: 12px 14px; background: var(--teal-soft); }
.setup-review { display: grid; gap: 10px; margin-top: 24px; }
.operating-profile-form { display: grid; gap: 22px; margin-top: 22px; }
.operating-profile-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.operating-profile-form legend { margin-bottom: 10px; font-weight: 800; }
.operating-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.operating-profile-choice { display: flex; align-items: flex-start; gap: 9px; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.operating-profile-choice input { flex: 0 0 auto; margin-top: 4px; }
.operating-profile-choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
@media (max-width: 920px) {
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px; background: #fff; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 0; }
  .proof-band, .feature-grid, .plan-grid, .dashboard-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .security-split, .auth-layout { grid-template-columns: 1fr; }
  .form-page, .onboarding-layout { grid-template-columns: 1fr; }
  .form-intro, .onboarding-progress { position: static; }
  .onboarding-progress ol { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .onboarding-progress li { display: block; padding: 6px; border-left: 0; border-bottom: 3px solid transparent; }
  .onboarding-progress li.current { border-bottom-color: var(--teal); }
  .onboarding-progress li div { display: none; }
  .auth-context { min-height: 360px; }
  .portal-shell { grid-template-columns: 1fr; }
  .portal-nav { padding: 16px 24px; }
  .portal-nav nav { display: flex; overflow-x: auto; margin-top: 16px; }
}
@media (max-width: 620px) {
  h1 { font-size: 40px; } h2 { font-size: 30px; }
  .hero { min-height: 700px; }
  .hero-overlay { background: rgba(23,35,31,.92); }
  .button-row, .form-actions { flex-direction: column; }
  .button-row .button, .form-actions .button { width: 100%; }
  .proof-band, .feature-grid, .steps, .plan-grid, .dashboard-grid, .form-grid { grid-template-columns: 1fr; }
  .proof-band { padding: 18px 24px; }
  .proof-band div { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .control-list div { grid-template-columns: 1fr; gap: 5px; }
  .cta-band, .portal-header { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
  .legal-header { align-items: flex-start; flex-direction: column; padding-top: 18px; padding-bottom: 18px; }
  .legal-main { width: min(100% - 32px, 900px); padding-top: 42px; }
  .legal-main h1 { font-size: 38px; }
  .legal-table { display: block; overflow-x: auto; }
  .auth-panel, .portal-main { padding: 28px 22px; }
  .welcome-shell { width: min(100% - 28px, 920px); padding-top: 36px; }
  .welcome-panel { padding: 26px 20px; }
  .welcome-panel h1 { font-size: 36px; }
  .welcome-summary { grid-template-columns: 1fr; }
  .auth-context { min-height: 280px; padding: 34px 24px; }
  .field-wide { grid-column: auto; }
  .form-page, .onboarding-layout { width: min(100% - 24px, 1240px); padding-top: 28px; }
  .onboarding-header { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .onboarding-header .brand { min-width: 0; }
  .onboarding-header .beta-badge { max-width: 100%; white-space: normal; text-align: center; }
  .form-intro h1 { font-size: 36px; }
  .form-panel, .onboarding-card { padding: 22px 18px; }
  .platform-options, .onboarding-preview { grid-template-columns: 1fr; }
  .onboarding-actions { align-items: stretch; }
  .onboarding-actions .button { width: 100%; }
  .onboarding-secondary-actions { flex-direction: column; align-items: flex-start; }
  .verification-card { padding: 28px 20px; }
  .setup-provider-grid { grid-template-columns: 1fr; }
  .operating-profile-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ccai-orbit-signature { animation: none; } }

/* Canonical Lunar marketing system */
.lunar-brand span { display: flex; flex-direction: column; line-height: 1; }
.lunar-brand small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.nav-login { margin-left: 8px; }
.lunar-hero { min-height: 680px; }
.lunar-hero .hero-background { object-position: center 32%; }
.lunar-hero .hero-overlay { background: rgba(23,35,31,.78); }
.marketing-hero { background: #edf6f2; border-bottom: 1px solid var(--line); }
.marketing-hero h1 { max-width: 920px; }
.problem-solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.problem-solution-grid > div { padding: 34px; }
.problem-solution-grid > div + div { border-left: 1px solid var(--line); background: var(--teal-soft); }
.problem-solution-grid h3 { margin-top: 0; font-size: 24px; }
.problem-solution-grid li { margin: 10px 0; }
.feature-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.feature-detail { min-width: 0; padding: 30px; background: var(--surface); }
.feature-detail h2 { font-size: 24px; }
.feature-detail > p { color: var(--muted); }
.check-grid { display: grid; gap: 8px; margin: 22px 0; padding: 0; list-style: none; }
.check-grid li { position: relative; padding-left: 24px; }
.check-grid li::before { position: absolute; left: 0; color: var(--teal-dark); content: "✓"; font-weight: 800; }
.pricing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.pricing-toolbar strong, .pricing-toolbar span { display: block; }
.pricing-toolbar span { color: var(--muted); font-size: 14px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); }
.segmented button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; }
.segmented button.active { color: #fff; background: var(--teal); }
.segmented button:disabled { opacity: .65; }
.release-gate-note { margin-top: 28px; padding: 20px; border-left: 4px solid var(--warning); background: var(--warning-bg); }
.release-gate-note p { margin-bottom: 0; }
.marketing-footer { display: block; padding-top: 46px; padding-bottom: 30px; background: #f5f8f6; }
.footer-brand { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.footer-brand > p { max-width: 440px; margin-top: 0; text-align: right; }
.footer-map { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px !important; margin: 38px 0; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-map div { display: grid; align-content: start; gap: 9px; }
.footer-map strong { color: var(--navy); font-size: 14px; }
.footer-meta { margin: 0; }
.consent-banner { position: fixed; z-index: 90; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 28px; width: min(1160px, calc(100% - 36px)); margin: auto; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 18px 48px rgba(15, 30, 24, .2); }
.consent-banner p { max-width: 670px; margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.consent-banner .button-row { flex-shrink: 0; margin-top: 0; }
.consent-page form { margin-top: 32px; }
.consent-page fieldset { padding: 0; border: 0; }
.consent-page legend { margin-bottom: 14px; font-size: 22px; font-weight: 800; }
.consent-choice { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.consent-choice:last-child { border-bottom: 1px solid var(--line); }
.consent-choice input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); }
.consent-choice span, .consent-choice small { display: block; }
.consent-choice small { margin-top: 4px; color: var(--muted); font-size: 14px; }

@media (max-width: 920px) {
  .feature-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consent-banner { align-items: stretch; flex-direction: column; }
}

@media (max-width: 620px) {
  .lunar-hero { min-height: 720px; }
  .lunar-hero .hero-overlay { background: rgba(23,35,31,.92); }
  .problem-solution-grid, .feature-detail-grid, .footer-map { grid-template-columns: 1fr; }
  .problem-solution-grid > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .pricing-toolbar, .footer-brand { align-items: flex-start; flex-direction: column; }
  .footer-brand > p { text-align: left; }
  .consent-banner { left: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); max-height: calc(100vh - 20px); overflow-y: auto; }
  .consent-banner .button-row { width: 100%; }
}

/* Premium marketing R2 */
.site-header .lunar-brand img { width: 154px; height: 42px; object-fit: contain; object-position: left center; }
.premium-home .site-header, .premium-pricing .site-header { min-height: 76px; }
.premium-home .main-nav, .premium-pricing .main-nav { gap: 22px; }
.premium-home .main-nav a:not(.button), .premium-pricing .main-nav a:not(.button) { font-weight: 650; }
.public-beta-notice strong { margin-right: 4px; }

.premium-hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 84px max(24px, calc((100vw - var(--max))/2));
  background: #eef4f1;
  border-bottom: 1px solid var(--line);
}
.premium-hero::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(720px, 62%);
  z-index: 1;
  background: rgba(244,247,245,.94);
  content: "";
}
.hero-copy { position: relative; z-index: 3; width: min(660px, 58%); }
.hero-copy h1 { max-width: 650px; color: var(--navy); font-size: 60px; line-height: 1.04; }
.hero-copy > p:not(.eyebrow):not(.hero-support) { max-width: 630px; margin: 24px 0 0; color: #40534c; font-size: 20px; line-height: 1.65; }
.hero-support { margin: 20px 0 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.hero-product { position: absolute; inset: 0; z-index: 0; margin: 0; }
.hero-product img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 32%; }
.hero-product figcaption { position: absolute; right: max(24px, calc((100vw - var(--max))/2)); bottom: 24px; z-index: 2; padding: 7px 10px; color: #41544d; background: rgba(255,255,255,.9); border: 1px solid rgba(204,216,211,.9); border-radius: 4px; font-size: 12px; }

.integration-proof { padding: 24px max(24px, calc((100vw - var(--max))/2)); border-bottom: 1px solid var(--line); background: #fff; }
.integration-proof > p { margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.integration-proof > div { display: flex; flex-wrap: wrap; gap: 10px; }
.integration-proof span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--navy); font-size: 13px; font-weight: 750; }
.integration-proof small { color: var(--muted); font-size: 10px; font-weight: 650; }

.premium-home .section { padding-top: 104px; padding-bottom: 104px; }
.premium-home .section-heading { max-width: 820px; margin-bottom: 48px; }
.premium-home .section-heading h2 { font-size: 43px; }
.outcome-list { border-top: 1px solid var(--line); }
.outcome-list article { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.outcome-list article > span { color: var(--teal); font-size: 13px; font-weight: 800; }
.outcome-list h3 { margin: 0 0 8px; font-size: 25px; }
.outcome-list p { max-width: 820px; margin: 0; color: var(--muted); font-size: 17px; }

.product-gallery { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }
.product-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.product-gallery .product-main { grid-row: span 2; }
.product-gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top left; }
.product-gallery .product-main img { height: calc(100% - 92px); aspect-ratio: auto; }
.product-gallery figcaption { min-height: 92px; display: grid; align-content: center; padding: 18px 20px; border-top: 1px solid var(--line); }
.product-gallery figcaption strong, .product-gallery figcaption span { display: block; }
.product-gallery figcaption span { margin-top: 4px; color: var(--muted); font-size: 13px; }

.workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.workflow li { min-width: 0; padding: 28px 24px 30px 0; }
.workflow li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.workflow li > span { display: block; margin-bottom: 30px; color: var(--teal); font-size: 14px; font-weight: 800; }
.workflow h3 { margin: 0 0 9px; font-size: 21px; }
.workflow p { margin: 0; color: var(--muted); font-size: 15px; }

.product-areas { background: #17231f; color: #fff; }
.product-areas .eyebrow { color: #68d0b4; }
.product-areas .area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #3b4b45; border-left: 1px solid #3b4b45; }
.area-grid a { min-height: 150px; padding: 25px; border-right: 1px solid #3b4b45; border-bottom: 1px solid #3b4b45; text-decoration: none; }
.area-grid a:hover { background: #21302b; }
.area-grid strong, .area-grid span { display: block; }
.area-grid strong { font-size: 18px; }
.area-grid span { margin-top: 10px; color: #becdc7; font-size: 14px; }

.trust-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 76px; align-items: start; }
.trust-section > div > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.trust-section ul { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.trust-section li { position: relative; padding: 19px 10px 19px 38px; border-bottom: 1px solid var(--line); font-weight: 650; }
.trust-section li::before { position: absolute; left: 8px; color: var(--teal); content: "✓"; font-weight: 900; }

.pricing-preview .plan-card, .premium-pricing .plan-card { box-shadow: none; }
.plan-version, .plan-effective, .plan-prepayment { color: var(--muted); font-size: 13px; }
.plan-version { min-height: 21px; margin: 8px 0 0; }
.plan-effective { margin: 5px 0 0; font-weight: 700; }
.plan-prepayment { min-height: 20px; margin: 4px 0 0; }
.pricing-preview .plan-card ul { max-height: 214px; overflow: hidden; }
.premium-pricing .marketing-hero { padding-top: 90px; padding-bottom: 72px; }
.billing-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--line); gap: 1px; }
.billing-rules article { padding: 30px; background: #fff; }
.billing-rules h2 { font-size: 23px; }
.billing-rules p { color: var(--muted); }
.premium-cta .button-secondary { color: #fff; border-color: #6d8178; background: transparent; }
.premium-cta .button-secondary:hover { border-color: #fff; }

.corporate-signature { display: flex; align-items: center; gap: 12px; }
.corporate-signature img { width: 196px; height: 52px; object-fit: contain; }
.corporate-signature span { color: var(--muted); font-size: 11px; }
.footer-brand .lunar-brand + p { max-width: 520px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }

@media (max-width: 920px) {
  .premium-home .site-header .lunar-brand img, .premium-pricing .site-header .lunar-brand img { width: 138px; }
  .premium-hero { min-height: 720px; align-items: flex-end; padding-bottom: 66px; }
  .premium-hero::after { inset: auto 0 0; width: auto; height: 70%; background: rgba(244,247,245,.94); }
  .hero-copy { width: 100%; }
  .hero-copy h1 { font-size: 50px; }
  .hero-product img { object-position: 62% top; }
  .hero-product figcaption { display: none; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-gallery .product-main { grid-row: auto; }
  .product-gallery .product-main img { height: auto; aspect-ratio: 16/10; }
  .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .workflow li:nth-child(4) { border-top: 1px solid var(--line); }
  .product-areas .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-section { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 620px) {
  .premium-home .section { padding-top: 72px; padding-bottom: 72px; }
  .premium-home .section-heading h2 { font-size: 32px; }
  .premium-hero { min-height: 0; padding: 72px 20px 44px; }
  .premium-hero::after { inset: 0; width: auto; height: auto; background: rgba(244,247,245,.92); }
  .hero-copy h1 { font-size: 32px; }
  .hero-copy > p:not(.eyebrow):not(.hero-support) { margin-top: 18px; font-size: 16px; }
  .hero-copy .button-row { margin-top: 20px; }
  .hero-support { font-size: 12px; }
  .integration-proof { overflow-x: hidden; }
  .integration-proof > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-proof span { align-items: flex-start; flex-direction: column; gap: 2px; }
  .outcome-list article { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .workflow, .product-areas .area-grid, .billing-rules { grid-template-columns: 1fr; }
  .workflow li, .workflow li + li { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .workflow li:first-child { border-top: 0; }
  .workflow li > span { margin-bottom: 14px; }
  .area-grid a { min-height: 120px; }
  .corporate-signature { align-items: flex-start; flex-direction: column; }
  .corporate-signature img { width: 178px; }
}

/* Public Lunar funnel R4. Scoped so the authenticated application is unchanged. */
body.lunar-funnel {
  --funnel-bg: #080b10;
  --funnel-surface: #101722;
  --funnel-line: #303c4d;
  --funnel-text: #f7f9fc;
  --funnel-muted: #a7b1c0;
  --funnel-green: #19c894;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--funnel-text);
  background: var(--funnel-bg);
  font-family: Inter, Aptos, "Segoe UI Variable", "Segoe UI", sans-serif;
}

.lunar-funnel .public-beta-notice { width: 100%; padding: 9px 24px; color: #c7d0dd; background: #111a27; border-color: #293548; font-size: 12px; text-align: center; }
.lunar-funnel .funnel-header { position: relative; top: auto; min-height: 76px; color: #fff; background: #0b1018; border-color: #293548; }
.funnel-brand img { width: 210px; height: 54px; object-fit: contain; object-position: left center; }
.funnel-brand-text { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; color: #f4f7f6; text-decoration: none; }
.funnel-brand-text strong { font-size: 1.65rem; line-height: 1; letter-spacing: 0; }
.funnel-brand-text small { color: #aebbb7; font-size: .68rem; font-weight: 600; line-height: 1.2; }
.lunar-funnel .main-nav { position: static; display: flex; align-items: center; gap: 22px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.lunar-funnel .main-nav a { color: #c6cfdb; font-size: 13px; }

.lunar-funnel .auth-layout { min-height: calc(100vh - 118px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(480px, .78fr); width: 100%; background: var(--funnel-bg); }
.lunar-funnel .funnel-context { min-width: 0; min-height: 760px; display: grid; grid-template-rows: auto auto; align-content: center; gap: 42px; padding: 72px max(40px, calc((100vw - 1240px) / 2)); color: #fff; background: #0b1018; border-right: 1px solid var(--funnel-line); }
.funnel-context-copy { position: relative; max-width: 620px; padding-left: 24px; }
.funnel-context-copy::before { position: absolute; top: 2px; bottom: 2px; left: 0; width: 3px; background: var(--funnel-green); border-radius: 2px; content: ""; }
.lunar-funnel .funnel-context .eyebrow,
.lunar-funnel .funnel-panel .eyebrow { color: #77dcc0; }
.funnel-context-copy h1 { margin: 14px 0 0; color: #fff; font-size: 46px; line-height: 1.08; }
.funnel-context-copy > p:not(.eyebrow) { color: #b8c3d2; font-size: 16px; }
.lunar-funnel .auth-benefits { color: #e5ebf2; }
.lunar-funnel .auth-benefits li::before { color: var(--funnel-green); }
.funnel-preview { width: min(100%, 680px); margin: 0; overflow: hidden; background: #111925; border: 1px solid #354256; border-radius: 8px; box-shadow: 0 26px 60px rgba(0, 0, 0, .32); }
.funnel-preview img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; opacity: 1; }
.funnel-preview figcaption { padding: 11px 14px; color: #919daf; border-top: 1px solid #354256; font-size: 11px; }

.lunar-funnel .funnel-panel { min-width: 0; display: grid; align-items: center; padding: 56px clamp(28px, 5vw, 72px); color: var(--funnel-text); background: var(--funnel-surface); }
.funnel-panel-inner { width: min(100%, 620px); margin: 0 auto; }
.lunar-funnel .funnel-panel h1 { margin: 10px 0 0; color: #fff; font-size: 40px; line-height: 1.12; }
.lunar-funnel .funnel-panel > div > p:not(.eyebrow):not(.form-message):not(.funnel-legal-note) { color: var(--funnel-muted); }
.lunar-funnel .step-progress span { background: #344154; }
.lunar-funnel .step-progress span.active { background: var(--funnel-green); }
.lunar-funnel .field label { color: #e7ebf1; }
.lunar-funnel .field input,
.lunar-funnel .field select { color: #111820; background: #f7f9fb; border-color: #7f8ca0; }
.lunar-funnel .field input:focus,
.lunar-funnel .field select:focus { outline: 3px solid rgba(25, 200, 148, .28); border-color: var(--funnel-green); }
.lunar-funnel .checkbox { color: #c4cedb; }
.lunar-funnel a { color: #8de5cc; }
.lunar-funnel .button-primary { color: #06110d; background: var(--funnel-green); border-color: var(--funnel-green); }
.lunar-funnel .button-primary:hover { background: #36d9a9; border-color: #36d9a9; }
.lunar-funnel .text-button { color: #8de5cc; }
.lunar-funnel .auth-links { margin-top: 20px; }
.funnel-legal-note { margin-top: 26px; color: #8f9bad; font-size: 12px; line-height: 1.55; }
.lunar-funnel .helper { color: #8f9bad; }

@media (max-width: 980px) {
  .lunar-funnel .auth-layout { grid-template-columns: 1fr; }
  .lunar-funnel .funnel-context { min-height: 0; grid-template-columns: 1fr .9fr; grid-template-rows: auto; align-items: center; padding: 54px 36px; border-right: 0; border-bottom: 1px solid var(--funnel-line); }
  .funnel-context-copy h1 { font-size: 38px; }
}

@media (max-width: 620px) {
  body.lunar-funnel { width: 100%; background: var(--funnel-bg); }
  .lunar-funnel .public-beta-notice { padding: 8px 14px; font-size: 10px; line-height: 1.45; }
  .lunar-funnel .funnel-header { min-height: 66px; padding: 8px 18px; }
  .funnel-brand img { width: 164px; height: 42px; }
  .lunar-funnel .main-nav { gap: 12px; }
  .lunar-funnel .main-nav a { padding: 8px 0; font-size: 12px; }
  .lunar-funnel .main-nav a:first-child { display: none; }
  .lunar-funnel .funnel-context { grid-template-columns: 1fr; gap: 28px; padding: 42px 20px; background: #0b1018; }
  .funnel-context-copy { padding-left: 17px; }
  .funnel-context-copy h1 { font-size: 32px; }
  .funnel-preview { width: 100%; }
  .lunar-funnel .funnel-panel { padding: 42px 20px 58px; background: var(--funnel-surface); }
  .lunar-funnel .funnel-panel h1 { font-size: 32px; }
  .lunar-funnel .form-grid { grid-template-columns: 1fr; }
  .lunar-funnel .field-wide { grid-column: auto; }
  .lunar-funnel .form-actions .button { width: 100%; }
  .lunar-funnel .auth-links { align-items: flex-start; flex-direction: column; }
}
/* R2D keeps the verification view compact on phone-sized screens and makes
   an intentionally required mailbox choice visible without a blocking page. */
.verification-shell { min-height: calc(100svh - 5rem); display: grid; place-items: center; padding: 2rem 1rem; }
.verification-card { width: min(100%, 36rem); }
.setup-provider-disabled { opacity: .68; cursor: not-allowed; }
.onboarding-validation-highlight { outline: 2px solid var(--accent, #34d399); outline-offset: 4px; border-radius: .75rem; }
@media (max-width: 430px) {
  .verification-shell { min-height: auto; align-items: start; padding: 1.25rem .875rem; }
  .verification-card { padding: 1.25rem; }
  .verification-card h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); overflow-wrap: normal; }
  .verification-actions .button { width: 100%; }
}
