/*
 * site.css — Design system for mcps.work
 * Henkei Corporation · "Transformation for Sustenance"
 * Gold-led premium minimalist · Roboto Slab headings · Dark/light · Mobile-first
 * Self-hosted fonts (CSP-safe) · WCAG-AA gold usage · Android + iOS friendly
 */

/* ── Brand font — self-hosted (Google Fonts are blocked by the site CSP) ── */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/roboto-slab-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/roboto-slab-700.woff2') format('woff2');
}

/* ── Design Tokens ───────────────────────────────────────────────── */
:root {
  /* Layout */
  --max-w: 1140px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Type */
  --font-display: 'Roboto Slab', ui-serif, Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;

  /* Light palette — warm paper + ink */
  --bg:            #FBF9F5;
  --surface:       #FFFFFF;
  --surface-2:     #F6F3EC;
  --surface-hover: #F3F0E8;
  --surface-glass: rgba(255,255,255,0.72);
  --text:          #16202C;
  --text-secondary:#5A6675;
  --text-muted:    #8A93A0;
  --border:        #E7E1D4;
  --border-subtle: #F0EBE0;

  /* Signature gold (contrast-aware) */
  --gold:          #C9A227;   /* fills, dark-bg accents, borders */
  --gold-strong:   #B89221;   /* button hover */
  --gold-ink:      #7A5E12;   /* gold text/links ON LIGHT (AA) */
  --on-gold:       #171200;   /* text on gold fills */
  --gold-soft:     rgba(201,162,39,0.10);
  --gold-line:     rgba(201,162,39,0.38);

  /* Accent = gold */
  --accent:        var(--gold);
  --accent-hover:  var(--gold-strong);
  --accent-soft:   var(--gold-soft);

  /* Connector / categorical hues (used sparingly) */
  --blue:          #1560AE;   /* M365 */
  --blue-soft:     rgba(21,96,174,0.10);
  --teal:          #0FA592;   /* general secondary */
  --teal-soft:     rgba(15,165,146,0.12);
  --green:         #107C41;   /* SAP */
  --green-soft:    rgba(16,124,65,0.10);
  --red:           #E23B2E;
  --red-soft:      rgba(226,59,46,0.10);

  /* Status */
  --success:       #1A7F37;
  --success-soft:  #E6F4EB;
  --warning:       #9A6B00;
  --warning-soft:  #FBF1D2;
  --danger:        #CF222E;
  --danger-soft:   #FDECEA;

  /* Shadows (warm-neutral, soft) */
  --shadow-sm:     0 1px 2px rgba(28,22,8,0.05);
  --shadow:        0 6px 22px rgba(28,22,8,0.08);
  --shadow-lg:     0 18px 48px rgba(28,22,8,0.13);

  /* Surfaces for hero / nav / footer */
  --hero-from:     #0B0F14;
  --hero-via:      #12171F;
  --hero-to:       #0A0E13;
  --nav-bg:        rgba(251,249,245,0.82);
  --nav-border:    rgba(231,225,212,0.7);
  --footer-bg:     #0B0F14;
  --code-bg:       #F4F1EA;
  --code-text:     #16202C;

  /* ── Legacy aliases (keep M365/SAP guide templates rendering) ── */
  --muted:         var(--text-secondary);
  --card:          var(--surface);
  --code:          var(--code-bg);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #0C0F13;
    --surface:       #14181E;
    --surface-2:     #191E26;
    --surface-hover: #1C222B;
    --surface-glass: rgba(20,24,30,0.78);
    --text:          #ECEFF3;
    --text-secondary:#9BA4AF;
    --text-muted:    #6B7581;
    --border:        #262C34;
    --border-subtle: #1C222B;

    --gold:          #E3C05A;
    --gold-strong:   #E8C866;
    --gold-ink:      #E3C05A;   /* gold text reads well on dark */
    --on-gold:       #171200;
    --gold-soft:     rgba(227,192,90,0.12);
    --gold-line:     rgba(227,192,90,0.30);

    --blue:          #5AA6FF;
    --blue-soft:     rgba(90,166,255,0.14);
    --teal:          #3FCFB4;
    --teal-soft:     rgba(63,207,180,0.14);
    --green:         #3FB950;
    --green-soft:    rgba(63,185,80,0.14);
    --red:           #FF6B5E;
    --red-soft:      rgba(255,107,94,0.14);

    --success:       #3FB950;
    --success-soft:  rgba(63,185,80,0.14);
    --warning:       #D9A62A;
    --warning-soft:  rgba(217,166,42,0.14);
    --danger:        #F0544A;
    --danger-soft:   rgba(240,84,74,0.14);

    --shadow-sm:     0 1px 2px rgba(0,0,0,0.30);
    --shadow:        0 6px 22px rgba(0,0,0,0.40);
    --shadow-lg:     0 18px 48px rgba(0,0,0,0.55);

    --hero-from:     #090C10;
    --hero-via:      #10151C;
    --hero-to:       #070A0E;
    --nav-bg:        rgba(12,15,19,0.82);
    --nav-border:    rgba(38,44,52,0.7);
    --footer-bg:     #070A0E;
    --code-bg:       #191E26;
    --code-text:     #ECEFF3;
  }
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ── Base ────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--gold-ink); text-decoration: none; transition: color .15s; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
code, pre { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold-soft); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--text);
}
h3, h4, h5 { letter-spacing: -0.01em; }

/* ── Sticky Nav ──────────────────────────────────────────────────── */
nav {
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  transition: box-shadow .25s ease, background .25s ease;
}
nav.is-scrolled { box-shadow: 0 4px 20px rgba(28,22,8,0.07); }
.nav-container {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  position: relative;
}
nav ul {
  display: flex;
  list-style: none;
  flex: 1;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 2px;
}
nav ul::-webkit-scrollbar { display: none; }
nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 15px 14px;
  min-height: 44px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .2s;
}
nav a:hover { color: var(--text); text-decoration: none; }
nav a.active { color: var(--gold-ink); border-bottom-color: var(--gold); }

/* Brand wordmark */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text) !important;
  padding: 12px 18px 12px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none !important; }
.brand .dot { color: var(--gold); }
.brand img { width: 34px; height: 34px; flex-shrink: 0; }
.brand .brand-by {
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 11px;
  margin-left: 3px;
}
@media (max-width: 560px) { .brand .brand-by { display: none; } }
nav ul .spacer { flex: 1 1 auto; }

/* Mobile Nav Toggle */
.nav-toggle-label {
  display: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  padding: 11px;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  margin-left: auto;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.nav-toggle-label:hover { background: var(--gold-soft); }
#nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-container { flex-wrap: wrap; align-items: center; }
  /* Deterministic top bar: brand pushes everything right, burger pins to the
     right of the bar, and the menu is forced onto its own full-width row.
     flex:0 0 100% resets the base `nav ul{flex:1}` so the list can't share
     the bar's flex line and drag the burger to the middle. */
  .nav-toggle-label { display: flex; order: 1; }
  nav ul {
    order: 2;
    flex: 0 0 100%;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 12px;
    gap: 0;
  }
  nav ul .spacer { display: none; }
  #nav-toggle:checked ~ ul { display: flex; }
  nav a {
    width: 100%;
    border-bottom: none;
    border-left: 2px solid transparent;
    padding: 13px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  }
  nav a:hover { background: var(--gold-soft); }
  nav a.active { border-left-color: var(--gold); background: var(--gold-soft); }
  .brand { border-left: none !important; margin-right: auto; }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--hero-from) 0%, var(--hero-via) 55%, var(--hero-to) 100%);
  color: #fff;
  padding: clamp(64px, 10vw, 104px) 24px clamp(72px, 11vw, 112px);
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* single restrained gradient glow + faint dot texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 620px 420px at 50% -8%, rgba(201,162,39,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 520px 380px at 82% 78%, rgba(21,96,174,0.14) 0%, transparent 72%);
  animation: heroShift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  opacity: .5;
  pointer-events: none;
}
@keyframes heroShift {
  0%   { opacity: 0.75; transform: translateY(0) scale(1); }
  100% { opacity: 1;    transform: translateY(-8px) scale(1.04); }
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow, header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.14);
  border: 1px solid rgba(201,162,39,0.34);
  color: #F0D98C;
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  color: #fff;
  max-width: 15ch;
  margin-inline: auto;
  line-height: 1.08;
}
.hero h1 .hl { color: var(--gold); }
.hero p {
  font-family: var(--font-body);
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: rgba(255,255,255,0.74);
  margin-top: 20px;
  max-width: 60ch;
  margin-inline: auto;
  line-height: 1.62;
}

/* Hero CTAs */
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .96rem;
  text-decoration: none;
  transition: transform .15s, background .15s, box-shadow .15s, border-color .15s;
}
.hero-btn:hover { text-decoration: none; }
.hero-btn.primary {
  background: var(--gold);
  color: var(--on-gold);
  box-shadow: 0 6px 20px rgba(201,162,39,0.28);
}
.hero-btn.primary:hover { background: var(--gold-strong); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201,162,39,0.36); }
.hero-btn.ghost {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}
.hero-btn.ghost:hover { background: rgba(255,255,255,0.13); transform: translateY(-2px); }

/* Trust strip + logo strip */
.trust-bar {
  display: flex; gap: 26px; justify-content: center;
  flex-wrap: wrap; margin-top: 28px;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: rgba(255,255,255,0.62); font-weight: 500;
}
.trust-item .check {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(201,162,39,0.22); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800;
}
.logo-strip {
  display: flex; gap: 12px 28px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-top: 30px;
}
.logo-strip .ls-label {
  width: 100%; text-align: center; font-size: .72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 2px;
}
.logo-strip .ls-item {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.82); font-weight: 600; font-size: .92rem;
}
.logo-strip .ls-item .ls-ic { font-size: 1.1rem; }

.badge-row {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-top: 22px;
}
.badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.86);
}

/* ── Section headers (interior pages) ────────────────────────────── */
header {
  background: linear-gradient(150deg, var(--hero-from) 0%, var(--hero-via) 100%);
  color: #fff;
  padding: clamp(48px, 7vw, 68px) 24px clamp(44px, 6vw, 60px);
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  text-align: center;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 560px 320px at 50% -10%, rgba(201,162,39,0.18), transparent 70%);
  pointer-events: none;
}
header > * { position: relative; z-index: 1; }
header .logo { font-size: 42px; line-height: 1; margin-bottom: 14px; }
header h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: #fff;
}
header p {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: rgba(255,255,255,0.72);
  margin-top: 12px;
  max-width: 60ch;
  margin-inline: auto;
}

/* Page header (light, in-flow) */
.page-header { margin-bottom: 40px; }
.page-header .kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 12px;
}
.page-header h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: 12px;
}
.page-header .lead {
  font-family: var(--font-body);
  color: var(--text-secondary);
  max-width: 64ch;
  font-size: 1.06rem;
  line-height: 1.62;
}

/* Section header (centered) */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header .kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500; font-size: .74rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
.section-header p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  max-width: 60ch; margin: 10px auto 0;
  font-size: 1.04rem; line-height: 1.6;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-line); }

/* ── Bento hub grid ──────────────────────────────────────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .25s, border-color .2s;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  grid-column: span 2;
}
.hub-card .icon {
  font-size: 30px; margin-bottom: 14px; line-height: 1;
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft);
}
.hub-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.hub-card p {
  font-family: var(--font-body);
  color: var(--text-secondary); font-size: .95rem;
  margin: 0; line-height: 1.55; flex-grow: 1;
}
.hub-card .go {
  margin-top: 16px; font-weight: 700; font-size: .9rem;
  color: var(--gold-ink); display: inline-flex; align-items: center; gap: 6px;
}
.hub-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold-line); text-decoration: none; color: inherit; }
.hub-card:hover .go { gap: 10px; }
/* feature (2x2) cell */
.hub-card.feature { grid-column: span 2; grid-row: span 2; padding: 34px 32px; background: linear-gradient(160deg, var(--surface), var(--surface-2)); }
.hub-card.feature .icon { width: 64px; height: 64px; font-size: 36px; }
.hub-card.feature h3 { font-size: 1.6rem; }
.hub-card.feature p { font-size: 1.02rem; }
.hub-card.small { grid-column: span 2; }
.hub-card.wide { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-card, .hub-card.feature, .hub-card.small { grid-column: span 1; grid-row: auto; }
  .hub-card.wide { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hub-grid { grid-template-columns: 1fr; }
}

/* ── MCP Catalog Cards ───────────────────────────────────────────── */
.mcp-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 22px;
}
.mcp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .25s, border-color .2s;
  position: relative; overflow: hidden;
  --hue: var(--gold);
}
.mcp-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--hue);
  opacity: 0; transition: opacity .2s;
}
.mcp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--hue) 45%, var(--border)); }
.mcp-card:hover::before { opacity: 1; }
.mcp-card.m365 { --hue: var(--blue); }
.mcp-card.sap  { --hue: var(--green); }
.mcp-card .mcp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }
.mcp-card .mcp-logo {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 27px;
  background: color-mix(in srgb, var(--hue) 12%, transparent);
}
.mcp-card .mcp-head h3 { font-size: 1.2rem; margin: 0; line-height: 1.2; }
.mcp-card .mcp-endpoint {
  font-family: var(--font-mono);
  font-size: .74rem; color: var(--text-muted); margin-top: 3px;
}
.mcp-card > p { font-family: var(--font-body); color: var(--text-secondary); font-size: .95rem; margin: 0 0 16px; line-height: 1.55; }

/* report-card meta row */
.mcp-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 12px 0; margin-bottom: 4px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: .8rem; color: var(--text-secondary);
}
.mcp-meta .m { display: inline-flex; align-items: center; gap: 6px; }
.mcp-meta .m b { color: var(--text); font-weight: 700; }
.mcp-meta .m .ic { color: var(--hue); }

.mcp-card .mcp-feats { list-style: none; margin: 16px 0 18px; padding: 0; }
.mcp-card .mcp-feats li { font-family: var(--font-body); font-size: .9rem; color: var(--text); padding: 5px 0 5px 24px; position: relative; }
.mcp-card .mcp-feats li::before { content: "✓"; position: absolute; left: 0; top: 5px; color: var(--hue); font-weight: 800; }

/* copy-endpoint */
.copy-endpoint {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 10px 9px 14px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: .8rem; color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: left;
}
.copy-endpoint:hover { border-color: var(--gold-line); }
.copy-endpoint .ep { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-endpoint .cp {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-body); font-weight: 700; font-size: .74rem;
  color: var(--gold-ink); background: var(--gold-soft);
  border-radius: 7px; padding: 5px 9px;
  min-height: 30px;
}
.copy-endpoint.copied .cp { color: var(--success); background: var(--success-soft); }

.mcp-card .mcp-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.mcp-card .mcp-foot .btn { width: auto; margin-top: 0; flex: 1; }

/* ── Status badges ───────────────────────────────────────────────── */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 4px 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase;
}
.status.live { background: var(--success-soft); color: var(--success); }
.status.beta { background: var(--warning-soft); color: var(--warning); }
.status.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.status.live.dot::before { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(1.35); } }
.beta-tag {
  display: inline-block; background: var(--warning-soft); color: var(--warning);
  border-radius: 6px; padding: 3px 12px; font-size: .76rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; vertical-align: middle; margin-left: 12px;
  font-family: var(--font-body);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--on-gold);
  border: none; cursor: pointer;
  padding: 12px 24px; min-height: 46px;
  border-radius: var(--radius);
  font-size: .92rem; font-weight: 700; font-family: var(--font-body);
  transition: background .15s, transform .15s, box-shadow .15s;
  width: 100%; justify-content: center; margin-top: 8px; text-decoration: none;
}
.btn:hover { background: var(--gold-strong); transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--gold-ink); border: 1.5px solid var(--gold-line); }
.btn.ghost:hover { background: var(--gold-soft); }

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.25); border-top-color: var(--on-gold);
  border-radius: 50%; animation: spin .7s linear infinite; display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading .spinner { display: block; }
.btn.loading .btn-text { opacity: .7; }

/* ── CTA Banner ──────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(150deg, var(--hero-from), var(--hero-via));
  color: #fff; border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 56px) clamp(28px, 5vw, 44px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 520px 320px at 72% 30%, rgba(201,162,39,0.20), transparent 70%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.75rem); }
.cta-banner p { font-family: var(--font-body); color: rgba(255,255,255,0.76); max-width: 56ch; margin: 14px auto 0; font-size: 1.02rem; }
.cta-banner .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ── Callout boxes ───────────────────────────────────────────────── */
.callout {
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin: 16px 0;
  color: var(--text-secondary); font-size: .95rem;
}
.callout.green  { border-color: var(--success); background: var(--success-soft); }
.callout.orange { border-color: var(--warning); background: var(--warning-soft); }
.callout strong { display: block; margin-bottom: 4px; color: var(--text); }

/* ── Chips ───────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; padding: 4px 14px; font-size: .82rem; font-weight: 600; }
.chip.green { background: var(--success-soft); color: var(--success); }

/* ── Section Card (privacy, support) ─────────────────────────────── */
.sec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: var(--shadow-sm);
}
.sec-card h2 { font-size: 1.2rem; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.sec-card h3 { font-size: 1.02rem; margin: 22px 0 8px; color: var(--text); }
.sec-card p  { font-family: var(--font-body); color: var(--text-secondary); margin-bottom: 12px; line-height: 1.62; }
.sec-card p:last-child { margin-bottom: 0; }
.sec-card ul, .sec-card ol { font-family: var(--font-body); color: var(--text-secondary); padding-left: 20px; margin-bottom: 12px; }
.sec-card li { margin-bottom: 6px; }

/* ── Forms ───────────────────────────────────────────────────────── */
.form-group { margin-bottom: 22px; }
label { display: block; font-weight: 600; font-size: .9rem; color: var(--text); margin-bottom: 6px; }
label .req { color: var(--danger); margin-left: 2px; }
input, select, textarea {
  width: 100%; padding: 12px 16px; min-height: 46px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 16px; /* prevents iOS zoom-on-focus */
  font-family: inherit; color: var(--text); background: var(--surface);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ── Alerts ──────────────────────────────────────────────────────── */
.alert { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: .95rem; display: none; }
.alert.success { background: var(--success-soft); border: 1px solid var(--success); color: var(--success); display: block; }
.alert.error   { background: var(--danger-soft);  border: 1px solid var(--danger);  color: var(--danger);  display: block; }

/* ── Jurisdiction Grid ───────────────────────────────────────────── */
.jurisdiction { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 600px) { .jurisdiction { grid-template-columns: 1fr; } }
.jcard { border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); background: var(--surface); }
.jcard.lk { border-color: color-mix(in srgb, var(--blue) 30%, var(--border)); }
.jcard.eu { border-color: color-mix(in srgb, var(--teal) 30%, var(--border)); }
.jcard .flag { font-size: 1.6rem; margin-bottom: 8px; display: block; }
.jcard strong { display: block; font-size: .96rem; color: var(--text); margin-bottom: 6px; }
.jcard ul { padding-left: 16px; color: var(--text-secondary); font-size: .9rem; }
.jcard li { margin-bottom: 4px; }
.jcard .timeframe { margin-top: 10px; font-size: .86rem; color: var(--text-muted); }

/* ── Contact box ─────────────────────────────────────────────────── */
.contact-box {
  background: var(--surface-2); border-radius: var(--radius);
  padding: 20px 24px; display: flex; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-top: 14px; border: 1px solid var(--border);
}
.contact-box .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--on-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.contact-box .info strong { display: block; color: var(--text); }
.contact-box .info span { color: var(--text-secondary); font-size: .92rem; display: block; }

/* ── Inline code ─────────────────────────────────────────────────── */
p code, li code, td code {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: 5px; padding: 2px 7px; font-size: .84em; color: var(--gold-ink);
}

/* ── SAP accent helper ───────────────────────────────────────────── */
.accent-sap { --accent: var(--green); --accent-hover: #0b5e31; }

/* ── Scripts list ────────────────────────────────────────────────── */
.scripts-list { display: grid; gap: 20px; }
.script-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none; display: block; position: relative; overflow: hidden;
}
.script-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold); opacity: 0; transition: opacity .2s;
}
.script-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-line); text-decoration: none; }
.script-item:hover::before { opacity: 1; }
.script-item h3 { font-size: 1.18rem; color: var(--text); margin-bottom: 8px; }
.script-item p { font-family: var(--font-body); color: var(--text-secondary); margin: 0; line-height: 1.55; }

/* ── Coming Soon ─────────────────────────────────────────────────── */
.coming-soon {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 60px 40px;
  text-align: center; position: relative; overflow: hidden;
}
.coming-soon::before {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius-xl); padding: 1.5px;
  background: linear-gradient(135deg, var(--gold), var(--teal), var(--gold));
  background-size: 300% 300%; animation: borderGradient 5s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@keyframes borderGradient { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.coming-soon h2 { color: var(--text); margin-bottom: 14px; font-size: 1.45rem; }
.coming-soon p { font-family: var(--font-body); color: var(--text-secondary); max-width: 52ch; margin-inline: auto; }

/* ── Scroll reveal ───────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 40px 24px calc(40px + env(safe-area-inset-bottom));
  font-size: .86rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
footer .foot-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: rgba(255,255,255,0.92); margin-bottom: 6px;
}
footer .foot-brand img { width: 26px; height: 26px; }
footer .foot-brand .dot { color: var(--gold); }
footer .tagline { color: var(--gold); font-family: var(--font-display); font-size: .82rem; letter-spacing: 0.04em; margin-bottom: 14px; }
footer a { color: rgba(255,255,255,0.7); }
footer a:hover { color: #fff; }
footer p + p { margin-top: 6px; }
footer strong { color: rgba(255,255,255,0.85); }

/* ── Print ───────────────────────────────────────────────────────── */
@media print {
  nav, footer, .hero, .cta-banner { display: none; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
