:root {
  --navy: #102a43; --navy-2: #243b53; --teal: #0d7c74; --teal-dark: #09645e;
  --teal-soft: #e6f4f2; --canvas: #f4f7fa; --surface: #fff; --surface-2: #eef3f7;
  --text: #172b3a; --muted: #52697a; --line: #ccd8e1; --focus: #f0a43b;
  --success: #13795b; --warning: #9a5b13; --danger: #b33a3a; --info: #2563a6;
  --radius: 8px; --shadow: 0 12px 30px rgba(16,42,67,.10); --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--surface); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.55; }
body.portal-page { background: var(--canvas); }
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(16,42,67,.76); }
.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); }
.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; }
.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; }
.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; }
@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; }
  .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; }
  .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; }
  .auth-context { min-height: 280px; padding: 34px 24px; }
  .field-wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
