/* Shared geometry: content can shrink without widening the page. */
.container {
  width: calc(100% - clamp(32px, 7.8vw, 112px));
  max-width: 1320px;
}
.hero-grid > *, .journey-grid > *, .product-panel > *,
.routing-grid > *, .fx-layout > *, .global-layout > *,
.developer-grid > *, .pricing-grid > *, .faq-layout > *,
.contact-layout > *, .section-heading > *, .footer-top > *,
.dashboard-body > *, .dash-chart-row > *, .form-row > * {
  min-width: 0;
}
.button { max-width: 100%; }
.award-selector button { text-align: center; }
.country-heading, .dashboard-caption, .footer-bottom { flex-wrap: wrap; }
.contact-card input, .contact-card select, .contact-card textarea {
  width: 100%;
  min-width: 0;
}
.code-window { min-width: 0; max-width: 100%; }
.code-window pre { max-width: 100%; }

/* Countries have equal tracks and a label centered on each complete tile. */
.region-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}
.region-tabs button {
  min-width: 0;
  min-height: 48px;
  padding: 12px 4px;
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
}
.country-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 52px;
  gap: 8px;
  max-height: none;
  overflow: visible;
  margin: 24px 0;
}
.country-selector button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 20px;
  align-items: center;
  justify-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 8px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}
.country-selector img {
  grid-column: 1;
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}
.country-label {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  text-wrap: balance;
}
.country-heading { gap: 8px 16px; }
.country-heading span { font-size: 11px; line-height: 1.5; }
.coverage-explorer { min-height: 0; }
.coverage-note { font-size: 11px; line-height: 1.8; color: #9b85a8; }

/* Every payment image sits in the same centered frame, above a fixed label. */
.payment-method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
}
.method-cell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 28px;
  align-items: center;
  justify-items: center;
  gap: 6px;
  height: 112px;
  min-width: 0;
  padding: 12px 10px 10px;
}
.method-logo {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: 52px;
}
.method-cell .method-logo img {
  width: auto;
  height: auto;
  max-width: min(104px, 100%);
  max-height: 40px;
  object-fit: contain;
  mix-blend-mode: normal;
}
.method-cell > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 28px;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Tablet: stack the editorial sections before their columns become cramped. */
@media (max-width: 980px) {
  :root { --header-h: 76px; }
  html { scroll-padding-top: 92px; }
  .section-pad { padding-block: 88px; }
  .site-header { padding-inline: 24px; gap: 12px; }
  .site-header .brand img { width: 112px; height: 48px; }
  .header-cta { margin-left: auto; font-size: 11px; padding: 12px 16px; gap: 12px; min-height: 44px; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 10px;
  }
  .menu-toggle span { display: block; width: 23px; height: 1px; background: #aca2c3; transition: transform .3s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-header nav {
    display: none;
    position: absolute;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    margin: 0;
    padding: 16px 24px 24px;
    background: #101018f5;
    border-bottom: 1px solid #ffffff15;
    backdrop-filter: blur(20px);
  }
  .site-header nav.open { display: flex; }
  .site-header nav a { width: 100%; min-height: 48px; padding: 14px 0; font-size: 15px; border-bottom: 1px solid #ffffff0a; }
  .site-header:not(.nav-ready) nav { display: flex; flex-direction: row; align-items: center; gap: 18px; padding: 12px 24px; overflow-x: auto; }
  .site-header:not(.nav-ready) nav a { width: auto; min-height: 36px; padding: 8px 0; font-size: 12px; white-space: nowrap; border: 0; }
  .site-header:not(.nav-ready) .menu-toggle { display: none; }
  .hero { min-height: 0; }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 136px;
    padding-bottom: 28px;
    gap: 24px;
  }
  .hero-copy { width: 100%; max-width: 720px; }
  .hero h1 { font-size: clamp(46px, 9.5vw, 88px); }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 18px; flex-wrap: wrap; }
  .hero-actions .button, .hero-actions .text-link { font-size: 12px; }
  .hero-credentials { gap: 18px; flex-wrap: wrap; font-size: 11px; line-height: 1.5; }
  .hero-visual { width: 100%; max-width: 640px; height: clamp(330px, 54vw, 490px); justify-self: center; margin: 0; }
  .hero-foot { height: auto; min-height: 82px; padding-block: 20px; gap: 16px; flex-wrap: wrap; font-size: 9px; line-height: 1.6; }
  .hero-foot .mono, .scroll-cue { font-size: 9px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: clamp(36px, 5.5vw, 54px); }
  .section-heading > p { width: auto; max-width: 520px; margin-top: 24px; font-size: 14px; }
  .statement h2 { font-size: clamp(38px, 6vw, 64px); }
  .statement-bottom { flex-wrap: wrap; gap: 26px; }
  .statement-bottom p { width: auto; max-width: 520px; font-size: 14px; }
  .routing-grid, .fx-layout, .global-layout, .developer-grid,
  .pricing-grid, .faq-layout, .contact-layout, .award-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 40px;
  }
  .routing .section-description, .developer-copy .section-description,
  .pricing .section-description, .contact-copy > p:not(.eyebrow) { font-size: 14px; }
  .fx-scene, .globe-scene, .award-render-scene { width: 100%; max-width: 520px; justify-self: center; }
  .fx-description p, .product-list article p, .security-columns p,
  .award-detail-copy > p:not(.eyebrow), .awards-heading > p:last-child,
  .brand-chapter-bottom p, .faq details > p { font-size: 14px; line-height: 1.8; }
  .region-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; flex-wrap: unset; overflow: visible; }
  .region-tabs button { font-size: 12px; min-height: 48px; padding: 12px 4px; }
  .country-selector { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 52px; max-height: none; gap: 8px; margin: 24px 0; }
  .country-selector button { font-size: 12px; height: 52px; padding: 8px; }
  .country-heading h3 { font-size: 26px; }
  .country-heading span { font-size: 11px; }
  .method-cell { height: 112px; padding: 12px 10px 10px; }
  .method-cell > span { font-size: 11px; }
  .coverage-note { font-size: 11px; }
  .product-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .product-art { width: 100%; max-width: 540px; justify-self: center; }
  .product-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; overflow: visible; }
  .product-tabs button { min-width: 0; min-height: 56px; padding: 16px 4px; font-size: 13px; justify-content: center; gap: 10px; white-space: normal; text-align: center; }
  .product-tabs button > span { font-size: 10px; }
  .product-tabs button:after { right: 0; }
  .product-list article h3 { font-size: 20px; }
  .product-bottom-link { font-size: 12px; line-height: 1.7; }
  .product-bottom-link strong { font-size: 13px; }
  .routing-benefits, .dev-features { font-size: 12px; line-height: 1.6; }
  .route-demo { max-width: 100%; }
  .route-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; }
  .route-row small, .route-status { font-size: 10px; }
  .code-window pre { padding: 24px 20px; font-size: 12px; }
  .code-window-header, .code-window-header button, .code-tabs { font-size: 11px; }
  .code-window-bottom { font-size: 10px; line-height: 1.5; flex-wrap: wrap; gap: 10px; }
  .code-disclaimer { font-size: 11px; line-height: 1.7; }
  .security-columns { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .security-columns h3 { font-size: 20px; }
  .award-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .award-selector button { min-width: 0; padding: 22px 12px; }
  .award-selector button > span, .award-selector button small { font-size: 10px; line-height: 1.5; }
  .award-selector button b { font-size: 42px; }
  .award-detail-copy h3 { max-width: none; font-size: 32px; }
  .award-note { font-size: 11px; line-height: 1.8; }
  .pricing-list small, .pricing-list .pricing-list-foot > span { font-size: 12px; }
  .faq summary { min-height: 56px; font-size: 15px; line-height: 1.6; }
  .contact-card { padding: 28px; }
  .contact-card form > p:first-of-type { font-size: 13px; line-height: 1.7; }
  .contact-card label { font-size: 12px; line-height: 1.5; }
  .contact-card input, .contact-card select, .contact-card textarea { font-size: 16px; min-height: 48px; padding: 12px; }
  .contact-card textarea { min-height: 100px; }
  .contact-card .button-primary { min-height: 50px; font-size: 13px; white-space: normal; }
  .form-note, .brief-unavailable { font-size: 11px; line-height: 1.8; }
  .brief-result pre { font-size: 12px; overflow-wrap: anywhere; }
  .brief-actions { flex-wrap: wrap; }
  .brief-actions .button { font-size: 12px; white-space: normal; }
  .footer-top h3 { font-size: 13px; }
  .footer-top > div a { font-size: 12px; line-height: 1.6; min-height: 40px; padding-block: 7px; }
  .footer-brand > span { font-size: 12px; }
  .footer-bottom { font-size: 10px; line-height: 1.7; }
  .footer-bottom > span:last-child { font-size: 9px; }
  .dashboard-window { transform: none; }
  .dashboard-body { grid-template-columns: 112px minmax(0, 1fr); }
  .dashboard-topbar { padding: 12px; gap: 12px; font-size: 10px; }
  .dashboard-topbar > b { font-size: 8px; }
  .dash-content { padding: 20px; }
  .dash-title { flex-wrap: wrap; align-items: start; gap: 16px; }
  .dash-title h3 { font-size: 23px; }
  .dash-title small { font-size: 11px; }
  .dash-currencies button { font-size: 11px; min-height: 40px; padding: 8px 12px; }
  .dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .dash-stats > div { padding: 14px 12px; }
  .dash-stats > div:last-child { display: block; }
  .dash-stats small { font-size: 11px; line-height: 1.5; }
  .dash-stats strong { font-size: 20px; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
  .dash-stats span { font-size: 10px; line-height: 1.6; }
  .dash-chart-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dash-methods { display: block; }
  .dash-methods h4 { font-size: 12px; }
  .dash-methods p { font-size: 11px; line-height: 1.6; }
  .dash-card-heading { flex-wrap: wrap; }
  .dash-card-heading h4 { font-size: 12px; }
  .dash-card-heading span { font-size: 10px; }
  .dash-chart { min-height: 200px; padding: 16px; }
  .chart-grid { inset: 58px 16px 32px; font-size: 10px; }
  .chart-grid > span:after { left: 48px; }
  .volume-chart { inset: 66px 0 auto 64px; width: calc(100% - 64px); height: 104px; }
  .chart-days { left: 64px; right: 16px; bottom: 14px; font-size: 9px; }
  .dash-transactions { padding: 14px; }
  .dash-transactions > div:not(:first-child) { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; font-size: 11px; padding: 12px 0; }
  .dash-transactions > div > span { flex-wrap: wrap; }
  .dash-transactions img { width: 18px; height: 18px; }
  .dash-transactions b { font-size: 11px; }
  .dash-transactions em { grid-column: 2; font-size: 10px; padding: 5px 8px; }
  .dashboard-caption { gap: 14px; font-size: 11px; line-height: 1.6; }
}

@media (max-width: 680px) {
  .section-pad { padding-block: 72px; }
  .site-header { padding-inline: 16px; gap: 8px; }
  .site-header .brand img { width: 94px; height: 40px; }
  .header-cta { font-size: 10px; padding: 10px; gap: 8px; }
  .header-cta .icon { width: 14px; height: 14px; }
  .hero-grid { padding-top: 120px; gap: 16px; }
  .hero h1 { font-size: clamp(42px, 11.8vw, 76px); line-height: 1.06; }
  .hero-eyebrow { font-size: 9px; letter-spacing: .12em; }
  .hero-description { font-size: 14px; }
  .hero-actions .button { padding: 16px 18px; gap: 14px; white-space: normal; text-align: left; }
  .hero-credentials { font-size: 11px; gap: 14px; margin-top: 28px; }
  .hero-visual { height: clamp(310px, 82vw, 400px); }
  .hero-foot > span:first-child { max-width: none; }
  .hero-foot .mono { font-size: 8px; }
  .hero-foot .scroll-cue { display: none; }
  .section-heading h2, .statement h2 { font-size: clamp(32px, 8.7vw, 48px); }
  .section-heading > p { font-size: 14px; }
  .journey-sticky { min-height: 0; height: 100svh; }
  .journey-top { padding-top: 92px; margin-bottom: 20px; }
  .journey-top .eyebrow { font-size: 9px; }
  .journey-copy h2 { font-size: clamp(32px, 8.5vw, 42px); line-height: 1.08; }
  .journey-copy > p:not(.chapter-label) { font-size: 13px; line-height: 1.7; min-height: 0; }
  .journey-copy .text-link { font-size: 12px; }
  .journey-stage { min-height: 210px; max-height: 300px; flex: 1; }
  .journey-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 16px 0 24px; }
  .journey-step { min-width: 0; min-height: 44px; font-size: 11px; }
  .journey-step span { font-size: 10px; }
  .region-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-tabs button { font-size: 12px; }
  .country-heading { margin-bottom: 20px; }
  .product-art { height: 390px; }
  .mini-checkout { inset: 46px 34px 68px; padding: 20px; }
  .mini-checkout > img { width: 76px; height: 30px; }
  .mini-checkout > strong { font-size: 18px; }
  .mini-checkout button { min-height: 40px; font-size: 11px; padding: 10px; }
  .routing h2, .developer-copy h2, .pricing h2, .contact-copy h2, .faq h2 { font-size: clamp(32px, 8.7vw, 48px); }
  .routing .text-link, .fx-description .text-link, .award-detail-copy .text-link { font-size: 12px; }
  .route-demo { padding: 22px; }
  .route-start, .route-finish, .route-row { font-size: 12px; }
  .security .section-heading h2 { font-size: 32px; }
  .security-columns article { padding-right: 0; }
  .security-columns h3 { font-size: 19px; }
  .awards-heading h2 { font-size: clamp(36px, 9vw, 54px); }
  .award-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .award-selector button:last-child { grid-column: 1 / -1; }
  .award-selector button { padding: 20px 12px; }
  .award-selector button > span, .award-selector button small { font-size: 10px; }
  .award-detail-copy h3 { font-size: 30px; }
  .brand-chapter h2 { font-size: clamp(50px, 13.5vw, 78px); }
  .brand-chapter .button-glass { font-size: 12px; white-space: normal; }
  .contact-card { padding: 24px 20px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .brief-actions .button { width: 100%; min-height: 48px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-top > div a { min-height: 44px; }
  .footer-bottom { font-size: 10px; }
  .dashboard-body { display: block; }
  .dash-sidebar { display: none; }
  .dash-content { padding: 16px; }
  .dashboard-topbar { gap: 8px; font-size: 9px; }
  .dashboard-topbar > b { display: none; }
  .dashboard-topbar .icon { width: 12px; height: 12px; }
  .window-dots { gap: 4px; }
  .window-dots i { width: 5px; height: 5px; }
  .dash-title h3 { font-size: 23px; }
  .dash-title small { font-size: 11px; }
  .dash-currencies button { min-height: 44px; font-size: 11px; }
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-stats > div:last-child { grid-column: 1 / -1; }
  .dash-transactions b { text-align: right; }
  .toast { width: max-content; max-width: calc(100% - 32px); font-size: 12px; line-height: 1.5; }
}

@media (max-width: 480px) {
  .country-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .country-heading { align-items: start; }
  .payment-method-grid { gap: 8px; }
  .method-cell { height: 106px; padding: 10px 7px 8px; }
  .method-cell .method-logo img { max-width: min(90px, 100%); max-height: 36px; }
  .dash-stats { grid-template-columns: minmax(0, 1fr); }
  .dash-stats strong { font-size: 23px; }
  .award-render-scene { max-width: 100%; }
  .footer-word { font-size: 14vw; }
}

/* Short viewports use the chapter buttons instead of an oversized pinned scene. */
@media (max-width: 980px) and (max-height: 760px) {
  .journey { height: auto; min-height: 0; padding-block: 24px; }
  .journey-sticky { position: relative; height: auto; min-height: 0; overflow: visible; }
  .journey-top { padding-top: 32px; }
  .journey-grid { flex: none; max-height: none; }
  .journey-stage { flex: none; height: 300px; min-height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  .journey { height: auto; min-height: 0; }
  .journey-sticky { position: relative; height: auto; min-height: 0; }
  .journey-stage { flex: none; height: 300px; min-height: 250px; }
  .dashboard-window { transform: none; }
}
