/* Shared accessibility, navigation, and responsive behavior. */
html { scroll-padding-top: 110px; }
:root { --ink-4: #a8a294; }
body[data-theme="light"] {
  --bg: #f6f2e9;
  --bg-2: #efe9dc;
  --bg-3: #e6dfcd;
  --ink: #0a0a0f;
  --ink-2: #2a2a33;
  --ink-3: #585750;
  --ink-4: #585750;
  --line: rgba(10, 10, 15, 0.12);
  --line-strong: rgba(10, 10, 15, 0.28);
  --beam: #81500d;
  --beam-2: #754500;
  --danger: #a42f18;
  color-scheme: light;
}
body { color-scheme: dark; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--beam); outline-offset: 4px; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible,
.wl-form input:focus-visible, .wl-form select:focus-visible { outline: 2px solid var(--beam); outline-offset: 3px; }
p a, .disclaimer a, .legal li a, .email-result a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
input, select, textarea { max-width: 100%; }
select option { color: var(--ink); background: var(--bg-2); }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--bg); transform: translateY(-160%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.nav .brand, .nav .brand .mark, .nav .brand svg { flex-shrink: 0; }
.nav .links a { white-space: nowrap; }
.nav .links a.current::after { content: none; }
.nav > div:not(.links) { order: 1; }
.nav .links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.nav .theme-toggle { width: 44px; height: 44px; flex-shrink: 0; }
.menu-toggle { display: none; border: 1px solid var(--line-strong); border-radius: 100px; min-height: 44px; padding: 8px 14px; font: 13px var(--font-mono); background: var(--bg-2); color: var(--ink); cursor: pointer; }
.beam-svg { left: 0; width: 100%; }
.waitlist-band > *, .wl-form > *, .wl-form .row2 > *, .fields > *, .contact-main > *, footer > * { min-width: 0; }
.wl-form input, .wl-form select { width: 100%; min-width: 0; font-size: 16px; }
.waitlist-band .copy .meta { flex-wrap: wrap; gap: 12px 20px; }
.waitlist-band .copy .meta .pulse { flex-shrink: 0; }
.field label .opt, .field input::placeholder, .field textarea::placeholder,
.section-head .hint, .int-cell .cat, .member .facts .k { color: var(--ink-3); }
[data-theme="light"] .tag-pill { color: var(--bg); }
[data-theme="light"] .tag-pill .dot { background: var(--bg); }
.chip { display: inline-flex; align-items: center; gap: 8px; }
.chip input { margin: 0; accent-color: var(--beam); }
.chip:has(:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.stage-card { text-align: left; }
.stage-card input { position: absolute; right: 18px; top: 18px; margin: 0; accent-color: var(--beam); }
.stage-card .top { padding-right: 22px; }
.stage-card .dot { display: none; }
.stage-card .stage-title { font: 20px/1.1 var(--font-display); color: var(--ink); }
.stage-card .stage-description { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.stage-card:has(:checked) { border-color: var(--beam); background: var(--bg-3); }
.stage-card:focus-within, .chip:focus-within { outline: 2px solid var(--beam); outline-offset: 3px; }
.email-note { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin-bottom: 20px; }
.email-result { margin-top: 24px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg-2); padding: 24px; }
.email-result h3 { font: 30px/1.1 var(--font-display); margin: 0 0 12px; }
.email-result p { color: var(--ink-2); margin-bottom: 16px; }
.email-result .email-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.email-result label { display: block; font: 13px var(--font-mono); margin: 20px 0 8px; }
.email-result textarea { width: 100%; min-height: 170px; padding: 12px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; font: 14px/1.5 var(--font-mono); resize: vertical; }
.email-result [role="status"] { margin: 12px 0 0; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.aside-card .direct-line { display: block; margin-bottom: 12px; color: var(--beam); overflow-wrap: anywhere; }
.aside-card p { font-size: 14px; color: var(--ink-2); }
.lane-card .addr { text-decoration: underline; text-underline-offset: 3px; }
.motion-toggle { position: fixed; bottom: 12px; left: 12px; z-index: 21; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink-2); border-radius: 100px; min-height: 36px; padding: 8px 12px; font: 11px var(--font-mono); cursor: pointer; }
body[data-motion="off"] *, body[data-motion="off"] *::before, body[data-motion="off"] *::after { animation: none !important; transition: none !important; }
body[data-motion="off"] .subpage-beam, body[data-motion="off"] .beam-line { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .nav { gap: 10px; }
  .nav .brand .sub { display: none; }
  .nav .links { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav .links a { padding: 10px 14px; }
  .nav.has-menu .menu-toggle { display: inline-flex; align-items: center; }
  .nav.has-menu .links { display: none; position: absolute; top: calc(100% + 8px); right: 0; left: 0; padding: 12px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--bg); box-shadow: 0 16px 40px #0004; }
  .nav.has-menu .links.is-open { display: grid; grid-template-columns: 1fr 1fr; }
  .nav:not(.has-menu) { flex-wrap: wrap; border-radius: 24px; }
  .nav:not(.has-menu) .links { order: 3; flex-basis: 100%; }
  .nav .cta { padding: 10px 12px; font-size: 12px; }
}
@media (max-width: 600px) {
  .nav { top: 10px; padding: 8px 12px; width: calc(100% - 24px); }
  .nav .cta { display: none; }
  .nav .brand { font-size: 22px; }
  .nav .links { font-size: 13px; }
  .hero-meta, .steps, .pillars, .numbers { grid-template-columns: 1fr; }
  .steps .step { min-width: 0; }
  .svc h3, .svc .meta { grid-column: 1; min-width: 0; }
  .svc .go { grid-column: 2; grid-row: 1 / 3; }
  .pcard { min-width: 0; overflow-wrap: anywhere; }
  .mock-chrome { flex-wrap: wrap; }
  .mock-url { min-width: 0; overflow-wrap: anywhere; }
  .chain-row { min-width: 0; grid-template-columns: 8px minmax(0, 1fr); }
  .chain-row > span:last-child { grid-column: 2; }
  .chain-row .name, .chain-row .hash { overflow-wrap: anywhere; }
  .hero .kicker { font-size: 11px; letter-spacing: 0.08em; }
  .hero h1 { overflow-wrap: anywhere; }
  .hero .actions, .cta-band .actions, .form-actions .btns { flex-wrap: wrap; }
  .cta-band { padding: 48px 20px; margin: 32px 12px; }
  .btn { max-width: 100%; justify-content: center; text-align: center; }
  .btn svg { flex-shrink: 0; }
  .hero-stat { padding: 24px; column-gap: 16px; }
  .hero-stat .hs-v { font-size: 30px; white-space: normal; }
  .waitlist-band { margin: 32px 12px; padding: 36px 16px; }
  .wl-form { padding: 20px 16px; }
  .wl-form .row2 { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-wrap { padding: 24px 18px; }
  .form-wrap .frame-head, .section-head, .meta-pills { flex-wrap: wrap; gap: 10px; }
  .form-wrap .frame-head .sig { font-size: 10px; }
  .contact-hero h1 { font-size: clamp(48px, 13vw, 72px); }
  .email-result { padding: 20px 16px; }
  .lanes { padding-left: 20px; padding-right: 20px; }
  .pgp-wrap { padding: 24px 20px; }
  footer { padding: 40px 20px 64px; column-gap: 20px; }
  footer .brand { grid-column: 1 / -1; }
  footer .base { flex-direction: column; gap: 10px; }
  .legal { padding: 40px 20px; }
  .legal table { table-layout: fixed; font-size: 13px; overflow-wrap: anywhere; }
  .legal th, .legal td { padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .subpage-beam, .beam-line { opacity: 1; transform: none; }
}
