:root {
  --bg: #f3f5fa;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #eef3f8;
  --ink: #182235;
  --muted: #5e6b7f;
  --line: rgba(24, 34, 53, .11);
  --line-strong: rgba(24, 34, 53, .18);
  --accent: #1d5bd6;
  --accent-strong: #143fa8;
  --accent-alt: #0b9484;
  --accent-warm: #b98932;
  --danger: #a93636;
  --max: 1240px;
  --shadow-panel: 0 24px 60px rgba(15, 23, 42, .09);
  --shadow-strong: 0 34px 88px rgba(15, 23, 42, .16);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
  font-family: "Plus Jakarta Sans", Inter, Aptos, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(29, 91, 214, .08), transparent 26rem),
    radial-gradient(circle at 94% 22%, rgba(11, 148, 132, .06), transparent 24rem),
    linear-gradient(180deg, #fcfcfd 0%, var(--bg-soft) 42%, var(--bg) 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(24, 34, 53, .025) 1px, transparent 1px),
    linear-gradient(rgba(24, 34, 53, .02) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
body.redirecting { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
::selection { color: #fff; background: var(--accent); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 10px 14px;
  color: #fff;
  background: var(--accent-strong);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.ambient-grid { display: none; }

/* Header */
.site-header {
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 34px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(24, 34, 53, .09);
  background: rgba(250, 252, 254, .92);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: .12em;
}
.brand img { width: 44px; height: 44px; flex: 0 0 auto; }
.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .61rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.primary-nav { display: flex; justify-content: center; align-items: center; gap: 26px; }
.primary-nav a {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: .91rem;
  font-weight: 650;
  transition: color .18s ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  transform: scaleX(0);
  transition: transform .18s ease;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-access {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: 1px solid rgba(20, 63, 168, .3);
  box-shadow: 0 10px 22px rgba(29, 91, 214, .17);
  font-size: .85rem;
  font-weight: 750;
}
.language-menu { position: relative; }
.language-menu summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  list-style: none;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu > div {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
}
.language-menu a { padding: 9px 10px; color: var(--muted); font-size: .78rem; }
.language-menu a:hover, .language-menu a[aria-current="true"] { color: var(--ink); background: var(--surface-muted); }
[dir="rtl"] .language-menu > div { right: auto; left: 0; }
.access-input-row input, .redirect-code, code, pre { direction: ltr; }
.menu-toggle { display: none; border: 0; background: transparent; }

/* Shared type */
main { min-height: 45vh; }
.content-page main { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--accent-strong);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow span {
  padding-right: 10px;
  color: var(--accent-alt);
  border-right: 1px solid var(--line-strong);
}
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { margin-top: 0; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.055em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 3rem); line-height: 1.08; letter-spacing: -.04em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.55rem); line-height: 1.2; letter-spacing: -.025em; }
p { line-height: 1.7; }
em { color: inherit; font-family: inherit; font-style: normal; font-weight: inherit; }

/* Vendno-style recipient entry */
.portal-stage {
  min-height: clamp(560px, calc(100vh - 72px), 720px);
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  padding: 56px 24px;
  background: url("/assets/img/access-gateway.webp") center center / cover no-repeat;
}
.portal-stage-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(242, 247, 252, .34), rgba(242, 247, 252, .08)),
    rgba(238, 244, 249, .16);
  backdrop-filter: blur(2px);
}
.portal-entry-wrap { width: min(100%, 560px); }
.portal-entry-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(29, 91, 214, .18), transparent 17rem),
    linear-gradient(145deg, rgba(13, 27, 49, .97), rgba(18, 42, 72, .96));
  border: 1px solid rgba(207, 225, 248, .15);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(12px);
}
.portal-entry-copy { display: grid; gap: 10px; padding: 4px 4px 18px; }
.portal-kicker {
  width: fit-content;
  margin: 0;
  color: #dce8fa;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.portal-entry-copy h1 {
  max-width: 9ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.portal-entry-copy > p:last-of-type {
  max-width: 46ch;
  margin: 0;
  color: rgba(230, 238, 249, .78);
  font-size: .92rem;
}
.portal-audiences { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.portal-audiences span {
  padding: 5px 8px;
  color: rgba(232, 241, 252, .76);
  border: 1px solid rgba(218, 232, 249, .13);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.access-panel {
  position: relative;
  padding: 16px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,253,.96));
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 20px 44px rgba(4, 8, 17, .22);
}
.access-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt), var(--accent-warm));
}
.access-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0 12px;
  border-bottom: 1px solid var(--line);
}
.access-panel-head span {
  display: block;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.access-panel-head h2 { margin: 3px 0 0; font-size: 1.1rem; letter-spacing: -.02em; }
.access-panel-head strong { color: var(--accent-strong); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.access-form { padding-top: 12px; }
.access-form > label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 750;
}
.access-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 8px;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid rgba(29, 91, 214, .14);
}
.access-input-row input {
  min-width: 0;
  min-height: 54px;
  padding: 8px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  outline: 0;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: .18em;
}
.access-input-row input::placeholder { color: rgba(94, 107, 127, .46); }
.access-input-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 91, 214, .1); }
.access-input-row button {
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(20, 63, 168, .24);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 22px rgba(29, 91, 214, .18);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.access-input-row button:hover { background: var(--accent-strong); }
.access-form-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-help, .form-feedback { margin: 9px 0 0; color: var(--muted); font-size: .72rem; }
.form-feedback { min-height: 1.2em; color: var(--danger); text-align: right; }

.home-assurance {
  width: min(var(--max), calc(100% - 48px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-panel);
}
.home-assurance article { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 24px; border-right: 1px solid var(--line); }
.home-assurance article:last-child { border-right: 0; }
.home-assurance article > span { color: var(--accent); font-size: .76rem; font-weight: 800; }
.home-assurance h2 { margin: 0 0 7px; font-size: 1.05rem; letter-spacing: -.02em; }
.home-assurance p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.home-business-section {
  width: min(var(--max), calc(100% - 48px));
  margin: 36px auto 96px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}
.home-business-copy, .home-business-grid {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-panel);
}
.home-business-copy h2 { margin: 22px 0 16px; font-size: clamp(1.8rem, 3.3vw, 3rem); }
.home-business-copy > p:not(.eyebrow) { color: var(--muted); }
.text-link { display: inline-flex; gap: 16px; margin-top: 12px; color: var(--accent-strong); font-weight: 750; }
.home-business-grid { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.home-business-grid a { display: grid; align-content: end; gap: 8px; min-height: 180px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-business-grid a:nth-child(2n) { border-right: 0; }
.home-business-grid a:nth-last-child(-n+2) { border-bottom: 0; }
.home-business-grid a:hover { background: rgba(29, 91, 214, .035); }
.home-business-grid strong { font-size: 1.02rem; }
.home-business-grid span { color: var(--muted); font-size: .82rem; }

/* Internal pages */
.page-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(380px, 1.04fr);
  gap: 22px;
  align-items: stretch;
  padding: 46px 0 28px;
}
.page-heading, .page-object, .legal-index {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,252,.96));
  box-shadow: var(--shadow-panel);
}
.page-heading { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 48px); }
.page-heading::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt), var(--accent-warm));
}
.page-heading h1 { max-width: 12ch; margin: 22px 0 20px; font-size: clamp(2.5rem, 4.6vw, 4.5rem); }
.page-lead { max-width: 680px; margin: 0; color: var(--muted); font-size: clamp(.98rem, 1.3vw, 1.14rem); }
.page-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding: 13px 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-size: .82rem;
  font-weight: 750;
}
.page-object { min-height: 440px; }
.page-object::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(16,31,50,.08)); pointer-events: none; }
.page-object img { width: 100%; height: 100%; object-fit: cover; }
.object-grid { display: none; }
.metrics-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 24px; border: 1px solid var(--line); background: rgba(255,255,255,.84); box-shadow: var(--shadow-panel); }
.metrics-row article { padding: 24px 28px; border-right: 1px solid var(--line); }
.metrics-row article:last-child { border-right: 0; }
.metrics-row strong { display: block; color: var(--ink); font-size: clamp(1.3rem, 2.5vw, 2.1rem); letter-spacing: -.04em; }
.metrics-row span { display: block; margin-top: 7px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.process-section, .bento-section, .api-reference, .faq-section { padding: 58px 0 12px; }
.process-section > header, .bento-section > header, .api-reference > header, .faq-section > header { display: grid; grid-template-columns: .32fr 1fr; gap: 28px; margin-bottom: 28px; }
.process-section > header h2, .bento-section > header h2, .api-reference > header h2, .faq-section > header h2 { max-width: 760px; margin: 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.process-grid article, .bento-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,252,.94));
  box-shadow: 0 14px 32px rgba(15,23,42,.055);
}
.process-grid article { min-height: 250px; display: flex; flex-direction: column; }
.process-grid > article > span { color: var(--accent); font-size: .78rem; font-weight: 800; }
.process-grid h3 { margin: auto 0 12px; }
.process-grid p { margin: 0; color: var(--muted); font-size: .86rem; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bento-card { min-height: 300px; }
.bento-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-alt)); opacity: .8; }
.bento-card > span { color: var(--accent-strong); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bento-card h3 { margin: 48px 0 14px; }
.bento-card p { color: var(--muted); font-size: .9rem; }
.bento-card ul { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.bento-card li { position: relative; padding-left: 16px; color: var(--muted); font-size: .78rem; }
.bento-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--accent-alt); }
.bento-card > a { display: inline-flex; gap: 14px; margin-top: 20px; color: var(--accent-strong); font-weight: 750; }
.api-reference { padding-bottom: 72px; }
.endpoint-list { border: 1px solid var(--line); background: rgba(255,255,255,.88); box-shadow: var(--shadow-panel); }
.endpoint-list article { display: grid; grid-template-columns: 90px minmax(260px, .7fr) 1fr; gap: 22px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.endpoint-list article:last-child { border-bottom: 0; }
.endpoint-list b { color: var(--accent-alt); font: 750 .72rem ui-monospace, monospace; }
.endpoint-list code { color: var(--ink); font: 650 .9rem ui-monospace, monospace; }
.endpoint-list p { margin: 0; color: var(--muted); font-size: .88rem; }
.code-sample { margin-top: 22px; border: 1px solid var(--line); background: #111d30; box-shadow: var(--shadow-panel); }
.code-sample > div { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); color: #edf4ff; }
.code-sample > div span { width: 8px; height: 8px; border-radius: 50%; background: #c54f4f; }
.code-sample > div span:nth-child(2) { background: var(--accent-warm); }
.code-sample > div span:nth-child(3) { background: var(--accent-alt); }
.code-sample > div b { margin-left: 7px; font-size: .76rem; }
.code-sample button { margin-left: auto; padding: 6px 9px; color: #dce8fa; background: transparent; border: 1px solid rgba(255,255,255,.16); cursor: pointer; }
.code-sample pre { margin: 0; padding: 24px; overflow: auto; color: #d7f4ef; font: 500 .84rem/1.75 ui-monospace, monospace; }
.faq-section { padding-bottom: 90px; }
.faq-list { margin-left: 32%; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 18px; padding: 22px 0; cursor: pointer; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--accent); font-size: 1.3rem; }
.faq-list details p { max-width: 760px; margin: 0 0 24px; color: var(--muted); }
.legal-hero { min-height: 430px; grid-template-columns: 1fr .38fr; }
.legal-index { justify-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; }
.legal-index b { color: var(--accent); font-size: 7rem; font-weight: 700; line-height: 1; }
.legal-index span { color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.legal-content { display: grid; grid-template-columns: .28fr 1fr; gap: 58px; padding: 52px 0 92px; }
.legal-content aside { align-self: start; position: sticky; top: 96px; display: grid; gap: 8px; padding: 18px 0; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); }
.legal-content aside span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.legal-content aside a { margin-top: 18px; color: var(--accent-strong); }
.legal-content article { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-content article h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.legal-content article p { color: var(--muted); }
.not-found-actions { display: flex; gap: 12px; padding: 0 0 80px; }
.not-found-actions a { padding: 12px 16px; border: 1px solid var(--line-strong); background: #fff; }

/* Footer */
.site-footer {
  width: 100%;
  margin: 0;
  color: rgba(239,245,253,.88);
  background:
    radial-gradient(circle at 90% 0%, rgba(29,91,214,.18), transparent 24rem),
    linear-gradient(180deg, #122038, #0d1728);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-brand, .footer-links, .footer-bottom { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.footer-brand { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 34px 0 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: rgba(232,240,251,.62); }
.footer-brand > p { max-width: 560px; margin: 0 0 0 auto; color: rgba(232,240,251,.72); }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); padding: 28px 0; }
.footer-links section { display: flex; flex-direction: column; gap: 9px; padding-right: 28px; }
.footer-links h2 { margin-bottom: 12px; color: #fff; font-size: .78rem; letter-spacing: .04em; }
.footer-links a { color: rgba(232,240,251,.74); font-size: .86rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; padding: 16px 0 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(232,240,251,.62); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-bottom a { color: #fff; }

/* Redirect state */
.redirect-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 20, 35, .28);
  backdrop-filter: blur(16px);
}
.redirect-overlay[hidden] { display: none; }
.redirect-field { display: none; }
.redirect-panel {
  position: relative;
  width: min(540px, 100%);
  padding: clamp(28px, 5vw, 44px);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 90px rgba(6, 16, 31, .24);
}
.redirect-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-alt)); }
.redirect-brand { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.redirect-brand img { width: 36px; height: 36px; }
.redirect-code { margin: 36px 0 8px; color: var(--accent-strong); font: 700 .78rem ui-monospace, monospace; letter-spacing: .3em; }
.redirect-panel h2 { margin: 0; max-width: 13ch; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.redirect-panel p { color: var(--muted); }
.redirect-progress { height: 4px; margin: 28px 0 12px; background: var(--surface-muted); overflow: hidden; }
.redirect-progress i { display: block; width: 34%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-alt)); animation: redirectProgress 1.35s var(--ease) infinite; }
.redirect-panel > strong { color: var(--muted); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; }
.redirect-panel button { margin-top: 24px; padding: 10px 13px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); cursor: pointer; }
.redirect-overlay.is-error .redirect-panel::before, .redirect-overlay.is-error .redirect-progress i { background: var(--danger); }
.redirect-overlay.is-error .redirect-progress i { width: 100%; animation: none; }
@keyframes redirectProgress { 0% { transform: translateX(-120%); } 100% { transform: translateX(400%); } }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto auto 1fr auto auto; gap: 12px; }
  .menu-toggle { display: inline-flex; width: 44px; height: 42px; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 4px; position: relative; border: 1px solid var(--line-strong); cursor: pointer; }
  .menu-toggle span { width: 18px; height: 2px; background: var(--ink); }
  .menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .primary-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 16px max(24px, calc((100vw - var(--max)) / 2)); background: rgba(250,252,254,.98); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-panel); }
  .site-header.nav-open .primary-nav { display: grid; }
  .primary-nav a { padding: 9px 12px; border: 1px solid var(--line); }
  .header-access { justify-self: end; }
  .page-hero { grid-template-columns: 1fr; }
  .page-object { min-height: 380px; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .site-header { min-height: 66px; padding-inline: 14px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: .82rem; }
  .header-access { min-height: 42px; padding: 0 12px; font-size: .72rem; }
  .content-page main, .home-assurance, .home-business-section, .footer-brand, .footer-links, .footer-bottom { width: min(100% - 24px, var(--max)); }
  .portal-stage { min-height: 610px; padding: 32px 12px; background-position: 61% center; }
  .portal-entry-card { padding: 18px; }
  .portal-entry-copy h1 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .access-input-row { grid-template-columns: 1fr; }
  .access-form-meta { grid-template-columns: 1fr; gap: 0; }
  .form-feedback { text-align: left; }
  .home-assurance { grid-template-columns: 1fr; }
  .home-assurance article { border-right: 0; border-bottom: 1px solid var(--line); }
  .home-assurance article:last-child { border-bottom: 0; }
  .home-business-section { grid-template-columns: 1fr; margin-bottom: 70px; }
  .page-hero { min-height: auto; padding-top: 28px; }
  .page-heading { min-height: 410px; }
  .page-object { min-height: 300px; }
  .metrics-row, .process-grid { grid-template-columns: 1fr; }
  .metrics-row article { border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics-row article:last-child { border-bottom: 0; }
  .process-grid article { min-height: 210px; }
  .process-section > header, .bento-section > header, .api-reference > header, .faq-section > header { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card { min-height: 260px; }
  .endpoint-list article { grid-template-columns: 70px 1fr; }
  .endpoint-list p { grid-column: 1 / -1; }
  .faq-list { margin-left: 0; }
  .legal-hero { grid-template-columns: 1fr; }
  .legal-index { min-height: 240px; }
  .legal-content { grid-template-columns: 1fr; gap: 28px; }
  .legal-content aside { position: static; }
  .footer-brand { grid-template-columns: 1fr; }
  .footer-brand > p { margin: 0; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header { grid-template-columns: minmax(0, 1fr) 44px 44px 46px; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .header-access { width: 46px; padding: 0; justify-content: center; overflow: hidden; font-size: 0; }
  .header-access span { font-size: 1rem; }
  .language-menu > div { width: min(280px, calc(100vw - 24px)); }
  .site-header.nav-open .primary-nav { grid-template-columns: 1fr; }
  .portal-stage { min-height: 590px; }
  .portal-entry-card { padding: 14px; }
  .portal-entry-copy { padding: 3px 2px 15px; }
  .access-panel { padding: 13px; }
  .access-input-row input { text-align: center; }
  .home-business-copy { padding: 26px 22px; }
  .home-business-grid { grid-template-columns: 1fr; }
  .home-business-grid a { min-height: 130px; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .home-business-grid a:last-child { border-bottom: 0 !important; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
