/* ============================================================
   JUREX — Public marketing site
   Built ON the existing Jurex app design system.
   Tokens are reused verbatim from the app; marketing-only
   layout primitives are added below. App files are untouched.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300..700;1,8..60,400..600&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* ---- Canvas / surfaces ---- */
  --canvas:        #EAE2D0;
  --canvas-2:      #F2ECE0;
  --surface:       #FBF8F1;
  --surface-2:     #F6F1E6;
  --white:         #FFFFFF;

  /* ---- Borders / hairlines ---- */
  --border:        rgba(167, 150, 117, 0.34);
  --border-strong: rgba(143, 124, 90, 0.50);
  --border-soft:   rgba(167, 150, 117, 0.18);

  /* ---- Ink ---- */
  --ink:           #241E16;
  --ink-2:         #5A5044;
  --ink-3:         #897C68;
  --ink-inv:       #FBF8F1;

  /* ---- Accent ---- */
  --accent:        #6E2A2A;
  --accent-hover:  #5A2121;
  --accent-soft:   rgba(110, 42, 42, 0.08);
  --accent-line:   rgba(110, 42, 42, 0.24);
  --brass:         #A6772E;
  --brass-soft:    rgba(166, 119, 46, 0.12);

  /* ---- Semantic ---- */
  --success:       #5C6B43;
  --success-soft:  rgba(92, 107, 67, 0.13);
  --warning:       #A6772E;
  --warning-soft:  rgba(166, 119, 46, 0.14);
  --danger:        #8E3B2E;
  --danger-soft:   rgba(142, 59, 46, 0.12);
  --info:          #3E5A6B;
  --info-soft:     rgba(62, 90, 107, 0.12);

  /* ---- Jurisdiction hues ---- */
  --jur-in:  #A6772E;
  --jur-us:  #3E5A6B;
  --jur-uk:  #6E2A2A;
  --jur-sg:  #5C6B43;

  /* ---- Type ---- */
  --serif: 'Source Serif 4', 'Georgia', serif;
  --sans:  'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, monospace;

  /* ---- Radius ---- */
  --r-sm: 4px;  --r-md: 6px;  --r-lg: 8px;  --r-xl: 12px;  --r-2xl: 18px;

  /* ---- Shadow ---- */
  --shadow-sm: 0 1px 2px rgba(36, 30, 22, 0.05);
  --shadow-md: 0 6px 24px -8px rgba(36, 30, 22, 0.18);
  --shadow-lg: 0 18px 50px -12px rgba(36, 30, 22, 0.30);
  --shadow-xl: 0 36px 90px -28px rgba(36, 30, 22, 0.40);

  --nav-h: 68px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper grain overlay — identical to the app */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

::selection { background: var(--accent-soft); color: var(--accent); }

/* `isolation` puts every image in its own stacking context so the fixed
   paper-grain overlay (body::before, mix-blend-mode: multiply) textures the
   paper around content but never blends *into* a product screenshot and
   washes it out. The grain itself is unchanged. */
img { max-width: 100%; height: auto; display: block; isolation: isolate; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(143,124,90,0.3); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(143,124,90,0.5); background-clip: padding-box; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 820px; }
.wrap-wide { max-width: 1340px; }

.section { padding: clamp(64px, 11vh, 132px) 0; position: relative; }
.section-sm { padding: clamp(44px, 7vh, 80px) 0; }
.hairline { height: 1px; background: var(--border); border: 0; margin: 0; }

/* tonal section variants — used sparingly for rhythm */
.bg-canvas  { background: var(--canvas); }
.bg-surface { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }
.bg-ink {
  background: #1C1710;
  color: #E9E0CE;
  --ink: #F4EEE0; --ink-2: #C9Bda4; --ink-3: #9C8E76;
  --border: rgba(214,196,160,0.18); --border-strong: rgba(214,196,160,0.3);
  --surface: #251E15; --surface-2: #2C2418;
}
.bg-ink::after, .bg-accent::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(120% 80% at 80% 0%, rgba(166,119,46,0.10), transparent 60%);
}
.bg-accent {
  background: #5A2121;
  color: #F6E9E0;
  --ink: #FBF1EA; --ink-2: #E6C9bd; --ink-3: #C79f93;
  --border: rgba(246,233,224,0.18); --border-strong: rgba(246,233,224,0.32);
  --surface: rgba(255,255,255,0.05); --surface-2: rgba(255,255,255,0.08);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.serif { font-family: var(--serif); }
.sans { font-family: var(--sans); }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.ink-2 { color: var(--ink-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow.accent { color: var(--accent); }
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.55;
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

.display {
  font-family: var(--serif);
  font-size: clamp(42px, 6.6vw, 88px);
  font-weight: 600; line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0; text-wrap: balance;
}
.h1 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 60px); font-weight: 600; line-height: 1.05; letter-spacing: -0.018em; margin: 0; text-wrap: balance; }
.h2 { font-family: var(--serif); font-size: clamp(27px, 3.3vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
.h3 { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.2; margin: 0; }
.h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.25; margin: 0; }

.lead {
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55; color: var(--ink-2);
  font-weight: 400; margin: 0; text-wrap: pretty;
}
.body { font-size: 16px; line-height: 1.62; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.small { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.accent-text { color: var(--accent); }

/* ============================================================
   BUTTONS — mirror the app's Button component
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 18px; height: 44px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500; letter-spacing: 0.005em;
  border-radius: var(--r-md); border: 1px solid transparent;
  transition: all .16s ease; white-space: nowrap; cursor: pointer;
}
.btn svg { width: 17px; height: 17px; }
.btn-sm { height: 36px; padding: 0 13px; font-size: 13.5px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; }
.btn-primary { background: var(--accent); color: var(--ink-inv); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-default { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-default:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(143,124,90,0.12); color: var(--ink); }
.btn-subtle { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.btn-subtle:hover { background: rgba(110,42,42,0.13); }
.btn-on-ink { background: var(--canvas); color: var(--ink-strong, #241E16); border-color: var(--canvas); }
.bg-ink .btn-on-ink, .bg-accent .btn-on-ink { color: #241E16; }
.btn-on-ink:hover { background: #fff; }
.btn-block { width: 100%; }

/* AI / Ask Jurex treatment — from the app */
.btn-ai {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--ink-inv); border: 1px solid var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, var(--shadow-sm);
}
.btn-ai:hover { filter: brightness(1.08); }

/* text link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--accent);
  transition: gap .16s ease;
}
.tlink svg { width: 16px; height: 16px; transition: transform .16s ease; }
.tlink:hover { gap: 10px; }
.tlink:hover svg { transform: translateX(2px); }

/* ============================================================
   CHIPS / BADGES (reused vocab)
   ============================================================ */
.jchip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px 3px 7px; border-radius: 20px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  white-space: nowrap; border: 1px solid;
}
.jchip.in { color: var(--jur-in); background: color-mix(in srgb, var(--jur-in) 11%, transparent); border-color: color-mix(in srgb, var(--jur-in) 28%, transparent); }
.jchip.us { color: var(--jur-us); background: color-mix(in srgb, var(--jur-us) 11%, transparent); border-color: color-mix(in srgb, var(--jur-us) 28%, transparent); }
.jchip.uk { color: var(--jur-uk); background: color-mix(in srgb, var(--jur-uk) 11%, transparent); border-color: color-mix(in srgb, var(--jur-uk) 28%, transparent); }
.jchip.sg { color: var(--jur-sg); background: color-mix(in srgb, var(--jur-sg) 11%, transparent); border-color: color-mix(in srgb, var(--jur-sg) 28%, transparent); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 20px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  border: 1px solid; white-space: nowrap;
}
.pill svg { width: 13px; height: 13px; }
.pill-active  { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); border-color: color-mix(in srgb, var(--success) 26%, transparent); }
.pill-pending { color: var(--brass); background: color-mix(in srgb, var(--brass) 12%, transparent); border-color: color-mix(in srgb, var(--brass) 26%, transparent); }
.pill-private { color: var(--ink-3); background: var(--surface-2); border-color: var(--border); }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 500; font-family: var(--sans);
  background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--border);
}

.kicker-num { font-family: var(--mono); font-size: 12.5px; color: var(--accent); letter-spacing: 0.04em; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-quiet { background: transparent; border-color: var(--border-soft); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.icon-tile {
  width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.brass { background: var(--brass-soft); color: var(--brass); border-color: color-mix(in srgb, var(--brass) 24%, transparent); }
.icon-tile.info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 24%, transparent); }
.icon-tile.success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 24%, transparent); }

/* divider dot */
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.4; display: inline-block; }

/* ============================================================
   NAV (injected by chrome.js)
   ============================================================ */
.nav {
  position: sticky; top: 14px; z-index: 200;
  margin-top: 14px;
  background: transparent;
  transition: top .2s;
}
.nav.scrolled { top: 10px; }
.nav-inner {
  height: 60px; display: flex; align-items: center; gap: 24px;
  padding: 0 14px 0 18px;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s, background .2s;
}
.nav.scrolled .nav-inner { box-shadow: var(--shadow-md); border-color: var(--border-strong); background: color-mix(in srgb, var(--canvas) 92%, transparent); }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #FBF8F1;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 19px;
}
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-link {
  position: relative; padding: 9px 14px; border-radius: var(--r-md);
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .15s, background .15s;
  display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: rgba(143,124,90,0.10); }
.nav-link.active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-burger { display: none; width: 42px; height: 42px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); align-items: center; justify-content: center; color: var(--ink); }

/* two-app login group */
.nav-login { display: inline-flex; align-items: center; gap: 10px; }
.nav-login .nl-label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; white-space: nowrap; }
.nav-login .nl-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: color .15s; white-space: nowrap; }
.nav-login .nl-link svg { width: 15px; height: 15px; color: var(--ink-3); transition: color .15s; }
.nav-login .nl-link:hover, .nav-login .nl-link:hover svg { color: var(--accent); }
.nav-login .nl-sep { width: 1px; height: 16px; background: var(--border-strong); }

/* dropdown */
.nav-dd { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, -6px);
  min-width: 326px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; transition: all .17s ease;
}
.nav-dd::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.nav-dd:hover .nav-menu, .nav-dd:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu-item { display: flex; gap: 13px; align-items: center; padding: 12px 13px; border-radius: var(--r-lg); transition: background .14s; }
.nav-menu-item:hover { background: var(--canvas-2); }
.nav-menu-item .icon-tile { width: 40px; height: 40px; border-radius: 10px; }
.nav-menu-item .icon-tile svg { width: 19px; height: 19px; }
.nav-menu-item .mi-text { display: flex; flex-direction: column; min-width: 0; }
.nav-menu-item .mi-t { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.nav-menu-item .mi-d { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }

/* mobile drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(36,30,22,0.4); backdrop-filter: blur(2px); z-index: 300; opacity: 0; visibility: hidden; transition: opacity .2s; }
.drawer-scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); z-index: 301;
  background: var(--canvas); border-left: 1px solid var(--border-strong);
  transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.7,.3,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-body { padding: 14px 16px 28px; display: flex; flex-direction: column; gap: 2px; }
.drawer-link { padding: 14px 14px; border-radius: var(--r-md); font-size: 16px; font-weight: 500; color: var(--ink); display: flex; align-items: center; justify-content: space-between; }
.drawer-link:hover, .drawer-link:active { background: rgba(143,124,90,0.12); }
.drawer-section-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding: 18px 14px 6px; }
.drawer-cta { padding: 4px 8px 18px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.drawer-login { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer-login .btn { padding: 0 10px; }
@media (max-width: 380px) { .drawer-login { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #1C1710; color: #C9BDA4; padding: 72px 0 36px; position: relative; }
.footer a { color: #C9BDA4; transition: color .15s; }
.footer a:hover { color: #F4EEE0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-col h5 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #9C8E76; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { font-size: 14px; }
.footer-brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #F4EEE0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(214,196,160,0.16); font-size: 13px; color: #9C8E76; }
.footer-bottom .fb-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ============================================================
   THE GATEWAY SPINE — signature connection diagram
   ============================================================ */
.gateway-diagram { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; }
.gw-node {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 22px 22px; position: relative; z-index: 2;
}
.gw-node .gw-kind { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.gw-node .gw-name { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.gw-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 8px; min-width: 120px; position: relative;
}
.gw-line { height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--brass)); position: relative; }
.gw-line::before, .gw-line::after { content:""; position:absolute; top:50%; width:9px; height:9px; border-radius:50%; transform: translateY(-50%); }
.gw-line::before { left:-2px; background: var(--accent); }
.gw-line::after { right:-2px; background: var(--brass); }
.gw-badge { margin: 10px 0; }
.gw-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.bg-ink .gw-label { color: var(--ink-2); }

/* ============================================================
   MISC
   ============================================================ */
.stat-num { font-family: var(--serif); font-size: clamp(38px, 4.6vw, 58px); font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.stat-label { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; }

.divider-label { display: flex; align-items: center; gap: 18px; }
.divider-label::before, .divider-label::after { content:""; height:1px; background: var(--border); flex: 1; }

.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 36px 52px; }
.logo-row .logo-item { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink-3); opacity: 0.8; letter-spacing: -0.01em; white-space: nowrap; }

/* browser frame for product glimpses */
.frame { border: 1px solid var(--border-strong); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; background: var(--canvas-2); border-bottom: 1px solid var(--border); }
.frame-bar .fdot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.frame-bar .faddr { margin-left: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.frame-body { background: var(--canvas); }

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .footer-col.footer-about { grid-column: 1 / -1; }
}
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .nav-cta .nav-cta-hide { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 920px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .wrap { padding: 0 22px; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .gateway-diagram { grid-template-columns: 1fr; gap: 0; }
  .gw-link { padding: 18px 0; min-width: 0; flex-direction: row; }
  .gw-link .gw-line { width: 2px; height: 40px; background: linear-gradient(180deg, var(--accent), var(--brass)); }
  .gw-badge { margin: 0 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
}

/* ---------- Cookie consent ---------- */
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 250; max-width: 370px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 20px; }
.cookie-banner .cookie-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--ink); }
.cookie-banner .cookie-text { margin: 6px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.cookie-banner .cookie-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
