/* ==========================================================================
   COTI landing page
   Source of truth: Figma H8HhhZ3HERyx9mFwZrXUFE, frame 504:587 (desktop 1440)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Aeonik"; src: url("../assets/fonts/aeonik-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Aeonik"; src: url("../assets/fonts/aeonik-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Aeonik"; src: url("../assets/fonts/aeonik-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Aeonik"; src: url("../assets/fonts/aeonik-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Aeonik"; src: url("../assets/fonts/aeonik-black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #0a0b0d;
  --text-body: #5b616e;
  --text-muted: #6b7280;
  --text-list: #2a2e3d;
  --text-faint: #9aa0ae;
  --text-note: #8a919e;
  --blue: #1e29f6;
  --blue-hover: #1a24dc;
  --lime: #c9ff83;
  --lime-ink: #04133d;
  --navy: #060b1f;
  --surface: #f3f4f9;
  --line: #e3e6f0;
  --header-line: #dee1e7;
  --input-border: #c9ceda;
  --error: #e5484d;
  --success: #12b76a;
  --success-bg: #e7f8f0;

  --gutter: 80px;
  --content: 1280px;
  --banner-h: 68px;
  --nav-h: 81px;
  --header-h: calc(var(--banner-h) + var(--nav-h)); /* 149 */

  --font: "Aeonik", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
a, button, input { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 100px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}
.roadmap__dots { display: none; }
.br-mobile { display: none; }

[id] { scroll-margin-top: var(--header-h); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 51px; padding: 0 28px;
  border-radius: 100px;
  font-size: 16px; font-weight: 600; line-height: normal; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--lime { background: var(--lime); color: var(--ink); height: 48px; padding: 0 30px; }
.btn--lime:hover { background: #bbf56f; }
.btn--lg { height: 56px; }
.btn--nav { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--soft { background: var(--surface); color: var(--ink); }
.btn--soft:hover { background: #e8eaf2; }
.btn__arrow { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--blue); border-radius: 100px;
  color: var(--blue);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  line-height: normal;
}
.eyebrow img { width: 14px; height: 14px; }
.eyebrow--card img { width: 16px; height: 16px; }

/* ==========================================================================
   Header (sticky: banner 68 + nav 81 = 149)
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; }

.promo {
  display: flex; align-items: center; justify-content: center;
  height: var(--banner-h);
  background: var(--lime-ink);
  padding: 0 16px;
}
.promo__link {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transform: translateX(0.5px);
}
.promo:hover .promo__text { color: #fff; }
.promo:focus-visible { outline-offset: -4px; outline-color: var(--lime); }
.promo__text { transition: color .2s var(--ease); }
.pill-lime {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 10px;
  background: var(--lime); color: var(--lime-ink);
  font-size: 14px; font-weight: 700;
}

.nav {
  position: relative;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--header-line);
}
.nav__inner { display: flex; align-items: center; height: 100%; }
.nav__logo { flex: none; display: block; width: 92.05px; height: 30px; }
.nav__logo img { width: 100%; height: 100%; }
.nav__links { position: relative; display: flex; align-items: stretch; gap: 40px; margin-left: 68px; height: 100%; }
.nav__link {
  position: relative; display: flex; align-items: center;
  font-size: 15px; font-weight: 600; color: var(--ink);
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--blue); }
.nav__link.is-active { color: var(--blue); }

/* One shared underline that glides between links (3px, sits on the nav divider). */
.nav__indicator {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 1px;
  background: var(--blue);
  transform-origin: 0 50%;
  transform: translateX(var(--x, 0px)) scaleX(var(--w, 0));
  opacity: 0;
  pointer-events: none;
  transition:
    transform .5s cubic-bezier(0.65, 0, 0.25, 1),
    opacity .25s ease;
  will-change: transform;
}
.nav__indicator.is-visible { opacity: 1; }
.nav__indicator.no-slide { transition: opacity .25s ease; }
@media (prefers-reduced-motion: reduce) {
  .nav__indicator { transition: opacity .2s ease; }
}
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none; width: 44px; height: 44px; background: none; border-radius: 10px;
  align-items: center; justify-content: center;
  margin-right: -13px; /* icon's right edge lines up with the page gutter; tap area stays 44px */
  transition: opacity .15s var(--ease);
}
.nav__toggle:active { opacity: 0.5; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 18px; height: 1.75px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .25s var(--ease), background-color .2s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }

.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--sheet-top, var(--header-h)); z-index: 40;
  padding: 20px max(var(--gutter), env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: #fff;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility 0s linear .25s;
}
.nav-sheet.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.nav-sheet__links { display: flex; flex-direction: column; gap: 4px; }
.nav-sheet__links a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  font-size: 34px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; color: var(--ink);
  opacity: 0; transform: translateY(12px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), color .2s var(--ease);
  transition-delay: calc(40ms + var(--i, 0) * 40ms);
}
.nav-sheet.is-open .nav-sheet__links a { opacity: 1; transform: none; }
.nav-sheet__links a::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
  opacity: 0; transform: scale(0.4); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav-sheet__links a.is-active { color: var(--blue); }
.nav-sheet__links a.is-active::after { opacity: 1; transform: none; }
.nav-sheet__links a:active { opacity: 0.5; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .nav-sheet__links a { transform: none; transition: opacity .2s ease; transition-delay: 0s; }
}


/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 47px 0 72px; }
.hero__grid { display: flex; align-items: center; gap: 40px; }
.hero__copy { flex: 0 0 580px; display: flex; flex-direction: column; gap: 24px; }
.hero__text { display: flex; flex-direction: column; gap: 14px; }
.hero__title {
  font-size: 64px; font-weight: 900; line-height: 73px; letter-spacing: -0.025em; /* Figma rounds 64 x 1.14 */
}
.hero__sub { display: flex; flex-direction: column; gap: 10px; }
.hero__lead { max-width: 461px; font-size: 18px; line-height: 29px; color: var(--text-body); }
.hero__invite { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--ink); }
.hero__invite strong, .text-blue { color: var(--blue); }

.hero__panel {
  position: relative; flex: 1 1 660px; max-width: 660px; aspect-ratio: 1;
  border-radius: 56px; overflow: hidden;
  background: linear-gradient(135deg, #040d3a 0%, #0b178f 24%, #1823d9 50%, #1f2cf6 64%, #3a66ff 100%);
  isolation: isolate;
}

/* Email capture (hero) */
.capture { display: flex; flex-direction: column; gap: 12px; }
.capture__row { display: flex; align-items: center; gap: 12px; }
.field {
  position: relative; display: flex; align-items: center;
  width: 300px; height: 56px; padding: 0 20px;
  background: #fff; border: 1.5px solid var(--input-border); border-radius: 100px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input {
  width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink); caret-color: var(--ink);
}
.field input::placeholder { color: var(--text-faint); opacity: 1; }
/* Typing: 2px blue (drawn with an inset ring so the text does not shift) */
.field:focus-within { border-color: var(--blue); box-shadow: inset 0 0 0 0.5px var(--blue); }
.field.is-invalid { border-color: var(--error); box-shadow: none; }
.capture__note { font-size: 14px; color: var(--text-note); }
.capture__msg { display: none; align-items: center; gap: 6px; font-size: 14px; color: var(--error); }
.capture__msg img, .capture__msg svg { width: 14px; height: 14px; flex: none; }
.capture.is-invalid .capture__msg--invalid,
.capture.is-offline .capture__msg--offline { display: flex; }
.capture.is-invalid .capture__note,
.capture.is-offline .capture__note { display: none; }

.capture__submit { position: relative; }
.capture__submit .spinner { display: none; }
.capture.is-submitting .capture__submit { background: #4d55f8; pointer-events: none; }
.capture.is-submitting .capture__submit .spinner { display: block; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.capture__success {
  display: none; align-items: center; gap: 12px; align-self: flex-start;
  padding: 16px 24px 16px 20px; border-radius: 100px;
  background: var(--success-bg);
  font-size: 16px; font-weight: 500; color: var(--ink);
}
.capture__success .tick {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 100px; background: var(--success);
}
.capture__success .tick img { width: 14px; height: 14px; }
.capture.is-done .capture__row,
.capture.is-done .capture__note,
.capture.is-done .capture__msg { display: none; }
.capture.is-done .capture__success { display: inline-flex; animation: pop-in .35s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Exchange strip */
.exchanges { width: 100%; max-width: 1120px; margin: 96px auto 0; display: flex; flex-direction: column; gap: 24px; }
.exchanges__caption {
  text-align: center; font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-note);
}
.marquee { position: relative; height: 56px; overflow: hidden; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 1; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.exchanges__track {
  position: absolute; top: 12px; left: 0;
  display: flex; align-items: center; width: max-content;
  /* one logo set = 642.8px of logos + 5 x 88px gaps = 1082.8px */
  --set: 1082.8px;
  --start: -1021px;
  transform: translateX(var(--start));
  animation: exchanges 48s linear infinite;
}
.exchanges__track > * { flex: none; margin-right: 88px; }
@keyframes exchanges {
  from { transform: translateX(var(--start)); }
  to { transform: translateX(calc(var(--start) - var(--set))); }
}

/* ==========================================================================
   Opportunity (Figma 694:2126). Card internals use % of the 624px card width
   for x and px for y, so 1440 matches Figma exactly and narrower cards scale.
   ========================================================================== */
.opp { padding: 56px 0 96px; }
.opp__inner { display: flex; flex-direction: column; gap: 32px; }
.opp__head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.opp__title { font-size: 56px; font-weight: 900; line-height: 62px; letter-spacing: -0.025em; }
.opp__lead { max-width: 600px; font-size: 18px; line-height: 29px; color: var(--text-muted); }
.opp__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.opp-card { position: relative; margin: 0; height: 560px; border-radius: 40px; background: var(--surface); overflow: hidden; }
.opp-card__cap { position: absolute; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.opp-card__title { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; color: var(--navy); }
.opp-card__text { font-size: 16px; line-height: 1.4; color: var(--text-muted); }

/* Card A: share bar */
.share__logo { position: absolute; top: 85px; left: 50%; transform: translateX(-50%); width: 268px; height: 42px; }
.share-bar {
  --p: calc(var(--val, 62) / 100);
  position: absolute; top: 198px; left: 10.26%; right: 10.26%; height: 148px;
  background: #fff; border: 1.5px dashed var(--ink); border-radius: 16px;
}
.share-bar__fill {
  position: absolute; top: -1.5px; bottom: -1.5px; left: -1.5px;
  width: calc((100% + 3px) * var(--p));
  display: grid; place-items: center;
  background: var(--ink); border-radius: 16px;
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.share-bar__num { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; color: var(--lime); white-space: nowrap; font-variant-numeric: tabular-nums; }
.opp-card--share .opp-card__cap { top: 408px; width: 79.2%; }

/* Card B: bar chart */
.bars { position: absolute; inset: 0; }
.bars__axis { position: absolute; left: 0; width: 15.55%; top: 89.62px; height: 263px; }
.bars__axis span {
  position: absolute; right: 0; top: calc((1 - var(--y)) * 100%); transform: translateY(-50%);
  font-size: 13px; font-weight: 500; color: var(--text-faint); line-height: 16px;
}
.bars__plot { position: absolute; left: 17.63%; width: 71.8%; top: 89.62px; height: 263px; }
.bars__grid { position: absolute; left: 0; right: 0; top: calc((1 - var(--y)) * 100%); height: 1.5px; background: var(--line); }
.bar { position: absolute; top: 0; bottom: 0; left: calc(var(--i) * 33.333%); width: 33.333%; }
.bar__col {
  position: absolute; bottom: 0; left: 50%; width: 66.97%; transform: translateX(-50%);
  height: max(5px, calc(var(--v) / 40 * 100%));
  border-radius: 12px 12px 0 0; transform-origin: 50% 100%;
}
.bar__col--grey { background: #c9cdd8; }
.bar__col--navy { background: var(--navy); }
.bar__col--blue { background: var(--blue); }
.bar__val {
  position: absolute; left: 0; right: 0; text-align: center;
  bottom: calc(max(5px, var(--v) / 40 * 100%) + 9px);
  font-size: 20px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.bar--coti .bar__val { color: var(--blue); }
.bar__name, .bar__date { position: absolute; left: -10%; right: -10%; text-align: center; font-size: 13px; white-space: nowrap; }
.bar__name { top: calc(100% + 13px); font-weight: 600; color: var(--ink); }
.bar__date { top: calc(100% + 34px); font-weight: 500; color: var(--text-faint); }
.opp-card--bars .opp-card__cap { top: 446px; width: 67.15%; }

/* Institutions */
.inst {
  display: flex; flex-direction: column; align-items: center; gap: 56px;
  padding: 72px 126px 44px; border-radius: 40px; background: var(--navy); color: #fff; text-align: center;
}
.inst__title { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.inst__list { display: flex; justify-content: center; }
.inst__item {
  box-sizing: content-box; width: 185px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
}
.inst__item + .inst__item { margin-left: 48px; padding-left: 48px; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.inst__logo { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 70px; background: #fff; overflow: hidden; }
.inst__logo img { width: 55px; height: 55px; object-fit: cover; }
.inst__logo .inst__img--ecb { height: 47px; }
.inst__logo .inst__img--iog { width: 50px; height: 37px; }
.inst__note { margin-top: 10px; font-size: 16px; color: var(--lime); }

/* Scroll-in motion (only with JS, never for reduced motion) */
.js .opp-card--share:not(.is-in) .share-bar__fill { width: 0; }
.js .opp-card--share .share-bar__num { transition: opacity .4s .5s ease; }
.js .opp-card--share:not(.is-in) .share-bar__num { opacity: 0; }
.js .opp-card--bars .bar__col { transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(var(--i) * 120ms); }
.js .opp-card--bars:not(.is-in) .bar__col { transform: translateX(-50%) scaleY(0); }
.js .opp-card--bars .bar__val { transition: opacity .45s ease, transform .45s var(--ease); transition-delay: calc(500ms + var(--i) * 120ms); }
.js .opp-card--bars:not(.is-in) .bar__val { opacity: 0; transform: translateY(6px); }
.js .inst .inst__item { transition: opacity .6s ease, transform .6s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.js .inst:not(.is-in) .inst__item { opacity: 0; transform: translateY(12px); }
@media (prefers-reduced-motion: reduce) {
  .js .opp-card .share-bar__fill, .js .opp-card .share-bar__num, .js .opp-card .bar__col, .js .opp-card .bar__val, .js .inst .inst__item { transition: none !important; }
}

/* ==========================================================================
   Media panels (video slots)
   ========================================================================== */
.media { position: relative; overflow: hidden; }
.media > img, .media > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* ==========================================================================
   Product sections (Travel / Card / VPN)
   ========================================================================== */
.product { padding: 72px 0; }
.product--vpn { padding-bottom: 120px; }
.product__grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.product--reverse .product__grid { flex-direction: row-reverse; }
/* Figma: the Card section sits on 76px side margins (panel x=76, copy ends at 1364). */
.product--card .product__grid { padding-left: calc(var(--gutter) - 4px); padding-right: calc(var(--gutter) - 4px); }
.product__copy { flex: 0 1 560px; display: flex; flex-direction: column; gap: 32px; }
.product__text { display: flex; flex-direction: column; gap: 16px; }
.product--card .product__text { gap: 18px; }
.product__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.h2 { font-size: 48px; font-weight: 900; line-height: 58px; letter-spacing: -0.025em; } /* Figma rounds 48 x 1.2 */
.product__body { display: flex; flex-direction: column; gap: 18px; }
.lead { font-size: 18px; line-height: 28px; color: var(--text-body); max-width: 519px; }
.product--card .lead { max-width: 520px; }
.features { display: flex; flex-direction: column; gap: 16px; }
.features li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 24px; color: var(--text-list); max-width: 498px; }
.product--card .features li { max-width: none; }
.features .ic { flex: none; width: 18px; height: 18px; }
.features .ic--rot { transform: rotate(-90deg); }
.features .ic--mastercard { display: flex; align-items: center; }
.features .ic--mastercard img { width: 18px; height: 11.186px; }
.product__cta { display: flex; }

.product__panel {
  flex: 0 0 600px; width: 600px; aspect-ratio: 600 / 640;
  border-radius: 48px; background: var(--surface);
}

/* ==========================================================================
   Rewards
   ========================================================================== */
.rewards { background: var(--surface); padding: 96px 0 120px; }
.rewards__inner { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.rewards__head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 900px; }
.rewards__title { font-size: 60px; font-weight: 900; line-height: 1.2; letter-spacing: -0.025em; }
.rewards__sub { max-width: 680px; font-size: 19px; line-height: 29px; color: var(--text-muted); }
.rewards__cards { display: flex; gap: 40px; justify-content: center; width: 100%; }

.reward-card {
  position: relative; width: 560px; max-width: 100%; height: 482px;
  display: flex; flex-direction: column; align-items: center;
  padding: 34px 39px 0;
  background: #fff; border: 1px solid rgba(30, 41, 246, 0.09); border-radius: 28px;
  text-align: center;
}
.reward-card__tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border-radius: 100px; background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.reward-card__title { margin-top: 22px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 37px; }
.reward-card__stats {
  margin: 32px 0 0; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(10, 11, 13, 0.1); border-bottom: 1px solid rgba(10, 11, 13, 0.1);
  padding: 21px 0 21px;
}
.reward-card__stat { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 6px; min-height: 75px; }
.reward-card__stat + .reward-card__stat { border-left: 1px solid rgba(10, 11, 13, 0.1); }
.reward-card__label { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(10, 11, 13, 0.5); line-height: 14px; }
.reward-card__value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 31px; color: var(--ink); }
.reward-card__value--blue { color: var(--blue); }
.reward-card__body { margin-top: 27px; max-width: 422px; font-size: 16px; line-height: 25px; color: rgba(10, 11, 13, 0.66); }
.reward-card .btn { position: absolute; left: 39px; right: 39px; top: 377px; width: auto; }

/* ==========================================================================
   Invite friends
   ========================================================================== */
.invite { padding: 120px 0 56px; overflow: hidden; }
.invite__inner { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.invite__title { text-align: center; }
.invite__rows { position: relative; width: 100%; height: 170px; }
.handles {
  position: absolute; top: 0; display: flex; width: max-content;
  left: calc(50% - 1016.5px + var(--offset, 0px));
  animation: handles-left 70s linear infinite;
}
.handles--2 { top: 94px; --offset: 0px; animation-name: handles-right; }
.handles--1 { --offset: 170px; }
@keyframes handles-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes handles-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.handle {
  flex: none; display: flex; align-items: center; gap: 12px;
  margin-right: 24px; padding: 10px 26px 10px 10px;
  border-radius: 100px; background: var(--surface);
  color: var(--blue); font-size: 28px; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap;
}
.handle img { width: 56px; height: 56px; border-radius: 50%; }

/* ==========================================================================
   Roadmap
   ========================================================================== */
.roadmap { padding: 120px 0; }
.roadmap__inner { display: flex; flex-direction: column; gap: 48px; }
.roadmap__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.h2-xl { font-size: 56px; font-weight: 900; line-height: 62px; letter-spacing: -0.025em; }
.roadmap__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.quarter { display: flex; flex-direction: column; gap: 20px; }
.quarter__head { display: flex; flex-direction: column; gap: 16px; }
.quarter__name { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.quarter__rule { height: 2px; background: rgba(10, 11, 13, 0.14); }
.quarter__items { display: flex; flex-direction: column; gap: 16px; }
.quarter__items li { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; line-height: 1.5; color: var(--text-muted); }
.quarter__items img { flex: none; width: 24px; height: 24px; }
.quarter--current .quarter__name { color: var(--blue); }
.quarter--current .quarter__rule { background: var(--blue); }
.quarter--current .quarter__items li { color: var(--ink); }

/* ==========================================================================
   In the news
   ========================================================================== */
.news { background: var(--surface); padding: 120px 0 115px; } /* Figma frame is 1150 tall, clipping 5px of the 120 bottom padding */
.news__inner { display: flex; flex-direction: column; gap: 40px; }
.news__rule { height: 1px; background: #d5d9e6; }
.article { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 24px 0; }
.article__logo { flex: none; width: 200px; }
.article__logo img { width: 200px; height: auto; }
.article__main { flex: 0 1 640px; display: flex; flex-direction: column; gap: 12px; }
.article__date { font-size: 15px; font-weight: 500; line-height: 17px; color: var(--text-body); }
.article__title { font-size: 32px; font-weight: 700; line-height: 38px; letter-spacing: -0.015em; }
.article__title a { transition: color .2s var(--ease); }
.article__title a:hover { color: var(--blue); }
.article__sum { font-size: 17px; line-height: 26px; color: var(--text-body); }
.article__more {
  flex: none; display: inline-flex; gap: 8px; font-size: 16px; font-weight: 600; color: var(--blue); white-space: nowrap;
}
.article__more span { transition: transform .2s var(--ease); }
.article__more:hover span { transform: translateX(3px); }

/* ==========================================================================
   Pre-footer CTA
   ========================================================================== */
.cta { padding: 120px 35px; }
.cta__panel {
  position: relative; width: 100%; height: 840px;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 94px;
  background: var(--navy); border-radius: 48px; overflow: hidden;
}
.cta__copy { display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; padding: 0 16px; }
.cta__head { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta__title { font-size: 48px; font-weight: 900; line-height: 52px; letter-spacing: -0.03em; color: #fff; }
.cta__sub { max-width: 552px; font-size: 20px; line-height: 30px; color: rgba(255, 255, 255, 0.7); }
/* Phones: 872px wide group, cropped by the panel bottom (visible 492 of 635). */
.cta__phones { position: relative; width: min(872px, calc(100% - 32px)); aspect-ratio: 872 / 492; margin-top: 40px; flex: none; }
.cta__group { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 872 / 635; }
.cta__group img { position: absolute; height: auto; }
.cta__group .ph-card { left: 0; top: 9.29%; width: 30.16%; }
.cta__group .ph-home { left: 33.14%; top: 0; width: 33.72%; }
.cta__group .ph-vpn { left: 64.68%; top: 9.29%; width: 40.48%; }
.cta__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 11, 31, 0) 0%, rgba(6, 11, 31, 0.55) 45%, rgba(6, 11, 31, 0.92) 80%, #060b1f 100%);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding-top: 96px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1fr 180px 180px; align-items: start; }
.footer__brand { display: flex; flex-direction: column; }
.footer__logo { display: block; width: 104.32px; height: 34px; }
.footer__tagline { margin-top: 26px; font-size: 20px; font-weight: 500; line-height: 28px; letter-spacing: -0.01em; }
.socials { display: flex; gap: 10px; margin-top: 38px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 44px; background: var(--surface);
  transition: background-color .2s var(--ease);
}
.socials a:hover { background: #e6e8f2; }
.socials img { width: 18px; height: 18px; }
.socials .ic-medium { width: 20px; }
.footer__col { padding-top: 4px; }
.footer__heading { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.footer__col ul { margin-top: 27px; display: flex; flex-direction: column; gap: 19px; }
.footer__col a { font-size: 16px; font-weight: 500; color: rgba(10, 11, 13, 0.85); transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--blue); }
.footer__rule { margin-top: 106px; height: 1px; background: rgba(10, 11, 13, 0.08); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 29px; font-size: 14px; }
.footer__copy { color: rgba(10, 11, 13, 0.65); }
.footer__legal { display: flex; gap: 28px; font-weight: 500; color: rgba(10, 11, 13, 0.7); }
.footer__legal a:hover { color: var(--blue); }
.footer__wordmark { margin-top: 94px; height: 259px; overflow: hidden; }
.footer__wordmark img { width: 100%; height: auto; }

/* ==========================================================================
   Early-access popup (Figma 860:6258, states 822:*, success 769:746)
   ========================================================================== */
html.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 11, 31, 0.34);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
          backdrop-filter: blur(8px) saturate(120%);
  opacity: 0; transition: opacity .35s ease;
}
.modal__dialog {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; width: 440px; max-width: 100%;
  max-height: calc(100dvh - 48px); overflow: hidden auto; overscroll-behavior: contain;
  /* No white behind the rounded top corners: otherwise the anti-aliased
     corner of the dark visual shows a thin white fringe. */
  background: linear-gradient(to bottom, transparent 0 48px, #fff 48px);
  border-radius: 28px;
  box-shadow: 0 20px 48px rgba(5, 6, 26, 0.14), 0 2px 6px rgba(5, 6, 26, 0.06);
  opacity: 0; transform: translateY(16px) scale(0.97);
  transition: opacity .3s ease, transform .5s var(--ease-out), height .45s var(--ease-out);
  scrollbar-width: none;
}
.modal__dialog::-webkit-scrollbar { display: none; }
.modal__dialog:focus { outline: none; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal.is-closing .modal__backdrop { opacity: 0; transition-duration: .25s; }
.modal.is-closing .modal__dialog { opacity: 0; transform: translateY(8px) scale(0.98); transition-duration: .2s, .25s; }
.modal__grabber { display: none; }

.modal__view { position: relative; }
.modal__view--success, .modal__view--soon { background: #fff; }
.modal__view.is-entering { animation: view-in .45s var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal__visual { aspect-ratio: 440 / 300; overflow: hidden; background: #0a1699; }
.modal__visual img { width: 100%; height: 100%; object-fit: cover; }
.modal__close {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 100px;
  background: #fff;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.modal__close:hover { transform: scale(1.06); }
.modal__close:active { transform: scale(0.94); }
.modal__close img { width: 16px; height: 16px; }

.modal__body { padding: 28px 32px 34px; text-align: center; }
.modal__title { font-size: 28px; font-weight: 700; line-height: normal; letter-spacing: 0; }
.modal__sub { max-width: 368px; margin: 11px auto 0; font-size: 14px; line-height: 23px; color: var(--text-body); }

/* Form + states */
.mform { margin-top: 24px; display: flex; flex-direction: column; text-align: left; }
.mfield {
  position: relative; display: flex; align-items: center; height: 56px;
  background: #fff; border: 1.5px solid var(--input-border); border-radius: 100px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.mfield input {
  width: 100%; height: 100%; padding: 0 20px; border: 0; outline: 0; background: transparent; border-radius: inherit;
  font: inherit; font-size: 16px; color: var(--ink); caret-color: var(--blue);
}
.mfield input::placeholder { color: var(--text-faint); opacity: 1; }
/* Typing: 2px blue */
.mfield:focus-within { border-color: var(--blue); box-shadow: inset 0 0 0 0.5px var(--blue); }
.mfield__clear {
  display: none; position: absolute; right: 16px; top: 50%; margin-top: -12px;
  width: 24px; height: 24px; border-radius: 12px; background: #fff; place-items: center;
  box-shadow: 0 1px 2px rgba(217, 45, 32, 0.12);
}
.mfield__clear img { width: 12px; height: 12px; }
.mform__msg {
  display: none; align-items: flex-start; gap: 6px; margin: 9px 0 0 4px;
  font-size: 13px; font-weight: 500; line-height: 18px; color: #d92d20;
}
.mform__msg img { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.mform__submit { margin-top: 12px; width: 100%; gap: 10px; }
.mform__spinner { display: none; width: 20px; height: 20px; animation: spin .8s linear infinite; }
.mform__note { margin-top: 14px; text-align: center; font-size: 12px; color: var(--text-faint); }

/* Invalid email */
.mform.is-invalid .mfield { background: #fef3f2; border-color: #d92d20; box-shadow: inset 0 0 0 0.5px #d92d20; }
.mform.is-invalid .mfield input { padding-right: 52px; }
.mform.is-invalid .mfield__clear { display: grid; }
.mform.is-invalid .mform__msg--invalid { display: flex; animation: msg-in .25s var(--ease) both; }
.mform.is-invalid .mfield { animation: nudge .32s var(--ease); }
/* Submitting */
.mform.is-submitting .mfield { border-width: 1px; border-color: #c9cdd8; box-shadow: none; padding: 0 0.5px; }
.mform.is-submitting .mfield input { color: var(--ink); }
.mform.is-submitting .mform__submit { opacity: .85; pointer-events: none; }
.mform.is-submitting .mform__spinner { display: block; }
/* Connection error */
.mform.is-offline .mfield { border-width: 1px; border-color: #c9cdd8; padding: 0 0.5px; }
.mform.is-offline .mfield:focus-within { border-width: 1.5px; padding: 0; border-color: var(--blue); }
.mform.is-offline .mform__msg--offline { display: flex; animation: msg-in .25s var(--ease) both; }
.mform.is-invalid .mform__submit, .mform.is-offline .mform__submit { margin-top: 20px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

/* Success (Figma 926:7261) */
.success { padding: 64px 32px 64px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.success__icon {
  display: grid; place-items: center; width: 120px; height: 120px; border-radius: 100px;
  background: var(--lime); box-shadow: 0 7.45px 11.18px rgba(201, 255, 131, 0.7);
}
.success__icon svg { width: 47.667px; height: 34.333px; transform: translateY(-1.33px); }
.success__tick { stroke-dasharray: 62; stroke-dashoffset: 0; }
.modal__view--success.is-entering .success__icon { animation: pop .6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.modal__view--success.is-entering .success__tick { animation: draw .5s .28s var(--ease) both; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 62; } to { stroke-dashoffset: 0; } }
.success__title { margin-top: 32px; font-size: 28px; font-weight: 700; line-height: normal; }
.success__title:focus { outline: none; }
.success__sub { margin-top: 11px; max-width: 288px; font-size: 14px; line-height: 23px; color: var(--text-body); }
.counter {
  margin-top: 20px; width: 100%; height: 150px; padding-top: 16px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface); border-radius: 20px;
}
.counter[hidden], .counter__delta[hidden] { display: none; }
.counter__num { font-size: 48px; font-weight: 900; letter-spacing: -0.03em; line-height: 56px; }
.counter__label { margin-top: 2px; font-size: 14px; color: var(--text-body); }
.counter__delta {
  margin-top: 11px; height: 26px; padding: 0 11px; display: inline-block; line-height: 26px; white-space: nowrap;
  border-radius: 100px; background: var(--success); color: #fff;
  font-size: 12px; font-weight: 600;
}
.success__done { margin-top: 32px; width: 100%; }

/* Coming soon + countdown (Figma 943:7310) */
.soon { padding: 64px 32px 64px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.soon__icon { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 100px; background: var(--lime); }
.soon__icon img { width: 56px; height: 56px; }
.modal__view--soon.is-entering .soon__icon { animation: pop .6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.modal__view--soon.is-entering .soon__icon img { animation: tilt 1.1s .25s var(--ease) both; }
@keyframes tilt { 0% { transform: rotate(-180deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.soon__title { margin-top: 32px; font-size: 28px; font-weight: 700; line-height: normal; }
.soon__title:focus { outline: none; }
.countdown { --tile: 50px; margin-top: 31px; display: flex; align-items: flex-start; gap: 7px; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.countdown__digits { display: flex; gap: 8px; }
.countdown__tile {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  width: var(--tile); height: calc(var(--tile) * 1.36); border-radius: calc(var(--tile) * 0.28);
  background: var(--surface);
  font-size: calc(var(--tile) * 0.8); font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--ink);
}
.countdown__tile.is-tick { animation: tick .38s var(--ease) both; }
@keyframes tick { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.countdown__label { font-size: 14px; line-height: 23px; color: var(--text-body); }
.countdown__sep {
  display: grid; place-items: center; width: 4px; height: calc(var(--tile) * 1.36);
  font-size: 14px; font-weight: 600; line-height: 23px; color: #000;
}
.soon__text { margin-top: 21px; max-width: 288px; font-size: 14px; line-height: 23px; color: var(--text-body); }
.soon__home { margin-top: 44px; width: 100%; }

/* Welcome to the new COTI (first-scroll popup) */
.welcome__text { max-width: 368px; margin: 11px auto 0; font-size: 14px; line-height: 23px; color: var(--text-body); }
.welcome__text--quiet { margin-top: 12px; color: var(--text-note); }
.welcome__actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.welcome__actions .btn { width: 100%; }
@media (max-width: 767px) {
  .soon { padding: 56px 20px 32px; }
  .countdown { --tile: min(50px, calc((100vw - 100px) / 6)); }
}
@media (prefers-reduced-motion: reduce) {
  .modal__view--soon.is-entering .soon__icon, .modal__view--soon.is-entering .soon__icon img, .countdown__tile.is-tick { animation: none !important; }
}

/* Short laptop screens: a lower visual keeps the popups fully on screen */
@media (min-width: 768px) and (max-height: 760px) {
  .modal__visual { aspect-ratio: auto; height: 220px; }
  .modal__visual img { object-position: 50% 30%; }
}

/* Phones: bottom sheet */
@media (max-width: 767px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal__dialog {
    width: 100%; max-width: none; max-height: calc(100dvh - 24px);
    border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%); opacity: 1;
    transition: transform .5s var(--ease-out), height .45s var(--ease-out);
  }
  .modal.is-open .modal__dialog { transform: translateY(var(--drag, 0px)); }
  .modal.is-closing .modal__dialog { transform: translateY(100%); opacity: 1; transition-duration: .3s; }
  .modal__dialog.is-dragging { transition: none; }
  .modal__grabber {
    display: block; position: absolute; top: 8px; left: 50%; z-index: 3;
    width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(255, 255, 255, 0.6);
  }
  .modal__dialog.is-light .modal__grabber { background: rgba(10, 11, 13, 0.18); }
  .modal__body { padding: 24px 20px 28px; }
  .modal__title { font-size: 26px; }
  .success { padding: 56px 20px 32px; }
  .modal__close { top: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal__dialog, .modal.is-open .modal__dialog, .modal.is-closing .modal__dialog { transform: none !important; transition: opacity .2s ease !important; }
  .modal__view.is-entering, .modal__view--success.is-entering .success__icon, .modal__view--success.is-entering .success__tick,
  .mform.is-invalid .mfield { animation: none !important; }
}

/* Wider than the 1440 design */
@media (min-width: 1441px) {
  /* Footer spans the full width with the same 80px gutters. */
  .footer .container { max-width: none; }
  .footer__wordmark { height: auto; aspect-ratio: 1280 / 259; }
}


/* ==========================================================================
   Reveal on scroll (subtle)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .exchanges__track, .handles { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .spinner { animation-duration: 2s; }
}

/* ==========================================================================
   Responsive (only desktop 1440 is designed; these are the handoff defaults)
   ========================================================================== */
@media (max-width: 1279px) {
  :root { --gutter: 48px; }
  .hero__copy { flex-basis: 520px; }
  .hero__title { font-size: 56px; line-height: 1.14; }
  .product__panel { flex-basis: 50%; width: 50%; }
  .rewards__cards { gap: 24px; }
  .roadmap__cols { gap: 28px; }
}

@media (max-width: 1100px) {
  .nav__links { gap: 28px; margin-left: 48px; }
}

@media (max-width: 1023px) {
  :root { --gutter: 32px; }
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }

  .hero__grid { flex-direction: column; align-items: stretch; gap: 48px; }
  .hero__copy { flex-basis: auto; }
  .hero__panel { flex: none; width: 100%; max-width: 660px; margin: 0 auto; border-radius: 40px; }

  .product__grid, .product--reverse .product__grid { flex-direction: column; align-items: stretch; gap: 48px; }
  .product__copy { flex-basis: auto; }
  .product__panel { flex: none; width: 100%; max-width: 600px; margin: 0 auto; border-radius: 40px; }
  .product--vpn { padding-bottom: 96px; }

  .rewards__cards { flex-direction: column; align-items: center; }
  .rewards__title { font-size: 48px; }

  .roadmap__cols { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }

  .article { flex-wrap: wrap; gap: 20px; }
  .article__main { flex-basis: 100%; order: 2; }
  .article__more { order: 3; }

  .cta { padding: 96px 16px; }
  .cta__panel { height: auto; border-radius: 40px; }

  .footer__top { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   Mobile (< 768). Not designed in Figma: tuned for iPhone.
   ========================================================================== */
@media (max-width: 767px) {
  :root { --gutter: 16px; --banner-h: 44px; --nav-h: 60px; --gap: 96px; --half: 48px; }

  /* Header: full promo banner + nav, both pinned. The banner stays on one line:
     its type scales with the screen width (max 12.5px), pills scale with it. */
  .promo { padding: 0 10px; }
  .promo__link {
    gap: 0.4em; transform: none;
    font-size: min(12.5px, calc((100vw - 56px) / 31));
  }
  .promo__link .pill-lime { font-size: 1em; padding: 0.32em 0.5em; border-radius: 0.6em; }
  .nav {
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
            backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: rgba(10, 11, 13, 0.08);
  }
  .nav__inner { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  .nav__logo { width: 76px; height: 25px; }
  .nav__actions { gap: 8px; }
  .btn--nav { height: 36px; padding: 0 14px; font-size: 14px; }
  .nav__toggle { width: 40px; height: 40px; margin-right: -11px; }

  /* Even rhythm: 96px between sections (designer). */
  .hero { padding-top: 72px; padding-bottom: var(--half); }
  .hero__grid { gap: 40px; }
  .hero__title { font-size: 40px; line-height: 1.12; }
  .hero__lead, .hero__invite { font-size: 16px; }
  .hero__lead { line-height: 1.6; max-width: none; text-wrap: wrap; }
  /* Fixed break after "in"; below ~380px the size eases down so line 1 still fits. */
  .br-mobile { display: inline; }
  /* The first line of these two texts never wraps (Safari measures a hair wider
     than Chrome); the type eases down on narrow phones so it always fits. */
  .line-m { white-space: nowrap; }
  .capture__note { align-self: stretch; width: 100%; font-size: min(13px, calc((100vw - 34px) / 20.8)); }
  .hero__lead, .hero__invite { font-size: min(16px, calc((100vw - 34px) / 22)); }
  .hero__invite { line-height: 24px; }
  .capture__row { flex-direction: column; align-items: stretch; gap: 10px; }
  .field { width: 100%; }
  .capture__submit { width: 100%; }
  .capture__msg { font-size: 13px; }
  .exchanges { margin-top: 48px; gap: 16px; }
  .exchanges__caption { font-size: 12px; }
  .hero__panel { border-radius: 32px; }

  .product, .product--vpn { padding: var(--half) 0; }
  .product--vpn { padding-bottom: var(--gap); }
  .product__grid, .product--reverse .product__grid { gap: 32px; }
  .product__copy { gap: 28px; }
  .h2 { font-size: 32px; line-height: 1.15; }
  .lead { font-size: 16px; line-height: 26px; }
  .features { gap: 14px; }
  .features li { align-items: flex-start; font-size: 15px; line-height: 22px; }
  .features .ic { margin-top: 2px; }
  .product__cta .btn { width: 100%; height: 52px; }
  .product__panel { border-radius: 32px; }
  /* Enlarge the phone inside the panel so the app UI is readable. */
  .product__panel > img, .product__panel > video { transform: scale(1.16); transform-origin: 50% 0; }

  .rewards { padding: var(--gap) 0; }
  .rewards__inner { gap: 32px; }
  .rewards__title { font-size: 36px; line-height: 1.15; }
  .rewards__sub { font-size: 16px; line-height: 26px; }
  .rewards__cards { gap: 16px; }
  .reward-card { height: auto; padding: 28px 20px 20px; border-radius: 24px; }
  .reward-card__title { margin-top: 18px; font-size: 26px; line-height: 31px; }
  .reward-card__stats { margin-top: 24px; padding: 16px 0; }
  .reward-card__stat { min-height: 64px; padding-top: 4px; gap: 10px; }
  .reward-card__value { font-size: 20px; line-height: 24px; }
  .reward-card__body { margin-top: 20px; font-size: 15px; line-height: 23px; }
  .reward-card .btn { position: static; margin-top: 24px; width: 100%; height: 52px; }

  .invite { padding: var(--gap) 0 var(--half); }
  .invite__inner { gap: 32px; }
  .invite__rows { height: 128px; }
  .handles--2 { top: 70px; }
  .handle { padding: 7px 18px 7px 7px; font-size: 20px; gap: 10px; margin-right: 12px; }
  .handle img { width: 44px; height: 44px; }
  .invite .btn { width: calc(100% - 32px); height: 52px; }

  .roadmap { padding: var(--half) 0 var(--gap); }
  .roadmap__inner { gap: 28px; }
  .roadmap__head { flex-direction: column; align-items: stretch; gap: 20px; }
  .roadmap__head .btn { width: 100%; height: 52px; }
  .h2-xl { font-size: 36px; line-height: 42px; }

  /* Roadmap: swipeable quarter cards instead of a 2,000px list. */
  .roadmap__cols {
    display: flex; gap: 12px;
    /* Inner breathing room so the scroll container never clips the cards'
       top border or the current card's shadow; negative margins keep the layout. */
    margin: -12px calc(var(--gutter) * -1) -28px; padding: 12px var(--gutter) 28px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .roadmap__cols::-webkit-scrollbar { display: none; }
  .quarter {
    flex: 0 0 84%; scroll-snap-align: start;
    padding: 24px 20px 28px; border-radius: 24px;
    background: #fff; border: 1px solid var(--line);
  }
  .quarter--current { border-color: rgba(30, 41, 246, 0.35); box-shadow: 0 1px 0 rgba(30, 41, 246, 0.04), 0 12px 32px -18px rgba(30, 41, 246, 0.35); }
  .quarter__name { font-size: 22px; }
  .quarter__items { gap: 12px; }
  .quarter__items li { font-size: 15px; line-height: 22px; }
  .quarter__items img { width: 22px; height: 22px; }
  .roadmap__dots { display: flex; justify-content: center; gap: 8px; }
  .roadmap__dots button {
    width: 8px; height: 8px; border-radius: 8px; background: rgba(10, 11, 13, 0.16);
    transition: width .3s var(--ease), background-color .3s var(--ease);
  }
  .roadmap__dots button[aria-current="true"] { width: 22px; background: var(--blue); }

  .news { padding: var(--gap) 0; }
  .news__inner { gap: 20px; }
  .article { gap: 14px; padding: 12px 0; }
  .article__main { gap: 10px; }
  .article__date { font-size: 14px; }
  .article__title { font-size: 22px; line-height: 1.22; }
  .article__sum { font-size: 15px; line-height: 23px; }
  .article__logo, .article__logo img { width: 132px; }

  .cta { padding: var(--gap) 12px 12px; }
  .cta__panel { padding-top: 48px; border-radius: 32px; }
  .cta__title { font-size: 32px; line-height: 1.1; }
  .cta__sub { font-size: 16px; line-height: 24px; }
  .cta__copy { gap: 28px; }
  /* All three phones fully visible: the composition's visible span is 893.6/872 of
     the group, so size it to the panel minus a 12px inset and nudge it to centre. */
  .cta__phones { width: calc((100% - 24px) * 0.9758); margin-top: 36px; transform: translateX(-1.24%); }

  .footer { padding-top: 56px; padding-bottom: env(safe-area-inset-bottom); }
  .footer__rule { margin-top: 48px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { gap: 20px; }
  .footer__wordmark { margin-top: 48px; height: auto; aspect-ratio: 1280 / 259; }

  /* Centered composition on phones. */
  .hero__copy, .hero__text, .hero__sub, .capture { align-items: center; text-align: center; }
  .hero__lead { margin: 0 auto; }
  /* The form always spans the full width, so swapping the note for an error
     message can't change its size. On phones the error sits right under the field. */
  .capture { align-self: stretch; width: 100%; gap: 10px; }
  .capture__row { display: contents; }
  .capture .field { order: 1; }
  .capture__msg { order: 2; justify-content: center; margin-top: -2px; }
  .capture__submit { order: 3; }
  .capture__note { order: 4; margin-top: 2px; }
  .capture__success { order: 5; align-self: center; }

  /* Product sections stay left-aligned (designer feedback); CTA spans the width. */
  .product__cta { align-self: stretch; }

  .roadmap__head { align-items: center; text-align: center; }
  .roadmap__head .btn { display: none; }

  /* News reads left-aligned on phones (like the product sections). */
  .article { flex-direction: column; align-items: flex-start; text-align: left; }

  /* Footer stays left-aligned on phones (lines up with the wordmark below). */

  /* Typography: no orphans on narrow screens. */
  .hero__title, .h2, .h2-xl, .rewards__title, .cta__title, .article__title, .reward-card__title, .exchanges__caption, .cta__sub, .rewards__sub { text-wrap: balance; }
  p, li { text-wrap: pretty; }
}

/* Opportunity: tablet and phone (not designed in Figma) */
@media (max-width: 1023px) {
  .opp__cards { grid-template-columns: 1fr; }
  .inst { padding-left: 32px; padding-right: 32px; }
  .inst__item { width: 150px; }
  .inst__item + .inst__item { margin-left: 24px; padding-left: 24px; }
}
@media (max-width: 767px) {
  .opp { padding: var(--half) 0; }
  .opp__inner { gap: 28px; }
  .opp__head { gap: 14px; }
  .opp__title { font-size: 36px; line-height: 42px; }
  .opp__lead { font-size: 16px; line-height: 26px; }
  .opp__cards { gap: 16px; }
  .opp-card { border-radius: 32px; }
  .opp-card__title { font-size: 20px; line-height: 1.2; text-wrap: balance; }
  .opp-card__text { font-size: 15px; text-wrap: pretty; }

  .opp-card--share { height: 424px; }
  .share__logo { top: 44px; width: 190px; height: auto; }
  .share-bar { top: 112px; left: 20px; right: 20px; height: 108px; border-radius: 14px; }
  .share-bar__fill { border-radius: 14px; }
  .share-bar__num { font-size: 36px; }
  .opp-card--share .opp-card__cap { top: 252px; width: calc(100% - 40px); }

  .opp-card--bars { height: 440px; }
  .bars__axis { top: 64px; height: 200px; width: 11%; }
  .bars__plot { top: 64px; height: 200px; left: 14%; width: 80%; }
  .bar__col { width: 70%; }
  .bar__val { font-size: 17px; }
  .bar__name, .bar__date { font-size: 12px; }
  .bar__date { top: calc(100% + 31px); }
  .opp-card--bars .opp-card__cap { top: 340px; width: calc(100% - 40px); }

  .inst { padding: 48px 20px 32px; gap: 36px; border-radius: 32px; }
  .inst__title { font-size: 20px; }
  .inst__list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 12px; width: 100%; }
  .inst__item, .inst__item + .inst__item { width: auto; margin: 0; padding: 0; border: 0; gap: 12px; font-size: 15px; }
  .inst__logo { width: 64px; height: 64px; }
  .inst__logo img { width: 46px; height: 46px; }
  .inst__logo .inst__img--ecb { height: 39px; }
  .inst__logo .inst__img--iog { width: 42px; height: 31px; }
  .inst__note { margin-top: 0; font-size: 14px; text-wrap: balance; }
}
