/* :root{
  --ink:#17212e;--mut:#5a6675;--line:#e2e8ef;--brand:#1c4fd8;
  --bg:#f8fafc;--card:#fff;--soft:#eff3f8;--chip:#e7eefa;--chip-ink:#1c4fd8;
  --btn:#1c4fd8;--btn-ink:#fff;
  --yes:#157f3d;--yes-bg:#e0f4e7;--no:#8a939e;--no-bg:#edf0f4;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --r:12px;--r-sm:8px;--wrap:1060px;
  --shadow:0 1px 2px rgba(23,33,46,.05),0 10px 30px -14px rgba(23,33,46,.22);
  --shadow-sm:0 1px 2px rgba(23,33,46,.07);
  color-scheme:light;
}
:root[data-theme="dark"]{
  --ink:#e6ecf4;--mut:#97a4b5;--line:#26313f;--brand:#7ea6ff;
  --bg:#0f141b;--card:#151d28;--soft:#1a2431;--chip:#1c2c46;--chip-ink:#93b4ff;
  --btn:#3b6ef0;--btn-ink:#fff;
  --yes:#53cc85;--yes-bg:#14301f;--no:#7e8a96;--no-bg:#1f2732;
  --shadow:0 1px 2px rgba(0,0,0,.5),0 12px 32px -14px rgba(0,0,0,.7);
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  color-scheme:dark;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  color:var(--ink);background:var(--bg)}
::selection{background:var(--chip)}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:2px}
p a,.note a{text-decoration:underline;text-decoration-thickness:1px}
img{max-width:100%}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.wrap{max-width:var(--wrap);margin:0 auto;padding-left:20px;padding-right:20px}
.skip{position:absolute;left:-9999px;top:0;background:var(--brand);color:#fff;padding:.5rem 1rem;
  border-radius:0 0 var(--r-sm) 0;z-index:50;text-decoration:none}
.skip:focus{left:0;color:#fff}

/* ---------- header ---------- */
/* header.site{position:sticky;top:0;z-index:20;background:var(--bg);
  background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.head-in{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem 1.4rem;padding-top:.65rem;padding-bottom:.65rem}
.brand{display:inline-flex;align-items:center;gap:.55rem;font-weight:750;font-size:1.02rem;
  letter-spacing:-.01em;color:var(--ink);text-decoration:none;white-space:nowrap}
.brand:hover{color:var(--ink);text-decoration:none}
.brand .mark{display:inline-flex;width:26px;height:26px;border-radius:7px;
  background:var(--brand);color:#fff;align-items:center;justify-content:center;flex:none}
:root[data-theme="dark"] .brand .mark{color:#0f141b}
.brand .mark svg{display:block}
nav.site-nav{display:flex;flex-wrap:wrap;gap:.1rem}
nav.site-nav a{color:var(--mut);text-decoration:none;padding:.32rem .65rem;border-radius:999px;
  font-size:.93rem;font-weight:550}
nav.site-nav a:hover{color:var(--ink);background:var(--soft);text-decoration:none}
.hsearch{display:flex;gap:.4rem;margin-left:auto}
.hsearch input{padding:.42rem .85rem;width:13.5rem;border-radius:999px;background:var(--card)}
.hsearch button{margin-top:0;padding:.42rem .95rem;border-radius:999px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;
  margin:0;padding:0;border:1px solid var(--line);border-radius:999px;background:var(--card);
  color:var(--mut);cursor:pointer;flex:none;transition:color .15s,background .15s,border-color .15s}
.theme-toggle:hover{color:var(--ink);background:var(--soft);filter:none;transform:none}
.theme-toggle svg{width:16px;height:16px;display:block}
.theme-toggle .icon-sun{display:none}
:root[data-theme="dark"] .theme-toggle .icon-sun{display:block}
:root[data-theme="dark"] .theme-toggle .icon-moon{display:none} */

/* ---------- breadcrumbs ---------- */
/* .crumbs{font-size:.84rem;color:var(--mut);padding-top:.7rem;padding-bottom:.7rem}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.15rem .45rem}
.crumbs li{display:flex;align-items:center;gap:.45rem;min-width:0}
.crumbs li+li::before{content:"›";color:var(--mut);font-weight:700;opacity:.6}
.crumbs a{color:var(--mut);text-decoration:none}
.crumbs a:hover{color:var(--brand)}
.crumbs [aria-current]{color:var(--ink);font-weight:550} */

/* ---------- layout & type ---------- */
/* main.wrap{max-width:940px;padding-top:1.4rem;padding-bottom:3.5rem}
h1{font-size:1.62rem;line-height:1.25;letter-spacing:-.015em;margin:.4rem 0 .7rem}
h2{font-size:1.14rem;margin:2.2rem 0 .7rem;letter-spacing:-.01em}
h1 .flag{margin-right:.5rem}
.lede{font-size:1.06rem;color:var(--mut);max-width:62ch;margin:.2rem 0 1.4rem}
.mut{color:var(--mut)}
.count{color:var(--mut);font-weight:400;font-size:.85em;margin-left:.3rem;white-space:nowrap} */

/* ---------- cards (home) ---------- */
/* .cards{list-style:none;padding:0;margin:1rem 0 0;display:grid;gap:.9rem;
  grid-template-columns:repeat(auto-fit,minmax(255px,1fr))}
.cards li{margin:0}
.cards a{display:flex;flex-direction:column;gap:.3rem;height:100%;padding:1.05rem 1.15rem;
  background:var(--card);border:1px solid var(--line);border-radius:var(--r);
  text-decoration:none;color:var(--ink);box-shadow:var(--shadow-sm);
  transition:border-color .15s,transform .15s,box-shadow .15s}
.cards a:hover{border-color:var(--brand);transform:translateY(-2px);box-shadow:var(--shadow);text-decoration:none}
.card-t{font-weight:700;font-size:1.03rem}
.card-d{color:var(--mut);font-size:.92rem;line-height:1.5}
.card-n{margin-top:auto;padding-top:.45rem;font-size:.8rem;font-weight:650;color:var(--chip-ink)} */

/* ---------- definition list ---------- */
/* .kv{display:grid;grid-template-columns:minmax(11rem,max-content) 1fr;gap:.5rem 1.4rem;
  margin:1.2rem 0;padding:1.15rem 1.25rem;background:var(--card);border:1px solid var(--line);
  border-radius:var(--r);box-shadow:var(--shadow-sm)}
.kv dt{color:var(--mut);font-size:.88rem}
.kv dd{margin:0;font-weight:550;min-width:0;overflow-wrap:anywhere} */

/* ---------- code ---------- */
/* .code{font-family:var(--mono);font-size:.92em;background:var(--chip);color:var(--chip-ink);
  padding:.08em .4em;border-radius:6px;white-space:nowrap}
.big{display:inline-block;font-size:1.45rem;letter-spacing:.06em;font-weight:700;
  padding:.5rem 1.1rem;border:1px solid var(--line);border-radius:var(--r);
  background:var(--chip);box-shadow:var(--shadow-sm);margin:.3rem 0 .5rem} */

/* ---------- tables ---------- */
/* .table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);
  background:var(--card);box-shadow:var(--shadow-sm);margin:1rem 0}
table{border-collapse:collapse;width:100%;font-size:.92rem}
caption,.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
th,td{text-align:left;padding:.6rem .9rem;border-bottom:1px solid var(--line);vertical-align:top}
thead th{background:var(--soft);font-weight:650;font-size:.82rem;letter-spacing:.02em;
  color:var(--mut);white-space:nowrap}
tbody tr:last-child td{border-bottom:0}
tbody tr{transition:background .12s}
tbody tr:hover{background:var(--soft)}
td .code{white-space:normal} */

/* ---------- lists ---------- */
/* ul{padding-left:1.2rem}
.cols{columns:2;column-gap:2.5rem;padding-left:1.2rem}
.cols li{break-inside:avoid;padding:.22rem 0}
ul.flags{list-style:none;padding-left:0}
ul.flags li{display:flex;align-items:center;gap:.1rem}
.flag{border-radius:50%;margin-right:.5rem;box-shadow:0 0 0 1px var(--line);flex:none}
.flag-lg{width:30px;height:30px} */

/* ---------- badges & notes ---------- */
/* .yes,.no{display:inline-flex;align-items:center;gap:.3rem;font-weight:650;font-size:.82rem;
  padding:.1rem .6rem;border-radius:999px;white-space:nowrap}
.yes{color:var(--yes);background:var(--yes-bg)}
.no{color:var(--no);background:var(--no-bg);font-weight:550}
.note{background:var(--soft);border:1px solid var(--line);border-left:3px solid var(--brand);
  padding:.85rem 1.1rem;margin:1.2rem 0;font-size:.93rem;border-radius:0 var(--r-sm) var(--r-sm) 0} */

/* ---------- forms ---------- */
/* form.tool{background:var(--card);border:1px solid var(--line);padding:1.2rem 1.3rem;
  border-radius:var(--r);margin:1.2rem 0;box-shadow:var(--shadow-sm);max-width:34rem}
form.tool label{display:block;margin:.75rem 0 .25rem;font-weight:650;font-size:.88rem}
form.tool label:first-child{margin-top:0}
input,select,button{font:inherit;padding:.5rem .7rem;border:1px solid var(--line);
  border-radius:var(--r-sm);max-width:100%;background:var(--card);color:var(--ink)}
input,select{width:100%}
input:hover,select:hover{border-color:var(--mut)}
input:focus,select:focus{outline:2px solid var(--brand);outline-offset:1px;border-color:var(--brand)}
button{width:auto;background:var(--btn);color:var(--btn-ink);border:0;font-weight:650;
  cursor:pointer;margin-top:.9rem;padding:.55rem 1.3rem;border-radius:var(--r-sm);
  transition:filter .15s,transform .15s}
button:hover{filter:brightness(1.08);transform:translateY(-1px)}
button:active{transform:none}
.finder select{display:block;margin:.15rem 0 .55rem}
.finder select:disabled{color:var(--mut);background:var(--soft)}
#result{margin-top:1rem;font-weight:600}
#result:not(:empty){background:var(--soft);border:1px solid var(--line);border-radius:var(--r-sm);
  padding:.7rem .95rem;font-weight:550}
#hits{list-style:none;padding:0;margin:1rem 0}
#hits li{padding:.55rem .2rem;border-bottom:1px solid var(--line)}
#hits li:last-child{border-bottom:0}
#hits a{font-weight:600;text-decoration:none}
#hits a:hover{text-decoration:underline} */

/* ---------- footer ---------- */
/* footer{border-top:1px solid var(--line);margin-top:2rem;background:var(--card)}
.foot-in{padding-top:2rem;padding-bottom:2rem;display:grid;gap:1.4rem}
.foot-nav{display:flex;flex-wrap:wrap;gap:.3rem 1.2rem}
.foot-nav a{color:var(--mut);text-decoration:none;font-size:.9rem;font-weight:550}
.foot-nav a:hover{color:var(--brand);text-decoration:none}
.foot-note{color:var(--mut);font-size:.85rem;max-width:70ch;margin:0}
.foot-fine{color:var(--mut);font-size:.82rem;margin:0}
footer .brand{font-size:.95rem} */

/* ---------- responsive ---------- */
/* @media(max-width:720px){
  .hsearch{margin-left:0;width:100%;order:4}
  .hsearch input{flex:1;width:auto}
  .theme-toggle{margin-left:auto}
  .cols{columns:1}
  .kv{grid-template-columns:1fr;gap:.15rem 0}
  .kv dd{margin-bottom:.5rem}
  h1{font-size:1.38rem}
  .big{font-size:1.2rem}
} */











/* ==========================================================================
   New stylings
   ========================================================================== */

@font-face {
  font-family: "Mint Grotesk";
  src: url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Thin.woff2") format("woff2"),
       url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Thin.woff") format("woff"),
       url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Thin.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mint Grotesk";
  src: url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Light.woff2") format("woff2"),
       url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Light.woff") format("woff"),
       url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mint Grotesk";
  src: url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Regular.woff2") format("woff2"),
       url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Regular.woff") format("woff"),
       url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mint Grotesk";
  src: url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Medium.woff2") format("woff2"),
       url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Medium.woff") format("woff"),
       url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mint Grotesk";
  src: url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Bold.woff2") format("woff2"),
       url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Bold.woff") format("woff"),
       url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mint Grotesk";
  src: url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-ExtraBold.woff2") format("woff2"),
       url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-ExtraBold.woff") format("woff"),
       url("https://storage.googleapis.com/pesa-fonts/MintGrotesk-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces */
  --artboard-primary: #020406;
  --surface-default: #1d1d1d;
  --surface-light: #f6f6f6;
  --surface-footer: #0a0a0a;

  /* Text */
  --text-primary: #ffffff;
  --text-primary-inverse: #151515;
  --text-secondary: #cccccc;
  --text-caption: #888888;
  --text-warning: #e89300;

  /* Lines & strokes */
  --stroke-default: #3e3e3e;
  --divider-strong: #212121;
  --divider-soft: #b1b1b1;

  /* Accents */
  --lime-green: #5ed672;
  --coral-red: #fd6953;
  --purple: #a07ff1;
  --opacity-orange: rgba(255, 198, 153, 0.2);
  --text-success: #31ba48;
  --opacity-green: rgba(30, 112, 43, 0.2);
  --nav-pill: #444444;
  --surface-secondary: #313131;
  --surface-subtle: #444444;
  --input-bg: #313131;
  --input-stroke: #3e3e3e;
  --shadow-input-focus: 0 0 0 3px rgba(146, 146, 146, 0.2);

  /* Radii */
  --radius-rounded: 999px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-24: 24px;
  --radius-20: 20px;
  --radius-30: 30px;
  --radius-32: 32px;

  /* Type */
  --font-primary: "Mint Grotesk", "Helvetica Neue", Helvetica, Arial,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --h1: 66px;
  --h1-tracking: -1.98px;

  /* Layout */
  --shell: 1256px;
  --gutter: 128px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--artboard-primary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.2;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* `img` above sets display, which would otherwise beat the UA rule for [hidden]. */
[hidden] {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: inherit;
}

p {
  margin: 0;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

/* The Pesa logo is composed of five exported vector layers, positioned by the
   same percentage insets they carry in the design. */
.logo {
  display: block;
  position: relative;
  width: 98px;
  aspect-ratio: 98 / 27.2967;
  flex: none;
}

.logo span {
  position: absolute;
  display: block;
}

.logo span img {
  width: 100%;
  height: 100%;
}

.logo .l6 { inset: 19.89% 46.95% 8.05% 37.41%; }
.logo .l5 { inset: 19.89% 30.52% 26.54% 54.65%; }
.logo .l4 { inset: 19.78% 15.7% 26.48% 70.77%; }
.logo .l3 { inset: 19.78% 0.38% 26.83% 85.93%; }
.logo .l2 { inset: -1.47% 70.92% -2.05% 0.24%; }

/* Radial glow that bleeds off the top edge of several sections. */
.glow {
  position: absolute;
  top: -100px;
  left: 50%;
  width: 836px;
  height: 350px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.glow img {
  width: 100%;
  height: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-rounded);
  font-size: 14px;
  line-height: normal;
  white-space: nowrap;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn-light {
  padding: 12px 14px;
  background: var(--surface-light);
  color: var(--text-primary-inverse);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-20);
  background: var(--surface-light);
  color: var(--text-primary-inverse);
  font-size: 14px;
  line-height: normal;
  white-space: nowrap;
}

.badge-lime { background: var(--lime-green); }
.badge-coral { background: var(--coral-red); }

.badge-soon {
  padding: 2px 8px;
  background: var(--opacity-orange);
  color: var(--text-warning);
  font-size: 12px;
}

.badge-ok,
.badge-off {
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 400;
}

.badge-ok { background: var(--opacity-green); color: var(--text-success); }
.badge-off { background: var(--surface-secondary); color: var(--text-secondary); }

.main-wrapper {
  background: #151515;
  padding: 20px 0 80px 0;
}

.display {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  font-size: var(--h1);
  letter-spacing: var(--h1-tracking);
  line-height: 1.2;
  text-align: center;
}

.display > span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.display .thin { font-weight: 200; }
.display .light { font-weight: 300; }
.display .bold { font-weight: 700; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: relative;
  z-index: 20;
  padding: 16px var(--gutter);
}

.nav-inner {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-rounded);
}

.nav-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 12px 14px;
  border-radius: var(--radius-rounded);
  color: var(--text-primary);
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.is-active,
.nav-links a.is-active:hover {
  background: var(--nav-pill);
}

/* Hamburger — hidden until the link row can no longer fit. */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-rounded);
  background: var(--nav-pill);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
}

/* Nav overrides (Figma "Nav menu" 5004:2659). The bar has no fill; Figma's
   Glass effect (blur 4, light at -45deg) shows as a blurred backdrop and a
   hairline rim that is brightest at the two rounded ends. */
/* Keep only a 16px edge (like .panels) so the bar holds its 1252px width
   on laptop screens instead of shrinking by the 128px page gutter. */
.nav {
  padding-left: 16px;
  padding-right: 16px;
}

.nav-glass {
  position: relative;
  max-width: 1252px; /* Figma: 1512px frame minus 130px each side */
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.nav-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.1) 22%,
    rgba(255, 255, 255, 0.1) 78%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.nav-logo {
  display: flex;
  padding: 7px 0;
}

.nav-cta {
  background: #ffffff;
  color: var(--text-primary-inverse);
}

/* The hamburger sits directly on the glass bar, without its own pill. */
.nav-toggle {
  background: none;
}

.nav-toggle span {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hamburger turns into a close icon while the menu is open. */
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--artboard-primary);
  overflow: hidden;
  padding: 112px var(--gutter) 120px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1015px;
  margin: 0 auto;
}

/* Figma sets the two headline lines to 1015px / 849px so they break as designed. */
.hero .display .bold {
  max-width: 849px;
}

.hero-sub {
  max-width: 553px;
  font-size: 18px;
  letter-spacing: -0.36px;
  line-height: normal;
  color: var(--text-secondary);
  text-align: center;
}

/* Search field */
.search {
  position: relative;
  width: 537px;
  max-width: 100%;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 20px 12px;
  border: 1px solid var(--stroke-default);
  border-radius: var(--radius-rounded);
  background: var(--surface-default);
}

.search-field:focus-within {
  border-color: var(--surface-light);
}

.search-icon {
  width: 14px;
  height: 14px;
  flex: none;
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 300;
  line-height: 1;
  padding-right: 92px;
}

.search input::placeholder {
  color: var(--text-secondary);
}

.search input:focus {
  outline: none;
}

.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-submit {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  min-width: 89px;
  padding: 8px 12px;
  background: var(--surface-light);
  color: var(--text-primary-inverse);
}

/* --------------------------------------------------------------------------
   Code-type cards
   -------------------------------------------------------------------------- */

.cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 21.575px;
  width: 1252px;
  max-width: 100%;
  margin: 96px auto 0;
}

.card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 292px;
  padding: 24px;
  border-radius: var(--radius-30);
  background: var(--surface-default);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: var(--radius-rounded);
  background: #ffffff;
  align-self: flex-start;
}

.card-icon img {
  width: 24px;
  height: 24px;
}

.card-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-copy h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1.12px;
  line-height: 1.2;
}

.card-copy p {
  font-size: 16px;
  line-height: 1.2;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* --------------------------------------------------------------------------
   Stacked panels (explainer / FAQ / CTA / footer)
   -------------------------------------------------------------------------- */

.panels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: var(--shell);
  max-width: calc(100% - 32px);
  margin: 40px auto 0;
}

.panel {
  position: relative;
  width: 100%;
  border-radius: var(--radius-32);
  background: var(--surface-default);
  overflow: hidden;
}

/* --- Explainer ----------------------------------------------------------- */

.panel-codes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 80px 100px 40px;
}

.panel-codes .globe-lines {
  position: absolute;
  top: -410px;
  left: 50%;
  width: 1131px;
  height: 1783px;
  transform: translateX(-50%);
  opacity: 0.6;
  pointer-events: none;
}

.panel-codes .globe-lines img {
  width: 100%;
  height: 100%;
}

.codes-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 836px;
  max-width: 100%;
}

.codes-head p {
  font-size: 18px;
  line-height: normal;
  color: var(--text-secondary);
  text-align: center;
}

.codes-head strong {
  font-weight: 800;
}

.globe {
  position: relative;
  z-index: 1;
  width: 1018px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: -55%;
}

.globe img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- FAQ ----------------------------------------------------------------- */

.panel-faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  padding: 80px 100px;
}

.faq-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.faq-head p {
  font-size: 18px;
  letter-spacing: -0.36px;
  line-height: normal;
  opacity: 0.7;
}

.faq-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.accordion {
  border: 0.5px solid var(--stroke-default);
  border-radius: var(--radius-16);
  padding: 20px 16px;
}

.accordion summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary span {
  flex: 1 1 auto;
  min-width: 0;
}

.accordion summary .mark {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
}

.accordion summary .mark::before,
.accordion summary .mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text-primary);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.accordion summary .mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 1;
}

.accordion[open] summary .mark::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.accordion .answer {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--text-secondary);
}

/* --- Closing CTA --------------------------------------------------------- */

.panel-cta {
  display: flex;
  align-items: center;
  min-height: 579px;
  padding: 80px 100px;
}

.panel-cta .glow {
  left: calc(50% - 288px);
}

.cta-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.cta-copy .display {
  align-items: flex-start;
  text-align: left;
}

/* Both headline lines sit on one line in the design; the phone render is
   absolutely positioned, so the copy column has room up to ~574px. */
.cta-copy .display > span {
  white-space: nowrap;
}

.cta-copy p {
  max-width: 355px;
  font-size: 18px;
  letter-spacing: -0.36px;
  line-height: normal;
  color: var(--text-secondary);
}

.cta-copy .btn {
  padding: 16px;
  font-weight: 500;
}

.cta-copy .btn img {
  width: 18px;
  height: 18px;
}

.cta-art {
  position: absolute;
  top: 55px;
  right: 100px;
  width: 482px;
  height: 606px;
  overflow: hidden;
  pointer-events: none;
}

.cta-art img {
  position: absolute;
  top: 0;
  left: -16.6%;
  width: 125.73%;
  height: 100%;
  max-width: none;
}

.cta-art video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Footer -------------------------------------------------------------- */

.panel-footer {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 80px 80px 0 80px;
  background: var(--surface-footer);
  backdrop-filter: blur(2px);
}

.footer-cols {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-col {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer-col h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.32px;
  line-height: normal;
  color: var(--text-caption);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.footer-col li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.28px;
  line-height: normal;
}

.footer-col a:hover {
  text-decoration: underline;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--divider-soft);
  opacity: 0.2;
}

.divider-strong {
  width: 100%;
  height: 1px;
  background: var(--divider-strong);
  opacity: 1;
}

.footer-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand .logo {
  width: 109px;
}

.locale {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.28px;
}

.locale img:first-child { width: 18px; height: 18px; }
.locale img:last-child { width: 16px; height: 16px; }

.socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.socials img {
  width: 24px;
  height: 24px;
}

.legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-secondary);
}

.legal .disclosures p + p {
  margin-top: 0;
}

.footer-wordmark {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1266.083 / 381.5546;
}

.footer-wordmark img {
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Code lookup page — hero + finder card  (Figma 8015:23167)
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.lookup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 190px var(--gutter) 120px;
  background: var(--artboard-primary);
  overflow: hidden;
}

.lookup-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 837px;
  max-width: 100%;
  text-align: center;
}

.lookup-title {
  font-size: var(--h1);
  font-weight: 700;
  letter-spacing: var(--h1-tracking);
  line-height: 1.2;
}

.lookup-head p {
  font-size: 18px;
  letter-spacing: -0.36px;
  line-height: normal;
  color: var(--text-secondary);
}

/* Finder card */
.finder {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  width: 510px;
  max-width: 100%;
  padding: 32px;
  border: 0.5px solid var(--stroke-default);
  border-radius: var(--radius-16);
  background: var(--surface-default);
  box-shadow: 0 0 50px 10px rgba(0, 0, 0, 0.05);
}

.finder-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.finder-head h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
}

.finder-head p {
  font-size: 18px;
  letter-spacing: -0.36px;
  line-height: normal;
  color: var(--text-secondary);
}

.finder-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.field {
  position: relative;
  display: block;
  width: 100%;
  height: 58px;
}

/* The native select sits invisibly on top so it stays keyboard- and
   screen-reader-operable; `.field-face` below is what you actually see. */
.field select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  z-index: 2;
  font-family: inherit;
  font-size: 16px; /* keeps iOS from zooming when the picker opens */
  cursor: pointer;
}

.field select:disabled {
  cursor: not-allowed;
}

.field-face {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--input-stroke);
  border-radius: var(--radius-12);
  background: var(--input-bg);
  pointer-events: none;
}

.field select:focus-visible ~ .field-face {
  box-shadow: var(--shadow-input-focus);
}

.field-flag {
  width: 18px;
  height: 18px;
  flex: none;
}

.field-text {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.field-label {
  font-size: 12px;
  font-weight: 300;
  line-height: 1;
  color: var(--text-secondary);
}

/* Empty: the label alone reads as the placeholder. Filled: it shrinks to a
   caption and the chosen value sits under it. */
.field-value {
  display: none;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: var(--text-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field.is-filled .field-value {
  display: block;
}

.field-caret {
  width: 14px;
  height: 14px;
  flex: none;
}

.field select:disabled ~ .field-face {
  opacity: 0.5;
}

.finder-submit {
  width: 100%;
  padding: 16px;
  background: #ffffff;
  color: var(--text-primary-inverse);
  font-weight: 500;
  box-shadow: var(--shadow-input-focus);
}

.finder-submit:disabled {
  opacity: 0.1;
  box-shadow: none;
  cursor: not-allowed;
}

.finder-submit:disabled:hover {
  opacity: 0.1;
}

/* Overrides for the SWIFT finder (Figma 8015:23167 empty, 8019:4466 filled). */

/* The glow SVG carries its blur margin, so it overhangs the 836x350 box
   (Figma insets: -87.92% vertical, -36.81% horizontal). */
.glow-overhang img {
  position: absolute;
  top: -87.92%;
  left: -36.81%;
  width: 173.62%;
  height: 275.84%;
  max-width: none;
}

/* IFSC title is set to 739px in Figma so it breaks onto two lines. */
.lookup-title-narrow {
  max-width: 739px;
}

/* Fields waiting on the previous step look the same as active ones. */
.finder-fields-even .field select:disabled ~ .field-face {
  opacity: 1;
}

/* Ring sits on the disabled button only; the active one is flat. */
.finder-submit.finder-submit-ring {
  box-shadow: none;
}

.finder-submit.finder-submit-ring:disabled {
  box-shadow: var(--shadow-input-focus);
}

/* --------------------------------------------------------------------------
   Country listing page — heading + code table  (Figma 8020:5551)
   -------------------------------------------------------------------------- */

.listing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 76px;
  padding: 190px var(--gutter) 120px;
  background: var(--artboard-primary);
  overflow: hidden;
}

.listing-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 100%;
  text-align: center;
}

.listing-head p {
  font-size: 18px;
  letter-spacing: -0.36px;
  line-height: normal;
  color: var(--text-secondary);
}

.table-wrap {
  position: relative;
  z-index: 1;
  width: 1102px;
  max-width: 100%;
  border: 0.5px solid var(--stroke-default);
  border-radius: var(--radius-24);
  background: var(--surface-secondary);
  overflow: hidden;
}

.code-table {
  --col-wide: 58%; /* 633px of the 1102px table in the design */
  --col-tight: 9%;

  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 16px;
  line-height: normal;
  text-align: left;
}

/* More columns means the wide one has to give some space back. */
.code-table:has(thead th:nth-child(4)) { --col-wide: 46%; }
.code-table:has(thead th:nth-child(5)) { --col-wide: 40%; }

.code-table th,
.code-table td {
  padding: 20px 16px;
  border-bottom: 0.5px solid var(--stroke-default);
  color: var(--text-primary);
  vertical-align: top;
  overflow-wrap: anywhere;
}

/* Column rules stop before the last column, as in the design. */
.code-table th:not(:last-child),
.code-table td:not(:last-child) {
  border-right: 0.5px solid var(--stroke-default);
}

.code-table thead th {
  background: var(--surface-default);
  font-weight: 700;
}

/* The design stripes from the first body row down. */
.code-table tbody tr:nth-child(odd) {
  background: var(--surface-subtle);
}

.code-table tbody tr:last-child th,
.code-table tbody tr:last-child td {
  border-bottom: 0;
}

.code-table .col-wide,
.code-table .col-institution {
  width: var(--col-wide);
}

.code-table .col-tight {
  width: var(--col-tight);
}

.code-table .col-code {
  white-space: nowrap; /* a SWIFT code must never break mid-code */
}

.code-table td.col-code a {
  text-decoration: underline;
  text-underline-position: from-font;
}

.code-table td.col-code a:hover {
  text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------------------
   SWIFT code detail page  (Figma 8019:4731)
   -------------------------------------------------------------------------- */

.code-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 190px var(--gutter) 120px;
  background: var(--artboard-primary);
  overflow: hidden;
}

.code-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  line-height: 1.2;
  text-align: center;
}

.code-eyebrow {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.72px;
  color: var(--text-secondary);
}

.code-value {
  font-size: var(--code-size, 80px);
  font-weight: 700;
  letter-spacing: -2.4px;
  color: var(--purple);
  overflow-wrap: anywhere;
}

.code-institution {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text-secondary);
}

/* Detail card */
.detail-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 650px;
  max-width: 100%;
  margin-top: 80px;
  padding: 32px;
  border: 0.5px solid var(--stroke-default);
  border-radius: var(--radius-16);
  background: var(--surface-default);
}

.detail-rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.detail-row {
  display: flex;
  gap: 4px;
  align-items: baseline;
}

.detail-label {
  flex: none;
  width: 200px;
  font-size: 14px;
  line-height: normal;
  color: var(--text-secondary);
}

.detail-value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.detail-flag {
  width: 16px;
  height: 16px;
  flex: none;
}

.detail-cta {
  width: 100%;
  padding: 16px;
  background: #ffffff;
  color: var(--text-primary-inverse);
  font-weight: 500;
}

/* Usage note */
.code-usage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 837px;
  max-width: 100%;
  margin-top: 83px;
  text-align: center;
}

.code-usage h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.48px;
  line-height: normal;
}

.code-usage p {
  font-size: 18px;
  letter-spacing: -0.36px;
  line-height: normal;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1300px) {
  :root { --gutter: 48px; }

  .cards { width: 100%; }
}

@media (max-width: 1100px) {
  :root { --h1: 52px; --h1-tracking: -1.5px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile drop-down panel for the code-type links. */
  .nav.is-open .nav-links {
    position: absolute;
    top: 100%;
    left: var(--gutter);
    right: var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--stroke-default);
    border-radius: var(--radius-32);
    background: var(--surface-default);
  }

  .hero { padding: 72px var(--gutter) 88px; }

  .cards { grid-template-columns: repeat(2, 1fr); }

  .panel-codes,
  .panel-faq { padding: 64px 48px 40px; }

  .panel-faq { gap: 64px; }

  .panel-cta { padding: 64px 48px; }

  .cta-art {
    right: 24px;
    width: 380px;
    height: 478px;
  }

  .lookup { padding: 150px var(--gutter) 88px; gap: 64px; }
  .listing { padding: 150px var(--gutter) 88px; gap: 56px; }

  .code-detail { padding: 150px var(--gutter) 88px; --code-size: 64px; }
  .detail-card { margin-top: 64px; }
  .code-usage { margin-top: 64px; }

  .panel-footer { padding: 64px 48px; }

  .footer-cols { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

@media (max-width: 860px) {
  /* The phone render would collide with the copy — stack it below instead. */
  .panel-cta {
    display: block;
    min-height: 0;
  }

  .cta-copy .display > span { white-space: normal; }

  .cta-art {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 482 / 606;
    margin: 32px auto -64px;
  }

  .cta-art img {
    position: relative;
    left: 0;
    width: 100%;
    height: auto;
  }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --h1: 38px; --h1-tracking: -1px; }

  .nav { padding: 12px var(--gutter); }
  .nav-cta { display: none; }
  .nav-inner { padding: 8px 4px; }

  .hero { padding: 48px var(--gutter) 64px; }
  /* Figma sets the two headline lines to 1015px / 849px so they break as designed. */
.hero .display .bold {
  max-width: 849px;
}

.hero-sub { font-size: 16px; }

  .search-field { padding: 16px 12px; }
  .search input { padding-right: 84px; }

  .cards {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }

  .card { min-height: 0; }
  .card-copy h3 { font-size: 24px; letter-spacing: -0.8px; }

  .panels { max-width: calc(100% - 24px); gap: 24px; }
  .panel { border-radius: 24px; }

  .panel-codes { padding: 48px 20px 24px; gap: 48px; }
  .panel-codes .globe-lines { top: -260px; }
  .globe { margin-bottom: -50%; }

  .codes-head p,
  .faq-head p,
  .cta-copy p { font-size: 16px; }

  .panel-faq { padding: 48px 20px; gap: 40px; }
  .faq-list { gap: 16px; }

  .panel-cta { padding: 48px 20px; }

  .code-detail { padding: 110px var(--gutter) 64px; --code-size: 38px; }
  .code-eyebrow { font-size: 18px; letter-spacing: -0.54px; }
  .code-value { letter-spacing: -1px; }
  .code-institution { font-size: 16px; letter-spacing: -0.48px; }

  .detail-card { margin-top: 40px; gap: 32px; padding: 24px 20px; }
  .detail-rows { gap: 20px; }

  /* The 200px label column leaves nothing for the value at this width. */
  .detail-row { flex-direction: column; gap: 4px; }
  .detail-label { width: auto; }

  .code-usage { margin-top: 48px; }
  .code-usage h2 { font-size: 20px; }
  .code-usage p { font-size: 16px; }

  .listing { padding: 110px var(--gutter) 64px; gap: 40px; }
  .listing-head { gap: 24px; }
  .listing-head p { font-size: 16px; }

  /* Too narrow for three columns — let the table scroll sideways instead of
     crushing the institution names. */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .code-table { min-width: 560px; font-size: 14px; }

  /* Give the sideways scroll a visible affordance. */
  .table-wrap::-webkit-scrollbar { height: 6px; }
  .table-wrap::-webkit-scrollbar-track { background: transparent; }
  .table-wrap::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--stroke-default);
  }

  .table-wrap {
    scrollbar-width: thin;
    scrollbar-color: var(--stroke-default) transparent;
  }

  .table-wrap:focus-visible {
    outline: 2px solid var(--surface-light);
    outline-offset: 2px;
  }
  .code-table th,
  .code-table td { padding: 16px 12px; }

  .lookup { padding: 110px var(--gutter) 64px; gap: 48px; }
  .lookup-head { gap: 24px; }
  .lookup-head p { font-size: 16px; }

  .finder { gap: 28px; padding: 24px 20px; }
  .finder-head p { font-size: 16px; }
  .finder-fields { gap: 16px; }

  .panel-footer { padding: 48px 20px; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}

.swift-countries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.swift-countries li > div {
  background: var(--input-bg);
  border: 0.5px solid #3E3E3E;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  gap: 12px;
}

.swift-countries li a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swift-countries li .count {
  border-radius: 20px;
  padding: 2px 8px;
  border: 0.5px solid #3E3E3E;
  background: #3E3E3E;
}

/* --------------------------------------------------------------------------
   Browse-by-country page — back link, heading, country chips
   (Figma SEPA 8097:2207)
   -------------------------------------------------------------------------- */

/* Back button + breadcrumb trail, top-left of the hero. */
.page-back {
  position: absolute;
  top: 48px;
  left: var(--gutter);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.page-back-btn {
  padding: 12px 14px;
  background: #ffffff;
  color: var(--text-primary-inverse);
}

.page-back-btn img {
  width: 18px;
  height: 18px;
}

.page-crumbs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  letter-spacing: -0.36px;
  color: var(--text-primary);
}

.page-crumbs li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-crumbs li + li::before {
  content: "";
  width: 6.498px;
  height: 14.706px;
  background: url("img/crumb-slash.svg") no-repeat center / contain;
}

.page-crumbs a {
  color: var(--text-primary);
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.page-crumbs a:hover {
  opacity: 0.8;
}

/* Hero copy is 630px wide in the design. */
.lookup-head-narrow {
  width: 630px;
}

.country-browse {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 936px;
  max-width: 100%;
}

.country-browse-title {
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
}

/* Overrides for .swift-countries chips: darker pill, 24px flag, 20px name. */
.swift-countries.country-chips {
  column-gap: 24px;
}

.country-chips li > div {
  padding: 12px 20px 12px 12px;
  background: var(--surface-default);
}

.country-chips li a {
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
  color: #f4f4f4;
}

.country-chips .flag {
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 50%;
}

/* State chips have no flag and an underlined name. */
.country-chips-underline li a {
  text-decoration: underline;
  text-underline-position: from-font;
}

.country-chips .count {
  margin: 0;
  font-size: 12px;
  line-height: normal;
  color: var(--text-primary);
}

/* Nav overrides — responsive. */
@media (max-width: 1100px) {
  /* The drop-down spans the full screen width: it reaches past the glass bar
     by the header's side padding and starts where the header ends. */
  .nav.is-open .nav-glass .nav-links {
    top: calc(100% + 16px);
    left: -16px;
    right: -16px;
    gap: 4px;
    border-width: 1px 0;
    border-radius: 0;
  }

  .nav.is-open .nav-glass .nav-links a {
    padding: 14px 16px;
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  .nav-glass { padding: 8px 8px 8px 16px; }
  .nav.is-open .nav-glass .nav-links {
    top: calc(100% + 12px);
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
  }
}

/* Country participants page — title, table cells  (Figma SEPA 8097:2321) */
.listing-title {
  max-width: 577px;
  font-size: var(--h1);
  font-weight: 700;
  letter-spacing: var(--h1-tracking);
  line-height: 1.2;
}

.listing-copy-narrow {
  max-width: 737px;
}

.scheme-check {
  display: block;
  width: 22px;
  height: 22px;
}

/* UK sort code page  (Figma UK 8114:2970) */

/* Typed variant of .field: the real input sits inside the face. Empty and
   unfocused, only the label shows (as in Figma); once focused or filled the
   label becomes a caption above the value. */
.field-typed .field-face {
  pointer-events: auto;
  cursor: text;
}

.field-typed:focus-within .field-face {
  box-shadow: var(--shadow-input-focus);
}

.field-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  outline: none;
}

.field-input::placeholder {
  color: var(--text-secondary);
  font-weight: 400;
  opacity: 0.6;
}

.field-typed:not(:focus-within):has(.field-input:placeholder-shown) .field-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.finder-result {
  width: 100%;
  margin-top: -18px; /* 16px under the button rather than the card's 34px gap */
  padding: 12px 16px;
  border-radius: var(--radius-12);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.finder-result:empty {
  display: none;
}

.table-section {
  width: 1102px;
}

/* Range 119px / Notes 651px of the 1102px table. */
.code-table-ranges .col-code { width: 10.8%; }
.code-table-ranges .col-institution { width: 30.1%; }
.code-table-ranges .col-notes { width: 59.1%; }

/* US state routing page  (Figma 8114:9264) — 200 / flex / 248 / 137 / 138px of 1102px. */
.listing-copy-state { max-width: 513px; }
.code-table-routing .col-code { width: 18.1%; }
.code-table-routing .col-institution { width: auto; }
.code-table-routing .col-city { width: 22.5%; }
.code-table-routing .col-scheme { width: 12.5%; }

/* US routing number page  (Figma 8114:10741) — labels are 250px wide here. */
.detail-card-routing .detail-label { width: 250px; }
.detail-value-quiet { font-size: 14px; font-weight: 400; color: var(--text-secondary); }
.code-usage-narrow p { max-width: 697px; margin-inline: auto; }

/* Canada hub  (Figma 8114:9791 / 8115:12669) */
.lookup-head-formats { width: 907px; }
.lookup-head-formats .lede { max-width: 630px; }

.table-wrap-formats { width: 907px; }
.code-table-formats .col-format-label { width: 27.8%; } /* 252px of 907px */
.code-table-formats th { font-weight: 400; }
.format-parts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.badge-code {
  padding: 2px 8px;
  background: var(--text-primary-inverse);
  color: var(--text-primary);
  font-size: 12px;
}

/* Number 108px / Institution 633px / Notes 360px of the 1102px table. */
.code-table-inst .col-code { width: 9.8%; }
.code-table-inst .col-institution { width: 57.5%; }
.code-table-inst .col-notes { width: 32.7%; }

.table-section-spaced { margin-top: 40px; } /* 120px below the finder */

.table-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Result box with a check icon once the number is matched. */
.finder-result-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 12px;
  border: 0.5px solid var(--stroke-default);
  border-radius: var(--radius-16);
  background: #151515;
}

.finder-result-card.is-ok { font-weight: 700; }
.finder-result-card img { flex: none; width: 32px; height: 32px; }

/* NUBAN page  (Figma 8115:13028 / 8115:13223) */
.lookup-head-nuban { width: 693px; }

/* Institution 550px / NIP 104px / CBN 104px / USSD 330px of the 1102px table. */
.code-table-nuban .col-institution { width: 50%; }
.code-table-nuban .col-code { width: 9.5%; }
.code-table-nuban .col-ussd { width: 31%; }

/* Search page — home search bar under the lookup hero. */
.search-page { margin-top: 8px; }
.search-status { font-size: 14px; }
.search-status:empty { display: none; }
.code-table-search .col-institution { width: 60%; }
.code-table-search td.col-code { white-space: normal; } /* bank names may wrap */
.code-table-search .col-notes { width: 40%; }

/* BSB index: Institution flexes, Code and BSB numbers are 200px of 1102px.
   Institution names are the links here, so they carry the underline. */
.code-table-bsb .col-institution { width: 63.7%; }
.code-table-bsb .col-code { width: 18.15%; }
.code-table-bsb .col-count { width: 18.15%; }

.code-table-bsb td.col-institution a {
  text-decoration: underline;
  text-underline-position: from-font;
}

.code-table-bsb td.col-institution a:hover {
  text-decoration-thickness: 2px;
}

/* Related codes on the SWIFT, IFSC, BSB and routing detail pages. */
.code-table-related .col-code { width: 22%; }
.code-table-related .col-institution { width: auto; }
.code-table-related .col-city { width: 28%; }

/* --------------------------------------------------------------------------
   "Get the app" QR modal  (Figma Personal Website v3, 6543:52299)
   -------------------------------------------------------------------------- */
.app-modal {
  width: min(645px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 80px 120px;
  border: 0;
  border-radius: var(--radius-32);
  background: var(--surface-default);
  color: var(--text-primary);
  overflow: hidden;
}

.app-modal[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  animation: app-modal-in 0.2s ease-out;
}

.app-modal::backdrop { background: rgba(9, 9, 9, 0.7); }

html:has(.app-modal[open]) { overflow: hidden; }

@keyframes app-modal-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* 836x471 glow anchored 95px left of and 215px above the card. */
.app-modal-glow {
  position: absolute;
  top: -215px;
  left: -95px;
  width: 836px;
  height: 471px;
  pointer-events: none;
}

.app-modal-glow img {
  position: absolute;
  top: -65.34%;
  left: -36.81%;
  max-width: none;
}

.app-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  display: flex;
  padding: 12px;
  border-radius: var(--radius-rounded);
  background: #ffffff;
  transition: opacity 0.15s ease;
}

.app-modal-close:hover { opacity: 0.85; }

.app-modal-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

.app-modal-copy h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.app-modal-copy p {
  font-size: 18px;
  line-height: normal;
  color: var(--text-secondary);
}

.app-modal-qr {
  position: relative;
  width: 249.5px;
  height: 249.5px;
  border-radius: var(--radius-16);
}

@media (max-width: 720px) {
  .app-modal { padding: 72px 24px 40px; }
  .app-modal-copy h2 { font-size: 24px; }
  .app-modal-copy p { font-size: 16px; }
}

.code-usage-flush {
  margin-top: 0;
}

/* About page: a wider detail card for long source descriptions, built from
   a <dl> so the browser's default list margins need resetting. */
.detail-card-wide {
  width: 837px;
}

/* Full sentences read better at regular weight than the 500 used for codes. */
.detail-card-wide .detail-value {
  font-weight: 400;
  line-height: 1.4;
}

dl.detail-rows,
.detail-rows dd {
  margin: 0;
}

.detail-label a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-position: from-font;
}

/* Links inside detail rows and usage copy read as links, like the table BICs. */
.detail-value a,
.code-usage a {
  text-decoration: underline;
  text-underline-position: from-font;
}

.detail-value a:hover,
.code-usage a:hover {
  text-decoration-thickness: 2px;
}

.code-usage .note {
  font-size: 14px;
  letter-spacing: 0;
}

/* Browse-by-country page — responsive. */
@media (max-width: 1100px) {
  .swift-countries { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  /* Keep the trail on one line beside Back; long names truncate, the current page stays whole. */
  .page-back { top: 24px; right: var(--gutter); gap: 16px; }
  .page-back-btn { flex: none; padding: 4px 8px; font-size: 14px; }
  .page-crumbs { font-size: 14px; flex-wrap: nowrap; min-width: 0; gap: 8px; }
  .page-crumbs li { min-width: 0; gap: 8px; }
  .page-crumbs li:first-child,
  .page-crumbs li:last-child { flex: none; }
  .page-crumbs a,
  .page-crumbs span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .page-crumbs li + li::before { flex: none; }
  .field-input { font-size: 16px; } /* below 16px iOS zooms on focus */
  .swift-countries.country-chips { row-gap: 16px; }
  .country-chips li a { font-size: 18px; }
}

/* Phones: one chip per row, each spanning the full width with the count on the right. */
@media (max-width: 560px) {
  .swift-countries { grid-template-columns: 100%; }

  .swift-countries li > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
}

/* Phones: each table row becomes a labelled card instead of a sideways scroll. */
@media (max-width: 600px) {
  .code-table.code-table-stack { min-width: 0; table-layout: auto; }

  .code-table-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .code-table-stack,
  .code-table-stack tbody,
  .code-table-stack tr,
  .code-table-stack td {
    display: block;
    width: 100%;
  }

  .code-table-stack tr {
    padding: 8px 0;
    border-bottom: 0.5px solid var(--stroke-default);
  }

  .code-table-stack tbody tr:last-child { border-bottom: 0; }

  .code-table.code-table-stack td,
  .code-table.code-table-stack td:not(:last-child) {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 16px;
    border: 0;
    text-align: right;
  }

  .code-table-stack td::before {
    content: attr(data-label);
    flex: none;
    font-weight: 700;
    text-align: left;
  }

  .code-table-stack td:empty::after {
    content: "—";
    color: var(--text-secondary);
  }

  /* Canada formats: the row label sits above its format. */
  .code-table.code-table-formats { min-width: 0; }

  .code-table-formats,
  .code-table-formats tbody,
  .code-table-formats tr,
  .code-table-formats th,
  .code-table-formats td {
    display: block;
    width: 100%;
  }

  .code-table-formats tr:not(:last-child) { border-bottom: 0.5px solid var(--stroke-default); }
  .code-table.code-table-formats th { padding-bottom: 0; border: 0; font-weight: 700; }
  .code-table.code-table-formats td { border: 0; }
}

@media (max-width: 420px) {
  .nav-glass .nav-actions { gap: 8px; }
  .nav-cta-long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
/* --------------------------------------------------------------------------
   Header floats over the hero (Figma: the page frame starts at y=0 and the
   nav sits on top of it, so the hero background and glow run behind the bar).
   Each hero's top padding grows by the nav's height, so content stays where
   it was; only the background moves up under the header.
   -------------------------------------------------------------------------- */

:root { --nav-h: 106px; }

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.hero { padding-top: calc(112px + var(--nav-h)); }

.lookup,
.listing,
.code-detail { padding-top: calc(190px + var(--nav-h)); }

.page-back { top: calc(48px + var(--nav-h)); }

@media (max-width: 1100px) {
  :root { --nav-h: 108px; }

  .hero { padding-top: calc(72px + var(--nav-h)); }

  .lookup,
  .listing,
  .code-detail { padding-top: calc(150px + var(--nav-h)); }
}

@media (max-width: 720px) {
  :root { --nav-h: 84px; }

  .hero { padding-top: calc(48px + var(--nav-h)); }

  .lookup,
  .listing,
  .code-detail { padding-top: calc(110px + var(--nav-h)); }

  .page-back { top: calc(24px + var(--nav-h)); }
}

/* --------------------------------------------------------------------------
   .lookup, .listing and .code-detail: 1256px wide and centred on desktop (the same shell
   as .panels and the nav bar), full width below. On desktop the section
   edge is the content edge, so the side padding and the Back link's offset
   drop to 0; under 1300px the page gutter takes over again.
   -------------------------------------------------------------------------- */

.lookup,
.listing,
.code-detail {
  width: 100%;
  max-width: 1256px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.lookup > .page-back,
.listing > .page-back,
.code-detail > .page-back {
  left: 0;
}

@media (max-width: 1300px) {
  .lookup,
  .listing,
  .code-detail {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .lookup > .page-back,
  .listing > .page-back,
  .code-detail > .page-back {
    left: var(--gutter);
  }
}

/* 404 page: directory shortcuts */
.nf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
