/* ==========================================================================
   shell.css, the corporate disguise. Earnest enterprise SaaS chrome.
   The joke is in the content, never in the styling (DESIGN.md §0).
   Ember budget: 1 (opacity/transform only). 3 hero moments max per page.
   ========================================================================== */

/* ---------- Buttons (Tier 3 consumers) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-height: var(--u);                /* Law 3.2, the half-inch tap floor */
  padding: 0 var(--s-2);
  font: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--r-1);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-micro) var(--ease-sit);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #1e40af 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 4px 14px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  border-radius: var(--r-1);
  font-weight: 600;
  letter-spacing: 0.015em;
  position: relative;
  overflow: hidden;
}
.btn--primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1), 0 6px 22px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1.5px);
  text-decoration: none;
}
.btn--primary:active {
  transform: translateY(0.5px) scale(0.985);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn--ghost { background: var(--btn-ghost-bg); color: var(--btn-ghost-text); border-color: var(--btn-ghost-line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn--signout {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  background: rgba(239, 68, 68, 0.04);
}
.btn--signout:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: #ef4444 !important;
  color: #dc2626 !important;
}
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface); /* pre-color-mix fallback */
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: calc(var(--u) * 1.5);
}
.brand { display: flex; align-items: baseline; gap: var(--s-1); font-weight: 700; font-size: var(--text-lg); color: var(--text); text-decoration: none; white-space: nowrap; flex: none; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand small { font-weight: 500; font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); flex-wrap: nowrap; }
.site-nav a { color: var(--muted); font-size: var(--text-sm); font-weight: 500; padding: var(--s-1) 0; white-space: nowrap; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
/* Buttons inside the nav keep button colors, not link colors. */
.site-nav .btn--ghost { color: var(--btn-ghost-text); }
.site-nav .btn--primary {
  padding: 7px 18px;
  border-radius: 9999px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Nav Toggle Button */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-1);
  color: var(--text);
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  transition: all var(--t-micro) var(--ease-sit);
  z-index: 50;
}
.mobile-nav-toggle:hover {
  background: var(--nav-bg);
  border-color: var(--accent);
}
.mobile-hamburger {
  width: 18px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.mobile-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-nav-toggle[aria-expanded="true"] .mobile-hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-nav-toggle[aria-expanded="true"] .mobile-hamburger span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle[aria-expanded="true"] .mobile-hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Slideable Mobile Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 84vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: var(--s-3);
  overflow-y: auto;
}
.mobile-drawer-panel.is-open {
  transform: translateX(0);
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-2);
}
.mobile-drawer-close {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.mobile-drawer-close:hover {
  color: var(--text);
  border-color: var(--accent);
}
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer-link {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--r-1);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease;
}
.mobile-drawer-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
}
.mobile-drawer-divider {
  height: 1px;
  background: var(--line);
  margin: var(--s-2) 0;
}
.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  margin-top: auto;
  padding-top: var(--s-2);
}
.mobile-drawer-actions .btn {
  width: 100%;
  padding: 12px;
  font-size: var(--text-base);
  justify-content: center;
}
.mobile-drawer-footnote {
  margin-top: var(--s-2);
  font-size: var(--text-xs);
  color: var(--muted);
  text-align: center;
}

body.mobile-drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Responsive adjustments */
@media (max-width: 1080px) { .site-header .brand small { display: none; } }
@media (max-width: 880px) {
  .site-header .container { gap: var(--s-1); }
  .site-nav a[data-nav="secondary"] { display: none; }
  .mobile-nav-toggle { display: flex; }
  
  /* Make header Get started button sleek & beautiful on mobile */
  .site-nav .btn--primary {
    padding: 6px 14px;
    font-size: 13px;
    min-height: 34px;
    white-space: nowrap;
  }
}
@media (max-width: 480px) {
  .site-header .site-nav a[href*="/login/"] { display: none; } /* Kept accessible via mobile drawer */
  .site-nav { gap: 6px; }
  .site-nav .btn--primary {
    padding: 6px 12px;
    font-size: 12.5px;
    letter-spacing: 0.01em;
  }
}

/* ---------- Hero (hero moment #1 of 3) ---------- */
.hero { padding: var(--s-6) 0 var(--s-4); }
.hero .eyebrow { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-2); }
.hero h1 { font-size: var(--text-hero); max-width: 20ch; }
.hero .sub { font-size: var(--text-lg); color: var(--muted); max-width: 52ch; }
.hero .cta-row { display: flex; gap: var(--s-1); margin-top: var(--s-2); flex-wrap: wrap; }
.hero .cta-note { margin-top: var(--s-1); font-size: var(--text-sm); color: var(--muted); }

/* ---------- Stats bar ---------- */
.stats { border-block: 1px solid var(--line); }
.stats .container { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); padding-block: var(--s-2); justify-content: center; }
.stats .stat { display: flex; align-items: baseline; gap: var(--s-1); }
.stats .stat b { font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.stats .stat span { color: var(--muted); font-size: var(--text-sm); }
.stats .dot { color: var(--line); }

/* ---------- Plan card (hero moment #2 of 3) ---------- */
.plan-wrap { padding: var(--s-5) 0; }
.plan-card {
  max-width: calc(var(--u) * 10);
  margin-inline: auto;
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: var(--r-2);
  padding: var(--s-3);
  position: relative;
}
.plan-card .flag {
  position: absolute;
  top: calc(-1 * var(--s-1));
  right: var(--s-2);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px var(--s-1);
  border-radius: var(--r-1);
}
.plan-card h3 { margin: 0; font-size: var(--text-xl); }
.plan-card .terms { color: var(--accent); font-weight: 600; margin-bottom: var(--s-2); }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 var(--s-2); }
.plan-card li { padding: var(--s-1) 0 var(--s-1) var(--s-2); border-top: 1px solid var(--line); position: relative; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan-note { text-align: center; color: var(--muted); font-size: var(--text-sm); margin-top: var(--s-2); }

/* ---------- Waitlist ---------- */
.waitlist { text-align: center; padding: var(--s-4) 0 var(--s-5); }
.waitlist .position { font-size: var(--text-hero); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.waitlist p { margin-inline: auto; }

/* ---------- Auth card (signup / login / OTP) ---------- */
.auth-wrap { padding: var(--s-5) 0; display: grid; place-items: center; }
.auth-card {
  width: 100%;
  max-width: calc(var(--u) * 9.5);
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: var(--r-2);
  padding: var(--s-3);
}
.auth-card h1 { font-size: var(--text-xl); }
.auth-card .sub { color: var(--muted); margin-bottom: var(--s-3); }
.auth-card .legal-line { font-size: var(--text-xs); color: var(--muted); margin-top: var(--s-2); }
.auth-alt { text-align: center; margin-top: var(--s-2); font-size: var(--text-sm); }

/* The "no account yet" block, kept below the fold of the credentials form so
   it never competes with the primary action. */
.auth-switch {
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--card-line);
  text-align: center;
}
.auth-switch__line {
  margin: 0 0 var(--s-1);
  color: var(--muted);
  font-size: var(--text-sm);
}

/* OTP row, four boxes, one per digit of the usual number */
.otp-row { display: flex; gap: var(--s-1); margin: var(--s-2) 0; }
.otp-row input {
  width: var(--u); min-height: var(--u);
  text-align: center;
  font-size: var(--text-lg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.otp-hint { font-size: var(--text-sm); color: var(--muted); }
.otp-msg { font-size: var(--text-sm); margin-top: var(--s-1); min-height: 1.55em; }
.otp-msg.ok { color: var(--ok); }
.otp-msg.err { color: var(--err); }

/* ---------- Boarding pass (invitation; hero moment) ---------- */
.pass-wrap { padding: var(--s-5) 0 var(--s-4); display: grid; place-items: center; }
.boarding-pass {
  width: 100%;
  max-width: calc(var(--u) * 14);
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: var(--r-3);
  display: grid;
  grid-template-columns: 2fr 1fr;
  overflow: hidden;
  position: relative;
}
.boarding-pass::after {  /* perforated edge, diegetic, not decorative */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 66.6%;
  border-left: 2px dashed var(--line);
}
.pass-main { padding: var(--s-3); }
.pass-stub { padding: var(--s-3) var(--s-2); background: var(--accent-tint); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-2); }
.pass-row { display: flex; gap: var(--s-2); margin-bottom: var(--s-2); }
.pass-cell { flex: 1; }
.pass-cell .k { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.pass-cell .v { font-weight: 700; font-size: var(--text-md); }
.pass-line { font-family: var(--font-quill); font-style: italic; color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s-2); margin: 0; }

/* Flipboard countdown */
.flip-count { display: flex; gap: var(--s-1); justify-content: center; margin: var(--s-3) 0 var(--s-1); }
.flip-unit { text-align: center; }
.flip-card {
  background: var(--text);
  color: var(--bg);
  font-size: var(--text-2xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: var(--r-1);
  min-width: calc(var(--u) * 1.75);
  padding: var(--s-1) var(--s-1);
  position: relative;
}
.flip-card::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); }
.flip-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: var(--s-1); }

/* Frost veil over the pass; thins as the day approaches, --frost 0..1 set by JS */
.frost {
  position: absolute; inset: 0;
  pointer-events: none;
  border-radius: var(--r-3);
  backdrop-filter: blur(calc(var(--frost, 0.6) * 6px));
  background: color-mix(in srgb, var(--frost-tint) calc(var(--frost, 0.6) * 55%), transparent);
  transition: backdrop-filter var(--t-event) var(--ease-sit),
              background-color var(--t-event) var(--ease-sit);
}

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--card-line); border-radius: var(--r-2); background: var(--card-bg); padding: 0 var(--s-2); margin-bottom: var(--s-1); }
.faq summary { cursor: pointer; font-weight: 600; padding: var(--s-2) 0; list-style: none; min-height: var(--u); display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent); font-weight: 700; margin-right: var(--s-1); }
.faq details[open] summary::before { content: "–"; }
.faq details p { padding-bottom: var(--s-2); margin-bottom: 0; color: var(--muted); }
.faq-search { margin: var(--s-3) 0 var(--s-4); }
.faq-search input { width: 100%; min-height: var(--u); padding: var(--s-1) var(--s-2); font: inherit; border: 1px solid var(--card-line); border-radius: var(--r-2); background: var(--card-bg); color: var(--text); }
.faq-search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.faq-cat { margin-bottom: var(--s-4); }
.faq-cat h2 { font-size: var(--text-lg); margin: var(--s-3) 0 var(--s-2); }
.faq code { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: 0.92em; background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 4px; padding: 0.08em 0.35em; }
.faq-helpful .cta-row { margin-top: var(--s-1); }
.faq-cat[hidden], .faq details[hidden] { display: none; }

/* ---------- Status ---------- */
.status-board {
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: var(--r-2);
  padding: var(--s-3);
  margin: var(--s-3) 0;
  position: relative;
  overflow: hidden;
}
.status-line { display: flex; align-items: center; gap: var(--s-1); font-size: var(--text-lg); font-weight: 600; }
.status-line .beacon {
  width: calc(var(--s-1));
  height: calc(var(--s-1));
  border-radius: 50%;
  background: var(--ok);
  flex: none;
  animation: beat 1.8s var(--ease-sit) infinite;
}
.status-line .beacon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok);
  opacity: 0;
  animation: pulse-aura 1.8s var(--ease-sit) infinite;
}
@keyframes beat { 0%,100% { transform: scale(1); } 50% { transform: scale(0.82); } }
@keyframes pulse-aura { 0% { opacity: .45; transform: scale(1.4); } 100% { opacity: 0; transform: scale(2); } }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(var(--u) * 4), 1fr)); gap: var(--s-2); margin-top: var(--s-2); }
.status-cell { border: 1px solid var(--line); border-radius: var(--r-1); padding: var(--s-1) var(--s-2); }
.status-cell b { display: block; font-size: var(--text-xl); font-variant-numeric: tabular-nums; }
.status-cell span { color: var(--muted); font-size: var(--text-sm); }
@media (prefers-reduced-motion: reduce) {
  .status-line .beacon { animation: none; }
  .status-line .beacon::after { display: none; }
}

/* ---------- Legal pages ---------- */
.legal h1 { font-size: var(--text-xl); }
.legal .rider { font-family: var(--font-quill); font-style: italic; color: var(--muted); font-size: var(--text-sm); }
.legal-box { background: var(--card-bg); border: 1px solid var(--card-line); border-radius: var(--r-2); padding: var(--s-3); margin: var(--s-3) 0; }
.toc { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-3) var(--s-4); margin: var(--s-3) 0 var(--s-4); }
.toc h2 { font-size: var(--text-base, 1rem); margin-bottom: var(--s-2); }
.toc ol { margin: 0; padding-left: var(--s-3); columns: 2; column-gap: var(--s-4); }
.toc li { font-size: var(--text-sm); margin-bottom: var(--s-1); break-inside: avoid; }
.toc a { color: var(--accent); }
.legal code { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: 0.92em; background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 4px; padding: 0.08em 0.35em; }
.checkline { display: flex; align-items: flex-start; gap: var(--s-1); min-height: var(--u); padding: var(--s-1) 0; }
.checkline input { width: calc(var(--u) * 0.5); height: calc(var(--u) * 0.5); margin-top: 2px; flex: none; }
.checkline label { font-weight: 400; display: inline; margin: 0; }

/* ---------- Terminal ---------- */
.terminal {
  background: var(--console-bg);
  color: var(--console-text);
  border-radius: var(--r-2);
  padding: var(--s-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--text-sm);
  line-height: 1.7;
  min-height: calc(var(--u) * 8);
  border: 1px solid var(--console-line);
}
.terminal .t-out { white-space: pre-wrap; word-break: break-word; margin: 0 0 var(--s-1); }
.terminal .t-prompt-line { display: flex; gap: var(--s-1); align-items: center; }
.terminal .t-ps { color: var(--console-prompt); flex: none; }
.terminal input {
  flex: 1;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  min-height: var(--u);
  padding: 0;
}
.terminal input:focus-visible { outline: none; }
.terminal:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Error pages ---------- */
.error-wrap { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: var(--s-5) 0; }
.error-code { font-size: var(--text-hero); font-weight: 700; color: var(--line); letter-spacing: -0.02em; }
.error-line { font-size: var(--text-lg); color: var(--muted); max-width: 46ch; margin: var(--s-1) auto var(--s-2); }

/* ---------- Footer (on every page; adapts per page, §4) ----------
   Corporate shape: mission blurb → three columns → socials → small print.
   Palace shape (quiet): one way home, one true line. Bench sanctity §7.7. */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--s-5); background: var(--surface); }
.site-footer .container { padding-block: var(--s-5) var(--s-3); }

/* Mission block, centered, the boilerplate every real company carries. */
.f-mission { 
  max-width: 48rem; 
  margin: 0 auto var(--s-5); 
  text-align: center; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.f-wordmark { 
  display: inline-block; 
  font-size: var(--text-xl); 
  font-weight: 700; 
  color: var(--text); 
  text-decoration: none; 
  margin: 0 auto var(--s-2); 
  letter-spacing: -0.01em; 
  text-align: center;
}
.f-wordmark:hover { text-decoration: none; color: var(--text); }
.f-mission p { 
  color: var(--text); 
  font-size: var(--text-sm); 
  line-height: 1.7; 
  margin: 0 auto; 
  max-width: 42rem;
  width: 100%;
  text-align: center; 
}

/* Three columns, gray headers, bold dark links, generous rows ,  centered. */
.f-cols { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); 
  gap: var(--s-4) var(--s-3); 
  max-width: 60rem; 
  margin: 0 auto var(--s-5); 
  text-align: center;
  justify-content: center;
}
.f-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.f-col h4 { 
  color: var(--muted); 
  font-size: var(--text-sm); 
  font-weight: 500; 
  margin: 0 0 var(--s-2); 
  text-align: center;
}
.f-col a { 
  display: inline-block; 
  color: var(--text); 
  font-size: var(--text-base, 1rem); 
  font-weight: 600; 
  text-decoration: none; 
  padding-block: calc(var(--s-1) / 2); 
  min-height: var(--u); 
  text-align: center;
}
.f-col a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.f-caddr { 
  color: var(--text); 
  font-size: var(--text-sm); 
  line-height: 1.6; 
  margin: 0 0 var(--s-2); 
  text-align: center;
}
.f-cmail { font-weight: 600; text-align: center; }

/* Socials, outline circles, centered, like the real thing. */
.f-social { display: flex; justify-content: center; gap: var(--s-2); margin-bottom: var(--s-4); }
.f-soc { display: inline-flex; align-items: center; justify-content: center; width: var(--u); height: var(--u); border-radius: 50%; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; transition: background-color var(--t-micro) var(--ease-sit), color var(--t-micro) var(--ease-sit); }
.f-soc:hover { background: var(--accent); color: #fff; }
.f-soc:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Small print + the line that was written first. */
.f-bottom { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  align-items: center; 
  gap: var(--s-2) var(--s-4); 
  border-top: 1px solid var(--line); 
  padding-top: var(--s-3); 
  color: var(--muted); 
  font-size: var(--text-xs); 
  text-align: center;
}
.f-bottom a { color: var(--muted); font-size: var(--text-xs); }
.f-epigraph { color: var(--muted); font-size: var(--text-xs); margin: var(--s-2) 0 0; text-align: center; width: 100%; }
.f-epigraph.center { text-align: center; }

/* Palace footer, quiet by law. */
.f-quiet { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); text-align: center; padding-block: var(--s-4); }
.f-home { font-weight: 600; }
.site-footer .f-quiet .f-epigraph { font-style: normal; }

/* ---------- Toasts (§4, loading/success/error) ---------- */
.toasts { position: fixed; bottom: var(--s-2); right: var(--s-2); display: flex; flex-direction: column; gap: var(--s-1); z-index: 90; max-width: min(90vw, calc(var(--u) * 8)); }
.toast {
  background: var(--toast-bg);
  color: var(--toast-text);
  padding: var(--s-1) var(--s-2);
  border-radius: var(--r-1);
  font-size: var(--text-sm);
  opacity: 0;
  transform: translateY(var(--s-1));
  transition: opacity var(--t-std) var(--ease-sit), transform var(--t-std) var(--ease-sit);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- Offline banner ---------- */
.offline-banner {
  display: none;
  background: var(--err-tint);
  color: var(--err);
  text-align: center;
  padding: var(--s-1) var(--s-2);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--line);
}
body.offline .offline-banner { display: block; }

/* ---------- Blur Veil (Tier G double-render; jokes hide behind one honest line) ---------- */
.veil { position: relative; }
.veil .veiled { filter: blur(6px); user-select: none; pointer-events: none; }
.veil-line {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  padding: var(--s-2);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- Layout utilities (inline styles are banned, strict CSP) ---------- */
.page-pad { padding: var(--s-4) 0; }
.container--narrow { max-width: calc(var(--u) * 16); }
.lede { font-size: var(--text-lg); }
.btn--block { width: 100%; }
.eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-1);
}
.eyebrow--accent { color: var(--accent); }
.pass-stage { display: grid; place-items: center; gap: var(--s-2); }
.pass-k { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.pass-v { font-weight: 700; }
.checkline-note { align-self: center; }

/* Narrow screens, the spine holds */
@media (max-width: 640px) {
  .site-nav { gap: var(--s-1); }
  .hero { padding: var(--s-5) 0 var(--s-3); }
  .hero h1 { font-size: var(--text-2xl); }
  .boarding-pass { grid-template-columns: 1fr; }
  .boarding-pass::after { display: none; }
}
