/* Inter, hosted with the site (no requests to Google). SIL Open Font License, see fonts/OFL.txt */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --text: #191c1f;
  --muted: #6b7079;
  --line: #e2e5ea;
  --accent: #0666eb;
  --accent-soft: #e6effd;
  --good: #00a36c;
  --good-soft: #e3f6ee;
  --bad: #e5484d;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);

  --premium-1: #1d4ed8; --premium-2: #60a5fa; --premium-ink: #fff;
  --metal-1: #1f2226;   --metal-2: #5c6169;   --metal-ink: #fff;
  --ultra-1: #cfd2d8;   --ultra-2: #f7f7f9;   --ultra-ink: #191c1f;
  --standard-1: #e9ecf0; --standard-2: #ffffff; --standard-ink: #191c1f;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c0e;
    --surface: #17191c;
    --surface-2: #22252a;
    --text: #f4f5f7;
    --muted: #9aa0a9;
    --line: #2a2e34;
    --accent: #3d8bff;
    --accent-soft: #14264a;
    --good: #2fd28f;
    --good-soft: #0f2d21;
    --shadow: none;
    --standard-1: #22252a; --standard-2: #2c3036; --standard-ink: #f4f5f7;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c0e; --surface: #17191c; --surface-2: #22252a; --text: #f4f5f7; --muted: #9aa0a9;
  --line: #2a2e34; --accent: #3d8bff; --accent-soft: #14264a; --good: #2fd28f; --good-soft: #0f2d21;
  --shadow: none; --standard-1: #22252a; --standard-2: #2c3036; --standard-ink: #f4f5f7;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, select { font: inherit; color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark { font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: inherit; text-decoration: none; }
.wordmark .dot { color: var(--accent); }
.tag { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 4px 10px; border-radius: 999px; }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin: 0 0 14px; max-width: 14ch; }
.lede { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 46ch; margin: 0 0 24px; }
.lede em { font-style: normal; color: var(--text); font-weight: 600; }

.country-picker {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 999px; padding: 6px 16px 6px 8px;
  box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 100%;
}
.country-flag { font-size: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.country-picker select {
  appearance: none; border: 0; background: transparent; font-weight: 600; font-size: 17px;
  padding: 6px 28px 6px 0; cursor: pointer; min-width: 0; max-width: 100%;
}
.country-picker select:focus { outline: none; }
.country-picker:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.country-picker .chev { position: absolute; right: 14px; width: 18px; height: 18px; pointer-events: none; color: var(--muted); }

/* Plan cards */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 32px; }
.plan-card {
  border-radius: var(--radius); padding: 18px 18px 16px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.plan-card::after { /* soft "card" sheen */
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent); pointer-events: none;
}
.plan-card .name { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.plan-card .fee { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.plan-card .fee small { font-size: 14px; font-weight: 500; opacity: .75; letter-spacing: 0; }
.plan-card .meta { font-size: 13px; opacity: .8; margin-top: 2px; }
.plan-card.unavailable { opacity: .55; }
.plan-premium  { background: linear-gradient(135deg, var(--premium-1), var(--premium-2)); color: var(--premium-ink); }
.plan-metal    { background: linear-gradient(135deg, var(--metal-1), var(--metal-2)); color: var(--metal-ink); }
.plan-ultra    { background: linear-gradient(135deg, var(--ultra-1), var(--ultra-2)); color: var(--ultra-ink); border: 1px solid var(--line); }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; letter-spacing: -.025em; margin: 0; font-weight: 800; }
.section-head p { margin: 2px 0 0; font-size: 14px; }
.section-head p.small { font-size: 13px; max-width: 52ch; }
.head-actions { display: flex; gap: 8px; }

.pill-btn {
  border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer;
  background: var(--text); color: var(--bg); transition: transform .1s ease, background .15s;
}
.pill-btn.ghost { background: var(--surface-2); color: var(--text); }
.pill-btn:hover { transform: translateY(-1px); }
.pill-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Subscription tiles */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.tile.group-start { grid-column-start: 1; } /* single-tier tiles start on a fresh row */
.tile {
  position: relative;
  background: var(--surface); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 14px 14px; box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s;
}
.tile[data-on="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.tile button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.tile button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.tile-head { display: grid; grid-template-columns: 40px 1fr 24px; gap: 12px; align-items: center; width: 100%; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: #fff;
}
.avatar.logo { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.avatar.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile-title { display: flex; flex-direction: column; min-width: 0; }
.tile-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.tile-title { padding-right: 30px; } /* room for the ⓘ button */

/* ⓘ price details */
.tile .info-btn {
  position: absolute; top: 20px; right: 48px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); color: var(--muted); background: var(--surface);
  font: italic 700 12px/1 Georgia, 'Times New Roman', serif; text-align: center;
}
.tile .info-btn:hover, .tile .info-btn[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.tile .info-btn::after { content: ""; position: absolute; inset: -10px; } /* bigger tap target */
.info-pop {
  position: absolute; z-index: 40; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .18); font-size: 13px; line-height: 1.45;
  max-height: 60vh; overflow: auto;
}
.info-pop p { margin: 0; }
.info-title { font-weight: 800; font-size: 15px; margin-bottom: 8px !important; }
.info-row + .info-row { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.info-head { font-weight: 700; }
.info-src { color: var(--muted); margin-top: 2px !important; }
.info-src a { color: var(--accent); }
.tile-note { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* Single-tier subscriptions: plans + price on one line */
.single-row { display: flex; align-items: center; gap: 6px; margin: 10px 0 0 52px; font-size: 13px; }
.tier-plans { display: flex; gap: 3px; flex-wrap: wrap; }
.tier-price { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 6px; cursor: help; }

/* Travel perks */
.travel-head { margin-top: 32px; }
.avatar svg { width: 22px; height: 22px; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 0; }
.stepper-label { font-size: 14px; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.tile .step {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  font-size: 18px; font-weight: 700; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 40, .1);
}
.tile .step:disabled { opacity: .35; cursor: default; box-shadow: none; }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.perk-rows { display: grid; gap: 6px; margin-top: 12px; }
.perk-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.perk-row .tier-label, .single-row .tier-label { color: var(--muted); }

/* Level slider: segmented pill with a sliding highlight */
.levels {
  position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  margin-top: 12px; padding: 3px; border-radius: 14px; background: var(--surface-2);
}
.levels .thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n));
  transform: translateX(calc(var(--i) * 100%)); border-radius: 11px;
  background: var(--surface); box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
  transition: transform .25s cubic-bezier(.3, .7, .2, 1), opacity .15s; opacity: 0;
}
.tile[data-on="true"] .levels .thumb { opacity: 1; }
.tile .level {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; text-align: center; border-radius: 11px; min-width: 0;
}
.level-label { font-size: 12px; color: var(--muted); line-height: 1.25; }
.level-price { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
/* Plans that include each level, lined up under the slider (not part of it) */
.level-plans { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding: 6px 3px 0; }
.level-plans > span { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.level[aria-checked="true"] .level-label { color: var(--text); font-weight: 600; }
.tile[data-on="true"] .level[aria-checked="false"] .level-price { color: var(--muted); }
.badge {
  font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; line-height: 18px;
  background: var(--surface-2); color: var(--muted);
}
.badge.premium { background: #dbe7ff; color: #1d4ed8; }
.badge.metal { background: #2b2e33; color: #fff; }
.badge.ultra { background: linear-gradient(135deg, #cfd2d8, #f7f7f9); color: #191c1f; border: 1px solid #c7cad0; line-height: 16px; }
.check {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.tile[data-on="true"] .check { background: var(--accent); border-color: var(--accent); }
.check svg { width: 14px; height: 14px; opacity: 0; }
.tile[data-on="true"] .check svg { opacity: 1; }
.empty { grid-column: 1 / -1; background: var(--surface); border-radius: var(--radius-sm); padding: 24px; color: var(--muted); }

/* Summary */
.summary {
  position: sticky; top: 76px; background: var(--surface); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.summary h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.big { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 0; }
.big-sub { font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.reco {
  border-radius: var(--radius-sm); padding: 16px; margin-bottom: 18px; color: var(--premium-ink);
}
.reco.plan-standard { background: linear-gradient(135deg, var(--standard-1), var(--standard-2)); color: var(--standard-ink); border: 1px solid var(--line); }
.reco .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.reco .title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 4px; }
.reco p { margin: 0; font-size: 14px; opacity: .9; }
.rows { display: grid; gap: 14px; }
.row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.row-top .pname { font-weight: 700; }
.net { font-weight: 700; font-variant-numeric: tabular-nums; }
.net.pos { color: var(--good); }
.net.neg { color: var(--bad); }
.bar { position: relative; height: 8px; border-radius: 99px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.bar .fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--accent); transition: width .3s ease; }
.bar .fee-mark { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text); opacity: .5; }
.row-foot { font-size: 12px; color: var(--muted); margin-top: 4px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 16px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-right: 6px; vertical-align: -1px; }
.legend i.mark { width: 2px; height: 12px; background: var(--text); opacity: .5; border-radius: 0; }
.note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }

/* Share my result */
.share-btn {
  width: 100%; margin: -6px 0 18px; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--text); border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: border-color .15s, color .15s;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Buy Me a Coffee tips */
.tip-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.tip-box p { margin: 0; font-size: 13px; color: var(--muted); }
.tip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #ffdd00; color: #191c1f; font-weight: 700; font-size: 14px; text-decoration: none;
  border-radius: 999px; padding: 10px 16px; transition: transform .1s ease;
}
.tip:hover { transform: translateY(-1px); }
.tip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tip.small { padding: 6px 12px; font-size: 13px; margin-left: 6px; vertical-align: middle; }

/* Questions (plain text, also read by search engines) */
.faq { max-width: 760px; margin-top: 56px; }
.faq h2 { font-size: 26px; letter-spacing: -.025em; font-weight: 800; margin: 0 0 12px; }
.faq details { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 8px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; font-size: 15px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 500; color: var(--muted); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }

.foot { padding: 48px 0 120px; font-size: 13px; color: var(--muted); max-width: 70ch; }
.foot strong { color: var(--text); }

/* Mobile */
.bottom-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  background: var(--text); color: var(--bg); border-radius: 20px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  border: 0; font: inherit; text-align: left; cursor: pointer;
}
.bottom-bar .bb-label { font-size: 12px; opacity: .7; }
.bottom-bar .bb-title { font-weight: 700; }
.bottom-bar .bb-val { font-weight: 800; font-size: 18px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; gap: 8px; }
  .plan-card { min-height: 0; flex-direction: row; align-items: center; padding: 14px 16px; }
  .plan-card .fee { font-size: 20px; text-align: right; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .single-row { margin-left: 0; }
  .hero { padding-top: 24px; }
}
@media (min-width: 901px) { .bottom-bar { display: none !important; } }
.bottom-bar { transition: transform .25s ease, opacity .25s ease; }
.bottom-bar.away { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
