/* ============================================================
   OpenPay — one-page site
   "Heritage, modernized": deep navy + vibrant gold (from the logo)
   on warm ivory, with a teal complementary accent.
   Display: Bricolage Grotesque · Body: Hanken Grotesk · Mono: Courier
   ============================================================ */

:root {
  /* Brand — navy + gold from the OpenPay logo */
  --navy-900: #0c1830;
  --navy-800: #112038;
  --navy-700: #16294b;
  --navy:     #1b2f5e;
  --navy-600: #25407a;
  --navy-500: #2f4f93;

  --gold:     #f2a93d;
  --gold-600: #e08f2a;
  --gold-300: #f7c977;
  --gold-tint:#fdf3e0;

  --blue:     #2f6fd0;   /* supporting */
  --blue-700: #1f5bb5;

  --teal:     #1f9e8c;   /* informational / test mode */
  --teal-700: #157a6c;
  --teal-tint:#e4f4f1;

  /* Surfaces — cool bluish off-white */
  --cream:    #f3f6fb;
  --cream-2:  #e8eef7;
  --card:     #ffffff;
  --card-2:   #f9fbfe;
  --tint:     #eef2f9;
  --border:   #e1e7f0;
  --border-strong: #cfd8e6;

  /* Ink on light */
  --ink:   #182a4d;
  --body:  #4d5667;
  --muted: #79808f;
  --faint: #aab2c0;

  /* On dark */
  --on-dark:      #f2efe8;
  --on-dark-soft: rgba(242,239,232,0.80);
  --on-dark-mute: rgba(242,239,232,0.55);
  --hairline-dark: rgba(242,239,232,0.16);

  /* Gradients */
  --grad-gold: linear-gradient(135deg, #f6b656, #e58f29);
  --grad-navy: linear-gradient(140deg, #21396a, #12233f);

  /* Shadows — warm */
  --shadow:    0 2px 14px rgba(24, 36, 64, 0.08);
  --shadow-md: 0 12px 30px rgba(18, 30, 56, 0.12);
  --shadow-lg: 0 30px 64px rgba(10, 22, 44, 0.24);
  --shadow-gold: 0 12px 28px rgba(224, 143, 42, 0.36);
  --ring: 0 0 0 3px rgba(242, 169, 61, 0.45);

  /* Type */
  --display: 'Sora', 'Hanken Grotesk', 'Segoe UI', sans-serif;
  --sans: 'Hanken Grotesk', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Courier New', Courier, monospace;

  /* Layout */
  --maxw: 1160px;
  --gutter: 20px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-chip: 9px;
  --header-h: 64px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--body);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* global grain */
/* global grain (page background stays a clean bluish off-white — texture lives only on dark sections) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("assets/grain.png");
  background-size: 220px 220px;
  opacity: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
.site-header, main, .site-footer { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

.mono { font-family: var(--mono); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { scroll-margin-top: calc(var(--header-h) + 14px); }
.section { padding: clamp(56px, 9vw, 116px) 0; }
.section--tight { padding: clamp(44px, 7vw, 84px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow--muted { color: var(--muted); }
.eyebrow--muted::before { background: var(--border-strong); }

h2.section-title {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.06;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-lead {
  margin-top: 16px;
  font-size: clamp(16.5px, 1.9vw, 19px);
  color: var(--body);
  max-width: 56ch;
  text-wrap: pretty;
}
.section-head { max-width: 660px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans);
  font-size: 15.5px; font-weight: 700; line-height: 1;
  padding: 14px 24px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-gold); color: var(--navy-900); box-shadow: var(--shadow-gold); }
.btn-primary:hover { box-shadow: 0 16px 34px rgba(224,143,42,0.45); transform: translateY(-2px); }
.btn-secondary { background: var(--card); color: var(--navy); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--navy); background: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); padding: 10px 6px; }
.btn-ghost:hover { color: var(--gold-600); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .16s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.tlink { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--navy); }
.tlink .arrow { transition: transform .16s ease; }
.tlink:hover { color: var(--gold-600); }
.tlink:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 246, 251, 0.84);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cobrand-divider { width: 1px; height: 30px; background: var(--border-strong); flex: none; }
.cobrand { display: flex; align-items: center; }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header-nav .navlink {
  display: none; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap;
  padding: 9px 13px; border-radius: 9px; transition: color .15s ease, background .15s ease;
}
.header-nav .navlink:hover { color: var(--gold-600); background: var(--gold-tint); }
.header-signin {
  display: none; align-items: center; font-size: 15px; font-weight: 600; white-space: nowrap;
  color: var(--muted); padding: 9px 13px; border-radius: 9px; margin-right: 12px;
}
.header-signin:visited { color: var(--muted); }
.header-signin:hover { color: var(--gold-600); background: var(--gold-tint); }
.header-cta { display: none; }

.menu-btn {
  margin-left: auto; display: inline-flex; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border-strong); border-radius: 11px; cursor: pointer;
}
.menu-btn span { width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--cream); padding: 12px var(--gutter) 22px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 8px; font-size: 16px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-nav a.signin { color: var(--muted); font-weight: 500; }
.mobile-nav .btn { margin-top: 16px; }

/* real brand assets */
.logo-openpay { display: inline-flex; align-items: center; }
.logo-img { height: 38px; width: auto; display: block; }
.footer-brand .logo-img { height: 38px; }
.powered-img { height: 56px; width: auto; display: block; }
.footer-cobrand .powered-img { height: 58px; }

@media (max-width: 600px) {
  .header-inner .cobrand-divider, .header-inner .cobrand { display: none; }
}

/* ---------- generic dark section scaffold ---------- */
.darksec {
  position: relative;
  background: var(--navy-800);
  background-image: linear-gradient(180deg, rgba(12,24,48,0.30), rgba(12,24,48,0.30)), url("assets/mesh-dark.png");
  background-size: cover; background-position: center;
  color: var(--on-dark);
  overflow: hidden;
}
.darksec::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("assets/grain.png"); background-size: 220px;
  opacity: 0.4; mix-blend-mode: overlay; pointer-events: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-900);
  /* Caribbean sea — deep ocean up top (keeps the headline legible) melting
     into turquoise shallows, with two soft pools of sunlit water. */
  background-image:
    radial-gradient(115% 80% at 82% 108%, rgba(86, 230, 207, 0.55), rgba(86, 230, 207, 0) 56%),
    radial-gradient(95% 70% at 12% 100%, rgba(31, 158, 140, 0.42), rgba(31, 158, 140, 0) 60%),
    linear-gradient(168deg,
      #0a1730 0%,
      #0c2c4a 34%,
      #0e5a6e 62%,
      #14908f 84%,
      #2bbfac 100%);
  background-size: cover; background-position: center;
  color: var(--on-dark);
  padding: clamp(52px, 8vw, 104px) 0 clamp(56px, 9vw, 110px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("assets/grain.png"); background-size: 220px;
  opacity: 0.32; mix-blend-mode: overlay; pointer-events: none;
}
/* drifting surface glints — light caustics rippling across the water */
.hero::after {
  content: ""; position: absolute; inset: -20%;
  background-image:
    radial-gradient(closest-side, rgba(255,255,255,0.12), rgba(255,255,255,0) 70%),
    radial-gradient(closest-side, rgba(186,247,236,0.10), rgba(186,247,236,0) 70%),
    radial-gradient(closest-side, rgba(255,255,255,0.08), rgba(255,255,255,0) 70%);
  background-size: 46% 30%, 38% 26%, 30% 22%;
  background-position: 70% 92%, 22% 78%, 48% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  animation: heroCaustics 16s ease-in-out infinite alternate;
}
@keyframes heroCaustics {
  from { transform: translate3d(-1.5%, 0, 0) scale(1); opacity: 0.85; }
  to   { transform: translate3d(2%, -1.5%, 0) scale(1.06); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
}
.hero-inner { position: relative; z-index: 2; display: grid; gap: clamp(40px, 5vw, 60px); }
.hero-trustpill {
  display: inline-flex; align-items: center; gap: 9px; align-self: start; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--gold-300);
  background: rgba(242,169,61,0.12); border: 1px solid rgba(242,169,61,0.30);
  padding: 8px 15px 8px 12px; border-radius: 999px;
}
.hero-trustpill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; box-shadow: 0 0 0 4px rgba(242,169,61,0.25); }
.hero h1 {
  font-family: var(--display);
  margin-top: 20px;
  font-size: clamp(34px, 7.6vw, 60px);
  line-height: 1.02; font-weight: 700; letter-spacing: -0.028em;
  color: #fbf7ef; text-wrap: balance; max-width: 15ch;
}
.hero h1 .hl-accent { color: var(--gold); }
.hero .subhead {
  margin-top: 20px; font-size: clamp(16.5px, 2.1vw, 20px); line-height: 1.55;
  color: var(--on-dark-soft); max-width: 52ch; text-wrap: pretty;
}
.hero-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 13px; }
.hero .btn-secondary { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.26); }
.hero .btn-secondary:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.5); }
.hero-trustline { margin-top: 20px; font-size: 13.5px; color: var(--on-dark-mute); display: flex; align-items: center; gap: 8px; }
.hero-trustline svg { flex: none; color: var(--gold-300); }

/* hero visual — checkout card */
.hero-visual { position: relative; z-index: 2; min-height: 300px; display: grid; align-content: center; }
.portal-card {
  background: #fff; border: 1px solid rgba(255,255,255,0.6); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 420px; width: 100%; margin-inline: auto;
}
.portal-top { background: var(--grad-navy); padding: 17px 19px; display: flex; align-items: center; justify-content: space-between; }
.portal-top .pt-title { color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; display: flex; align-items: center; gap: 9px; }
.portal-top .pt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.portal-top .pt-badge { font-size: 11px; font-weight: 700; color: var(--gold-300); background: rgba(242,169,61,0.16); padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; }
.portal-body { padding: 22px 19px; display: grid; gap: 15px; }
.pb-row { display: flex; align-items: center; justify-content: space-between; }
.pb-label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; white-space: nowrap; }
.pb-amount { font-family: var(--mono); font-size: 31px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.pb-amount .ccy { font-size: 15px; color: var(--muted); font-weight: 600; }
.pb-line { height: 1px; background: var(--border); }
.pb-meta { display: flex; justify-content: space-between; font-size: 12.5px; }
.pb-meta .k { color: var(--muted); }
.pb-meta .v { font-family: var(--mono); color: var(--ink); }
.pb-pay { margin-top: 4px; background: var(--grad-gold); color: var(--navy-900); text-align: center; padding: 13px; border-radius: 11px; font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-gold); }
.portal-foot { padding: 12px 19px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.portal-foot svg { color: var(--teal); }

.hero-chip {
  position: absolute; background: #fff; border: 1px solid rgba(255,255,255,0.7); white-space: nowrap;
  border-radius: 13px; box-shadow: var(--shadow-md); padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--ink);
}
.hero-chip .ci { width: 28px; height: 28px; border-radius: 8px; background: var(--gold-tint); display: grid; place-items: center; color: var(--gold-600); flex: none; }
.hero-chip.c-link { top: -34px; left: -6px; }
.hero-chip.c-qr { bottom: 8%; right: -8px; }
.hero-chip.c-qr .ci { background: var(--teal-tint); color: var(--teal-700); }

/* ---------- feature cards ---------- */
.feature-grid { margin-top: clamp(36px, 4vw, 56px); display: grid; gap: 18px; grid-template-columns: 1fr; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.feature-card { text-align: center; }
.feature-icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center; font-size: 27px; line-height: 1;
  margin: 4px auto 22px;
  background: linear-gradient(140deg, #fff5e3, #fdebcb);
  border: 1px solid #f6dcae; color: var(--gold-600);
}
.feature-icon.i-link   { background: linear-gradient(140deg, #fff5e3, #fdebcb); border-color: #f6dcae; color: var(--gold-600); }
.feature-icon.i-qr     { background: linear-gradient(140deg, #e8f6f3, #d6efea); border-color: #bfe5dd; color: var(--teal-700); }
.feature-icon.i-api    { background: linear-gradient(140deg, #e9f1fd, #d8e6fa); border-color: #c2d8f4; color: var(--blue-700); }
.feature-icon.i-settle { background: linear-gradient(140deg, #e8f5ec, #d7eede); border-color: #bfe3c9; color: #1f8a5b; }
.feature-card h3 { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.feature-card p { margin-top: 9px; font-size: 15px; color: var(--body); line-height: 1.55; }

/* ---------- card / currency matrix ---------- */
.matrix {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: clamp(22px, 4vw, 38px); margin-top: clamp(30px, 4vw, 48px);
}
.matrix-row { display: grid; gap: 26px; }
.matrix-group .mg-head { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.matrix-group .mg-head .mg-sub { font-size: 11.5px; letter-spacing: 0; text-transform: none; color: var(--faint); font-weight: 500; }
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.net-card {
  position: relative; border-radius: 13px; padding: 16px 15px; min-height: 84px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--border); background: var(--card-2); overflow: hidden;
}
.net-card .nc-icon { font-size: 32px; line-height: 1; }
.net-card .nc-icon.nc-visa { color: #1a1f71; }
.net-card .nc-icon.nc-mc   { color: #eb001b; }
.net-card .nc-icon.nc-amex { color: #2e77bb; }
.net-card .nc-name { font-family: var(--display); font-weight: 700; font-size: 14.5px; color: var(--ink); letter-spacing: -0.01em; }
.net-card .nc-tag { font-size: 11px; color: var(--muted); font-weight: 500; }
.net-card.local {
  background: var(--grad-navy); border-color: transparent; color: #fff;
}
.net-card.local .nc-name { color: #fff; }
.net-card.local .nc-tag { color: var(--gold-300); }
.net-card.local .nc-icon { color: var(--gold-300); }
.ccy-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.ccy-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold-tint); border: 1px solid #f3ddb6; border-radius: 12px; padding: 13px 17px;
  font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--gold-600);
}
.ccy-pill .ccy-sub { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--muted); }
.ccy-pill .ccy-flag { width: 22px; height: 16px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); flex: none; }
.matrix-note { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--body); display: flex; gap: 11px; align-items: flex-start; }
.matrix-note svg { flex: none; margin-top: 1px; color: var(--gold-600); }

/* ---------- test mode (teal accent) ---------- */
.testmode {
  position: relative; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden;
}
.testmode-grid { display: grid; }
.testmode-copy { padding: clamp(28px, 5vw, 54px); }
.testmode-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--teal-700); background: var(--teal-tint); border: 1px solid #c7e8e1; padding: 7px 13px; border-radius: 999px; margin-bottom: 20px;
}
.testmode-badge .tb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.testmode-copy h2 { font-family: var(--display); font-size: clamp(25px, 3.8vw, 36px); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.08; }
.testmode-copy p { margin-top: 15px; font-size: 16.5px; color: var(--body); max-width: 46ch; }
.testmode-steps { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px; }
.tm-step { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--body); background: var(--cream); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
.tm-step .n { font-family: var(--mono); font-weight: 700; color: var(--teal-700); }
.testmode-visual { background: linear-gradient(160deg, #f4faf8, #eef6f4); border-top: 1px solid var(--border); padding: clamp(26px, 4vw, 42px); display: grid; place-items: center; }
.env-toggle { background: #fff; border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--shadow-md); width: 100%; max-width: 340px; overflow: hidden; }
.env-toggle .et-bar { display: flex; padding: 5px; gap: 4px; background: #eef1f3; border-bottom: 1px solid var(--border); }
.env-toggle .et-tab { flex: 1; text-align: center; font-size: 12.5px; font-weight: 700; padding: 10px; border-radius: 9px; color: var(--muted); }
.env-toggle .et-tab.active { background: #fff; color: var(--teal-700); box-shadow: var(--shadow); }
.env-toggle .et-body { padding: 19px; display: grid; gap: 13px; }
.et-line { display: flex; align-items: center; justify-content: space-between; }
.et-line .etl-k { font-size: 12px; color: var(--muted); }
.et-line .etl-v { font-family: var(--mono); font-size: 13px; color: var(--ink); font-weight: 700; }
.et-sim { background: var(--teal-tint); border: 1px dashed #8fcfc4; color: var(--teal-700); font-size: 12px; font-weight: 700; text-align: center; padding: 10px; border-radius: 9px; }

/* ---------- developers (deepest dark) ---------- */
.dev {
  position: relative; border-radius: var(--radius); padding: clamp(30px, 4.5vw, 48px); color: var(--on-dark); overflow: hidden;
  background: var(--navy-900);
  background-image: linear-gradient(165deg, rgba(8,16,32,0.45), rgba(8,16,32,0.72)), url("assets/mesh-dark.png");
  background-size: cover; background-position: center;
}
.dev::after { content: ""; position: absolute; inset: 0; background-image: url("assets/grain.png"); background-size: 220px; opacity: .4; mix-blend-mode: overlay; pointer-events: none; }
.dev-grid { position: relative; z-index: 2; display: grid; gap: 30px; align-items: center; }
.dev .eyebrow { color: var(--gold-300); }
.dev .eyebrow::before { background: var(--gold); }
.dev h2 { font-family: var(--display); color: #fbf7ef; font-size: clamp(24px, 3.6vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.dev p { margin-top: 13px; font-size: 16.5px; color: var(--on-dark-soft); max-width: 46ch; }
.dev-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.dev .btn-secondary { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.22); }
.dev .btn-secondary:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.45); }
.code-card { background: rgba(7,14,28,0.82); border: 1px solid rgba(255,255,255,0.10); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,0.45); backdrop-filter: blur(4px); }
.code-card .cc-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.code-card .cc-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-card .cc-file { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: #7d8ca0; }
.code-card pre { margin: 0; padding: 17px 19px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: #d4def0; overflow-x: auto; }
.code-card .t-key { color: var(--gold-300); }
.code-card .t-str { color: #74d6b4; }
.code-card .t-num { color: #f0a96d; }
.code-card .t-com { color: #6b7a8f; }

/* ---------- request access ---------- */
.request { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.request-grid { display: grid; }
.request-aside { position: relative; padding: clamp(30px, 5vw, 52px); color: var(--on-dark); overflow: hidden; background: var(--navy-800); background-image: url("assets/mesh-gold.png"); background-size: cover; background-position: center; }
.request-aside::before { content: ""; position: absolute; inset: 0; background-image: url("assets/grain.png"); background-size: 220px; opacity: .4; mix-blend-mode: overlay; }
.request-aside .eyebrow { color: var(--gold-300); }
.request-aside .eyebrow::before { background: var(--gold); }
.request-aside h2 { position: relative; font-family: var(--display); font-size: clamp(26px, 3.8vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; color: #fbf7ef; }
.request-aside .ra-lead { position: relative; margin-top: 15px; font-size: 16.5px; color: var(--on-dark-soft); max-width: 38ch; }
.request-list { position: relative; margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.request-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--on-dark); }
.request-list li svg { flex: none; margin-top: 2px; color: var(--gold); }
.request-trust { position: relative; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hairline-dark); font-size: 13px; color: var(--on-dark-mute); }

.request-form { padding: clamp(30px, 5vw, 52px); }
.form-field { margin-bottom: 17px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.form-field label .opt { color: var(--faint); font-weight: 500; }
.form-control {
  width: 100%; font-family: inherit; font-size: 15.5px; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--border-strong); border-radius: 11px; padding: 13px 15px;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.form-control::placeholder { color: var(--faint); }
.form-control:hover { border-color: #cdbfa6; }
.form-control:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(242,169,61,0.18); }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: grid; gap: 17px; }
.form-field.invalid .form-control { border-color: #d64545; background: #fdf6f6; }
.form-field .err { display: none; margin-top: 6px; font-size: 12.5px; color: #c23434; }
.form-field.invalid .err { display: block; }
.form-foot { margin-top: 8px; }
.form-note { margin-top: 15px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.form-note a { font-weight: 700; color: var(--gold-600); }

/* honeypot — kept in the layout but off-screen, hidden from AT */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* submit error banner (network/server failure) */
.form-error { display: none; margin-top: 14px; font-size: 13px; line-height: 1.5; color: #c23434; background: #fdf6f6; border: 1px solid #f1c9c9; border-radius: 10px; padding: 11px 14px; }
.form-error.show { display: block; }
.form-error a { font-weight: 700; color: #c23434; text-decoration: underline; }

/* submit button while sending */
.btn[aria-busy="true"] { opacity: .65; cursor: progress; pointer-events: none; }

.form-success { display: none; text-align: center; padding: 14px; }
.form-success.show { display: block; }
.form-success .fs-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-700); display: grid; place-items: center; margin: 6px auto 18px; }
.form-success h3 { font-family: var(--display); font-size: 22px; color: var(--ink); font-weight: 700; }
.form-success p { margin-top: 11px; font-size: 15px; color: var(--body); }
.form-success .mono { color: var(--gold-600); font-weight: 700; }

.mailto-block { display: none; }
.mailto-block.show { display: block; }
.request-form.mode-mailto .form-live { display: none; }

/* ---------- footer ---------- */
.site-footer {
  position: relative; color: var(--on-dark); overflow: hidden;
  background: var(--navy-900);
  /* Caribbean sea — same treatment as the hero: deep ocean up top
     (keeps footer text legible) melting into turquoise shallows below. */
  background-image:
    radial-gradient(115% 80% at 82% 108%, rgba(86, 230, 207, 0.55), rgba(86, 230, 207, 0) 56%),
    radial-gradient(95% 70% at 12% 100%, rgba(31, 158, 140, 0.42), rgba(31, 158, 140, 0) 60%),
    linear-gradient(168deg,
      #0a1730 0%,
      #0c2c4a 34%,
      #0e5a6e 62%,
      #14908f 84%,
      #2bbfac 100%);
  background-size: cover; background-position: center;
  padding: clamp(48px, 7vw, 76px) 0 30px;
}
.site-footer::before { content: ""; position: absolute; inset: 0; background-image: url("assets/grain.png"); background-size: 220px; opacity: .32; mix-blend-mode: overlay; pointer-events: none; }
/* drifting surface glints — light caustics rippling across the water */
.site-footer::after {
  content: ""; position: absolute; inset: -20%;
  background-image:
    radial-gradient(closest-side, rgba(255,255,255,0.12), rgba(255,255,255,0) 70%),
    radial-gradient(closest-side, rgba(186,247,236,0.10), rgba(186,247,236,0) 70%),
    radial-gradient(closest-side, rgba(255,255,255,0.08), rgba(255,255,255,0) 70%);
  background-size: 46% 30%, 38% 26%, 30% 22%;
  background-position: 70% 92%, 22% 78%, 48% 100%;
  background-repeat: no-repeat;
  pointer-events: none; z-index: 1;
  animation: heroCaustics 16s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .site-footer::after { animation: none; }
}
.footer-inner { position: relative; z-index: 2; }
.site-footer > .container { position: relative; z-index: 2; }
.footer-top { display: grid; gap: 36px; }
.footer-brand { max-width: 330px; }
.footer-brand .fb-desc { margin-top: 16px; font-size: 13.5px; color: var(--on-dark-mute); line-height: 1.6; }
.footer-cobrand { margin-top: 20px; }
/* logos are navy+gold for light bg — knock out to white on the dark footer */
.site-footer .logo-img { filter: brightness(0) invert(1); }
.site-footer .powered-img { filter: brightness(0) invert(1); opacity: 0.9; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 15px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { font-size: 14.5px; color: var(--on-dark-soft); }
.footer-col a:hover { color: var(--gold); }
.footer-col a .mono { font-size: 13.5px; }
.footer-bottom { position: relative; z-index: 2; margin-top: clamp(34px, 5vw, 50px); padding-top: 24px; border-top: 1px solid var(--hairline-dark); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; color: var(--on-dark-mute); }
.footer-bottom .sep { color: rgba(242,239,232,0.3); }

/* TODO markers */
.todo { font-family: var(--mono); font-size: 0.82em; color: var(--gold-600); background: var(--gold-tint); border: 1px solid #f3ddb6; border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.todo-tag { display: inline-block; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--gold-600); background: var(--gold-tint); border: 1px solid #f3ddb6; border-radius: 4px; padding: 1px 5px; vertical-align: middle; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header { position: static; }
  #tweaks-root, body::after { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 560px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .matrix-row { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .testmode-grid { grid-template-columns: 1.1fr 0.9fr; }
  .testmode-visual { border-top: none; border-left: 1px solid var(--border); }
  .dev-grid { grid-template-columns: 1fr 1fr; }
  .request-grid { grid-template-columns: 0.92fr 1.08fr; }
  .footer-top { grid-template-columns: 1.2fr 2fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .hero-chip { font-size: 13px; }
}
@media (min-width: 940px) {
  :root { --header-h: 86px; }
  .menu-btn { display: none; }
  .header-nav .navlink { display: inline-flex; }
  .header-signin { display: inline-flex; }
  .header-cta { display: inline-flex; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
