/* Evoya website. Tokens mirror the iOS app (ios/Evoya/Design/Theme.swift). */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-800.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f2f2f7;
  --card: #ffffff;
  --card-pressed: #e8e8ee;
  --elevated: #f2f2f6;
  --text: #0a0a0f;
  --text-2: #6e6e7a;
  --text-3: #a3a3ad;
  --sep: rgba(10, 10, 15, .08);
  --accent: #2d5bff;
  --accent-soft: rgba(45, 91, 255, .10);
  --success: #14753a;
  --success-soft: rgba(22, 163, 74, .12);
  --danger: #d92d33;
  --track: rgba(10, 10, 15, .08);
  --fill: rgba(10, 10, 15, .06);
  --fill-hover: rgba(10, 10, 15, .10);
  --primary: #0a0a0f;
  --primary-text: #ffffff;
  --nav-bg: rgba(242, 242, 247, .78);
  --shadow: 0 1px 2px rgba(10, 10, 15, .04), 0 8px 24px rgba(10, 10, 15, .06);
  --shadow-lg: 0 2px 6px rgba(10, 10, 15, .04), 0 24px 60px rgba(10, 10, 15, .12);

  --r-card: 24px;
  --r-row: 18px;
  --r-input: 16px;
  --wrap: 1160px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Dark: follows the system unless the visitor picked a theme (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --card: #141418;
    --card-pressed: #1f1f25;
    --card-hover: #1b1b20;
    --elevated: #1f1f25;
    --text: #ffffff;
    --text-2: #8e8e99;
    --text-3: #5a5a64;
    --sep: rgba(255, 255, 255, .09);
    --accent: #5b7fff;
    --accent-soft: rgba(91, 127, 255, .18);
    --success: #3dd68c;
    --success-soft: rgba(61, 214, 140, .14);
    --danger: #ff6369;
    --track: rgba(255, 255, 255, .10);
    --fill: rgba(255, 255, 255, .11);
    --fill-hover: rgba(255, 255, 255, .16);
    --primary: #ffffff;
    --primary-text: #0a0a0f;
    --nav-bg: rgba(0, 0, 0, .72);
    --shadow: 0 0 #0000;
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --card: #141418;
  --card-pressed: #1f1f25;
  --card-hover: #1b1b20;
  --elevated: #1f1f25;
  --text: #ffffff;
  --text-2: #8e8e99;
  --text-3: #5a5a64;
  --sep: rgba(255, 255, 255, .09);
  --accent: #5b7fff;
  --accent-soft: rgba(91, 127, 255, .18);
  --success: #3dd68c;
  --success-soft: rgba(61, 214, 140, .14);
  --danger: #ff6369;
  --track: rgba(255, 255, 255, .10);
  --fill: rgba(255, 255, 255, .11);
  --fill-hover: rgba(255, 255, 255, .16);
  --primary: #ffffff;
  --primary-text: #0a0a0f;
  --nav-bg: rgba(0, 0, 0, .72);
  --shadow: 0 0 #0000;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--primary); color: var(--primary-text); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.narrow { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.narrow > * { max-width: 760px; } /* a readable column that starts at the logo's edge, like every other page */
.i { width: 20px; height: 20px; flex: none; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); margin-bottom: 10px; }
.h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--text-2); margin: 32px 4px 12px; }
.lede { font-size: 18px; line-height: 1.55; color: var(--text-2); }
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }
code { font: 600 .95em ui-monospace, "SF Mono", Menlo, monospace; background: var(--fill); padding: 2px 6px; border-radius: 6px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .2s, opacity .2s;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn .i { width: 18px; height: 18px; }
.btn .spinner { width: 22px; height: 22px; border-width: 2.5px; border-color: color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { opacity: .88; }
.btn-accent { background: #2d5bff; color: #fff; } /* the darker blue in both themes: white text needs the contrast */
.btn-accent:hover { opacity: .9; }
.btn-fill { background: var(--fill); color: var(--text); }
.btn-fill:hover { background: var(--fill-hover); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn .spinner { width: 18px; height: 18px; border-width: 2px; }

/* ---------- nav ---------- */

.nav { position: sticky; top: 0; z-index: 40; background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--sep); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 28px; margin-right: auto; padding-top: 3px; }
.nav-links a { white-space: nowrap; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.theme-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-2); transition: background-color .2s, color .2s; }
.theme-btn:hover { background: var(--fill); color: var(--text); }

/* The three buttons on the right: language, light/dark, My eSIMs. */
.nav-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-tools .nav-cta { margin-left: 8px; }
.theme-btn { flex: none; }

/* Language: a small pill with the current language's code; the menu lists each language in its own name. */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 11px 0 9px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--text-2); cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; transition: background-color .2s, color .2s; }
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn:hover, .lang[open] .lang-btn { background: var(--fill); color: var(--text); }
.lang-globe { width: 18px; height: 18px; }
.lang-menu { position: absolute; z-index: 50; top: calc(100% + 8px); right: 0; min-width: 176px; padding: 6px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-lg), 0 0 0 1px var(--sep); }
.lang[open] .lang-menu { animation: pop-in .16s var(--ease) both; transform-origin: top right; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 12px; border-radius: 12px; font-size: 15px; font-weight: 500; transition: background-color .15s; }
.lang-menu a:hover { background: var(--fill); }
.lang-menu a[aria-current] { font-weight: 600; }
.lang-tick { width: 16px; height: 16px; color: var(--accent); }

/* Which logo and theme icon show follows the same rule as the colour tokens. */
.logo-d, .ic-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-l, :root:not([data-theme="light"]) .ic-moon { display: none; }
  :root:not([data-theme="light"]) .logo-d, :root:not([data-theme="light"]) .ic-sun { display: block; }
}
:root[data-theme="dark"] .logo-l, :root[data-theme="dark"] .ic-moon { display: none; }
:root[data-theme="dark"] .logo-d, :root[data-theme="dark"] .ic-sun { display: block; }

/* ---------- hero ---------- */

html, body { overflow-x: clip; }
.hero { padding: 56px 0 56px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(48px, 7.4vw, 92px); font-weight: 800; letter-spacing: -.055em; line-height: .98; margin-bottom: 20px; }
.hero .lede { max-width: 520px; margin-bottom: 28px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; }
.ticks li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.ticks .i { width: 16px; height: 16px; color: var(--success); stroke-width: 2.5; }

.hero-art { position: relative; height: 480px; max-width: 540px; width: 100%; justify-self: end; }
.trail { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail > path { stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .1 9; }
.trail-plane { fill: var(--text); }
.art-usage, .art-plans { position: absolute; width: 300px; padding: 24px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--sep); }
.art-usage { top: 6px; left: 2%; transform: rotate(-3deg); }
.art-plans { top: 212px; right: 8px; transform: rotate(2.5deg); padding: 18px; }
.art-head { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.pill-ok { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--success); background: var(--success-soft); padding: 4px 10px; border-radius: 99px; }
.art-big { font-size: 44px; font-weight: 800; letter-spacing: -.045em; margin-top: 22px; line-height: 1; }
.art-sub { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.bar { height: 8px; border-radius: 99px; background: var(--track); margin-top: 18px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--text); }
.art-label { font-size: 12px; font-weight: 600; color: var(--text-2); margin: 0 4px 10px; }
.mini-plan { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--sep); font-size: 15px; font-weight: 600; }
.mini-plan + .mini-plan { margin-top: 8px; }
.mini-plan span:first-child { display: flex; flex-direction: column; }
.mini-plan b { font-size: 17px; letter-spacing: -.02em; }
.mini-plan span:first-child { font-weight: 400; font-size: 13px; color: var(--text-2); }
.mini-plan span:first-child b { color: var(--text); font-weight: 700; }
.mini-plan.on { box-shadow: inset 0 0 0 2px var(--text); }

/* ---------- search ---------- */

.search { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: var(--r-input); background: var(--card); box-shadow: var(--shadow); max-width: 520px; transition: box-shadow .2s; }
.search:focus-within { box-shadow: var(--shadow), 0 0 0 2px var(--accent); }
.search > .i { color: var(--text-2); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; font-weight: 500; }
.search input::placeholder { color: var(--text-2); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-big { height: 60px; padding: 0 20px; border-radius: 20px; }
.search-big input { font-size: 17px; }
.search-list { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; max-height: min(536px, 62dvh); overflow-y: auto; padding: 6px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-lg), 0 0 0 1px var(--sep); }
.search-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; }
.search-list li[aria-selected="true"], .search-list li:hover { background: var(--fill); }
.search-list .sl-name { flex: 1; font-weight: 600; }
.search-list .sl-sub { font-size: 13px; color: var(--text-2); font-weight: 400; display: block; }
.search-list .sl-price { font-size: 14px; color: var(--text-2); }
.search-list .sl-empty { color: var(--text-2); cursor: default; justify-content: center; padding: 18px; }
.search-list .sl-empty:hover { background: none; }

/* ---------- flags ---------- */

.flag { border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 .5px var(--sep); background: var(--elevated); }
.flag-region { display: inline-grid; place-items: center; width: var(--s); height: var(--s); color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.flag-region .i { width: 50%; height: 50%; }

/* ---------- sections ---------- */

.section { padding: 56px 0; }
.section .h2 { margin-bottom: 24px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head .h2 { margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; min-height: 156px; padding: 20px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s, background-color .2s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--card-hover, var(--card)); }
.tile:active { transform: scale(.98); }
.tile-name { margin-top: auto; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.tile-sub { font-size: 14px; color: var(--text-2); }

.pills { display: inline-flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--fill); }
.pill { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--text-2); transition: background-color .2s, color .2s; }
.pill span { font-weight: 500; opacity: .7; margin-left: 2px; }
.pill.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

.dlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dlist[data-collapsed] .drow:nth-child(n + 25) { display: none; }
.dlist.dlist-tight { grid-template-columns: minmax(0, 1fr); }
.drow { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: var(--r-row); background: var(--card); box-shadow: var(--shadow); transition: background-color .15s; }
.drow:hover { background: var(--card-pressed); }
.drow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.drow-name { font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow-sub { font-size: 13px; color: var(--text-2); }
.drow-price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; font-variant-numeric: tabular-nums; }
.drow-price span { font-size: 12px; font-weight: 400; color: var(--text-2); }
.more { margin-top: 16px; }
[hidden] { display: none !important; } /* hidden means hidden, whatever the element's own display is */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.step { padding: 28px; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--primary-text); font-weight: 700; margin-bottom: 40px; }
.step h3, .feature h3 { font-size: 19px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 8px; }
.step p, .feature p { color: var(--text-2); }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feature { padding: 28px; }
.fi { width: 44px; height: 44px; padding: 11px; border-radius: 14px; color: var(--accent); background: var(--accent-soft); margin-bottom: 40px; }

.faq { border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--sep); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 17px; letter-spacing: -.015em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--card-pressed); }
.faq summary:focus-visible { outline-offset: -2px; border-radius: 0; }
.faq details:first-child summary:focus-visible { border-radius: var(--r-card) var(--r-card) 0 0; }
.faq-i { color: var(--text-2); transition: transform .25s var(--ease); }
.faq details[open] .faq-i { transform: rotate(180deg); }
.faq-a { padding: 0 24px 22px; color: var(--text-2); max-width: 68ch; }
.faq-a p + p { margin-top: 10px; }
.faq-a a, .doc .lede a, .prose a, .prose-card a, .contact-card a, .fine-out a { color: var(--accent); font-weight: 500; }
.faq-a b { color: var(--text); font-weight: 600; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.split-side { position: sticky; top: 92px; }
.split-side p { color: var(--text-2); margin-top: -8px; max-width: 320px; }
.split-side a { color: var(--accent); font-weight: 500; }

.cta { padding-bottom: 80px; }
.cta-card { padding: 72px 32px; text-align: center; background: var(--primary); color: var(--primary-text); box-shadow: none; }
.cta-card h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.cta-card p { opacity: .62; font-size: 18px; margin: 12px 0 28px; }
.cta-card .btn-primary { background: var(--primary-text); color: var(--primary); }

/* ---------- footer ---------- */

.foot { padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sep); }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand p { color: var(--text-2); font-size: 14px; margin-top: 12px; max-width: 260px; text-wrap: balance; }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 64px; }
.foot-cols h2 { font-size: 13px; font-weight: 600; color: var(--text); line-height: 32px; margin-bottom: 8px; }
.foot-cols a { display: block; font-size: 14px; color: var(--text-2); padding: 4px 0; }
.foot-cols a:hover { color: var(--text); }
.foot-legal { margin-top: 40px; font-size: 12px; color: var(--text-2); line-height: 1.6; }

/* ---------- destination ---------- */

.dest { padding-top: 20px; padding-bottom: 64px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--text-2); margin-bottom: 20px; }
.back:hover { color: var(--text); }
.back .i { width: 18px; height: 18px; }
.dest-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.dest-head { display: flex; align-items: center; gap: 20px; margin-bottom: 4px; }
.dest-head .eyebrow { margin-bottom: 4px; }
.dest-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; }
.dest-sub { color: var(--text-2); margin-top: 6px; text-wrap: balance; }

.plans { border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.plan { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 20px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); cursor: pointer; transition: box-shadow .2s, transform .15s var(--ease); }
.plan:active { transform: scale(.985); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) { box-shadow: var(--shadow), inset 0 0 0 2px var(--text); }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-l, .plan-r { display: flex; flex-direction: column; }
.plan-r { align-items: flex-end; }
.plan-gb { font-size: 26px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.plan-days { color: var(--text-2); }
.plan-price { font-size: 19px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-per { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }

.list-card { padding: 8px 20px; }
.li { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.li + .li { border-top: 1px solid var(--sep); }
.li b { font-weight: 600; }
.li span { color: var(--text-2); text-wrap: pretty; }
.li span b { color: var(--text); }
.bub { width: 36px; height: 36px; padding: 8px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); }

.chips-card { padding: 20px; }
.dest .drow { padding: 12px 20px; }
.dest .faq summary { padding: 20px; }
.dest .faq-a { padding: 0 20px 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips:not(.all) .chip:nth-child(n + 19) { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 99px; background: var(--elevated); font-size: 13px; font-weight: 500; }
.chips-card .link { margin-top: 14px; }

.buy { position: sticky; top: 92px; }
.buy-card { padding: 24px; }
.buy-row { display: flex; align-items: center; gap: 12px; }
.buy-row div { display: flex; flex-direction: column; }
.buy-row span { color: var(--text-2); font-size: 15px; }
.buy-price { font-size: 44px; font-weight: 800; letter-spacing: -.045em; margin: 20px 0 20px; font-variant-numeric: tabular-nums; line-height: 1; }
.buy-tax { font-size: 13px; color: var(--text-2); margin: -8px 0 18px; line-height: 1.45; }
.fine { display: flex; gap: 8px; font-size: 13px; color: var(--text-2); margin-top: 14px; line-height: 1.45; }
.fine-i { width: 15px; height: 15px; margin-top: 1px; }
.fine-out { display: block; padding: 0 4px; margin-top: 14px; }
.buybar { display: none; }

/* ---------- help & legal ---------- */

.doc { padding-top: 40px; padding-bottom: 72px; }
.doc h1, .legal h1, .nf h1 { font-size: clamp(36px, 5.4vw, 56px); font-weight: 800; letter-spacing: -.05em; line-height: 1.03; margin-bottom: 14px; }
.doc .label { margin: 40px 0 12px; }
.prose-card { padding: 24px 26px; color: var(--text-2); }
/* the price comparison page */
.cmp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.cmp-stats .card { padding: 20px; display: grid; gap: 6px; align-content: start; }
.cmp-stats b { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cmp-stats span { font-size: 14px; line-height: 1.4; color: var(--text-2); }
.cmp { padding: 6px 0; overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; padding: 11px 20px; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text); }
.cmp-row + .cmp-row { box-shadow: inset 0 .5px 0 var(--sep); }
.cmp-row > span:not(:first-child) { text-align: right; }
a.cmp-row:hover { background: var(--card-hover, var(--card-pressed)); }
.cmp-head { font-size: 12px; font-weight: 600; color: var(--text-2); padding-top: 12px; padding-bottom: 10px; }
.cmp-foot { font-weight: 600; }
.cmp-dest { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.cmp-dest > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-ours { font-weight: 700; }
@media (max-width: 640px) {
  .cmp-stats { grid-template-columns: 1fr; }
  .cmp-row { grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, .9fr)); gap: 6px; padding: 11px 14px; font-size: 14px; }
  .cmp-head { font-size: 11px; }
  .cmp-dest .flag { display: none; }
}
.prose-card b { color: var(--text); font-weight: 600; }
.prose-card ul { margin-top: 14px; display: grid; gap: 10px; }
.prose-card > ul:first-child { margin-top: 0; }
.prose-card ul + p, .prose-card p + p { margin-top: 14px; }
.prose-card li { position: relative; padding-left: 20px; }
.prose-card li::before { content: ""; position: absolute; left: 3px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.contact-card { display: flex; gap: 16px; padding: 24px; margin-top: 40px; }
.contact-card h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.contact-card p { color: var(--text-2); }

.legal { padding-top: 40px; padding-bottom: 80px; }
.legal-head { max-width: 760px; margin-bottom: 40px; }
.legal-note { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.legal-date { color: var(--text-2); }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14px; max-height: calc(100vh - 112px); overflow-y: auto; }
.toc-h { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.toc ol { counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 5px 0; color: var(--text-2); }
.toc a::before { content: counter(toc, decimal-leading-zero); display: inline-block; width: 26px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.toc a:hover, .toc a.on { color: var(--text); }
.prose { max-width: 720px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.prose .intro { font-size: 18px; color: var(--text); }
.prose .intro p + p { margin-top: 14px; }
.prose section { padding-top: 40px; }
.prose h2 { display: flex; align-items: baseline; gap: 14px; font-size: 22px; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; text-wrap: balance; color: var(--text); margin-bottom: 14px; }
.prose section > p, .prose section > ul { max-width: 68ch; }
.prose table + p { margin-top: 20px; }
.prose .sn { font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.prose p + p, .prose p + ul, .prose ul + p, .prose table + p { margin-top: 12px; }
.prose ul { display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before { content: ""; position: absolute; left: 3px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.prose b { color: var(--text); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; }
.prose th { font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--card); border-bottom: 1px solid var(--sep); }
.prose td:first-child { color: var(--text); font-weight: 500; }
.prose tr + tr td { border-top: 1px solid var(--sep); }
.company-box { margin-top: 48px; padding: 24px 26px !important; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); }
.company-box h2 { font-size: 19px; margin-bottom: 14px; }
.company-box dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: 15px; }
.company-box dt { color: var(--text-2); }
.company-box dd { color: var(--text); }

.nf { padding-top: 64px; padding-bottom: 96px; }
.nf .search { margin: 28px 0 24px; }

/* ---------- signed-in app ---------- */

.app { padding-top: 32px; padding-bottom: 80px; max-width: calc(760px + 2 * var(--gutter)); }
.loading { display: grid; place-items: center; min-height: 40vh; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--track); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.app-head h1 { font-size: clamp(34px, 5vw, 44px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.app-head p { color: var(--text-2); margin-top: 4px; }
.erow { display: flex; align-items: center; gap: 14px; padding: 18px 20px 18px 16px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); transition: background-color .15s; }
.erow + .erow { margin-top: 8px; }
.erow:hover { background: var(--card-pressed); }
.erow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.erow-main b { font-weight: 600; font-size: 17px; letter-spacing: -.015em; }
.erow-main span { color: var(--text-2); font-size: 14px; }
.erow-main .nw { white-space: nowrap; }
.erow > .i { color: var(--text-3); }
.empty { padding: 48px 24px; text-align: center; }
.empty h2 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 6px; }
.empty p { color: var(--text-2); margin-bottom: 24px; text-wrap: pretty; }

.usage { padding: 26px; }
.usage-head { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; }
.usage-big { font-size: clamp(44px, 8vw, 56px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-top: 26px; font-variant-numeric: tabular-nums; }
.usage-sub { color: var(--text-2); margin-top: 8px; }
.usage .btn { margin-top: 24px; }
.install { padding: 24px; display: grid; gap: 12px; }
.install > p:not(.warn) { color: var(--text-2); }
.qr { justify-self: center; width: min(100%, 300px); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; border-radius: var(--r-row); background: #fff; color: #555; text-align: center; font-size: 13px; }
.qr svg { width: 220px; height: 220px; }
.qr .spinner { border-color: rgba(0, 0, 0, .1); border-top-color: #000; }
.warn { color: var(--danger); font-size: 14px; }
.copy-card { overflow: hidden; }
.copy { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 20px; text-align: left; transition: background-color .15s; }
.copy:hover { background: var(--card-pressed); }
.copy + .copy { border-top: 1px solid var(--sep); }
.copy-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.copy-main span { font-size: 13px; color: var(--text-2); }
.copy-main b { font: 600 15px/1.35 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.copy-act { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.copy-act .i { width: 16px; height: 16px; }
.copy.copied .copy-act { color: var(--success); }
.plan-hist { padding: 0; }
.plan-hist div { display: flex; justify-content: space-between; padding: 16px 20px; }
.plan-hist div + div { border-top: 1px solid var(--sep); }
.plan-hist span { color: var(--text-2); font-size: 14px; }
.iccid { text-align: center; color: var(--text-2); font-size: 13px; margin-top: 20px; -webkit-user-select: all; user-select: all; }
.status { padding: 56px 28px; text-align: center; }
.status .spinner { margin: 0 auto 28px; width: 40px; height: 40px; }
.status h1 { font-size: clamp(28px, 4.4vw, 38px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; text-wrap: balance; margin-bottom: 8px; }
.status p { color: var(--text-2); max-width: 420px; margin: 0 auto; text-wrap: pretty; }
.status .btn { margin-top: 28px; }
.status-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.status-icon .i { width: 30px; height: 30px; }
.account-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding: 18px 20px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); font-size: 15px; }
.account-line span { color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.account-line b { display: block; color: var(--text); font-weight: 600; }
.account-delete { margin: 14px 4px 0; text-align: right; }
.account-delete .link { font-size: 14px; color: var(--text-2); }
.account-delete .link:hover { color: var(--danger); }
.sheet-p { margin: 0 0 12px; color: var(--text-2); line-height: 1.5; }
.btn-danger { background: var(--danger); color: #fff; }
.sheet-cancel { margin-top: 10px; }

/* ---------- sheet (sign-in + checkout) ---------- */

.sheet { position: fixed; inset: 0; margin: auto; height: fit-content; width: calc(100% - 32px); max-width: 460px; max-height: min(92vh, 760px); border: 0; padding: 0; color: var(--text); background: var(--card); border-radius: 28px; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--sep); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .32s var(--ease); }
.sheet::backdrop { background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in .25s; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 0; }
.sheet-top h2 { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.sheet-x { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fill); color: var(--text-2); }
.sheet-x:hover { background: var(--fill-hover); }
.sheet-x .i { width: 18px; height: 18px; }
.sheet-body { padding: 16px 24px 24px; overflow-y: auto; }
.sheet-body > p { color: var(--text-2); margin-bottom: 20px; }
.field { display: block; width: 100%; height: 54px; padding: 0 16px; border-radius: var(--r-input); border: 0; background: var(--elevated); font-size: 17px; font-weight: 500; outline: none; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s; }
.field:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.field::placeholder { color: var(--text-3); }
.code-field { text-align: center; font-size: 28px; font-weight: 700; letter-spacing: .4em; padding-left: calc(16px + .4em); font-variant-numeric: tabular-nums; }
.sheet .btn-wide { margin-top: 14px; }
.form-err { min-height: 20px; margin-top: 10px; font-size: 14px; color: var(--danger); }
.form-err:empty { min-height: 0; margin: 0; }
.form-note { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-row); background: var(--elevated); font-size: 14px; line-height: 1.45; }
.resend { display: block; margin: 16px auto 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.resend[disabled] { color: var(--text-3); cursor: default; }
.summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-row); background: var(--elevated); margin-bottom: 18px; }
.summary div { flex: 1; display: flex; flex-direction: column; }
.summary span { font-size: 14px; color: var(--text-2); }
.summary .s-price { font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.pay-el { min-height: 120px; }
.pay-loading { min-height: 200px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--text); cursor: pointer; }
.consent a { color: var(--accent); font-weight: 500; }
.sheet .fine { margin-top: 14px; }

/* ---------- toast ---------- */

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 99px; background: var(--primary); color: var(--primary-text); font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- text wrapping: no lonely last words ---------- */

.step p, .feature p, .faq-a, .lede { text-wrap: pretty; }
.faq summary, .h2, .cta-card h2 { text-wrap: balance; }

/* ---------- motion ----------
   Short and quiet: things ease in over 0.15-0.4s, nothing loops, nothing bounces. Everything here is switched off
   by the reduced-motion rule at the end of this file. */

/* Page to page: a quick cross-fade where the browser supports it, otherwise the page content eases in. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; animation-timing-function: ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.985); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@supports not (view-transition-name: none) {
  main { animation: fade-in .25s ease both; }
}

/* Home: the hero settles in once, top to bottom. */
.hero-copy > *, .hero-art { animation: rise .5s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .04s; }
.hero-copy > :nth-child(3) { animation-delay: .08s; }
.hero-copy > :nth-child(4) { animation-delay: .12s; }
.hero-copy > :nth-child(n + 5) { animation-delay: .16s; }
.hero-art { animation-delay: .1s; }
.dest-head, .doc > :first-child, .nf > * { animation: rise .4s var(--ease) both; }

/* Sections ease in as they scroll into view (set up by site.js; without JS nothing is hidden). */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Anything that appears: search results, tab lists, notes, the QR code, signed-in views. */
.search-list:not([hidden]) { animation: pop-in .16s var(--ease) both; transform-origin: top center; }
.dlist:not([hidden]), .note:not([hidden]), .qr:not([hidden]) { animation: rise .25s var(--ease) both; }
#app > * { animation: rise .3s var(--ease) both; }
#app > :nth-child(2) { animation-delay: .03s; }
#app > :nth-child(3) { animation-delay: .06s; }
#app > :nth-child(4) { animation-delay: .09s; }
#app > :nth-child(n + 5) { animation-delay: .12s; }
#app > .loading { animation: fade-in .3s ease .15s both; }
.sheet-body { animation: rise .24s var(--ease) both; }
.swap { animation: fade-in .2s ease both; }
.bar > span { transform-origin: left center; animation: grow-x .7s var(--ease) .15s both; }
.hero-art .bar > span { animation-delay: .35s; }

/* The sheet leaves the way it came. */
.sheet.closing { animation: sheet-out .18s ease both; }
.sheet.closing::backdrop { animation: fade-out .18s ease both; }
@keyframes sheet-out { to { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes fade-out { to { opacity: 0; } }

/* Answers open and close smoothly where the browser can animate to "auto" height; elsewhere the text eases in. */
.faq details[open] .faq-a { animation: fade-in .25s ease both; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .28s var(--ease), content-visibility .28s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* Hover and press, the same everywhere. */
a, button, summary, .tile, .drow, .erow, .chip, .copy, .sheet-x, .field, .plan { -webkit-tap-highlight-color: transparent; }
.faq summary, .sheet-x, .chip, .link, .foot a, .back { transition: background-color .15s, color .15s, opacity .15s; }
.tile:active, .drow:active, .erow:active { transform: scale(.985); }
.drow, .erow { transition: background-color .15s, transform .15s var(--ease); }
.theme-btn .i { animation: theme-icon .3s var(--ease); }
@keyframes theme-icon { from { opacity: 0; transform: rotate(-40deg) scale(.7); } }
.copy-act { transition: color .15s; }
.copy.copied .copy-act { animation: fade-in .2s ease; }

/* Switching light/dark: a cross-fade through the browser's view transition, or eased colours without it. */
.theming, .theming *, .theming *::before, .theming *::after { transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, fill .25s ease, stroke .25s ease !important; }

/* On wider screens the sheet hangs from a fixed top edge, so it grows downward instead of jumping as its content loads. */
@media (min-width: 641px) { .sheet { margin: max(6vh, 24px) auto auto; } }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dest-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
}

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { height: 480px; max-width: 520px; margin: 0 auto; justify-self: center; }
  .step-n, .fi { margin-bottom: 20px; }
  .legal-grid { grid-template-columns: 1fr; gap: 0; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .split-side { position: static; }
  .toc { position: static; max-height: none; margin-bottom: 32px; padding: 20px 24px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); }
  .foot-cols { gap: 40px; }

  .dest-grid { grid-template-columns: 1fr; }
  .buy { position: static; }
  .buy-card { display: none; }
  .fine-out { padding: 0 4px; margin-top: 24px; }
  .dest { padding-bottom: 64px; }
  body:has(.buybar) { padding-bottom: calc(81px + env(safe-area-inset-bottom)); }
  .buybar { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px max(var(--gutter), env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); background: var(--nav-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--sep); }
  .buybar div { display: flex; flex-direction: column; }
  .buybar b { font-size: 22px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
  .buybar span { font-size: 14px; color: var(--text-2); }
  .buybar .btn { flex: none; min-width: 150px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 72px; }
  .nav-in { height: 60px; gap: 16px; }
  .nav-links { display: none; }
  .hero { padding-top: 28px; }
  .hero .lede { font-size: 17px; }
  .hero-art { height: 470px; }
  .art-usage { width: 240px; padding: 20px; top: 4px; left: 0; }
  .art-plans { width: 220px; top: 188px; padding: 14px; }
  .art-big { font-size: 36px; margin-top: 18px; }
  .mini-plan { padding: 10px 12px; }
  .section { padding: 40px 0; }
  .tile { min-height: 132px; padding: 16px; }
  .dlist { grid-template-columns: minmax(0, 1fr); }
  .dlist[data-collapsed] .drow:nth-child(n + 13) { display: none; }
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 18px 20px; }
  .dest-head { gap: 16px; }
  .dest-head .flag, .dest-head .flag-region { width: 56px; height: 56px; --s: 56px; }
  .foot-cols { grid-template-columns: repeat(2, auto); gap: 28px 48px; }
  .company-box dl { grid-template-columns: 1fr; gap: 2px; }
  .company-box dd { margin-bottom: 8px; }
  .company-box dd:last-child { margin-bottom: 0; }
  .prose table, .prose thead, .prose tbody, .prose tr, .prose td { display: block; width: auto !important; }
  .prose thead { display: none; }
  .prose tr + tr { border-top: 1px solid var(--sep); }
  .prose tr + tr td { border-top: 0; }
  .prose td:first-child { padding-bottom: 2px; }
  .prose td:last-child { padding-top: 0; }
  .faq summary { padding: 18px 20px; font-size: 16px; }
  .faq-a { padding: 0 20px 20px; }
  .cta-card { padding: 48px 24px; }
  .sheet { inset: auto 0 0 0; width: 100%; max-width: none; border-radius: 28px 28px 0 0; max-height: 92vh; max-height: 92dvh; margin: 0; padding-bottom: env(safe-area-inset-bottom); }
  .sheet[open] { animation: sheet-up .36s var(--ease); }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  .sheet.closing { animation: sheet-down .22s ease both; }
  @keyframes sheet-down { to { transform: translateY(100%); } }
}

/* The menu links need about 760px beside the logo and the buttons; below that they live in the footer. */
@media (max-width: 760px) {
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .hero { padding-bottom: 24px; }
  .ticks { flex-direction: column; gap: 8px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; width: 100%; }
  /* comfortable tap targets */
  .foot-cols a { padding: 10px 0; }
  .back { padding: 10px 0; margin-bottom: 10px; }
  .chips-card .link { padding: 10px 0; }
  .pill { height: 40px; }
  .prose-card, .contact-card { padding: 20px; }
  .company-box { padding: 20px !important; }
}
@media (max-width: 640px) {
  .nav-in { gap: 8px; }
  .lang-globe { display: none; }
  .lang-btn { width: 40px; padding: 0; justify-content: center; }
  /* On phones the menu hangs from the header's right edge, so it can't run off the screen. */
  .nav-in { position: relative; }
  .lang { position: static; }
  .lang-menu { top: calc(100% - 2px); right: var(--gutter); }
  .nav-tools { gap: 2px; }
  .nav-tools .nav-cta { margin-left: 6px; }
}
/* Where "My eSIMs" is a longer phrase, small phones show the logo without the word beside it. */
@media (max-width: 430px) {
  :lang(ro) .nav .brand span, :lang(de) .nav .brand span, :lang(it) .nav .brand span, :lang(pt) .nav .brand span { display: none; }
}
@media (max-width: 380px) {
  .tile { padding: 16px 14px; }
}
@media (max-width: 340px) {
  .nav .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
