/* =====================================================================
   Thailand Visa Corp · design v5 "Apple structure, our brand" (#326, #328)
   Rules: design/APPLE_HIG_NOTES.md (Apple HIG + iOS 27 UI kit, read 13 Oct 2026).
   - Content layer: solid grouped backgrounds and white cards. No glass on content.
   - Controls layer: Liquid Glass top bar, bottom action bar, sheets, buttons.
   - Fonts: system-ui (SF on Apple devices), ui-serif (New York on Apple devices) for headlines,
     Gelasio/Georgia elsewhere. No embedded Apple fonts (licence).
   - Accent: navy on the one primary action; gold only as the headline accent.
   ===================================================================== */
:root {
  --page: #eef4f9;            /* grouped background, tinted toward navy (Apple #F2F2F7) */
  --card: #ffffff;            /* grouped secondary */
  --label: #000000;
  --label-2: rgba(60, 60, 67, .82);  /* darker than Apple's .6 so small grey text passes WCAG AA 4.5:1 (axe, 14 Oct) */
  --label-3: rgba(60, 60, 67, .3);
  --separator: rgba(60, 60, 67, .29);
  --fill: rgba(118, 118, 128, .12);   /* Apple fill / segmented track */
  --fill-2: rgba(118, 118, 128, .16);
  --navy: #071f3a;            /* accent: primary actions, selection */
  --navy-2: #0d2d50;
  --gold: #c9a664;
  --gold-ink: #8a6a22;        /* gold text on light (AA) */
  --gold-light: #e7c77c;      /* gold text on navy */
  --green: #1f7a4d;           /* done / success */
  --red: #c4302b;
  --glass: rgba(255, 255, 255, .62);
  --glass-edge: rgba(255, 255, 255, .85);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", Gelasio, Georgia, "Times New Roman", serif;
  --r-card: 26px; --r-sheet: 38px; --r-field: 14px; --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--label); font: 17px/22px var(--sans); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }

/* ---------- Type: Apple text styles (iOS default size) ---------- */
.large-title { font: 400 34px/41px var(--serif); letter-spacing: -.01em; color: var(--navy); margin: 0; text-wrap: balance; }
.title-1 { font: 400 28px/34px var(--serif); color: var(--navy); margin: 0; text-wrap: balance; }
.title-2 { font: 600 22px/28px var(--sans); margin: 0; }
.headline { font: 600 17px/22px var(--sans); margin: 0; }
.body { font: 400 17px/22px var(--sans); margin: 0; }
.callout { font: 400 16px/21px var(--sans); margin: 0; }
.subhead { font: 400 15px/20px var(--sans); margin: 0; }
.footnote { font: 400 13px/18px var(--sans); margin: 0; }
.caption { font: 400 12px/16px var(--sans); margin: 0; }
.secondary { color: var(--label-2); }
.eyebrow { font: 600 13px/18px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); margin: 0; }
em.accent, .large-title em, .title-1 em, .display em { font-style: italic; color: var(--gold-ink); }

/* ---------- Controls layer: Liquid Glass ---------- */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 6px 24px rgba(7, 31, 58, .10); }
@media (prefers-reduced-transparency: reduce) { .glass { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Top bar: back chevron, centred title (<15 chars), optional trailing action */
.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px; }
.topbar::before { /* soft scroll-edge effect behind the bar */ content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(var(--page) 55%, transparent); pointer-events: none; }
.topbar .title { text-align: center; font: 600 17px/22px var(--sans); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--navy); cursor: pointer; text-decoration: none; padding: 0; }
.icon-btn svg { width: 20px; height: 20px; }

/* Buttons: capsule, 50 pt large, one prominent per screen */
.btn { appearance: none; border: 0; min-height: 50px; padding: 0 24px; border-radius: var(--r-pill); font: 600 17px/22px var(--sans); letter-spacing: -.01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  transition: transform .16s var(--ease), background-color .2s ease, opacity .2s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-prominent { background: var(--navy); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px rgba(7, 31, 58, .22); }
.btn-prominent:hover { background: var(--navy-2); }
.btn-glass { color: var(--navy); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.btn-block { width: 100%; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* Bottom action bar: pinned, safe area, scroll edge fade above it */
.actionbar { position: sticky; bottom: 0; z-index: 20; padding: 18px 16px calc(env(safe-area-inset-bottom, 0px) + 16px); display: grid; gap: 10px; }
.actionbar::before { content: ""; position: absolute; inset: -40px 0 0; z-index: -1; background: linear-gradient(transparent, var(--page) 45%); pointer-events: none; }

/* ---------- Content layer: grouped lists and cards ---------- */
.screen { max-width: 600px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.content { padding: 8px 20px 24px; display: grid; gap: 24px; flex: 1; align-content: start; }
.stack { display: grid; gap: 10px; }
.group { background: var(--card); border-radius: var(--r-card); overflow: hidden; margin: 0 -4px; }
.group-footer { padding: 8px 16px 0; }
.row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 11px 16px; position: relative; text-decoration: none; color: inherit; width: 100%;
  background: none; border: 0; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.row.tall { min-height: 68px; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--separator); }
.row:active { background: var(--fill); }
.row .labels { flex: 1; min-width: 0; display: grid; gap: 1px; }
.row .labels .subhead { color: var(--label-2); }
.row .check { width: 20px; height: 20px; color: var(--navy); opacity: 0; transition: opacity .15s ease; flex: none; }
.row[aria-checked="true"] .check { opacity: 1; }
.row .chev { width: 8px; color: var(--label-3); flex: none; }
.row .status { width: 28px; height: 28px; flex: none; }
.row .trail { color: var(--navy); flex: none; display: grid; place-items: center; width: 28px; height: 28px; }
.row .trail svg { width: 20px; height: 20px; }
.row .value { color: var(--label-2); }

/* Progress: determinate linear, navy */
.progress { height: 4px; border-radius: 2px; background: var(--fill-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--navy); border-radius: 2px; transition: width .4s var(--ease); }

/* Segmented control: 2-5 equal segments, track = fill */
.segmented { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; padding: 3px; border-radius: var(--r-pill); background: var(--fill); position: relative; }
.segmented button { appearance: none; border: 0; background: none; min-height: 36px; border-radius: var(--r-pill); font: 500 14px/18px var(--sans); color: var(--label); cursor: pointer; position: relative; z-index: 1; padding: 0 8px; }
.segmented button[aria-selected="true"] { background: var(--card); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }

/* Text fields: label above, 52 pt field, error next to field */
.field { display: grid; gap: 8px; }
.field label { font: 600 15px/20px var(--sans); color: var(--label-2); }
.field input { appearance: none; height: 52px; border-radius: var(--r-field); border: 1px solid var(--separator); background: var(--card); color: var(--label); padding: 0 16px; font: 400 17px/22px var(--sans); }
.field input::placeholder { color: var(--label-3); }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 18%, transparent); }
.field .error { color: var(--red); font: 400 13px/18px var(--sans); }

/* Switch: only inside a list row */
.switch { appearance: none; width: 51px; height: 31px; border-radius: 16px; background: var(--fill-2); position: relative; cursor: pointer; flex: none; transition: background .2s ease; margin: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform .2s var(--ease); }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(20px); }

/* Sheet (iPhone): 38 pt top radius, grabber, dimmed page */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 600px; margin: 0 auto; background: var(--page); border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  padding: 8px 0 calc(env(safe-area-inset-bottom, 0px) + 16px); transform: translateY(105%); transition: transform .35s var(--ease); max-height: 92dvh; overflow: auto; }
.sheet.open { transform: none; } .sheet.open ~ .sheet-backdrop, .sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--label-3); margin: 0 auto 6px; }

/* Focus (keyboard) */
:focus-visible { outline: 3px solid color-mix(in srgb, var(--navy) 55%, transparent); outline-offset: 2px; }

/* Motion: fades instead of movement for people who reduce motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* ---------- Marketing pages (home): Apple structure, our brand ---------- */
.site-nav { position: sticky; top: 10px; z-index: 30; margin: 10px auto 0; width: min(1100px, calc(100% - 24px)); border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; }
.site-nav .brand { font: 600 15px/1 var(--sans); letter-spacing: .02em; color: var(--navy); text-decoration: none; margin-right: auto; }
.site-nav .links { display: flex; gap: 22px; font: 400 15px/20px var(--sans); }
.site-nav .links a { text-decoration: none; color: var(--label); opacity: .85; }
.site-nav .btn { min-height: 38px; padding: 0 16px; font-size: 15px; }
@media (max-width: 760px) { .site-nav .links { display: none; } }
.wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.hero { text-align: center; padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); display: grid; gap: 18px; justify-items: center; }
.display { font: 400 clamp(40px, 7vw, 76px)/1.05 var(--serif); letter-spacing: -.015em; color: var(--navy); margin: 0; text-wrap: balance; }
.hero .lede { font: 400 clamp(19px, 2.2vw, 22px)/1.4 var(--sans); color: var(--label-2); max-width: 34ch; margin: 0; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.hero .fine { margin-top: 4px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-head { text-align: center; display: grid; gap: 10px; justify-items: center; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .title-1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; }
.section-head p { max-width: 46ch; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--card); border-radius: var(--r-card); padding: 24px; display: grid; gap: 6px; align-content: start; text-decoration: none; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); box-shadow: 0 1px 2px rgba(7, 31, 58, .04); }
@media (hover: hover) { .tile:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(7, 31, 58, .10); } }
.tile:active { transform: scale(.985); }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--navy) 8%, transparent); color: var(--navy); margin-bottom: 8px; }
.tile .ico svg { width: 22px; height: 22px; }
.tile .go { margin-top: 10px; color: var(--navy); font: 600 15px/20px var(--sans); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border-radius: 22px; padding: 22px; display: grid; gap: 6px; align-content: start; }
.step .n { font: 400 30px/1 var(--serif); color: var(--gold-ink); }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .price-cards { grid-template-columns: 1fr; } }
.price { background: var(--card); border-radius: var(--r-card); padding: 28px; display: grid; gap: 14px; align-content: start; }
.price .amt { font: 700 34px/1 var(--sans); letter-spacing: -.02em; }
.price ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.price li { display: flex; gap: 10px; color: var(--label-2); font: 400 15px/20px var(--sans); }
.price li svg { flex: none; width: 18px; height: 18px; color: var(--green); margin-top: 1px; }
.footer { padding: 40px 0 calc(env(safe-area-inset-bottom, 0px) + 40px); color: var(--label-2); font: 400 13px/18px var(--sans); text-align: center; }

/* Phone: nav never wraps; persona tiles become an iOS-style grouped list (icon, text, chevron) */
.site-nav .brand, .site-nav .btn { white-space: nowrap; }
.site-nav .short { display: none; }
@media (max-width: 560px) {
  .site-nav { padding-left: 16px; }
  .site-nav .brand { font-size: 13px; }
  .site-nav .long { display: none; } .site-nav .short { display: inline; }
  .tiles { gap: 0; background: var(--card); border-radius: var(--r-card); overflow: hidden; }
  .tile { grid-template-columns: 36px 1fr 8px; column-gap: 14px; row-gap: 1px; align-items: center; padding: 12px 16px; border-radius: 0; box-shadow: none; position: relative; }
  .tile + .tile::before { content: ""; position: absolute; top: 0; left: 66px; right: 0; height: .5px; background: var(--separator); }
  .tile .ico { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 9px; margin: 0; }
  .tile .ico svg { width: 20px; height: 20px; }
  .tile .headline, .tile .subhead { grid-column: 2; }
  .tile .go { grid-column: 3; grid-row: 1 / span 2; margin: 0; font-size: 0; width: 8px; height: 14px;
    background: var(--label-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1 1l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1 1l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
  @media (hover: hover) { .tile:hover { transform: none; box-shadow: none; } }
  .tile:active { transform: none; background: var(--fill); }
}

/* hidden always wins over component display; a busy button stays fully visible but can't be pressed again */
[hidden] { display: none !important; }
.btn[aria-busy="true"] { pointer-events: none; }

/* =====================================================================
   v5.1 (13 Oct): always light (#331), logo, answer tiles (#332), office card (#333), motion (#334)
   ===================================================================== */
.site-nav .brand img { display: block; height: 28px; width: auto; }
@media (max-width: 560px) { .site-nav .brand img { height: 24px; } }
.site-nav { transition: box-shadow .3s var(--ease), background .3s var(--ease); }
.site-nav.scrolled { box-shadow: inset 0 0 0 1px var(--glass-edge), 0 10px 30px rgba(7, 31, 58, .14); }
.topbar .logo-mini { justify-self: center; display: block; height: 22px; width: auto; }

/* Press feel: springy scale + ripple */
.tap { position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s var(--ease), border-color .2s ease, background .2s ease; }
.tap:active { transform: scale(.96); transition-duration: .12s; }
.ripple { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(201, 166, 100, .35) 0, rgba(201, 166, 100, 0) 60%); transform: scale(0); animation: ripple .65s var(--ease) forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-stagger] { opacity: 1; transform: none; }
.reveal[data-stagger] > * { opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal[data-stagger].in > * { opacity: 1; transform: none; }

/* Animated hero: drifting navy/gold light behind the headline, rotating "for whom" chip */
.hero { position: relative; isolation: isolate; }
.aurora { position: absolute; inset: -40px 0 0; z-index: -1; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 420px; height: 420px; background: #e7c77c; left: 8%; top: 10%; opacity: .35; }
.aurora i:nth-child(2) { width: 520px; height: 520px; background: #bcd3ea; right: 4%; top: -8%; animation-duration: 22s; }
.aurora i:nth-child(3) { width: 300px; height: 300px; background: #c9a664; left: 45%; top: 45%; opacity: .25; animation-duration: 15s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } 100% { transform: translate(-30px, 10px) scale(.95); } }
.who { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--card); box-shadow: 0 4px 16px rgba(7, 31, 58, .08); font: 500 15px/20px var(--sans); color: var(--label-2); }
.who .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; color: var(--gold-light); }
.who .dot svg { width: 13px; height: 13px; }
.who b { color: var(--navy); font-weight: 600; display: inline-block; min-width: 9ch; text-align: left; transition: opacity .3s ease, transform .3s var(--ease); }
.who b.out { opacity: 0; transform: translateY(-8px); }
.display em { background: linear-gradient(90deg, #8a6a22, #c9a664, #8a6a22); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; padding-right: .08em; }
@keyframes shine { to { background-position: -200% 0; } }

/* Key facts strip with counters (true facts only: free check, 3 min, 40-min call, 30-day credit) */
.facts5 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; width: 100%; max-width: 860px; }
@media (max-width: 700px) { .facts5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact5 { background: var(--card); border-radius: 20px; padding: 16px 14px; display: grid; gap: 2px; text-align: center; box-shadow: 0 1px 2px rgba(7, 31, 58, .04); }
.fact5 .num { font: 400 32px/1.1 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; }
.fact5 .lbl { font: 400 13px/18px var(--sans); color: var(--label-2); }

/* Steps */
.step { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
@media (hover: hover) { .step:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(7, 31, 58, .08); } }
.step .n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--gold) 16%, transparent); font-size: 24px; margin-bottom: 4px; }

/* Price cards: lift + featured */
.price { transition: transform .35s var(--ease), box-shadow .35s var(--ease); position: relative; }
@media (hover: hover) { .price:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(7, 31, 58, .10); } }
.price.featured { box-shadow: 0 0 0 2px var(--gold), 0 18px 40px rgba(201, 166, 100, .18); }
.price .badge { position: absolute; top: -12px; left: 24px; background: var(--navy); color: var(--gold-light); font: 600 12px/16px var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }

/* Office card (#333): map preview + plain address + hours + 3 actions */
.office { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--card); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 1px 2px rgba(7, 31, 58, .04); max-width: 980px; margin: 0 auto; }
@media (max-width: 760px) { .office { grid-template-columns: 1fr; } }
.office .map { position: relative; min-height: 260px; background: #e3ecf4; display: block; }
.office .map svg.land { position: absolute; inset: 0; width: 100%; height: 100%; }
.office .pin { position: absolute; left: 52%; top: 50%; transform: translate(-50%, -100%); }
.office .pin svg { display: block; width: 40px; height: 52px; filter: drop-shadow(0 6px 10px rgba(7, 31, 58, .3)); animation: bob 2.4s ease-in-out infinite; }
.office .pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: rgba(201, 166, 100, .55); animation: pulse 2.4s ease-out infinite; z-index: -1; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(4); opacity: 0; } }
.office .map .tag { position: absolute; left: 16px; bottom: 16px; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: 999px; padding: 8px 14px; font: 600 13px/18px var(--sans); color: var(--navy); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 4px 14px rgba(7, 31, 58, .1); }
.office .info { padding: clamp(24px, 4vw, 36px); display: grid; gap: 18px; align-content: start; }
.office address { font: 400 17px/26px var(--sans); font-style: normal; color: var(--label); }
.office .hours { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font: 400 15px/20px var(--sans); color: var(--label-2); }
.office .open { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green); }
.office .open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: live 2s ease-out infinite; }
.office .open.closed { color: var(--label-2); } .office .open.closed::before { animation: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(31, 122, 77, .5); } 100% { box-shadow: 0 0 0 8px rgba(31, 122, 77, 0); } }
.office .contact { display: grid; gap: 4px; font: 400 15px/22px var(--sans); color: var(--label-2); }
.office .contact a { color: var(--navy); text-decoration: none; font-weight: 500; }
.office .actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.office .act { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 18px; background: var(--fill); color: var(--navy); text-decoration: none; font: 600 13px/16px var(--sans); }
.office .act svg { width: 22px; height: 22px; }
.office .act.primary { background: var(--navy); color: #fff; }

/* ---------- Eligibility check (#332): big tiles, 2 per row, auto-advance ---------- */
.qtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qtile { appearance: none; border: 2px solid transparent; background: var(--card); border-radius: 22px; padding: 16px 14px 14px; min-height: 132px; text-align: left; cursor: pointer;
  display: grid; align-content: space-between; gap: 10px; color: var(--label); font: inherit; box-shadow: 0 1px 2px rgba(7, 31, 58, .05), 0 4px 14px rgba(7, 31, 58, .04); }
.qtile .qi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--navy) 7%, transparent); color: var(--navy); transition: background .25s ease, color .25s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.qtile .qi svg { width: 24px; height: 24px; }
.qtile .qt { font: 600 16px/20px var(--sans); display: block; }
.qtile .qs { font: 400 13px/17px var(--sans); color: var(--label-2); display: block; margin-top: 2px; }
.qtile .tick { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.qtile .tick svg { width: 14px; height: 14px; }
@media (hover: hover) { .qtile:hover { box-shadow: 0 10px 28px rgba(7, 31, 58, .10); transform: translateY(-2px); } }
.qtile[aria-checked="true"] { border-color: var(--navy); box-shadow: 0 10px 28px rgba(7, 31, 58, .14); }
.qtile[aria-checked="true"] .qi { background: var(--navy); color: var(--gold-light); transform: rotate(-6deg) scale(1.08); }
.qtile[aria-checked="true"] .tick { transform: scale(1); }
.qtile.wide { grid-column: 1 / -1; min-height: 0; grid-template-columns: 44px 1fr; align-items: center; align-content: center; }
.q-in > * { animation: qin .5s var(--ease) both; }
.q-in > *:nth-child(2) { animation-delay: .05s; } .q-in > *:nth-child(3) { animation-delay: .1s; } .q-in > *:nth-child(4) { animation-delay: .15s; }
.q-in > *:nth-child(5) { animation-delay: .2s; } .q-in > *:nth-child(6) { animation-delay: .25s; }
@keyframes qin { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.q-out { animation: qout .28s var(--ease) both; }
@keyframes qout { to { opacity: 0; transform: translateX(-24px); } }

/* Profile strength meter (gamification) */
.strength { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: var(--card); border-radius: 18px; padding: 10px 14px; box-shadow: 0 1px 2px rgba(7, 31, 58, .04); }
.strength .ring { width: 40px; height: 40px; }
.strength .ring circle, .upring circle { fill: none; }
.strength .ring circle { stroke-width: 5; }
.strength .ring .bg { stroke: var(--fill-2); }
.strength .ring .fg { stroke: var(--gold); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .8s var(--ease); }
.strength .lbl { display: grid; }
.strength .lbl b { font: 600 15px/20px var(--sans); color: var(--navy); }
.strength .lbl span { font: 400 13px/16px var(--sans); color: var(--label-2); }
.strength .pct { font: 400 22px/1 var(--serif); color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--fill-2); transition: width .4s var(--ease), background .3s ease; }
.dots i.on { background: var(--navy); } .dots i.cur { width: 24px; background: var(--gold); }
.xp-pop { position: fixed; z-index: 60; font: 700 14px/1 var(--sans); color: var(--gold-ink); background: #fff8e6; border: 1px solid #ecd9a8; padding: 5px 9px; border-radius: 999px; pointer-events: none; animation: xp 1.1s var(--ease) forwards; }
@keyframes xp { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 20% { opacity: 1; transform: translateY(0) scale(1.05); } 100% { opacity: 0; transform: translateY(-28px) scale(1); } }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }

/* Result */
.badge-ring { width: 96px; height: 96px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #0d2d50, #071f3a); color: var(--gold-light); box-shadow: 0 12px 30px rgba(7, 31, 58, .25), 0 0 0 6px rgba(201, 166, 100, .25); animation: popin .7s cubic-bezier(.34, 1.56, .64, 1) both; }
.badge-ring svg { width: 46px; height: 46px; }
@keyframes popin { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Upload: progress ring header + animated ticks */
.upring { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--card); border-radius: 20px; padding: 14px 16px; }
.upring svg { width: 56px; height: 56px; }
.upring circle { stroke-width: 6; }
.upring .bg { stroke: var(--fill-2); } .upring .fg { stroke: var(--green); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .8s var(--ease); }
.upring text { font: 600 15px var(--sans); fill: var(--navy); }
.row.just { animation: flash 1.2s ease; }
@keyframes flash { 0% { background: rgba(31, 122, 77, .14); } 100% { background: transparent; } }
.row .status.pop { animation: popin .55s cubic-bezier(.34, 1.56, .64, 1) both; }

/* Checkout: sliding segmented thumb */
.segmented .thumb { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: var(--r-pill); background: var(--card); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform .45s cubic-bezier(.34, 1.3, .64, 1), width .3s var(--ease); z-index: 0; }
.segmented.has-thumb button[aria-selected="true"] { background: none; box-shadow: none; }
.swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal[data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .aurora i, .display em, .office .pin svg, .office .pin::after, .office .open::before { animation: none !important; }
}

html, body { overflow-x: clip; }
.aurora i { max-width: 90vw; max-height: 90vw; }

/* =====================================================================
   v5.2 (13 Oct): clearer hero (#337), new homepage sections (#338), more gamification (#339)
   ===================================================================== */
.hero .promise { font: 400 clamp(17px, 2vw, 20px)/1.45 var(--sans); color: var(--label-2); max-width: 46ch; margin: 0; }
.hero .promise strong { color: var(--label); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); color: var(--navy);
  font: 500 14px/18px var(--sans); text-decoration: none; box-shadow: 0 1px 2px rgba(7, 31, 58, .06), inset 0 0 0 1px rgba(7, 31, 58, .06); white-space: nowrap; }
.chip svg { width: 15px; height: 15px; flex: none; }
a.chip:hover { box-shadow: 0 6px 16px rgba(7, 31, 58, .10), inset 0 0 0 1px rgba(7, 31, 58, .12); }
.chip.gold { background: #fff8e6; color: var(--gold-ink); box-shadow: inset 0 0 0 1px #ecd9a8; }
.chip .n { font: 600 14px/1 var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font: 500 13px/18px var(--sans); color: var(--label-2); margin-top: 4px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* Mini check inside the hero */
.minicheck { width: 100%; max-width: 760px; margin-top: 14px; background: var(--card); border-radius: var(--r-card); padding: 20px; display: grid; gap: 14px; text-align: left;
  box-shadow: 0 18px 50px rgba(7, 31, 58, .10), 0 0 0 1px rgba(7, 31, 58, .04); position: relative; }
.minicheck .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.minicheck .q { font: 400 22px/28px var(--serif); color: var(--navy); margin: 0; }
.minicheck .q em { color: var(--gold-ink); }
.minicheck .meta { font: 500 13px/18px var(--sans); color: var(--label-2); display: inline-flex; gap: 8px; align-items: center; }
.minicheck .bar { width: 72px; height: 6px; border-radius: 3px; background: var(--fill-2); overflow: hidden; display: inline-block; }
.minicheck .bar i { display: block; height: 100%; width: 25%; background: var(--gold); border-radius: 3px; }
.mc-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .mc-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mc-opt { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border-radius: 16px; background: var(--page); color: var(--label); text-decoration: none; font: 600 15px/19px var(--sans); border: 2px solid transparent; }
.mc-opt .qi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--card); color: var(--navy); flex: none; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.mc-opt .qi svg { width: 19px; height: 19px; }
@media (hover: hover) { .mc-opt:hover { border-color: var(--navy); background: var(--card); } .mc-opt:hover .qi { transform: rotate(-8deg) scale(1.1); background: var(--navy); color: var(--gold-light); } }

/* Visa types grid (SEO) */
.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vgrid { grid-template-columns: 1fr; } }
.vcard { background: var(--card); border-radius: 22px; padding: 20px; display: grid; gap: 8px; align-content: start; text-decoration: none; color: inherit; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); box-shadow: 0 1px 2px rgba(7, 31, 58, .04); }
@media (hover: hover) { .vcard:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(7, 31, 58, .10); } .vcard:hover .arrow { transform: translateX(4px); } }
.vcard .tag { font: 600 12px/16px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.vcard h3 { font: 600 18px/23px var(--sans); margin: 0; color: var(--navy); }
.vcard p { margin: 0; font: 400 15px/20px var(--sans); color: var(--label-2); }
.vcard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font: 600 14px/18px var(--sans); color: var(--navy); }
.vcard .vprice { font: 600 14px/18px var(--sans); color: var(--label); }
.vcard .arrow { transition: transform .3s var(--ease); }
.vcard.cta { background: var(--navy); color: #fff; }
.vcard.cta h3, .vcard.cta .foot { color: #fff; } .vcard.cta p { color: rgba(255, 255, 255, .72); } .vcard.cta .tag { color: var(--gold-light); }

/* Animated journey timeline (#339) */
.journey { position: relative; max-width: 760px; margin: 0 auto; padding-left: 64px; display: grid; gap: 18px; list-style: none; }
.journey .track { position: absolute; left: 22px; top: 22px; bottom: 22px; width: 4px; border-radius: 2px; background: var(--fill-2); overflow: hidden; }
.journey .track i { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(var(--gold), var(--navy)); border-radius: 2px; }
.journey .runner { position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(201, 166, 100, .25), 0 4px 12px rgba(7, 31, 58, .25); transition: top .15s linear; z-index: 2; }
.jstep { position: relative; background: var(--card); border-radius: 22px; padding: 18px 20px; display: grid; gap: 4px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .5s ease; opacity: .55; transform: translateX(10px); }
.jstep.lit { opacity: 1; transform: none; box-shadow: 0 14px 34px rgba(7, 31, 58, .08); }
.jstep .dot { position: absolute; left: -54px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--label-2);
  font: 600 14px/1 var(--sans); box-shadow: 0 0 0 4px var(--page); transition: background .4s ease, color .4s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); z-index: 1; }
.jstep.lit .dot { background: var(--navy); color: var(--gold-light); transform: scale(1.12); }
.jstep .when { font: 600 12px/16px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }

/* Guides & news */
.guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .guides { grid-template-columns: 1fr; } }
.gcard { background: var(--card); border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; display: grid; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
@media (hover: hover) { .gcard:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(7, 31, 58, .10); } }
.gcard .art { aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; color: var(--gold-light); position: relative; overflow: hidden; }
.gcard .art svg { width: 44px; height: 44px; position: relative; z-index: 1; }
.gcard .art::after { content: ""; position: absolute; width: 140%; height: 140%; background: radial-gradient(circle at 30% 30%, rgba(231, 199, 124, .35), transparent 55%); }
.gcard .body2 { padding: 16px 18px 18px; display: grid; gap: 6px; }
.gcard .kind { display: inline-flex; gap: 8px; align-items: center; font: 600 12px/16px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--gold-ink); }
.gcard .kind .new { background: var(--green); color: #fff; padding: 2px 7px; border-radius: 999px; letter-spacing: .04em; }
.gcard h3 { margin: 0; font: 600 17px/22px var(--sans); color: var(--navy); }
.gcard p { margin: 0; font: 400 14px/19px var(--sans); color: var(--label-2); }
.more-link { display: inline-flex; gap: 6px; align-items: center; font: 600 15px/20px var(--sans); color: var(--navy); text-decoration: none; margin-top: 18px; }

/* Why TVC + comparison */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }
.wcard { background: var(--card); border-radius: 22px; padding: 20px; display: grid; gap: 6px; align-content: start; }
.wcard .wi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-ink); margin-bottom: 6px; }
.wcard .wi svg { width: 22px; height: 22px; }
.wcard h3 { margin: 0; font: 600 17px/22px var(--sans); color: var(--navy); }
.wcard p { margin: 0; font: 400 15px/20px var(--sans); color: var(--label-2); }
.compare-wrap { margin-top: 28px; overflow-x: auto; border-radius: 22px; background: var(--card); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font: 400 15px/20px var(--sans); }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: .5px solid var(--separator); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--label); }
.compare thead th { font: 600 15px/20px var(--sans); color: var(--navy); vertical-align: bottom; }
.compare thead th small { display: block; font: 400 13px/18px var(--sans); color: var(--label-2); margin-top: 2px; }
.compare thead th.hl { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.compare td.hl { background: color-mix(in srgb, var(--gold) 7%, transparent); }
.compare tr:last-child td { border-bottom: 0; }
.compare .y { color: var(--green); } .compare .n { color: var(--label-3); }
.compare svg { width: 20px; height: 20px; vertical-align: middle; }

/* Achievement badge toast (#339) */
.badge-toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 14px); z-index: 90; transform: translate(-50%, -140%); display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: 0 14px 40px rgba(7, 31, 58, .35); transition: transform .5s cubic-bezier(.34, 1.4, .64, 1); max-width: calc(100vw - 32px); }
.badge-toast.show { transform: translate(-50%, 0); }
.badge-toast .bi { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #e7c77c, #c9a664); color: var(--navy); flex: none; }
.badge-toast .bi svg { width: 20px; height: 20px; }
.badge-toast b { display: block; font: 600 15px/19px var(--sans); }
.badge-toast span { font: 400 13px/17px var(--sans); color: rgba(255, 255, 255, .75); }

/* Readiness gauge on the result (#339) */
.ready { background: var(--card); border-radius: 22px; padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.ready svg.gauge { width: 112px; height: 70px; }
.ready .gauge path { fill: none; stroke-width: 12; stroke-linecap: round; }
.ready .gauge .bg { stroke: var(--fill-2); }
.ready .gauge .fg { stroke: url(#readygrad); transition: stroke-dashoffset 1.2s var(--ease); }
.ready .gauge text { font: 400 22px var(--serif); fill: var(--navy); }
.ready b { font: 600 17px/22px var(--sans); color: var(--navy); display: block; }
.ready span { font: 400 14px/19px var(--sans); color: var(--label-2); }
.todo { display: grid; gap: 0; }
.todo label { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 10px 16px; cursor: pointer; position: relative; }
.todo label + label::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: .5px; background: var(--separator); }
.todo input { appearance: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--label-3); margin: 0; flex: none; display: grid; place-items: center; transition: background .25s ease, border-color .25s ease; cursor: pointer; }
.todo input:checked { background: var(--green); border-color: var(--green); }
.todo input:checked::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.4px 2.4px; transform: translateY(-1px) rotate(-45deg); }
.todo input:checked + span { color: var(--label-2); text-decoration: line-through; }
.todo span { font: 400 16px/21px var(--sans); }

/* Phone tightening: comparison fits the screen, guides become a swipeable row, visa cards go 2-up */
@media (max-width: 560px) {
  .compare { min-width: 0; font-size: 13px; line-height: 17px; }
  .compare th, .compare td { padding: 10px 6px; }
  .compare th:first-child, .compare td:first-child { padding-left: 14px; }
  .compare thead th { font-size: 13px; line-height: 17px; }
  .guides { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: none; }
  .guides::-webkit-scrollbar { display: none; }
  .gcard { scroll-snap-align: start; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vcard { padding: 16px 14px; }
  .vcard h3 { font-size: 15px; line-height: 20px; }
  .vcard p { display: none; }
  .vcard .tag { font-size: 11px; }
  .vcard.cta p { display: block; font-size: 13px; line-height: 17px; }
}

/* =====================================================================
   v5.3 (13 Oct): journey fix, text-only guides, CTA band, sticky phone bar, EN/RU switch,
   full footer, rule-change alerts, extra motion (#344, #345)
   ===================================================================== */
/* Smoothness: GPU-friendly reveals */
.reveal, .reveal[data-stagger] > * { will-change: opacity, transform; }
.reveal.in, .reveal[data-stagger].in > * { will-change: auto; }

/* Scroll progress line under the nav */
.scrollbar { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 40; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), #e7c77c, var(--navy)); pointer-events: none; }

/* EN / RU switch */
.lang { display: inline-grid; grid-auto-flow: column; padding: 3px; border-radius: 999px; background: var(--fill); position: relative; flex: none; }
.lang a { position: relative; z-index: 1; min-width: 36px; min-height: 30px; display: grid; place-items: center; font: 600 13px/1 var(--sans); color: var(--label-2); text-decoration: none; border-radius: 999px; }
.lang a[aria-current="true"] { color: var(--navy); background: var(--card); box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
@media (max-width: 560px) { .lang a { min-width: 30px; } .site-nav { gap: 8px; } }

/* Journey (fixed): one track through the dot centres, a runner that eases to its target */
.journey { position: relative; max-width: 760px; margin: 0 auto; padding-left: 64px; display: grid; gap: 18px; }
.journey .track { position: absolute; left: 24px; width: 4px; top: 0; height: 0; border-radius: 2px; background: var(--fill-2); overflow: hidden; }
.journey .track i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 50% 0; transform: scaleY(0); background: linear-gradient(var(--gold), var(--navy)); }
.journey .runner { position: absolute; left: 16px; top: 0; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--gold); z-index: 2; will-change: transform;
  box-shadow: 0 0 0 6px rgba(201, 166, 100, .25), 0 4px 12px rgba(7, 31, 58, .25); }
.journey .runner::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(201, 166, 100, .5); animation: pulse 2s ease-out infinite; }
.jstep .dot { left: -54px; top: 16px; }

/* Guides: text-only cards */
.gcard { padding: 20px; gap: 10px; align-content: start; border: 1px solid transparent; }
.gcard .body2 { padding: 0; }
.gcard .gtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gcard .gi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--navy) 7%, transparent); color: var(--navy); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .25s ease, color .25s ease; }
.gcard .gi svg { width: 19px; height: 19px; }
.gcard .read { font: 500 13px/18px var(--sans); color: var(--label-2); }
.gcard .go2 { font: 600 14px/18px var(--sans); color: var(--navy); margin-top: 4px; display: inline-flex; gap: 6px; }
.gcard .go2 span { transition: transform .3s var(--ease); }
@media (hover: hover) { .gcard:hover { border-color: rgba(7, 31, 58, .12); } .gcard:hover .gi { transform: rotate(-8deg) scale(1.08); background: var(--navy); color: var(--gold-light); } .gcard:hover .go2 span { transform: translateX(4px); } }

/* Visa cards: gentle 3D tilt on desktop (set by motion.js) */
@media (hover: hover) and (pointer: fine) {
  .tilt { transform-style: preserve-3d; transition: transform .25s var(--ease), box-shadow .35s var(--ease); }
}

/* Why cards: icon pops in after the card */
.why .wcard .wi { transform: scale(.6) rotate(-12deg); opacity: 0; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) .15s, opacity .4s ease .15s; }
.why.in .wcard .wi { transform: none; opacity: 1; }

/* Closing CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; background: var(--navy); color: #fff; text-align: center; padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 56px); display: grid; gap: 16px; justify-items: center; }
.cta-band .glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-band .glow i { position: absolute; border-radius: 50%; filter: blur(50px); animation: drift 16s ease-in-out infinite alternate; }
.cta-band .glow i:nth-child(1) { width: 360px; height: 360px; left: -80px; top: -120px; background: rgba(201, 166, 100, .45); }
.cta-band .glow i:nth-child(2) { width: 420px; height: 420px; right: -120px; bottom: -200px; background: rgba(61, 107, 145, .6); animation-duration: 20s; }
.cta-band h2 { font: 400 clamp(30px, 4.6vw, 48px)/1.1 var(--serif); margin: 0; color: #fff; text-wrap: balance; }
.cta-band h2 em { color: var(--gold-light); font-style: italic; }
.cta-band p { margin: 0; font: 400 17px/24px var(--sans); color: rgba(255, 255, 255, .75); max-width: 40ch; }
.cta-band .row2 { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.btn-gold { background: linear-gradient(180deg, #e7c77c, #c9a664); color: var(--navy); box-shadow: 0 8px 22px rgba(201, 166, 100, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn .wa { width: 20px; height: 20px; }
.cta-band .fine2 { font: 400 13px/18px var(--sans); color: rgba(255, 255, 255, .55); }

/* Sticky phone bar */
.phonebar { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); z-index: 35; display: none; grid-template-columns: 1fr auto; gap: 8px; padding: 8px;
  border-radius: 999px; transform: translateY(140%); transition: transform .45s cubic-bezier(.34, 1.3, .64, 1); }
.phonebar.show { transform: none; }
.phonebar .btn { min-height: 48px; }
.phonebar .wa-btn { width: 48px; min-height: 48px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: #1f7a4d; color: #fff; }
.phonebar .wa-btn svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .phonebar { display: grid; } }

/* Rule-change alerts */
.alerts { max-width: 820px; margin: 0 auto; background: var(--card); border-radius: 28px; padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; box-shadow: 0 1px 2px rgba(7, 31, 58, .04); }
@media (max-width: 640px) { .alerts { grid-template-columns: 1fr; } }
.alerts .bell { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #fff8e6; color: var(--gold-ink); }
.alerts .bell svg { width: 28px; height: 28px; transform-origin: 50% 10%; }
.alerts.in .bell svg { animation: ring 1.2s ease .4s 2; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }
.alerts h3 { margin: 0; font: 400 26px/32px var(--serif); color: var(--navy); }
.alerts h3 em { color: var(--gold-ink); }
.alerts form { display: grid; gap: 14px; margin-top: 4px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { appearance: none; border: 0; cursor: pointer; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--fill); color: var(--label); font: 500 14px/18px var(--sans); display: inline-flex; gap: 6px; align-items: center; }
.topic svg { width: 14px; height: 14px; display: none; }
.topic[aria-pressed="true"] { background: var(--navy); color: #fff; } .topic[aria-pressed="true"] svg { display: block; }
.alerts .inline { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
@media (max-width: 480px) { .alerts .inline { grid-template-columns: 1fr; } }
.alerts input[type=email] { appearance: none; height: 50px; border-radius: 999px; border: 1px solid var(--separator); padding: 0 18px; font: 400 17px/22px var(--sans); background: var(--page); color: var(--label); min-width: 0; }
.alerts input[type=email]:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 16%, transparent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font: 400 13px/18px var(--sans); color: var(--label-2); cursor: pointer; }
.consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.alerts .done { display: grid; gap: 6px; }

/* Full footer */
.site-footer { margin-top: clamp(48px, 8vw, 96px); background: #071f3a; color: rgba(255, 255, 255, .72); padding: clamp(40px, 6vw, 64px) 0 calc(env(safe-area-inset-bottom, 0px) + 96px); }
@media (min-width: 761px) { .site-footer { padding-bottom: 40px; } }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .about { grid-column: 1 / -1; } }
.site-footer h4 { margin: 0 0 10px; font: 600 13px/18px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; font: 400 15px/20px var(--sans); }
.site-footer a:hover { color: #fff; }
.site-footer .about p { margin: 12px 0 0; font: 400 14px/20px var(--sans); max-width: 36ch; }
.site-footer .about img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.site-footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 8px; font: 400 13px/19px var(--sans); color: rgba(255, 255, 255, .6); }
.site-footer .legal .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .legal a { font-size: 13px; }

/* Price lines in the hero promise: no currency wording (#344) */
.pay-any { display: inline-flex; gap: 6px; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  .journey .runner::after, .cta-band .glow i, .alerts.in .bell svg { animation: none !important; }
  .why .wcard .wi { transform: none; opacity: 1; }
}

/* Journey: steps fade/raise only, never shift sideways, so the numbers stay on the track */
.jstep { transform: none; }
.jstep.lit { transform: none; }
.jstep > :not(.dot) { transition: transform .5s var(--ease); transform: translateX(8px); }
.jstep.lit > :not(.dot) { transform: none; }

/* Badges sit just under the floating nav, never over it */
.badge-toast { top: calc(env(safe-area-inset-top, 0px) + 78px); width: max-content; max-width: min(380px, calc(100vw - 32px)); }
.screen ~ .badge-toast, body:not(:has(.site-nav)) .badge-toast { top: calc(env(safe-area-inset-top, 0px) + 64px); }

/* =====================================================================
   v5.4 (13 Oct, #349): equal button pairs, 2x2 visa types, alerts pop-up, one-screen check
   ===================================================================== */
/* Equal-size button pair: always the same width, side by side */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 520px; margin-top: 8px; }
.pair .btn { width: 100%; padding: 0 14px; white-space: nowrap; }
@media (max-width: 400px) { .pair { gap: 8px; } .pair .btn { font-size: 16px; padding: 0 10px; } }
.pair.dark { max-width: 560px; }
.pair.dark .btn .wa { flex: none; }

/* Visa types: 4 cards (3 visas + All our services), 2x2 on phones */
.vgrid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .vgrid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vgrid.four .vcard p { display: block; font-size: 13px; line-height: 17px; } .vgrid.four .vcard { min-height: 180px; align-content: space-between; } }

/* Email-alerts pop-up (sheet on phones, centred card on desktop) */
.modal-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(7, 31, 58, 0); display: grid; place-items: center; padding: 16px; transition: background .3s ease; }
.modal-backdrop.open { background: rgba(7, 31, 58, .35); }
.modal { position: relative; width: min(640px, 100%); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .3s ease, transform .4s cubic-bezier(.34, 1.3, .64, 1); }
.modal-backdrop.open .modal { opacity: 1; transform: none; }
.modal .alerts { box-shadow: 0 30px 80px rgba(7, 31, 58, .3); grid-template-columns: 1fr; }
.modal-x { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--fill); }
.modal-x svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .modal-backdrop { place-items: end center; padding: 0; }
  .modal { width: 100%; transform: translateY(100%); }
  .modal .alerts { border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); }
}

/* Eligibility check: the whole question fits one phone screen (#349) */
@media (max-width: 560px) {
  body:has(.qtiles) .screen { min-height: 100dvh; }
  body:has(.qtiles) .topbar { padding-top: calc(env(safe-area-inset-top, 0px) + 6px); padding-bottom: 4px; }
  body:has(.qtiles) .content { gap: 12px; padding-top: 4px; padding-bottom: 12px; }
  body:has(.qtiles) .strength { padding: 8px 12px; border-radius: 16px; }
  body:has(.qtiles) .strength .ring { width: 32px; height: 32px; }
  body:has(.qtiles) .strength .pct { font-size: 19px; }
  body:has(.qtiles) .stack { gap: 4px; }
  body:has(.qtiles) .large-title { font-size: 28px; line-height: 33px; }
  body:has(.qtiles) .stack .body { font-size: 15px; line-height: 20px; }
  .qtiles { gap: 10px; }
  .qtile { min-height: clamp(92px, 13.5dvh, 124px); padding: 12px 12px 11px; border-radius: 20px; gap: 6px; }
  .qtile .qi { width: 38px; height: 38px; border-radius: 12px; }
  .qtile .qi svg { width: 21px; height: 21px; }
  .qtile .qt { font-size: 15px; line-height: 19px; }
  .qtile .qs { font-size: 12.5px; line-height: 16px; }
  .qtile.wide { min-height: 0; padding: 10px 12px; }
}
@media (max-width: 560px) and (max-height: 700px) {
  body:has(.qtiles) .stack .eyebrow { display: none; }
  .qtile { min-height: 84px; }
}

/* Skip link: hidden until focused by keyboard */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--navy); color: #fff; font: 600 15px/20px var(--sans); text-decoration: none; transition: top .2s var(--ease); }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

/* =====================================================================
   v5.5 (13 Oct): services page (#273, #352, #353)
   ===================================================================== */
.price .pkgs { margin: 0; padding: 4px 0; list-style: none; display: grid; gap: 0; border-radius: 14px; background: var(--page); }
.price .pkgs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font: 400 15px/20px var(--sans); color: var(--label); position: relative; }
.price .pkgs li + li::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: .5px; background: var(--separator); }
.price .pkgs b { font-weight: 600; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price .footnote { margin-top: -4px; }
.refused { max-width: 920px; margin: 0 auto; background: var(--card); border-radius: 28px; padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  box-shadow: 0 1px 2px rgba(7, 31, 58, .04), inset 0 0 0 1px rgba(201, 166, 100, .35); }
@media (max-width: 760px) { .refused { grid-template-columns: 1fr; } .refused .btn { width: 100%; } }
.refused .ri { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #fff8e6; color: var(--gold-ink); }
.refused .ri svg { width: 28px; height: 28px; }
.vlist { display: grid; gap: 10px; }
.vlist-h { margin: 14px 4px 0; font: 600 13px/18px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--label-2); }
.vlist .group { background: var(--card); border-radius: 22px; overflow: hidden; }
.site-nav .links a[aria-current="page"] { color: var(--navy); font-weight: 600; opacity: 1; }

/* ---------- v5.6 Article pages: visa guides, pricing, about (#352 rollout) ---------- */
.vhero { padding-bottom: clamp(24px, 4vw, 40px); grid-template-columns: minmax(0, 1fr); }
.vhero > * { max-width: 100%; min-width: 0; }
@media (max-width: 520px) { .vfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vfacts b { font-size: 17px; } }
.vdisplay { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; max-width: 18ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font: 400 13px/18px var(--sans); color: var(--label-2); }
.crumbs a { color: var(--navy); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.vfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; width: 100%; max-width: 760px; }
.vfacts > div { background: var(--card); border-radius: 18px; padding: 14px 12px; display: grid; gap: 2px; box-shadow: 0 1px 2px rgba(7, 31, 58, .04); }
.vfacts span { font: 400 13px/17px var(--sans); color: var(--label-2); }
.vfacts b { font: 400 20px/1.2 var(--serif); color: var(--navy); }
.vdoc-section { padding-top: 8px; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.doc > aside { position: sticky; top: 84px; display: grid; gap: 14px; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc > aside { position: static; } }
.prose { font: 400 17px/1.6 var(--sans); color: var(--label); min-width: 0; max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font: 400 clamp(26px, 3vw, 34px)/1.15 var(--serif); color: var(--navy); margin: 52px 0 14px; text-wrap: balance; scroll-margin-top: 84px; }
.prose h2 em { font-style: italic; color: var(--gold-ink); }
.prose h3 { font: 600 19px/1.3 var(--sans); color: var(--navy); margin: 26px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.prose a { color: var(--navy); }
.prose .varies { background: #fff4dc; border-radius: 14px; padding: 12px 16px; font-size: 15px; line-height: 1.5; color: var(--label); }
.prose .cat { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.prose .cat > div { background: var(--card); border-radius: 18px; padding: 18px; }
.prose .cat h3 { margin-top: 0; }
.prose .cat p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--label-2); }
.table-wrap, .ptable-wrap { overflow-x: auto; background: var(--card); border-radius: 18px; margin: 8px 0 18px; }
.prose table, .ptable { width: 100%; border-collapse: collapse; font: 400 15px/1.45 var(--sans); }
.prose th, .prose td, .ptable th, .ptable td { text-align: left; padding: 11px 14px; border-bottom: .5px solid var(--separator); vertical-align: top; }
.prose th, .ptable th { font-weight: 600; color: var(--navy); background: color-mix(in srgb, var(--navy) 4%, transparent); }
.prose tr:last-child td, .ptable tr:last-child td { border-bottom: 0; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 16px; padding: 14px 18px; }
.faq summary { cursor: pointer; font: 600 16px/1.4 var(--sans); color: var(--navy); }
.faq details > div { margin-top: 8px; color: var(--label-2); font-size: 16px; line-height: 1.55; }
.cites { display: grid; gap: 6px; }
.cites cite { font: normal 400 14px/1.45 var(--sans); color: var(--label-2); }
.cites span { font: 400 13px/1.45 var(--sans); color: var(--label-2); }
.panel { background: var(--card); border-radius: 22px; padding: 22px; display: grid; gap: 12px; box-shadow: 0 1px 2px rgba(7, 31, 58, .04); }
.panel h2 { font: 400 22px/1.2 var(--serif); color: var(--navy); margin: 0; }
.panel h2 em { font-style: italic; color: var(--gold-ink); }
.help-svc { display: grid; }
.help-svc a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: .5px solid var(--separator); color: var(--label); text-decoration: none; font: 400 16px/1.3 var(--sans); }
.help-svc a span:last-child { font-weight: 600; color: var(--navy); white-space: nowrap; }
.help-svc a:hover span:first-child { color: var(--navy); }
.toc a { display: block; padding: 5px 0; color: var(--navy); font: 400 15px/1.4 var(--sans); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.two-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .two-panels { grid-template-columns: minmax(0, 1fr); } }
.panel ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font: 400 16px/1.45 var(--sans); color: var(--label); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font: 400 15px/1.45 var(--sans); }
.kv dt { color: var(--label-2); }
.kv dd { margin: 0; color: var(--label); font-weight: 600; }
@media (max-width: 520px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 8px; } }
.pkg { display: grid; }
.pkg > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: .5px solid var(--separator); font: 400 15px/20px var(--sans); }
.pkg strong { color: var(--navy); white-space: nowrap; }
.ptable th[scope="row"] { background: none; }
.ptable .num { font-weight: 600; color: var(--navy); white-space: nowrap; }
.narrow { max-width: 860px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) { .pair .btn { white-space: normal; line-height: 1.15; text-align: center; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font: 400 16px/1.45 var(--sans); color: var(--label); }
.ticks li svg { flex: none; width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.price .ticks li { font-size: 15px; line-height: 20px; color: var(--label-2); }
.panel p { margin: 0; }
@media (max-width: 600px) {
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; width: 100%; }
  .ptable tr { padding: 12px 16px; border-bottom: .5px solid var(--separator); }
  .ptable tr:last-child { border-bottom: 0; }
  .ptable th, .ptable td { border: 0; padding: 2px 0; }
  .ptable .num { font-size: 17px; }
}

/* ---------- v5.7 Forms: checkout and the private order pages (#352 rollout, 14 Oct) ----------
   The checkout keeps its v4 markup and IDs (page script, Stripe, Turnstile); these rules give it the v5 look. */
.v5form { --ink: var(--label); --ink-2: var(--label-2); --ink-3: var(--label-2); --line: var(--separator); --ground: var(--page); --navy-tint: rgba(7, 31, 58, .08); }
.co-hero { padding-bottom: 8px; gap: 14px; }
.co-hero .vdisplay { font-size: clamp(32px, 4.6vw, 50px); max-width: 20ch; }
.co-section { padding-top: 24px; }
.v5form .split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 36px); align-items: start; }
.v5form .sticky-side { position: sticky; top: 84px; }
@media (max-width: 900px) { .v5form .split { grid-template-columns: minmax(0, 1fr); } .v5form .sticky-side { position: static; } }
.v5form .panel { gap: 18px; padding: clamp(18px, 3vw, 28px); }
.v5form .panel:focus { outline: none; }
.v5form .t-h3 { font: 400 24px/1.2 var(--serif); color: var(--navy); margin: 0; }
.v5form .t-small { font: 400 15px/1.45 var(--sans); color: var(--label-2); margin: 0; }
.v5form .t-small strong { color: var(--label); }
.v5form .t-micro { font: 400 13px/18px var(--sans); color: var(--label-2); margin: 0; }
.v5form .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .v5form .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.v5form .field > span, .v5form .field > legend { font: 600 15px/20px var(--sans) !important; color: var(--label); }
.v5form .field > span small { font-weight: 400; color: var(--label-2); }
.v5form .field > small { font: 400 13px/18px var(--sans); color: var(--label-2); }
.v5form .input { appearance: none; width: 100%; min-height: 52px; border-radius: var(--r-field); border: 1px solid var(--separator); background: var(--card); color: var(--label);
  padding: 0 16px; font: 400 17px/22px var(--sans); transition: border-color .2s ease, box-shadow .2s ease; }
.v5form select.input { padding-right: 44px; cursor: pointer;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%23071f3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.v5form textarea.input { padding: 14px 16px !important; line-height: 1.45; }
.v5form .input::placeholder { color: var(--label-3); }
.v5form .input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 18%, transparent); }
.v5form .input[aria-invalid="true"] { border-color: var(--red); }
.v5form .choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.v5form .choice { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); background: var(--card);
  box-shadow: inset 0 0 0 1px var(--separator); font: 500 16px/20px var(--sans); color: var(--label); cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.v5form .choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.v5form .choice:has(input:checked) { background: var(--navy); color: #fff; box-shadow: none; }
.v5form .choice:has(input:focus-visible) { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--navy); }
.v5form .check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font: 400 15px/1.45 var(--sans); color: var(--label-2); }
.v5form .check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); }
.v5form .check a, .v5form .t-small a { color: var(--navy); }
.v5form .note { margin: 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 14%, var(--card)); font: 400 15px/1.45 var(--sans); color: var(--label); }
.v5form .err { margin: 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--red) 8%, var(--card)); color: var(--red); font: 500 15px/1.45 var(--sans); }
.v5form .err[hidden] { display: none; }
.v5form .ok-badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 12%, var(--card)); color: var(--green); }
.v5form .sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: .5px solid var(--separator); font: 400 15px/20px var(--sans); color: var(--label-2); }
.v5form .sum-row b { color: var(--label); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.v5form .sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 4px; font: 600 17px/22px var(--sans); }
.v5form .sum-total b { font: 400 30px/1.1 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; }
.v5form .ticks li { font-size: 15px; line-height: 1.4; color: var(--label-2); }
.v5form .stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font: 600 14px/20px var(--sans); color: rgba(30, 32, 40, .86); }
.v5form .stepper li { display: inline-flex; align-items: center; gap: 8px; }
.v5form .stepper .d { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--sans); background: var(--card); color: var(--label-2); box-shadow: inset 0 0 0 1px var(--separator); }
.v5form .stepper li[data-state="current"] { color: var(--navy); }
.v5form .stepper li[data-state="current"] .d { background: var(--navy); color: #fff; box-shadow: none; }
.v5form .stepper li[data-state="done"] .d { background: var(--green); color: #fff; box-shadow: none; }
.v5form .pay-methods span { background: var(--page) !important; }
.v5form .panel > .btn { width: 100%; }
/* private order, confirm and upload pages (server-rendered, v5 article layout) */
.btn-solid { background: var(--navy); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px rgba(7, 31, 58, .22); text-decoration: none; }
.btn-solid:hover { background: var(--navy-2); }
.prose .input { appearance: none; width: 100%; min-height: 48px; border-radius: var(--r-field); border: 1px solid var(--separator); background: var(--card); color: var(--label); padding: 0 14px; font: 400 16px/22px var(--sans); }
.prose .input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 18%, transparent); }
.prose form { display: grid; gap: 12px; justify-items: start; }
.prose .t-small { font-size: 15px; line-height: 1.45; color: var(--label-2); }
.prose .eyebrow { margin-bottom: 8px; }
.v5form .field input[type="radio"], .v5form .field input[type="checkbox"], .v5form .check input { appearance: auto; height: 20px; width: 20px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.v5form .opt-row { color: var(--label); font: 400 16px/1.4 var(--sans); background: var(--card); }
.v5form .opt-row strong { font-weight: 600; }
.v5form .opt-row small { line-height: 1.4; }
.v5form .opt-row b { color: var(--navy); }
/* the hero glow must not paint over the cards below it; side-by-side fields start at the top */
.co-section, .vdoc-section { position: relative; z-index: 1; }
.v5form .field { align-content: start; }
/* price cards: buttons line up at the bottom of every card; the secondary buttons read as buttons on the white card */
.price { display: flex; flex-direction: column; }
.price > .btn { margin-top: auto; }
.price > .btn + .footnote { margin-top: 0; }
.price .btn-glass { background: color-mix(in srgb, var(--navy) 7%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--navy) 14%, transparent); }
.price .btn-glass:hover { background: color-mix(in srgb, var(--navy) 11%, var(--card)); }
.updated { margin: 40px 0 0; font: 400 14px/1.5 var(--sans); color: var(--label-2); }
/* hero buttons: the same compact pair as on the home and services pages (the .vhero > * cap made them full width) */
.vhero .pair { max-width: 520px; }
/* phone: country-code picker + number (public/js/fields.js); live field messages */
.tel-row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 8px; }
.tel-row .tel-cc { position: relative; }
.tel-row .tel-cc-shown { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0 36px 0 14px; border-radius: var(--r-field); border: 1px solid var(--separator); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%23071f3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; font: 400 17px/22px var(--sans); color: var(--label); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tel-row .tel-cc-select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.tel-row .tel-cc:focus-within .tel-cc-shown { border-color: var(--navy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 18%, transparent); }
.field-msg { display: block; font: 400 13px/18px var(--sans); color: var(--label-2); }
.field-msg:empty { display: none; }
.field-msg.error { color: var(--red); }
.field-msg.hint { color: var(--label); }
.field-fix { appearance: none; border: 0; background: none; padding: 0; font: 600 13px/18px var(--sans); color: var(--navy); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.v5form .field > .field-msg { font: 400 13px/18px var(--sans) !important; color: var(--label-2); }
.v5form .field > .field-msg.error { color: var(--red); }
.v5form .field > .field-msg.hint { color: var(--label); }
/* ---------- v5.8 Home additions (#386): mission, DTV and retirement spotlights, difficult cases, reviews ---------- */
.note-line { max-width: 760px; margin: 22px auto 0; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--gold) 12%, var(--card)); font: 400 16px/1.5 var(--sans); color: var(--label); text-align: center; }
.note-line strong { color: var(--navy); }
.spot { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.spot-copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.spot-copy .title-1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.spot-copy .ticks { margin: 4px 0; }
.spot-copy .pair { margin-top: 6px; }
.spot.flip .spot-copy { order: 2; }
.spot-stack { display: grid; gap: 14px; min-width: 0; }
.spot-card { box-shadow: 0 1px 2px rgba(7, 31, 58, .04), 0 18px 40px rgba(7, 31, 58, .06); }
.spot-card p { margin: 0; }
@media (max-width: 900px) { .spot { grid-template-columns: minmax(0, 1fr); } .spot.flip .spot-copy { order: 0; } }
.hard { background: var(--card); border-radius: var(--r-card); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; justify-items: start; box-shadow: 0 1px 2px rgba(7, 31, 58, .04); }
.hard .title-1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; margin: 6px 0 10px; }
.rcards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 380px); gap: 16px; justify-content: center; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; -webkit-overflow-scrolling: touch; }
.rcards:focus-visible { outline: 3px solid color-mix(in srgb, var(--navy) 35%, transparent); outline-offset: 4px; border-radius: 22px; }
.rcard { margin: 0; scroll-snap-align: center; background: var(--card); border-radius: 22px; padding: 24px; display: grid; gap: 12px; align-content: start; box-shadow: 0 1px 2px rgba(7, 31, 58, .04); }
.rcard .stars { color: #b8892f; font-size: 18px; letter-spacing: 3px; line-height: 1; }
.rcard blockquote { margin: 0; font: 400 16px/1.55 var(--sans); color: var(--label); }
.rcard figcaption { display: flex; justify-content: space-between; gap: 12px; font: 400 14px/1.3 var(--sans); color: var(--label-2); }
.rcard .rname { font-weight: 600; color: var(--label); }
@media (max-width: 640px) { .rcards { grid-auto-columns: 86%; justify-content: start; } }
/* free check: plain text + FAQ under the tool (SEO review 2.7), visible, not collapsed */
.check-info { padding: 32px 0 calc(env(safe-area-inset-bottom, 0px) + 120px); }
.check-info h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 28px; }
.check-info h3 { font: 600 17px/1.35 var(--sans); color: var(--navy); margin: 18px 0 4px; }
.check-info p { font-size: 16px; color: var(--label-2); }
.rating { text-align: center; margin: -18px 0 22px; font: 400 16px/1.4 var(--sans); color: var(--label-2); }
.rating .stars { color: #b8892f; letter-spacing: 3px; font-size: 20px; margin-right: 6px; }
.rating strong { color: var(--label); }
/* WhatsApp contact (Samuel, 14 Oct): round green button bottom-right on every page + a small one in the top bar */
.wa-float { position: fixed; right: 18px; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(18, 140, 126, .35), 0 2px 6px rgba(0, 0, 0, .15); text-decoration: none; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { background: #1ebe5b; }
.wa-float:focus-visible, .wa-mini:focus-visible { outline: 3px solid #128c7e; outline-offset: 3px; }
.wa-mini { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; text-decoration: none; margin-left: 2px; }
.wa-mini svg { width: 22px; height: 22px; }
.phonebar .wa-btn { background: #25d366; color: #fff; }
.phonebar .wa-btn svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
/* phones: the bottom quick-action bar already has the WhatsApp button, so the floating one only shows where that bar isn't */
@media (max-width: 760px) { body:has(.phonebar) .wa-float { display: none; } .wa-mini { width: 36px; height: 36px; } }
/* free check: stay above its bottom action bar */
body:has(#bar:not([hidden])) .wa-float { bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); }
