/* Tokens mirror empire-web/src/index.css (the design authority: empire-web/DESIGN.md).
   Change a token there, change it here in the same piece of work. */
:root, .theme-light {
  color-scheme: light;
  --background: oklch(1 0 0);
  --surface: oklch(0.975 0 0);
  --surface-2: oklch(0.945 0 0);
  --foreground: oklch(0.22 0.015 35);
  --muted-foreground: oklch(0.48 0.012 35);
  --border: oklch(0.9 0 0);
  --border-strong: oklch(0.8 0 0);
  --primary: oklch(0.7 0.19 39);
  --primary-hover: oklch(0.65 0.19 38);
  --primary-foreground: oklch(0.145 0 0);
  --primary-text: oklch(0.53 0.18 38);
  --primary-subtle: oklch(0.96 0.03 39);
  --ring: oklch(0.53 0.18 38);
  --success: oklch(0.6 0.13 145);
  --success-text: oklch(0.45 0.12 145);
  --success-bg: oklch(0.95 0.04 145);
  --warning-text: oklch(0.48 0.11 65);
  --warning-bg: oklch(0.96 0.05 80);
  --danger: oklch(0.58 0.21 25);
  --danger-text: oklch(0.5 0.19 25);
  --danger-bg: oklch(0.96 0.03 25);
  --brand-ink: #0a0a0a;
  --brand-ink-foreground: #ffffff;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-display: 'Chakra Petch', 'Inter', ui-sans-serif, sans-serif;
  --radius-control: 2px;
  --radius-overlay: 4px;
  --content-width: 1232px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html.dark, .dark-surface, .brand-grid {
  color-scheme: dark;
  --background: oklch(0.145 0 0);
  --surface: oklch(0.18 0 0);
  --surface-2: oklch(0.215 0 0);
  --foreground: oklch(0.93 0.008 35);
  --muted-foreground: oklch(0.74 0.008 35);
  --border: oklch(0.28 0 0);
  --border-strong: oklch(0.38 0 0);
  --primary-hover: oklch(0.76 0.16 42);
  --primary-text: oklch(0.72 0.17 40);
  --primary-subtle: oklch(0.25 0.05 39);
  --ring: oklch(0.72 0.17 40);
  --success: oklch(0.7 0.15 145);
  --success-text: oklch(0.8 0.13 145);
  --success-bg: oklch(0.22 0.04 145);
  --warning-text: oklch(0.85 0.13 75);
  --warning-bg: oklch(0.23 0.04 75);
  --danger-text: oklch(0.8 0.15 25);
  --danger-bg: oklch(0.23 0.05 25);
}
.dark-surface, .brand-grid { background: var(--background); color: var(--foreground); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
#tour { scroll-margin-top: 16px; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea, select { accent-color: var(--foreground); caret-color: var(--primary-text); }
button, a, summary { touch-action: manipulation; }
::selection { color: var(--background); background: var(--foreground); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
::placeholder { color: var(--muted-foreground); opacity: 1; }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) var(--background); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(var(--content-width), calc(100% - 96px)); margin-inline: auto; }
.section-space { padding-block: 96px; }
.tabular, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.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; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 20px; border-radius: var(--radius-control); color: var(--primary-foreground); background: var(--primary); font-weight: 600; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Type utilities, named as in empire-web. Chakra Petch is for eyebrows and the wordmark only. */
.eyebrow { font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.section-title { font-size: 16px; line-height: 24px; font-weight: 600; }
.logo-on-dark { display: none; }
html.dark .logo-on-light { display: none; }
html.dark .logo-on-dark { display: block; }
.dark-surface .logo-on-light, .brand-grid .logo-on-light { display: none; }
.dark-surface .logo-on-dark, .brand-grid .logo-on-dark { display: block; }

/* Buttons: ink on safety orange for the one primary action; everything else is quiet. */
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-control); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background 120ms var(--ease), border-color 120ms var(--ease), transform 120ms var(--ease); }
.button:active { transform: translateY(1px); }
.button-lg { min-height: 48px; padding-inline: 22px; }
.button-primary { color: var(--primary-foreground); background: var(--primary); }
.button-primary:hover { background: var(--primary-hover); }
.button-outline-on-ink { color: var(--foreground); border-color: var(--border-strong); background: transparent; }
.button-outline-on-ink:hover { background: var(--surface-2); }
.button:disabled, fieldset:disabled .button { background: var(--surface-2); color: var(--muted-foreground); border-color: var(--border); }
.button .icon, .footer-link .icon { width: 18px; height: 18px; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 1px solid transparent; border-radius: var(--radius-control); color: var(--muted-foreground); transition: background 120ms var(--ease), color 120ms var(--ease); }
.icon-button:hover { background: var(--surface-2); color: var(--foreground); }
.text-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 0; border: 0; background: none; color: var(--primary-text); font-size: 12px; font-weight: 500; }
.text-button .icon { width: 15px; height: 15px; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--background); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 32px; }
.brand { display: flex; align-items: center; flex: none; min-height: 44px; }
.brand img { width: 121px; height: 40px; object-fit: contain; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted-foreground); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 120ms var(--ease); }
.main-nav a:hover { color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { padding: 8px 16px; }
.theme-toggle .sun { display: none; }
html.dark .theme-toggle .sun { display: block; }
html.dark .theme-toggle .moon { display: none; }
.menu-toggle { display: none; }

/* Brand surface: ink, the drafting grid, the mark at poster size. Used for the hero and footer only. */
.brand-grid { background-color: var(--brand-ink); background-image: linear-gradient(color-mix(in oklch, #fff 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklch, #fff 5%, transparent) 1px, transparent 1px); background-size: 48px 48px; }
.hero { position: relative; border-bottom: 4px solid var(--primary); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 64px; padding-block: 96px 88px; }
.hero-text { max-width: 760px; }
.hero .eyebrow { color: var(--primary); }
h1 { margin-top: 20px; font-size: clamp(40px, 5.4vw, 72px); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; color: var(--brand-ink-foreground); }
h1 span { color: var(--primary); }
.hero-lede { max-width: 560px; margin-top: 24px; color: var(--muted-foreground); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-mark { width: 240px; height: 240px; }


/* The illustrative app window follows the page theme, like the real app. */
@keyframes view-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.coverage-strip { margin-top: 48px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-block: 1px solid var(--border); padding-block: 20px; font-size: 14px; font-weight: 500; }

.section-heading { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 80px; margin-bottom: 48px; }
.section-heading .eyebrow, .faq-layout .eyebrow, .access-copy .eyebrow, .field-copy .eyebrow { margin-bottom: 12px; }
.section-heading h2, .faq-layout h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
.section-heading > p { max-width: 380px; font-size: 16px; line-height: 1.65; color: var(--muted-foreground); }
summary::-webkit-details-marker { display: none; }
.expansion { margin-left: auto; width: 18px; height: 18px; transition: transform 180ms var(--ease); }
details[open] > summary .expansion { transform: rotate(45deg); }

.shot-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-control); }
.shot-tabs button { min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: var(--radius-control); background: none; color: var(--muted-foreground); font-size: 14px; font-weight: 500; transition: background 120ms var(--ease), color 120ms var(--ease); }
.shot-tabs button[aria-selected="true"] { color: var(--primary-text); border-color: var(--border-strong); background: var(--primary-subtle); }
.shot-tabs button:hover:not([aria-selected="true"]) { color: var(--foreground); background: var(--surface-2); }
.shot-frame { border: 1px solid var(--border-strong); border-radius: var(--radius-overlay); overflow: hidden; background: var(--background); }
.shot-panel.entering { animation: view-enter 320ms var(--ease) backwards; }
.shot-frame img { width: 100%; height: auto; }
.shot-dark { display: none; }
html.dark .shot-light { display: none; }
html.dark .shot-dark { display: block; }
.shot-caption { margin-top: 12px; color: var(--muted-foreground); font-size: 12px; }

.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border-strong); }
.capability { padding: 28px 32px 28px 0; border-bottom: 1px solid var(--border); }
.capability:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--border); }
.capability > .icon { width: 22px; height: 22px; color: var(--primary-text); margin-bottom: 12px; }
.capability h3 { font-size: 18px; line-height: 28px; font-weight: 600; }
.capability p { margin-top: 4px; color: var(--muted-foreground); font-size: 15px; line-height: 1.65; max-width: 460px; }
.capability ul { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14px; display: grid; gap: 6px; }
.capability li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; background: var(--primary); }
.platform-note { margin-top: 32px; color: var(--muted-foreground); font-size: 15px; }
.platform-note strong { color: var(--foreground); font-weight: 600; margin-right: 6px; }
.field-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
.field-points .field-benefit { margin-top: 20px; max-width: none; }
html:not(.js) .shot-tabs { display: none; }

.field-section { overflow: hidden; background: var(--background); border-block: 1px solid var(--border); }
.field-section-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; padding-block: 88px; }
.field-copy h2 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; }
.field-copy h2 > span { color: var(--primary); }
.field-copy > p:not(.eyebrow) { max-width: 480px; color: var(--muted-foreground); font-size: 16px; line-height: 1.7; margin-top: 24px; }
.field-benefit { display: flex; align-items: flex-start; gap: 14px; margin-top: 28px; max-width: 440px; }
.field-benefit > .icon { width: 20px; height: 20px; color: var(--primary); margin-top: 2px; }
.field-benefit h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
.field-benefit p { font-size: 14px; color: var(--muted-foreground); line-height: 1.6; }

.faq-section { padding-block: 80px; border-block: 1px solid var(--border); background: var(--surface); }
.faq-layout { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 80px; }
.faq-layout h2 { font-size: clamp(28px, 3vw, 36px); }
.faq-layout > div > p:not(.eyebrow) { margin-top: 16px; color: var(--muted-foreground); font-size: 15px; }
.faq-list details { border-bottom: 1px solid var(--border-strong); }
.faq-list details:first-child { border-top: 1px solid var(--border-strong); }
.faq-list summary { display: flex; align-items: center; gap: 20px; padding-block: 18px; min-height: 60px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; transition: color 120ms var(--ease); }
.faq-list summary:hover { color: var(--primary-text); }
.faq-list details > p { color: var(--muted-foreground); font-size: 15px; line-height: 1.7; padding: 0 36px 20px 0; }

.access-section { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: 80px; }
.access-copy h2 { font-size: clamp(36px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.access-copy h2 > span { color: var(--primary-text); }
.access-copy > p:not(.eyebrow) { color: var(--muted-foreground); font-size: 16px; line-height: 1.7; max-width: 420px; margin-top: 24px; }
.access-expectation { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted-foreground); }
.access-expectation p { font-size: 14px; line-height: 1.7; }
.beta-form { background: var(--surface); border: 1px solid var(--border); padding: 28px; }
.beta-form h3 { margin-bottom: 20px; }
.form-notice { padding: 12px 14px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-control); font-size: 13px; color: var(--muted-foreground); margin-bottom: 20px; line-height: 1.6; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 14px; font-weight: 500; }
.form-field label > span { font-size: 12px; color: var(--muted-foreground); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: var(--background); color: var(--foreground); padding: 10px 12px; font-size: 14px; }
.form-field textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.form-field input:disabled, .form-field textarea:disabled, .form-field select:disabled { border-color: var(--border); background: var(--surface); color: var(--muted-foreground); opacity: 1; cursor: not-allowed; }
.form-field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger-text); font-size: 12px; }
.field-error:empty { display: none; }
.submit-button { width: 100%; }
.form-purpose { color: var(--muted-foreground); font-size: 13px; line-height: 1.6; margin-top: 12px; }
.form-feedback { font-size: 14px; padding: 12px 14px; border-radius: var(--radius-control); margin-top: 16px; line-height: 1.6; }
.error-feedback { color: var(--danger-text); background: var(--danger-bg); border: 1px solid var(--danger); }
.success-feedback { display: flex; gap: 12px; background: var(--success-bg); color: var(--success-text); border: 1px solid var(--success); }
.success-feedback > .icon { margin-top: 2px; }
.success-feedback h4 { font-size: 16px; line-height: 24px; margin-bottom: 2px; font-weight: 600; }

.site-footer { border-top: 4px solid var(--primary); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: 48px 40px; }
.footer-top .tagline { margin-right: auto; font-family: var(--font-display); font-size: 24px; line-height: 1.1; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--brand-ink-foreground); }
.tagline span { color: var(--primary); }
.footer-top .brand img { width: 136px; height: 45px; }
.footer-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 500; text-decoration: none; }
.footer-link:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 16px 24px; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 12px; }
.footer-bottom small { font-size: inherit; }

@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 24px; }
  .main-nav { gap: 20px; }
  .hero-inner { gap: 40px; padding-block: 72px 64px; }
  .hero-mark { width: 160px; height: 160px; }
  .section-heading { gap: 48px; }
}
@media (max-width: 800px) {
  .capability { padding: 24px 20px 24px 0; }
  .capability:nth-child(even) { padding-left: 20px; }
  .field-points { grid-template-columns: 1fr; gap: 0; }
  .container { width: calc(100% - 48px); }
  .header-inner { height: 60px; gap: 16px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 13px; }
  .header-cta { padding-inline: 12px; font-size: 13px; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 56px 48px; }
  .hero-mark { display: none; }
  .hero-lede { font-size: 16px; }
  .coverage-strip { justify-content: flex-start; flex-wrap: wrap; gap: 8px 24px; }
  .coverage-strip > .eyebrow { flex-basis: 100%; }
  .section-space { padding-block: 72px; }
  .section-heading { gap: 24px; grid-template-columns: 1.2fr 1fr; }
  .field-section-inner { gap: 36px; padding-block: 64px; grid-template-columns: 1fr 1fr; }
  .faq-layout { gap: 40px; grid-template-columns: 0.85fr 1.3fr; }
  .access-section { gap: 40px; grid-template-columns: 0.9fr 1.1fr; }
  .beta-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { gap: 24px; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .capability-grid { grid-template-columns: 1fr; }
  .capability, .capability:nth-child(even) { padding: 24px 0; border-left: 0; }
  html { scroll-padding-top: 76px; }
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 8px; height: 60px; position: relative; }
  .brand img { width: 103px; height: 34px; }
  .header-actions { gap: 2px; }
  .header-cta { padding: 8px 10px; font-size: 12px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: 59px; left: -20px; right: -20px; margin: 0; padding: 8px 20px 16px; background: var(--background); border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; }
  .main-nav a { font-size: 15px; }
  .js .main-nav:not(.is-open) { display: none; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .main-nav { position: static; flex-direction: row; flex-wrap: wrap; order: 3; border: 0; padding: 0; gap: 16px; width: 100%; }
  .hero-inner { padding-block: 48px 44px; }
  h1 { font-size: clamp(38px, 10.5vw, 56px); line-height: 1.06; }
  .hero-lede { font-size: 16px; margin-top: 20px; }
  .hero-actions { margin-top: 28px; }
  .shot-tabs { display: flex; }
  .shot-frame { overflow-x: auto; }
  .shot-frame img { width: 760px; max-width: none; }
  .shot-tabs button { flex: 1; padding-inline: 8px; font-size: 13px; }
  .coverage-strip { gap: 8px 20px; font-size: 13px; }
  .section-space { padding-block: 56px; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .section-heading > p { font-size: 15px; max-width: 380px; }
  .field-section-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 56px; }
  .faq-section { padding-block: 52px; }
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq-list summary { font-size: 15px; }
  .access-section { grid-template-columns: 1fr; gap: 32px; }
  .access-expectation { margin-top: 24px; }
  .form-field input, .form-field select, .form-field textarea { font-size: 16px; }
  .footer-top { gap: 16px; padding-block: 36px 28px; }
  .footer-top .tagline { width: 100%; order: 3; margin: 0; font-size: 22px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  .header-actions { gap: 0; }
  .brand img { width: 91px; height: 30px; }
  .header-cta { display: none; }
  .hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .header-actions, .shot-tabs, .beta-form, .site-footer { display: none; }
  .container { width: 100%; }
  .section-space { padding-block: 30px; }
  .brand-grid, .dark-surface { print-color-adjust: exact; }
}
