/* v1.67.0 — every var() carries its token value as a CSS fallback.
   tokens.css 404d on all 11 premium pages from v1.51.0 to v1.67.0 because the
   link was written relative to the wrong directory, and with no fallbacks every
   custom property resolved to nothing: the pages rendered as unstyled
   black-on-white with dark form controls and invisible button labels.
   tokens.css remains the single source of truth; these fallbacks only decide
   what happens if it is ever unreachable again. */
/* Tokens live in assets/tokens.css (canonical, mirrored). Link it first. */
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 10% 0,rgba(216,173,84,.17),transparent 34rem),var(--bg, #08111f);color:var(--text, #edf3ff);font-family:var(--font, ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif)}a{color:var(--gold2, #f2d389)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--gold2, #f2d389);outline-offset:3px}.page{width:min(1120px,calc(100% - 28px));margin:auto;padding:24px 0 60px}.brand{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:28px;padding-bottom:14px;border-bottom:1px solid var(--line, rgba(255,255,255,.13))}.brand a{text-decoration:none;font-weight:850;letter-spacing:.04em;color:var(--text, #edf3ff)}.brand-links{display:flex;gap:8px;flex-wrap:wrap}.brand-links a{color:var(--muted, #a9b6cc);font-size:.86rem}.eyebrow{color:var(--gold2, #f2d389);letter-spacing:.15em;text-transform:uppercase;font-weight:800;font-size:.76rem}.hero{padding:18px 0 10px}.hero h1{font-size:clamp(2rem,4vw,3.65rem);line-height:1.04;letter-spacing:-.035em;margin:.25rem 0}.hero p{color:var(--muted, #a9b6cc);line-height:1.65;max-width:800px;font-size:1.02rem}.nav{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0 26px}.nav a,.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:12px;padding:11px 14px;text-decoration:none;font-weight:800;border:1px solid var(--line, rgba(255,255,255,.13));background:rgba(255,255,255,.06);color:var(--text, #edf3ff);cursor:pointer}.button.primary{background:linear-gradient(180deg,var(--gold2, #f2d389),var(--gold, #d8ad54));color:#211500;border:0}.button.ghost{background:transparent}.button:disabled{opacity:.55;cursor:not-allowed}.journeys{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}.journey{display:flex;flex-direction:column;border:1px solid var(--surface-line, rgba(255,255,255,.13));background:var(--surface-bg, rgba(255,255,255,.035));border-radius:var(--radius, 18px);padding:22px}.journey.featured{background:var(--surface-raised-bg, rgba(255,255,255,.065));border-color:var(--surface-raised-line, rgba(216,173,84,.34));box-shadow:var(--surface-raised-shadow, 0 18px 44px rgba(0,0,0,.4));border-color:rgba(216,173,84,.58);box-shadow:0 18px 45px rgba(0,0,0,.2)}.journey .button{margin-top:auto}.journey h2{margin:.8rem 0 .35rem}.journey p{color:var(--muted, #a9b6cc);line-height:1.55}.journey .price{color:var(--text, #edf3ff);font-size:.9rem;font-weight:800}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.card{border:1px solid var(--surface-line, rgba(255,255,255,.13));background:var(--surface-bg, rgba(255,255,255,.035));border-radius:var(--radius, 18px);padding:22px}.card h2,.card h3{margin-top:0}.card p,.hint{color:var(--muted, #a9b6cc);line-height:1.55}.badge{display:inline-block;border:1px solid rgba(216,173,84,.42);color:var(--gold2, #f2d389);border-radius:999px;padding:5px 9px;font-size:var(--step--1, .78rem);font-weight:800;letter-spacing:.06em;text-transform:uppercase}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}.field{margin:0 0 14px}label{display:block;color:var(--gold2, #f2d389);text-transform:uppercase;letter-spacing:.07em;font-weight:800;font-size:.75rem;margin-bottom:6px}input,select,textarea{background:var(--surface-recessed-bg, rgba(0,0,0,.22));border-color:var(--surface-recessed-line, rgba(255,255,255,.07));width:100%;background:rgba(4,11,23,.72);border:1px solid var(--line, rgba(255,255,255,.13));border-radius:11px;color:var(--text, #edf3ff);padding:12px 13px;font:inherit}textarea{min-height:100px;resize:vertical}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.section{margin-top:18px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line, rgba(255,255,255,.13));padding-bottom:10px;margin-bottom:14px}.section-title h2{margin:0}.notice{border:1px solid rgba(216,173,84,.35);background:rgba(216,173,84,.07);border-radius:14px;padding:13px;color:var(--muted, #a9b6cc);line-height:1.5}.notice.customer{margin:16px 0}.method-note{font-size:.88rem}.status{white-space:pre-wrap;margin-top:12px;border-radius:12px;padding:12px;display:none}.status.ok{display:block;background:rgba(116,217,159,.1);border:1px solid rgba(116,217,159,.35)}.status.error{display:block;background:rgba(255,142,142,.1);border:1px solid rgba(255,142,142,.35)}pre{overflow:auto;background:rgba(0,0,0,.28);border:1px solid var(--line, rgba(255,255,255,.13));border-radius:12px;padding:12px;color:#dce8ff}.check{display:flex;align-items:flex-start;gap:9px;text-transform:none;letter-spacing:0;color:var(--text, #edf3ff);font-size:.9rem}.check input{width:auto;margin-top:4px}.city-results{display:grid;gap:4px;margin-top:5px;padding:6px;border:1px solid var(--line, rgba(255,255,255,.13));border-radius:11px;background:#0a1528;position:relative;z-index:4}.city-results[hidden]{display:none}.city-results button{width:100%;padding:9px 10px;text-align:left;border:0;border-radius:7px;background:transparent;color:var(--text, #edf3ff);cursor:pointer}.city-results button:hover,.city-results button:focus{background:rgba(216,173,84,.14);outline:2px solid var(--gold, #d8ad54)}.city-results span{padding:8px;color:var(--muted, #a9b6cc)}details{margin:0 0 14px;border:1px solid var(--line, rgba(255,255,255,.13));border-radius:11px;padding:10px}details summary{cursor:pointer;color:var(--gold2, #f2d389);font-weight:800}details .three{margin-top:12px}.dst-choice{border-left:3px solid var(--gold, #d8ad54);padding-left:10px}.legal-disclosure{margin-top:16px}.legal-disclosure a{display:inline-block;margin:2px 3px}.field input[readonly]{opacity:.76;cursor:default}.guided-intake{display:block;max-width:760px;margin:20px auto}.guided-intake>.card{display:none}.guided-intake>.card.is-current{display:block}.guided-intake>.card.full{grid-column:auto}.flow-progress{max-width:760px;margin:18px auto 0}.flow-progress-head{display:flex;justify-content:space-between;gap:12px;color:var(--muted, #a9b6cc);font-size:.86rem;margin-bottom:8px}.flow-track{height:7px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden}.flow-fill{height:100%;background:linear-gradient(90deg,var(--gold, #d8ad54),var(--gold2, #f2d389));transition:width .2s ease}.flow-actions{display:flex;justify-content:space-between;gap:10px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line, rgba(255,255,255,.13))}.flow-error{color:#ffd7d7;margin-top:10px}.more-products{margin-top:24px}.more-products[open]{background:rgba(255,255,255,.025)}.simple-location .technical-location{display:none}.simple-location details .technical-location{display:grid}.trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.trust-item{padding:14px;border-left:3px solid var(--gold, #d8ad54);background:var(--surface-bg, rgba(255,255,255,.035));color:var(--muted, #a9b6cc);font-size:.88rem;line-height:1.45}.comparison-note{padding:16px;border:1px solid var(--line, rgba(255,255,255,.13));border-radius:14px;color:var(--muted, #a9b6cc);line-height:1.55;margin-top:20px}@media(max-width:850px){.cards,.grid,.journeys{grid-template-columns:1fr}.full{grid-column:auto}.journey{min-height:0}.trust-row{grid-template-columns:1fr}}@media(max-width:560px){.two,.three{grid-template-columns:1fr}.page{width:min(100% - 20px,1120px)}.hero h1{font-size:2.15rem}.brand{align-items:flex-start}.brand-links{justify-content:flex-end}.flow-actions{position:sticky;bottom:0;background:var(--bg, #08111f);box-shadow:0 -10px 18px -12px rgba(0,0,0,.7);margin:20px -22px 0;padding:12px 22px;border-radius:0 0 var(--radius, 18px) var(--radius, 18px);z-index:8}.nav{flex-wrap:wrap}.nav a{white-space:nowrap}}
body{padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left)}
.device-profile-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.device-profile-row .button{white-space:nowrap}.device-profile-picker{padding:10px;border:1px solid rgba(216,173,84,.3);border-radius:12px;background:rgba(216,173,84,.055)}
@media(max-width:560px){.flow-actions{bottom:env(safe-area-inset-bottom);padding-bottom:calc(12px + env(safe-area-inset-bottom))}}

/* v1.68.0 beta polish.
   (a) Rendered result tables: the on-device preview renders markdown data
       grids (chart appendix, contact grids) into #result; they previously had
       no table styling at all here. Same treatment as the app's rendered
       pane — full-width, bordered, cells wrap, sideways scroll only as the
       fallback for genuinely wide grids.
   (b) Action rows: buttons that sat next to each other relied on incidental
       whitespace for spacing; .action-row gives every pairing the same 10px
       gap and wraps cleanly on narrow screens. */
#result table{width:100%;border-collapse:collapse;margin:1em 0;font-size:.9rem;display:block;overflow-x:auto}
#result th,#result td{border:1px solid var(--line, rgba(255,255,255,.13));padding:8px 9px;vertical-align:top;text-align:left;overflow-wrap:break-word}
#result th{color:var(--gold2, #f2d389);background:rgba(255,255,255,.06)}
.action-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}

/* v1.73.0 (P2 punch list): respect prefers-reduced-motion — no smooth
   scrolling, transforms, or nonessential transitions for users who asked
   the OS to reduce motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto !important; }
}

/* v1.81.0: birthplace confirmation line under the city field. */
.city-confirm{margin-top:8px;padding:9px 12px;border:1px solid rgba(116,217,159,.35);background:rgba(116,217,159,.08);border-radius:10px;font-size:.9rem;line-height:1.45}
.city-confirm .ok{color:var(--ok,#74d99f);font-weight:800;margin-right:2px}
.city-confirm span:last-child{color:var(--muted, #a9b6cc)}

/* v1.81.0 layout fixes.
   - The page-level language <select> built by intake-i18n.js had no width
     constraint and stretched to the full hero width on desktop.
   - On phones the secondary nav was a horizontally scrolling pill row with
     no scroll affordance; the last pill sat clipped at the viewport edge and
     read as broken. It wraps now (rule above, in the 560px block).
   - The sticky Back/Continue bar is opaque and casts a shadow so it reads as
     a bar, and focused fields scroll clear of it instead of underneath it. */
.lang-links select{width:auto;max-width:min(60vw,280px)}
.guided-intake .field,.guided-intake details,.guided-intake .check{scroll-margin-bottom:96px}
/* The primary action keeps to the right when Back is absent (step 1), and
   fills the row on narrow screens where a lone right-aligned button looks lost. */
.flow-actions .button.primary{margin-left:auto}
@media(max-width:560px){.flow-actions .button.primary:only-child,.flow-actions .button[style*="display: none"]+.button.primary{flex:1}}

/* Release 2.0 (verification fix): methodology tables and long identifiers no
   longer push the page wider than a phone screen. */
.page table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.page pre,.page code{white-space:pre-wrap;overflow-wrap:anywhere}
.page p,.page li,.page td,.page th{overflow-wrap:anywhere}
.city-row{display:flex;gap:8px;align-items:stretch}.city-row input{flex:1;min-width:0}.city-row .city-search{flex:none}@media(max-width:420px){.city-row{flex-direction:column}}
