:root {
  color-scheme: dark;
  --bg: #081016;
  --panel: #101a22;
  --panel-2: #14212b;
  --line: #263a48;
  --text: #edf4f7;
  --muted: #9eb0bc;
  --accent: #8de6b4;
  --accent-strong: #b8f4d0;
  --warn: #f2bd73;
  --danger: #ff8b8b;
  --forge: #ff7a00;
  --forge-highlight: #ffb020;
  --sport: #16b86a;
  --sport-highlight: #20d979;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --display-serif: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 15% -10%, #17303b 0, transparent 30%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 16, 22, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(38, 58, 72, .8);
}
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #4ca9c5); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 8px 11px; border-radius: 9px; font-size: 14px; font-weight: 700; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); background: #14212b; }
.auth-state { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; text-decoration: none; font-size: 13px; font-weight: 800; white-space: nowrap; background: #101a22; }
.auth-state.signed-in { color: var(--accent); }
.auth-state.signed-out { color: var(--muted); }
.auth-state[aria-current="page"] { box-shadow: 0 0 0 1px rgba(141,230,180,.35) inset; }
.auth-icon { font-size: 15px; line-height: 1; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #14212b; color: var(--text); font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #082015; }
.button.ghost { background: transparent; }
.button:hover { transform: translateY(-1px); }

main { padding: 56px 0 72px; }
.hero { padding: 42px 0 28px; }
.eyebrow { color: var(--accent); font-weight: 850; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.hero h1,
.page-title { max-width: 820px; margin: 8px 0 16px; font-size: clamp(40px, 7vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
.page-title { font-size: clamp(34px, 5vw, 52px); }
.lede { max-width: 760px; color: var(--muted); font-size: clamp(18px, 2.2vw, 22px); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 34px 0; }
.trust-item,
.card,
.panel { background: linear-gradient(180deg, rgba(20,33,43,.98), rgba(14,24,31,.98)); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.trust-item { padding: 16px; }
.trust-item strong { display: block; font-size: 15px; }
.trust-item span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.section { padding: 32px 0; }
.section h2 { font-size: 30px; letter-spacing: -.03em; margin: 0 0 8px; }
.section-intro { color: var(--muted); max-width: 760px; margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #0d171e; }
.metric strong { display: block; font-size: 28px; letter-spacing: -.04em; }
.metric span { display: block; color: var(--muted); font-size: 13px; }
.card { padding: 22px; }
.card h3 { margin: 4px 0 8px; font-size: 21px; }
.card p { color: var(--muted); margin: 0; }
.card a.more { display: inline-block; margin-top: 15px; color: var(--accent); font-weight: 800; text-decoration: none; }
.step { display: grid; grid-template-columns: 38px 1fr; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step-number { width: 34px; height: 34px; border-radius: 10px; background: #183429; color: var(--accent-strong); display: grid; place-items: center; font-weight: 900; }
.step h3 { margin: 1px 0 5px; }
.step p { margin: 0; color: var(--muted); }

code,
pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.code-block { position: relative; margin: 16px 0 0; background: #050a0e; border: 1px solid var(--line); border-radius: 12px; padding: 17px; overflow: auto; color: #d9e7ed; font-size: 14px; line-height: 1.55; }
.copy { position: absolute; right: 8px; top: 8px; border: 1px solid var(--line); background: #111b22; color: var(--muted); border-radius: 7px; padding: 5px 8px; font-size: 12px; cursor: pointer; }
.panel { padding: 20px; }
.status { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 850; background: #18252e; }
.status.good { color: var(--accent); }
.status.warn { color: var(--warn); }
.status.bad { color: var(--danger); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; background: #0d171e; }
th,
td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
td { font-size: 14px; }
.api-group { margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.api-row { display: grid; grid-template-columns: 74px minmax(220px,1fr) 1fr; gap: 12px; align-items: center; padding: 13px 15px; background: #101a22; border-bottom: 1px solid var(--line); }
.api-row:last-child { border-bottom: 0; }
.method { font-size: 12px; font-weight: 900; color: var(--accent); }
.path { font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.api-summary { color: var(--muted); font-size: 13px; }
.notice { border: 1px solid #5d4c31; background: #211c14; border-radius: 12px; padding: 15px; color: #e9d4b4; }
.notice strong { color: #ffd899; }
.footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 13px; }
.footer a { color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.loading { color: var(--muted); padding: 18px 0; }
.error { color: var(--danger); padding: 14px; border: 1px solid #623638; background: #271719; border-radius: 10px; }

/* Shared premium shell. Customer pages receive this automatically in site.js;
   owner pages keep the denser operational treatment above. */
body.customer-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: #070b0f;
  --line: rgba(169, 190, 201, .15);
  --muted: #9ba9b1;
  --accent: var(--sport-highlight);
  --accent-strong: #70efa8;
}
body.customer-page::before,
body.customer-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body.customer-page::before {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 7%, rgba(29, 96, 77, .19), transparent 31%),
    radial-gradient(circle at 84% 34%, rgba(255, 122, 0, .055), transparent 23%),
    radial-gradient(circle at 10% 62%, rgba(17, 83, 67, .10), transparent 25%),
    linear-gradient(180deg, #090d11 0%, #070b0f 48%, #080c10 100%);
}
body.customer-page::after {
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(133, 164, 176, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133, 164, 176, .055) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.92), transparent 70%);
}
.customer-page .shell { width: min(1240px, calc(100% - 44px)); }
.customer-page .site-header {
  background: rgba(6, 10, 13, .74);
  border-bottom-color: rgba(255,255,255,.07);
  backdrop-filter: blur(20px) saturate(125%);
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
}
.customer-page .nav { gap: 34px; }
.customer-page .nav-right { gap: 17px; }
.customer-page .nav-links { gap: 2px; }
.customer-page .nav-links a {
  color: #8d9aa2;
  background: transparent;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
  transition: color .18s ease, background .18s ease;
}
.customer-page .nav-links a:hover { color: #f7fafb; background: rgba(255,255,255,.045); }
.customer-page .nav-links a[aria-current="page"] { color: #f7fafb; background: transparent; }
.customer-page .auth-state {
  border-color: rgba(255,255,255,.11);
  background: rgba(255,255,255,.055);
  color: #d7e0e4;
  padding: 8px 13px;
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}
.customer-page .auth-state.signed-in { color: var(--sport-highlight); }
.customer-page .auth-icon { font-size: 11px; }

.customer-page main { padding: 70px 0 94px; }
.customer-page .eyebrow {
  color: var(--sport-highlight);
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 800;
}
.customer-page .page-title,
.customer-page .editorial-title {
  font-family: var(--display-serif);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .99;
  text-wrap: balance;
}
.customer-page .page-title {
  max-width: 900px;
  margin-top: 12px;
  font-size: clamp(46px, 6.2vw, 72px);
}
.customer-page .lede {
  max-width: 720px;
  color: #a4b0b7;
  line-height: 1.62;
  font-size: clamp(17px, 1.8vw, 20px);
}
.customer-page .button {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  font-size: 14px;
  font-weight: 750;
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.customer-page .button:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.customer-page .button.primary {
  color: #fffaf6;
  border-color: rgba(255, 145, 43, .6);
  background: linear-gradient(180deg, #ff8a24, var(--forge));
  box-shadow: 0 12px 30px rgba(255,122,0,.18), inset 0 1px rgba(255,255,255,.24);
}
.customer-page .button.primary:hover { background: linear-gradient(180deg, #ff983f, #ff7810); box-shadow: 0 15px 34px rgba(255,122,0,.25), inset 0 1px rgba(255,255,255,.28); }
.customer-page .section { padding: 48px 0; }
.customer-page .section h2 {
  font-family: var(--display-serif);
  font-weight: 400;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.customer-page .section-intro { color: #97a5ad; line-height: 1.7; }
.customer-page .card,
.customer-page .panel,
.customer-page .trust-item {
  background: linear-gradient(180deg, rgba(16, 23, 29, .82), rgba(10, 15, 19, .76));
  border-color: rgba(255,255,255,.085);
  box-shadow: 0 24px 70px rgba(0,0,0,.19), inset 0 1px rgba(255,255,255,.025);
}
.customer-page .card { padding: 26px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.customer-page .card:hover { transform: translateY(-2px); border-color: rgba(32,217,121,.19); background: linear-gradient(180deg, rgba(18, 27, 32, .92), rgba(10, 15, 19, .82)); }
.customer-page .card h3 { letter-spacing: -.025em; }
.customer-page .card p { color: #97a5ad; line-height: 1.7; }
.customer-page .card a.more { color: var(--sport-highlight); }
.customer-page .panel { border-radius: 20px; padding: 26px; }
.customer-page .metric { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.08); border-radius: 15px; }
.customer-page .metric strong { font-family: var(--display-serif); font-weight: 400; font-size: 34px; }
.customer-page .step { border-bottom-color: rgba(255,255,255,.085); padding: 24px 0; }
.customer-page .step-number { border-radius: 999px; background: rgba(32,217,121,.10); border: 1px solid rgba(32,217,121,.16); }
.customer-page .code-block { background: rgba(3, 7, 9, .92); border-color: rgba(255,255,255,.09); border-radius: 16px; }
.customer-page .table-wrap,
.customer-page .api-group { border-color: rgba(255,255,255,.085); border-radius: 16px; }
.customer-page table { background: rgba(8,13,17,.78); }
.customer-page th,
.customer-page td { border-bottom-color: rgba(255,255,255,.075); }
.customer-page .api-row { background: rgba(11,17,21,.76); border-bottom-color: rgba(255,255,255,.075); }
.customer-page .notice { border-color: rgba(255,176,32,.22); background: rgba(78,48,8,.18); }
.customer-page .footer { border-top-color: rgba(255,255,255,.075); color: #77868f; padding-top: 32px; }
.customer-page .footer a { color: #87959d; }

/* Homepage editorial composition. */
.home-main { padding-top: 0 !important; overflow: hidden; }
.home-hero {
  position: relative;
  padding: clamp(78px, 10vw, 132px) 0 34px;
  text-align: center;
}
.home-hero::before {
  content: "";
  position: absolute;
  width: min(760px, 80vw);
  height: min(480px, 52vw);
  left: 50%;
  top: 4%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(32,217,121,.09), transparent 66%);
  filter: blur(14px);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 1030px; margin: 0 auto; }
.home-hero .eyebrow { margin-bottom: 18px; }
.home-hero h1 {
  margin: 0 auto;
  font-family: var(--display-serif);
  font-weight: 400;
  font-size: clamp(56px, 7.8vw, 100px);
  line-height: .93;
  letter-spacing: -.052em;
  color: #f6f8f8;
  text-wrap: balance;
}
.home-hero h1 .hero-accent { color: #6cefa5; }
.home-hero .lede {
  margin: 27px auto 0;
  max-width: 720px;
  font-size: clamp(17px, 1.8vw, 20px);
  color: #a6b1b7;
  line-height: 1.65;
}
.hero-actions { justify-content: center; margin-top: 31px; }
.hero-actions .button { min-height: 50px; padding-inline: 23px; }
.hero-note { margin-top: 18px; color: #697980; font-size: 12px; letter-spacing: .07em; }

.product-stage { position: relative; width: min(1030px, 100%); margin: clamp(58px, 7vw, 86px) auto 0; text-align: left; }
.product-stage::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: -15%; height: 34%;
  background: radial-gradient(ellipse, rgba(32,217,121,.20), rgba(15,97,77,.09) 40%, transparent 72%);
  filter: blur(38px);
  z-index: -1;
}
.product-window {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  background: rgba(7, 11, 14, .94);
  box-shadow: 0 46px 110px rgba(0,0,0,.56), inset 0 1px rgba(255,255,255,.035);
  transform: perspective(1500px) rotateX(1.15deg);
}
.product-toolbar {
  height: 51px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 17px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.025);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #3a444a; }
.product-address { color: #67757d; font-size: 11px; letter-spacing: .03em; }
.product-status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #8ea099; font-size: 11px; }
.product-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sport-highlight); box-shadow: 0 0 10px rgba(32,217,121,.55); }
.product-body { display: grid; grid-template-columns: 30% 70%; min-height: 390px; }
.product-sidebar { padding: 24px; border-right: 1px solid rgba(255,255,255,.075); background: rgba(255,255,255,.012); }
.product-kicker { color: #65757d; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.product-nav-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; margin: 3px 0; border-radius: 10px; color: #87959d; font-size: 12px; }
.product-nav-item.active { color: #f1f5f6; background: rgba(255,255,255,.055); }
.product-nav-item span:last-child { color: #5f6e75; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.product-sidebar-note { margin-top: 25px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); color: #67777f; font-size: 11px; line-height: 1.65; }
.product-main { padding: 26px 30px 30px; min-width: 0; }
.product-main-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.product-main-head h3 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.025em; }
.http-ok { flex: none; padding: 5px 9px; border-radius: 999px; color: #7de9ab; background: rgba(32,217,121,.08); border: 1px solid rgba(32,217,121,.12); font-size: 10px; font-weight: 800; }
.request-line { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.075); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; overflow: auto; }
.request-method { color: var(--sport-highlight); font-weight: 900; }
.response-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 14px; margin-top: 14px; }
.response-code,
.quality-stack { border: 1px solid rgba(255,255,255,.075); border-radius: 14px; background: rgba(3,7,9,.72); }
.response-code { margin: 0; padding: 18px; overflow: auto; color: #b8c8cf; font-size: 11px; line-height: 1.7; }
.response-code .json-key { color: #78e5a6; }
.response-code .json-string { color: #e9c58b; }
.quality-stack { padding: 14px; }
.quality-row { padding: 10px 3px; border-bottom: 1px solid rgba(255,255,255,.06); }
.quality-row:last-child { border-bottom: 0; }
.quality-row strong { display: block; font-size: 11px; color: #dbe3e6; }
.quality-row span { display: block; margin-top: 2px; font-size: 10px; color: #718088; }
.quality-row em { float: right; color: #73e8a5; font-style: normal; font-weight: 800; }

.home-trust {
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.home-trust article { padding: 29px 34px; text-align: center; }
.home-trust article + article { border-left: 1px solid rgba(255,255,255,.08); }
.home-trust strong { display: block; color: #e8edef; font-size: 14px; letter-spacing: -.01em; }
.home-trust span { display: block; margin-top: 5px; color: #728189; font-size: 12px; }

.home-section { padding: clamp(80px, 10vw, 126px) 0; }
.home-section + .home-section { border-top: 1px solid rgba(255,255,255,.055); }
.editorial-split { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: clamp(42px, 8vw, 110px); align-items: end; }
.editorial-title { margin: 0; font-size: clamp(45px, 5.6vw, 72px); color: #f2f5f6; }
.editorial-copy { max-width: 590px; color: #94a2a9; font-size: 17px; line-height: 1.75; }
.editorial-copy p { margin: 0; }
.feature-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 55px; border: 1px solid rgba(255,255,255,.075); border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.075); }
.feature-item { padding: 30px; background: rgba(8,13,16,.96); }
.feature-number { font-family: var(--display-serif); font-size: 29px; color: #405158; }
.feature-item h3 { margin: 24px 0 9px; font-size: 17px; letter-spacing: -.02em; }
.feature-item p { margin: 0; color: #7f8e96; font-size: 13px; line-height: 1.65; }

.use-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 45px; }
.use-case {
  min-height: 250px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(145deg, rgba(20,30,34,.76), rgba(7,11,14,.92));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.use-case::before { content: ""; position: absolute; width: 150px; height: 150px; right: -45px; top: -55px; border-radius: 50%; background: radial-gradient(circle, rgba(32,217,121,.12), transparent 70%); }
.use-case:nth-child(2)::before { background: radial-gradient(circle, rgba(255,122,0,.12), transparent 70%); }
.use-case h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.03em; }
.use-case p { margin: 0; color: #84939b; font-size: 13px; line-height: 1.7; }

.home-cta {
  position: relative;
  margin: 10px 0 40px;
  padding: clamp(60px, 8vw, 92px) 30px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(18,31,30,.78), rgba(7,11,14,.94));
}
.home-cta::before { content: ""; position: absolute; inset: auto 15% -55% 15%; height: 80%; background: radial-gradient(ellipse, rgba(32,217,121,.16), transparent 70%); filter: blur(28px); }
.home-cta > * { position: relative; }
.home-cta h2 { max-width: 780px; margin: 8px auto 0; font-family: var(--display-serif); font-size: clamp(44px, 5.7vw, 70px); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.home-cta p { max-width: 620px; margin: 18px auto 0; color: #8f9da5; }
.home-cta .actions { justify-content: center; }

@media (max-width: 1020px) {
  .nav { align-items: flex-start; padding: 14px 0; flex-direction: column; }
  .nav-right { width: 100%; justify-content: space-between; align-items: flex-start; }
  .nav-links { flex: 1; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .customer-page .nav { gap: 9px; }
  .customer-page .nav-right { gap: 10px; }
  .product-body { grid-template-columns: 27% 73%; }
}

@media (max-width: 820px) {
  .trust-row,
  .grid,
  .grid.two { grid-template-columns: 1fr 1fr; }
  .api-row { grid-template-columns: 68px 1fr; }
  .api-summary { grid-column: 2; }
  .editorial-split { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .feature-rail,
  .use-case-grid { grid-template-columns: 1fr; }
  .feature-rail { gap: 1px; }
  .product-body { grid-template-columns: 1fr; }
  .product-sidebar { display: none; }
  .response-grid { grid-template-columns: 1fr; }
  .home-trust article { padding-inline: 18px; }
}

@media (max-width: 620px) {
  .nav-right { flex-direction: column; }
  .auth-state { align-self: flex-end; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .home-trust { grid-template-columns: 1fr; }
  .home-trust article + article { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 22px, 1180px); }
  main { padding-top: 30px; }
  .hero { padding-top: 24px; }
  .trust-row,
  .grid,
  .grid.two { grid-template-columns: 1fr; }
  .nav-links a { padding: 7px 8px; }
  .hero h1 { font-size: 44px; }
  .api-row { grid-template-columns: 1fr; }
  .api-summary { grid-column: auto; }
  .customer-page .shell { width: min(100% - 24px, 1240px); }
  .customer-page main { padding-top: 46px; }
  .customer-page .page-title { font-size: 47px; }
  .home-hero { padding-top: 62px; }
  .home-hero h1 { font-size: clamp(50px, 14.2vw, 66px); }
  .home-hero .lede { font-size: 16px; }
  .product-stage { margin-top: 50px; width: calc(100% + 8px); margin-left: -4px; }
  .product-window { border-radius: 17px; transform: none; }
  .product-toolbar { height: 45px; padding-inline: 13px; }
  .product-main { padding: 19px 17px 21px; }
  .product-main-head { align-items: center; }
  .request-line { font-size: 10px; }
  .response-code { font-size: 9.5px; }
  .quality-stack { display: none; }
  .home-section { padding-block: 74px; }
  .editorial-title { font-size: 47px; }
  .feature-item { padding: 25px; }
  .home-cta { padding-inline: 19px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


/* WP37A-R pre-pilot accessibility guardrails */
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #071015;
  font-weight: 700;
}
.skip-link:focus-visible {
  transform: translateY(0);
}

.customer-page a:focus-visible,
.customer-page button:focus-visible,
.customer-page input:focus-visible,
.customer-page select:focus-visible,
.customer-page textarea:focus-visible,
.customer-page [tabindex]:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

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


.sf-analytics-choice {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #081016;
  box-shadow: 0 16px 44px rgba(0,0,0,.4);
}
.sf-analytics-choice p { margin: 5px 0 0; color: var(--muted); }
.sf-analytics-choice .actions { margin: 0; flex: 0 0 auto; }
@media (max-width: 720px) {
  .sf-analytics-choice { align-items: stretch; flex-direction: column; }
  .sf-analytics-choice .actions { display: flex; flex-wrap: wrap; }
}

/* Official channels / connect surface */
.sf-footer-stack {
  display: grid;
  gap: 18px;
}
.sf-footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sf-footer-social-label {
  color: #d9e3e7;
  font-weight: 750;
  font-size: 12px;
}
.sf-footer-social-links {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.sf-social-icon-link {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  color: #aebbc2;
  background: rgba(255,255,255,.025);
  text-decoration: none;
}
.sf-social-icon-link:hover,
.sf-social-icon-link:focus-visible {
  color: var(--sport-highlight);
  border-color: rgba(32,217,121,.3);
  background: rgba(32,217,121,.08);
}
.sf-social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}
.sf-footer-connect-link {
  margin-left: auto;
  color: #d4dde1 !important;
  font-weight: 700;
  text-decoration: none;
}
.sf-footer-connect-link:hover,
.sf-footer-connect-link:focus-visible {
  color: var(--sport-highlight) !important;
}
.sf-connect-hero {
  max-width: 820px;
  margin-bottom: 36px;
}
.sf-connect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sf-channel-card {
  min-height: 138px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  grid-template-rows: 1fr;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20,33,43,.84), rgba(12,20,26,.9));
  color: #edf4f7;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(0,0,0,.18);
}
.sf-channel-card:hover,
.sf-channel-card:focus-visible {
  border-color: rgba(32,217,121,.3);
  background: linear-gradient(180deg, rgba(24,41,50,.92), rgba(13,24,30,.96));
}
.sf-channel-card .sf-social-icon {
  width: 32px;
  height: 32px;
  color: #e6eef1;
}
.sf-channel-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.sf-channel-copy strong {
  font-size: 17px;
  letter-spacing: -.015em;
}
.sf-channel-copy span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.sf-channel-action {
  color: var(--sport-highlight);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.sf-connect-note {
  margin-top: 24px;
  padding: 17px 19px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 980px) {
  .sf-connect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .sf-connect-grid { grid-template-columns: 1fr; }
  .sf-channel-card { min-height: 112px; }
  .sf-footer-connect-link { width: 100%; margin-left: 0; }
}

/* Connect page visual refinement */
body:has(.sf-connect-grid) .sf-connect-hero { max-width: 760px; margin: 0 0 18px; padding-top: 24px; }
body:has(.sf-connect-grid) .sf-connect-hero .page-title { margin-bottom: 12px; }
body:has(.sf-connect-grid) .section { padding-top: 18px; }
.sf-connect-grid { gap: 12px; }
.sf-channel-card { min-height: 92px; grid-template-columns: 44px minmax(0,1fr) 24px; padding: 16px 18px; border-radius: 14px; text-decoration: none !important; }
.sf-channel-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); color: #f3f7f8; font-size: 18px; font-weight: 850; line-height: 1; }
.sf-channel-card:hover .sf-channel-mark { color: var(--sport-highlight); border-color: rgba(32,217,121,.28); background: rgba(32,217,121,.08); }
.sf-channel-copy strong { font-size: 15px; }
.sf-channel-copy span { font-size: 12px; }
.sf-channel-action { font-size: 18px; font-weight: 500; }
.sf-connect-note { max-width: 780px; margin: 18px 0 0; padding: 0; border: 0; background: transparent; font-size: 12px; }
.sf-connect-note strong { color: #d9e3e7; }
@media (max-width: 620px) { body:has(.sf-connect-grid) .sf-connect-hero { padding-top: 12px; } .sf-channel-card { min-height: 82px; } }

/* Connect-only directory layout: shared asset pipeline, scoped away from every other page. */
.sf-connect-page .sf-connect-grid {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:4px;
}
.sf-connect-page .sf-connect-grid>.sf-channel-card {
  min-width:0; min-height:88px; display:grid; grid-template-columns:42px minmax(0,1fr) 22px;
  align-items:center; gap:13px; padding:15px 17px; border:1px solid rgba(255,255,255,.10);
  border-radius:14px; background:linear-gradient(180deg,rgba(20,33,43,.86),rgba(12,20,26,.94));
  color:#edf4f7; text-decoration:none; box-shadow:0 12px 30px rgba(0,0,0,.16);
}
.sf-connect-page .sf-connect-grid>.sf-channel-card:hover,.sf-connect-page .sf-connect-grid>.sf-channel-card:focus-visible {
  border-color:rgba(32,217,121,.34); background:linear-gradient(180deg,rgba(24,41,50,.94),rgba(13,24,30,.98)); outline:none;
}
.sf-connect-page .sf-connect-grid .sf-channel-mark,.sf-connect-page .sf-connect-grid .sf-social-icon {
  width:40px; height:40px; display:grid; place-items:center; padding:9px; box-sizing:border-box;
  border:1px solid rgba(255,255,255,.09); border-radius:11px; background:rgba(255,255,255,.055);
  color:#f3f7f8; fill:currentColor; font-size:17px; font-weight:850; line-height:1; text-decoration:none;
}
.sf-connect-page .sf-connect-grid .sf-channel-copy {min-width:0;display:grid;gap:4px;text-decoration:none}
.sf-connect-page .sf-connect-grid .sf-channel-copy strong {color:#f2f6f7;font-size:15px;line-height:1.2;text-decoration:none}
.sf-connect-page .sf-connect-grid .sf-channel-copy span {min-width:0;overflow:hidden;text-overflow:ellipsis;color:#93a3aa;font-size:12px;line-height:1.3;white-space:nowrap;text-decoration:none}
.sf-connect-page .sf-connect-grid .sf-channel-action {justify-self:end;color:#20d979;font-size:17px;line-height:1;text-decoration:none}
.sf-connect-page .sf-connect-note {max-width:780px;margin:18px 0 0;padding:0;border:0;background:transparent;color:#93a3aa;font-size:12px}
.sf-connect-page .sf-connect-note strong {color:#d9e3e7}
@media(max-width:1050px){.sf-connect-page .sf-connect-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.sf-connect-page .sf-connect-grid{grid-template-columns:1fr}.sf-connect-page .sf-connect-grid>.sf-channel-card{min-height:80px}}
