/* TerraRoam eSIM — design tokens ------------------------------------------ */
:root {
  --bg: #F2F5F4;
  --surface: #FFFFFF;
  --surface-2: #E9EFEE;
  --ink: #0E1B1E;
  --ink-2: #2B3C40;
  --muted: #5B6D71;
  --line: #D7E0DF;
  --line-strong: #B9C8C7;
  --brand: #0B5C66;
  --brand-strong: #07434B;
  --brand-soft: #DCEEEE;
  --brand-ink: #FFFFFF;
  --hot: #FF6B35;
  --hot-strong: #E8521C;
  --hot-ink: #1A0D06;
  --dark-bg: #0A1A1E;
  --dark-ink: #EAF2F1;
  --dark-muted: #9DB2B4;
  --dark-line: #1E353A;
  --shadow: 0 1px 2px rgba(14,27,30,.06), 0 12px 32px -12px rgba(14,27,30,.18);
  --shadow-lg: 0 24px 64px -24px rgba(14,27,30,.35);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M-60 20C-40 8 -20 8 0 20s40 12 60 0 40-12 60 0 40 12 60 0' fill='none' stroke='%23DBE6E6' stroke-width='9'/%3E%3C/svg%3E");
  --radius: 14px;
  --radius-lg: 22px;
  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1518; --surface: #10242A; --surface-2: #142E34;
    --ink: #EAF2F1; --ink-2: #C9D8D9; --muted: #93A8AA;
    --line: #1F383E; --line-strong: #2E4E55;
    --brand: #3FB8BE; --brand-strong: #63CDD2; --brand-soft: #0F3238; --brand-ink: #06272B;
    --hot: #FF7A47; --hot-strong: #FF9068; --hot-ink: #1A0D06;
    --dark-bg: #061013; --dark-line: #1A2E33;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 24px 64px -24px rgba(0,0,0,.7);
    --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M-60 20C-40 8 -20 8 0 20s40 12 60 0 40-12 60 0 40 12 60 0' fill='none' stroke='%2310292C' stroke-width='9'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1518; --surface: #10242A; --surface-2: #142E34;
  --ink: #EAF2F1; --ink-2: #C9D8D9; --muted: #93A8AA;
  --line: #1F383E; --line-strong: #2E4E55;
  --brand: #3FB8BE; --brand-strong: #63CDD2; --brand-soft: #0F3238; --brand-ink: #06272B;
  --hot: #FF7A47; --hot-strong: #FF9068; --hot-ink: #1A0D06;
  --dark-bg: #061013; --dark-line: #1A2E33;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 64px -24px rgba(0,0,0,.7);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M-60 20C-40 8 -20 8 0 20s40 12 60 0 40-12 60 0 40 12 60 0' fill='none' stroke='%2310292C' stroke-width='9'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* Base --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(1180px, 100% - 32px); } }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Type scale */
.display { font: 800 clamp(48px, 8vw, 96px)/.95 var(--display); letter-spacing: -.035em; margin: 0; text-wrap: balance; font-variation-settings: "opsz" 96; }
.h2 { font: 700 clamp(30px, 4vw, 44px)/1.05 var(--display); letter-spacing: -.025em; margin: 0 0 8px; text-wrap: balance; }
h3 { font: 700 22px/1.2 var(--display); letter-spacing: -.015em; margin: 0 0 6px; }
h4 { font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 34em; margin: 20px 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin: 0 0 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hot) 20%, transparent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; transition: transform .12s ease, background .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--hot); color: var(--hot-ink); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--hot) 60%, transparent); }
.btn-primary:hover { background: var(--hot-strong); }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 16px; }
.icon-btn:hover { background: var(--surface-2); }

/* Header ------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; }
.brand-mark rect { fill: var(--brand); }
.brand-mark path { stroke: var(--brand-ink); }
.brand-word { font: 800 24px/1 var(--display); letter-spacing: -.03em; }
.site-nav { display: flex; gap: 26px; margin-left: 12px; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.site-nav a:hover { color: var(--brand); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch select { appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 30px 9px 14px; font-weight: 600; font-size: 13px; letter-spacing: .04em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 11px; }
@media (max-width: 900px) { .site-nav { display: none; } }
@media (max-width: 560px) { .header-tools .btn { display: none; } }

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero-waves { position: absolute; inset: auto 0 0 0; height: 46%; background: var(--wave) repeat-x bottom / 120px 40px; mask-image: linear-gradient(to top, #000 20%, transparent); -webkit-mask-image: linear-gradient(to top, #000 20%, transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-card { max-width: 440px; } }

.finder { position: relative; max-width: 620px; }
.finder-field { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow); }
.finder-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow); }
.finder-field svg { width: 20px; height: 20px; flex: none; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.finder-field input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; padding: 10px 0; outline: none; }
.finder-field input::-webkit-search-cancel-button { display: none; }
.finder-suggest { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 320px; overflow: auto; }
.finder-suggest li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.finder-suggest li[aria-selected="true"], .finder-suggest li:hover { background: var(--brand-soft); }
.finder-suggest .flag { font-size: 20px; }
.finder-suggest .from { margin-left: auto; color: var(--muted); font-size: 14px; }
@media (max-width: 520px) { .finder-field { flex-wrap: wrap; border-radius: 22px; padding: 8px; } .finder-field svg { display: none; } .finder-field input { width: 100%; padding: 8px 10px; } .finder-field .btn { width: 100%; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: transparent; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; transition: background .15s, border-color .15s; }
.chip:hover { background: var(--surface); border-color: var(--brand); color: var(--brand); }

.trust { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px 40px; }
.trust li { display: grid; gap: 2px; }
.trust strong { font: 700 20px/1.1 var(--display); letter-spacing: -.01em; }
.trust span { font-size: 14px; color: var(--muted); }

/* Boarding-pass card */
.hero-card { position: relative; }
.pass { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.pass-top { padding: 22px 24px 18px; background: var(--brand); color: var(--brand-ink); display: grid; gap: 14px; }
.pass-route { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pass-route .code { font: 800 40px/1 var(--display); letter-spacing: -.03em; }
.pass-route .city { font-size: 12px; opacity: .8; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.pass-route .plane { width: 28px; height: 28px; opacity: .85; }
.pass-badge { justify-self: start; font: 600 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--brand-ink) 18%, transparent); }
.pass-cut { position: relative; height: 0; border-top: 2px dashed var(--line-strong); margin: 0 18px; }
.pass-cut::before, .pass-cut::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.pass-cut::before { left: -30px; } .pass-cut::after { right: -30px; }
.pass-bottom { padding: 20px 24px 24px; display: grid; gap: 18px; }
.pass-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pass-facts div { display: grid; gap: 4px; }
.pass-facts small { font: 600 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pass-facts strong { font: 700 22px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pass-nets { font-size: 13px; color: var(--muted); }
.pass-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pass-price .amt { font: 800 34px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pass-price .per { color: var(--muted); font-size: 13px; }
.pass-stamp { position: absolute; top: -14px; right: 22px; background: var(--hot); color: var(--hot-ink); font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; transform: rotate(3deg); box-shadow: var(--shadow); }

/* Sections ----------------------------------------------------------------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tint { background: var(--surface-2); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); max-width: 640px; }
.section-head-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head .muted { margin: 0; font-size: 17px; }

/* Top picks */
.picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .picks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .picks { grid-template-columns: 1fr; } }
.pick { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.pick:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.pick-tag { justify-self: start; font: 600 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.pick-tag.hot { background: var(--hot); color: var(--hot-ink); }
.pick-head { display: flex; align-items: center; gap: 10px; }
.pick-head .flag { font-size: 28px; line-height: 1; }
.pick-head h3 { margin: 0; font-size: 20px; }
.pick-data { font: 800 clamp(36px, 3.4vw, 44px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pick-data small { font: 600 14px/1 var(--body); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.pick-meta { color: var(--muted); font-size: 14px; }
.pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font: 700 24px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Destinations */
.dest-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; width: min(360px, 100%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; }
.dest-search:focus-within { border-color: var(--brand); }
.dest-search svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; flex: none; }
.dest-search input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; font-size: 15px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.tab { padding: 10px 16px; border-radius: 999px; border: 1px solid transparent; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.tab:hover { background: var(--surface); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tab .n { margin-left: 6px; font-weight: 500; opacity: .6; font-variant-numeric: tabular-nums; }
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.dest { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; }
.dest:hover { border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow); }
.dest .flag { font-size: 30px; line-height: 1; width: 36px; text-align: center; }
.dest .name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.dest .mid { min-width: 0; }
.dest .name { display: block; }
.dest .nets { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dest .from { text-align: right; font-size: 12px; color: var(--muted); line-height: 1.2; }
.dest .from b { display: block; font: 700 17px/1.1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.dest.featured { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: linear-gradient(135deg, var(--surface), var(--brand-soft)); }
.dest.regional .flag { font-size: 26px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding: 26px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font: 700 17px/1 var(--display); margin-bottom: 18px; }

/* Compare (dark band) */
.section-dark { background: var(--dark-bg); color: var(--dark-ink); }
.compare-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-copy p { color: var(--dark-muted); font-size: 17px; margin: 14px 0 0; max-width: 34em; }
.compare-table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.compare th, .compare td { padding: 14px 14px; text-align: left; border-bottom: 1px solid var(--dark-line); vertical-align: top; }
.compare thead th { font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); }
.compare tbody th { font-weight: 500; color: var(--dark-muted); width: 32%; }
.compare td { color: var(--dark-ink); font-variant-numeric: tabular-nums; }
.compare td.win { color: #FFB38F; font-weight: 600; background: color-mix(in srgb, var(--hot) 8%, transparent); }
.compare thead th:last-child { color: #FFB38F; }

/* Compat */
.compat-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .compat-grid { grid-template-columns: 1fr; } }
.dial { display: inline-block; margin-top: 18px; font: 500 28px/1 var(--mono); padding: 14px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-strong); letter-spacing: .06em; }
.compat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.compat-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.compat-list strong { font-weight: 600; }
.compat-list span { color: var(--ink-2); }

/* FAQ */
.faq-wrap { max-width: 760px; }
.faq { margin-top: 28px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: block; list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font: 600 18px/1.3 var(--display); letter-spacing: -.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 10px; top: 50%; width: 20px; text-align: center; transform: translateY(-50%); font: 400 26px/1 var(--display); color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0 0 20px; color: var(--ink-2); max-width: 62ch; }

/* Footer ------------------------------------------------------------------- */
.site-footer { position: relative; padding: 64px 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-waves { position: absolute; inset: 0 0 auto 0; height: 60px; background: var(--wave) repeat-x top / 120px 40px; mask-image: linear-gradient(to bottom, #000, transparent); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-grid ul a:hover { color: var(--brand); }
.footer-grid .muted { max-width: 30em; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Overlays ----------------------------------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(6, 16, 19, .55); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; }
.overlay-center { justify-content: center; align-items: center; padding: 20px; }
.drawer { position: relative; width: min(520px, 100%); height: 100%; background: var(--bg); overflow-y: auto; box-shadow: var(--shadow-lg); animation: slide-in .25s ease; }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-close { position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 2; }
.drawer-body { padding: 28px 28px 40px; clear: both; }
.drawer-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.drawer-hero .flag { font-size: 52px; line-height: 1; }
.drawer-hero h2 { font: 800 34px/1 var(--display); letter-spacing: -.03em; margin: 0; }
.drawer-hero .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.drawer-blurb { color: var(--ink-2); margin: 10px 0 22px; }
.covered { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.covered span { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.plan-list { display: grid; gap: 10px; }
.plan { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; width: 100%; transition: border-color .15s, box-shadow .15s; }
.plan:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.plan .data { grid-column: 1; grid-row: 1; font: 800 24px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan .data small { font: 500 14px/1 var(--body); color: var(--muted); margin-left: 6px; }
.plan .days { color: var(--muted); font-size: 14px; grid-column: 1; grid-row: 2; }
.plan .price { grid-column: 2; grid-row: 1; text-align: right; }
.plan .perday { grid-column: 2; grid-row: 2; font-size: 12px; color: var(--muted); text-align: right; }
.plan.best { border-color: var(--brand); }
.plan .best-tag { position: absolute; }
.drawer-note { margin-top: 20px; font-size: 13px; color: var(--muted); }

.modal { position: relative; width: min(480px, 100%); max-height: calc(100dvh - 40px); overflow: auto; background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; animation: pop .2s ease; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal h2 { font: 800 28px/1.05 var(--display); letter-spacing: -.025em; margin: 0 0 18px; padding-right: 44px; }
.summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.summary .flag { font-size: 34px; line-height: 1; }
.summary .what { font-weight: 600; }
.summary .sub { font-size: 13px; color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 16px; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field .err { color: #C4341D; font-size: 13px; display: none; }
.field.invalid input { border-color: #C4341D; }
.field.invalid .err { display: block; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 18px; border-top: 1px solid var(--line); margin-top: 6px; }
.total .amt { font: 800 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.paywall { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: center; }
.paywall span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; }
.fine { font-size: 12px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.success { text-align: center; padding: 8px 0 0; }
.success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; margin: 0 auto 18px; font-size: 30px; }
.success .qr { width: 180px; height: 180px; margin: 20px auto; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.success .qr img { width: 160px; height: 160px; }
.success .order-id { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.demo-banner { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hot-strong); text-align: center; margin-bottom: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); }

/* TerraRoam additions ------------------------------------------------------ */
.brand-mark circle, .brand-mark path { stroke: var(--brand-ink); }
.brand-mark path.hot { stroke: var(--hot); }
.brand-word span { color: var(--brand); }
.trust { gap: 24px 32px; }
.local-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .local-grid { grid-template-columns: 1fr; } }
.local-card { padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; grid-template-rows: auto 1fr auto; gap: 10px; }
.local-card p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.pay-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-list li { font: 600 12px/1 var(--body); letter-spacing: .04em; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); }
.sup-links { display: flex; flex-wrap: wrap; gap: 8px; }
.store-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.store { display: grid; gap: 2px; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 600 14px/1.1 var(--body); }
.store small { font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.section-partners { background: var(--brand-soft); }
.partners-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .partners-grid { grid-template-columns: 1fr; } }
.partners-grid .lede { margin: 14px 0 24px; }
.b2b-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.b2b-list li { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.b2b-list strong { font: 700 17px/1.2 var(--display); letter-spacing: -.01em; }
.b2b-list span { font-size: 14px; color: var(--ink-2); }
.tab.popular[aria-selected="true"] { background: var(--hot); color: var(--hot-ink); }

/* Document pages (help, terms, privacy, refunds, thanks) ------------------- */
.doc { width: min(760px, 100% - 40px); margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 80px; }
.doc h1 { font: 800 clamp(34px, 5vw, 52px)/1.02 var(--display); letter-spacing: -.03em; margin: 0 0 10px; text-wrap: balance; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 36px; }
.doc h2 { font: 700 24px/1.15 var(--display); letter-spacing: -.02em; margin: 40px 0 12px; }
.doc h3 { font: 700 18px/1.25 var(--display); margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 66ch; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.doc .toc a { text-decoration: none; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--ink); }
.doc .toc a:hover { border-color: var(--brand); color: var(--brand); }
.doc .callout { padding: 16px 18px; background: var(--brand-soft); border-radius: var(--radius); color: var(--ink); font-size: 15px; margin: 18px 0; }
.doc .callout.warn { background: color-mix(in srgb, var(--hot) 14%, var(--surface)); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 600; color: var(--ink); }
.doc-wrap { overflow-x: auto; }
.doc kbd { font-family: var(--mono); font-size: 13px; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.doc .status { display: grid; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 24px 0; }
.doc .status .row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.doc .status .row b { font-variant-numeric: tabular-nums; }
.doc .pill { display: inline-block; font: 600 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.doc .pill.ok { background: #DDF5E6; color: #146C3A; }
.doc .pill.warn { background: color-mix(in srgb, var(--hot) 18%, var(--surface)); color: var(--hot-strong); }
.doc .qr { width: 220px; height: 220px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.doc .qr img { width: 200px; height: 200px; }
.doc .lpa { font-family: var(--mono); font-size: 13px; word-break: break-all; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; }
.slim-header .site-nav { display: flex; }
@media (max-width: 700px) { .slim-header .site-nav { display: none; } }

/* Vibe: seamless drifting waves, hero glow, route ticker ------------------- */
@keyframes drift { from { background-position-x: 0; } to { background-position-x: 120px; } }
.hero-waves, .footer-waves { animation: drift 14s linear infinite; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 78% 38%, color-mix(in srgb, var(--hot) 22%, transparent), transparent 70%),
    radial-gradient(50% 45% at 15% 20%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%); }
.hero-grid { z-index: 1; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-card { animation: float 7s ease-in-out infinite; }
.hero-card:hover { animation-play-state: paused; }
.routes { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.routes-track { display: flex; width: max-content; will-change: transform; --copy-w: 2000px; animation: ticker 60s linear infinite; }
.routes-track.paused { animation-play-state: paused; }
@keyframes ticker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-1 * var(--copy-w)), 0, 0); } }
.routes span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; font: 500 13px/1 var(--mono); letter-spacing: .06em; color: var(--muted); white-space: nowrap; border-right: 1px solid var(--line); }
.routes b { color: var(--ink); font-weight: 500; }
.routes i { font-style: normal; color: var(--hot); }
@media (prefers-reduced-motion: reduce) { .routes-track { animation: none; } }

/* Responsive fixes ---------------------------------------------------------- */
@media (max-width: 640px) {
  .compare { min-width: 0; font-size: 13px; }
  .compare th, .compare td { padding: 10px 8px; }
  .compare tbody th { width: 28%; }
  .trust { gap: 18px 24px; }
  .trust strong { font-size: 17px; }
  .display { font-size: clamp(40px, 12vw, 64px); }
  .pass-route .code { font-size: 32px; }
  .pass-facts strong { font-size: 18px; }
  .pick-data { font-size: 34px; }
  .drawer-hero .flag { font-size: 40px; }
  .drawer-hero h2 { font-size: 28px; }
  .drawer-body { padding: 20px 18px 32px; }
  .modal { padding: 22px 18px; }
}

/* Destination landing pages ------------------------------------------------- */
.doc-wide { width: min(880px, 100% - 40px); }
.doc h1 .flag { font-size: .9em; margin-right: 6px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.doc .lede { margin: 12px 0 22px; }
.lang-bar { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.lang-bar a { color: var(--muted); text-decoration: none; } .lang-bar a:hover { color: var(--brand); } .lang-bar b { color: var(--ink); font-weight: 600; }
.plans-table td, .plans-table th { vertical-align: middle; font-variant-numeric: tabular-nums; }
.plans-table td:last-child { text-align: right; }
.covered-list { display: flex; flex-wrap: wrap; gap: 8px; max-width: none !important; }
.covered-list a { text-decoration: none; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--ink); background: var(--surface); }
.covered-list a:hover { border-color: var(--brand); color: var(--brand); }
.doc a.btn { text-decoration: none; }
.doc a.btn-primary { color: var(--hot-ink); }
.doc a.btn-brand { color: var(--brand-ink); }
.doc a.btn-ghost { color: var(--ink); }
