/* The approved public navigation and footer, shared by all public pages. */
.gateway-shell {
  --gateway-frame-width: min(1440px, calc(100% - 64px));
  --gateway-frame-inset: max(32px, calc((100% - 1440px) / 2));
  position: relative;
}
.gateway-shell::before, .gateway-shell::after {
  content: "";
  position: absolute;
  top: var(--landing-header-height, 77px);
  bottom: 0;
  width: 1px;
  background: var(--t1-line, #b4bdd0);
  pointer-events: none;
  z-index: 3;
}
.gateway-shell::before { left: var(--gateway-frame-inset); }
.gateway-shell::after { right: var(--gateway-frame-inset); }
.landing.gateway-shell > :is(header, section, details, .v2-page, .strip, .t2-how-it-works, .t2-value-props, .t1-main-access, .t1-main-examples, .t1-main-benefits) {
  position: relative;
  width: var(--gateway-frame-width);
  margin-inline: auto;
}
.gateway-shell > :is(.t2-how-it-works, .t1-main-access, .t1-main-examples, .t2-value-props, .t1-main-benefits, .t2-depth, .t1-faq, .v2-page)::before,
.gateway-shell > :is(.t2-how-it-works, .t1-main-access, .t1-main-examples, .t2-value-props, .t1-main-benefits, .t2-depth, .t1-faq, .v2-page)::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--t1-ink, #214d9e);
  background: var(--t1-paper, #f4f1e8);
  pointer-events: none;
  z-index: 3;
}
.gateway-shell > :is(.t2-how-it-works, .t1-main-access, .t1-main-examples, .t2-value-props, .t1-main-benefits, .t2-depth, .t1-faq, .v2-page)::before { left: -4px; }
.gateway-shell > :is(.t2-how-it-works, .t1-main-access, .t1-main-examples, .t2-value-props, .t1-main-benefits, .t2-depth, .t1-faq, .v2-page)::after { right: -4px; }
@media (min-width: 701px) {
  .gateway-shell:has(.v2-page-contact, .v2-page-request_access) {
    --gateway-frame-width: min(1280px, calc(100% - 64px));
    --gateway-frame-inset: max(32px, calc((100% - 1280px) / 2));
  }
  .landing.gateway-shell .v2-page :is(.contact-shell, .access-shell) { width: 100%; border-inline: 0; }
}
@media (max-width: 1200px) and (min-width: 701px) {
  .gateway-shell { --gateway-frame-width: calc(100% - 40px); --gateway-frame-inset: 20px; }
}
@media (max-width: 700px) {
  .gateway-shell { --gateway-frame-width: 100%; --gateway-frame-inset: 0px; }
  .gateway-shell::before, .gateway-shell::after,
  .gateway-shell > :is(.t2-how-it-works, .t1-main-access, .t1-main-examples, .t2-value-props, .t1-main-benefits, .t2-depth, .t1-faq, .v2-page)::before,
  .gateway-shell > :is(.t2-how-it-works, .t1-main-access, .t1-main-examples, .t2-value-props, .t1-main-benefits, .t2-depth, .t1-faq, .v2-page)::after { display: none; }
}
@media print {
  .gateway-shell { --gateway-frame-width: 100%; --gateway-frame-inset: 0px; }
  .gateway-shell::before, .gateway-shell::after,
  .gateway-shell > :is(.t2-how-it-works, .t1-main-access, .t1-main-examples, .t2-value-props, .t1-main-benefits, .t2-depth, .t1-faq, .v2-page)::before,
  .gateway-shell > :is(.t2-how-it-works, .t1-main-access, .t1-main-examples, .t2-value-props, .t1-main-benefits, .t2-depth, .t1-faq, .v2-page)::after { display: none; }
}
.gateway-shell .landing-nav, .gateway-shell .landing-nav.scrolled { background: rgb(244 241 232 / .88); border-bottom: 1px solid var(--t1-line, #b4bdd0); backdrop-filter: blur(12px); }
.landing.gateway-shell .nav-in { width: min(1440px, calc(100% - 64px)); max-width: none; min-height: 76px; height: 76px; padding-inline: 0; gap: 20px; }
.landing.gateway-shell .landing-brand { color: var(--t1-ink, #214d9e); font-size: 18px; font-weight: 500; gap: 11px; letter-spacing: -.035em; }
.landing.gateway-shell .landing-brand-icon { width: 34px; height: 34px; }
.gateway-shell .landing-brand-gateway { font-weight: 700; color: var(--t1-cherry, #961e84); }
.landing.gateway-shell .landing-nav-links > a,
.landing.gateway-shell .landing-nav-links > a:is(:hover,:focus-visible,.active),
.landing.gateway-shell .gateway-dropdown > summary,
.landing.gateway-shell .gateway-dropdown > summary:is(:hover,:focus-visible,.active),
.landing.gateway-shell .gateway-dropdown[open] > summary { color:#2854ac; }
html[data-theme="dark"] .landing.gateway-shell .landing-nav-links > a,
html[data-theme="dark"] .landing.gateway-shell .gateway-dropdown > summary { color:#85adf2; }
html[data-theme="dark"] .gateway-shell .landing-brand-gateway { color: #961e84; }
.gateway-shell .nav-cta { background: var(--t1-blue, #2854ac); color: #f4f1e8; border: 1px solid var(--t1-blue, #2854ac); border-radius: 0; }
.gateway-shell .nav-actions { gap: 12px; }
.landing.gateway-shell .landing-nav .icon-btn:hover { border-color:transparent; background:transparent; box-shadow:none; }
@media (max-width: 1200px) { .landing.gateway-shell .nav-in { width: calc(100% - 40px); } }
@media (max-width: 1100px) {
  .landing.gateway-shell .nav-in { min-height: 64px; height: 64px; gap: 12px; }
  .landing.gateway-shell .landing-brand { font-size: 16px; }
}
@media (max-width: 700px) {
  .landing.gateway-shell .nav-in { width: calc(100% - 32px); }
  .landing.gateway-shell .landing-brand { font-size: 13px; gap: 7px; }
  .landing.gateway-shell .landing-brand-icon { width: 28px; height: 28px; }
}
html[data-theme="dark"] .gateway-shell .landing-nav, html[data-theme="dark"] .gateway-shell .landing-nav.scrolled { background: rgb(16 29 52 / .88); border-color: var(--t1-line, #536784); }
html[data-theme="dark"] .gateway-shell .landing-brand { color: var(--t1-ink, #e0e8f6); }
.gateway-shell .v2-page { --bg: 244 241 232; --surface: 250 248 241; --line: 180 189 208; --text: 33 77 158; --accent: 40 84 172; }

/* Independent forms and documentation viewers retain their own DOM and scripts. */
body.gateway-standalone { --gateway-paper:#f4f1e8; --gateway-ink:#214d9e; --gateway-blue:#2854ac; --gateway-cherry:#961e84; --gateway-line:#b4bdd0; --bg:244 241 232; --surface:250 248 241; --text:33 77 158; --muted:75 98 137; --border:180 189 208; --accent:40 84 172; background:var(--gateway-paper); color:var(--gateway-ink); }
html.dark body.gateway-standalone, html[data-theme="dark"] body.gateway-standalone { --gateway-paper:#101d34; --gateway-ink:#e0e8f6; --gateway-blue:#85adf2; --gateway-cherry:#961e84; --gateway-line:#536784; --bg:16 29 52; --surface:26 44 64; --text:224 232 246; --muted:181 198 225; --border:83 103 132; --accent:133 173 242; }
.gateway-standalone :is(.topbar,.header,.header-bar,.top-bar) { background:color-mix(in srgb,var(--gateway-paper) 88%,transparent); color:var(--gateway-ink); border-bottom:1px solid var(--gateway-line); box-shadow:none; backdrop-filter:blur(12px); }
.gateway-standalone :is(.brand,.brand-word,.logo,.brand-name) { color:var(--gateway-ink); }
.gateway-standalone .gateway-word { color:var(--gateway-cherry); font-weight:700; }
.gateway-standalone :is(.topbar-inner,.nav-container) { max-width:none; width:91.2%; }
.gateway-standalone :is(.nav-links,.onboarding-nav) a { color:var(--gateway-ink); }
.gateway-standalone :is(h1,h2,h3) { color:var(--gateway-ink); letter-spacing:-.035em; }
/* The legacy heading sheet uses important declarations outside the shared shell. */
.gateway-standalone :is(h1,h2,h3) { font-family:Inter,system-ui,sans-serif!important; text-transform:none!important; letter-spacing:-.035em!important; }
.gateway-standalone h1 { font-weight:400; line-height:1.12; }
.gateway-standalone :is(.card,.status-card,.form-card,.signup-card,.container,.panel,.feature-card,.tier-card) { border-radius:0; box-shadow:none; }
.gateway-standalone :is(.card,.status-card,.form-card,.signup-card,.panel,.feature-card,.tier-card) { background:var(--gateway-paper); border-color:var(--gateway-line); }
.gateway-standalone :is(.card,.status-card,.form-card,.signup-card) { border-top:3px solid var(--gateway-cherry); }
.gateway-standalone :is(input,select,textarea,.btn,.button,.submit-btn,.support-link) { border-radius:0; }
.gateway-standalone :is(.btn,.button,.submit-btn,.support-link) { background:var(--gateway-blue); border-color:var(--gateway-blue); color:var(--gateway-paper); box-shadow:none; }
.gateway-standalone :is(.btn,.button,.submit-btn,.support-link):hover { background:var(--gateway-ink); color:var(--gateway-paper); transform:none; }
.gateway-standalone :is(.intro,.message,.note,.subtitle) { color:var(--gateway-ink); }
.gateway-standalone :is(.branding-footer,.footer) { background:var(--gateway-paper); color:var(--gateway-ink); border-top:1px solid var(--gateway-line); }
.gateway-standalone :focus-visible { outline:2px solid var(--gateway-blue); outline-offset:3px; }
.gateway-standalone .status-card { padding:clamp(24px,5vw,48px); }
.gateway-standalone .brand-text { font-size:15px; }
/* The approved color logo also replaces legacy images with inline inversion. */
.gateway-standalone img[src^="/static/favicon.svg"] { filter:none!important; }
.gateway-standalone .brand-text > span:last-child { color:var(--gateway-cherry)!important; font-weight:700!important; font-size:15px!important; }
.gateway-standalone :is([class$="-card"],.hero-code,.btn-hero,.btn-primary,.btn-login) { border-radius:0; box-shadow:none; }
.gateway-standalone :is(.btn-primary,.btn-hero-primary) { background:var(--gateway-blue); color:var(--gateway-paper); border-color:var(--gateway-blue); }
.gateway-standalone :is(.hero-title,.section-title) { font-weight:400; }
.gateway-standalone :is(.hero-title .accent,.stat-value .highlight) { background:none; -webkit-text-fill-color:currentColor; color:inherit; }
.gateway-standalone .hero-title .accent, .gateway-standalone .hero-subtitle { color:var(--gateway-cherry); }
.gateway-standalone .hero-subtitle::before { background:var(--gateway-cherry); }
.gateway-standalone .hero-section::after { background:none; }
.gateway-standalone .stats-bar { background:#2854ac; border-block:1px solid var(--gateway-line); }
.gateway-standalone .stat-label { color:#e0e8f6; }
.gateway-standalone .hero-code { background:#183d7e; border-color:var(--gateway-line); }
@media(max-width:600px) {
 .gateway-standalone :is(.topbar-inner,.nav-container) { width:calc(100% - 32px); flex-wrap:wrap; gap:12px; height:auto; }
 .gateway-standalone .topbar { height:auto; min-height:76px; padding-block:12px; }
 .gateway-standalone .header-actions { flex-wrap:wrap; gap:12px; }
 .gateway-standalone .hero-grid > * { min-width:0; }
 .gateway-standalone .newsletter-form > div { flex-wrap:wrap; gap:12px; }
 .gateway-standalone .newsletter-form input { min-width:0; }
}
html[data-theme="dark"] .gateway-shell .v2-page { --bg: 16 29 52; --surface: 26 44 64; --line: 83 103 132; --text: 224 232 246; --accent: 133 173 242; }
/* Reuse all footer links, form handling and disclosures in the new visual system. */
.landing .examples-choice-label { margin:28px 0 16px; font-size:17px; color:var(--t1-ink); }
.landing .examples-audience-choice { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:28px; }
.landing .examples-audience-choice a { display:grid; gap:12px; padding:24px 28px; border:1px solid var(--t1-line); background:#fff; color:#214d9e; text-decoration:none; }
.landing .examples-audience-choice a[aria-current="page"] { border-color:var(--t1-cherry); }
.landing .examples-audience-choice strong { color:var(--t1-cherry); font:400 23px/1.3 var(--font-sans); }
.landing .examples-audience-choice span { color:#214d9e; font-size:15px; line-height:1.6; }
@media(max-width:780px) { .landing .examples-audience-choice { grid-template-columns:1fr; margin-bottom:32px; } }
/* Match the Quant Interviews footer in both themes. */
.t1-footer-wrap, html.dark .t1-footer-wrap, .gateway-standalone .branding-footer { --bg:36 85 165; --text:244 242 232; --muted:226 233 244; --line:124 155 206; --accent:244 242 232; background:rgb(var(--bg)); color:rgb(var(--text)); }
.t1-footer-wrap .branding-footer { margin: 0; padding: 0; background: rgb(var(--bg)); color: rgb(var(--text)); }
.t1-footer-wrap .branding-footer-inner { width: 91.2%; max-width: none; padding-top: 70px; border-top: 0; }
.t1-footer-wrap .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .65fr)); gap: 6%; margin-bottom: 55px; }
.t1-footer-wrap .footer-brand { max-width: 560px; }
.t1-footer-wrap .branding-logo { margin-bottom: 23px; }
.t1-footer-wrap .branding-logo span { font-weight: 400; font-size: 25px; }
.t1-footer-wrap .branding-logo .brand-icon { width: 30px; height: 30px; }
.t1-footer-wrap .branding-tagline { max-width: 42ch; font-size: 16px; }
:is(.t1-footer-wrap, .gateway-standalone .branding-footer) .footer-column h3 { font: 12px/1.5 ui-monospace, monospace; font-weight: 700; letter-spacing: .1em; margin-bottom: 25px; }
.t1-footer-wrap .footer-links { gap: 13px; font-size: 16px; }
.t1-footer-wrap .footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
:is(.t1-footer-wrap, .gateway-standalone .branding-footer) .newsletter-row { gap:12px; flex-wrap:wrap; }
:is(.t1-footer-wrap, .gateway-standalone .branding-footer) .newsletter-form input { border:1px solid rgb(var(--text)); border-radius:0; background:rgb(var(--text)); color:rgb(var(--bg)); min-height:50px; min-width:160px; }
:is(.t1-footer-wrap, .gateway-standalone .branding-footer) .newsletter-form input::placeholder { color:rgb(var(--bg)); }
:is(.t1-footer-wrap, .gateway-standalone .branding-footer) .newsletter-form button { border-radius:0; min-height:50px; padding-inline:22px; font-weight:500; background:rgb(var(--text)); border-color:rgb(var(--text)); color:rgb(var(--bg)); }
:is(.t1-footer-wrap, .gateway-standalone .branding-footer) .newsletter-form button:hover { background:rgb(var(--bg)); color:rgb(var(--text)); }
:is(.t1-footer-wrap .branding-footer, .gateway-standalone .branding-footer) :focus-visible, .t1-footer-wrap :is(.t1-footer-end,.t2-release) a:focus-visible { outline:2px solid rgb(var(--text)); outline-offset:3px; }
.gateway-standalone .branding-footer :is(h2,h3,.branding-logo,.footer-links a) { color:rgb(var(--text)); }
.gateway-standalone .branding-footer .footer { background:rgb(var(--bg)); color:rgb(var(--text)); }
:is(.t1-footer-wrap, .gateway-standalone .branding-footer) #newsletter-feedback-footer.is-error { color:#8b1e2e; background:#fff1f3; border-color:#fecdd3; }
:is(.t1-footer-wrap, .gateway-standalone .branding-footer) #newsletter-feedback-footer.is-success { color:rgb(var(--bg)); background:rgb(var(--text)); border-color:rgb(var(--text)); }
.t1-footer-wrap .social-icons { gap: 9px; margin-top: 24px; }
.t1-footer-wrap .social-icons a { border-radius: 0; width: 38px; height: 38px; }
:is(.t1-footer-wrap, .gateway-standalone .branding-footer) .social-icons a { border:0; background:transparent; }
:is(.t1-footer-wrap, .gateway-standalone .branding-footer) .social-icons a:hover { background:transparent; opacity:.75; }
.t1-footer-wrap .legal-note { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 5%; max-width: none; padding-top: 28px; border-top: 1px solid rgb(var(--line)); font-size: 12px; line-height: 1.7; color: rgb(var(--muted)); }
.t1-footer-wrap .legal-note p { margin: 0; max-width: 115ch; }
.t1-footer-wrap .legal-line { grid-column: 1 / -1; margin: 12px 0 0; padding: 0; font: 11px/1.6 ui-monospace, monospace; text-align: left; }
.t1-footer-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 13px 4.4% 26px; font: 10px/1.6 ui-monospace, monospace; }
.t1-footer-end a { color: inherit; text-underline-offset: 3px; }
/* The floating dialog keeps the page palette instead of inheriting footer colors. */
.t1-footer-wrap .qjfw-widget { --bg:244 241 232; --surface:250 248 241; --text:33 77 158; --muted:75 98 137; --line:180 189 208; --accent:40 84 172; }
html.dark .t1-footer-wrap .qjfw-widget { --bg:16 29 52; --surface:26 44 64; --text:224 232 246; --muted:181 198 223; --line:83 103 132; --accent:133 173 242; }
@media (max-width: 760px) {
  .t1-footer-wrap .branding-footer-inner { width: 88%; padding-top: 50px; }
  .t1-footer-wrap .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 24px; }
  .t1-footer-wrap .footer-brand { grid-column: 1 / -1; max-width: none; }
  .t1-footer-wrap .footer-column:last-child { grid-column: 1 / -1; }
  .t1-footer-wrap .legal-note { grid-template-columns: 1fr; gap: 16px; }
  .t1-footer-wrap .footer-links { font-size: 15px; }
  .t1-footer-end { padding-inline: 6%; font-size: 9px; }
}

/* The homepage, connector and pricing questions share one layout. */
.landing.gateway-shell .gateway-faq { display:grid; grid-template-columns:1fr 1.3fr; gap:9%; color:var(--t1-ink); padding-block:62px; }
.landing.gateway-shell .gateway-faq h2 { margin-top:24px; max-width:20ch; color:inherit; font:400 clamp(30px,3.4vw,48px)/1.08 var(--sans); text-transform:none; letter-spacing:-.04em; }
.landing.gateway-shell .gateway-faq .faq-list { display:block; }
.landing.gateway-shell .gateway-faq details { margin:0; padding:25px 0; border:0; border-top:1px solid var(--t1-line); border-radius:0; background:transparent; box-shadow:none; }
.landing.gateway-shell .gateway-faq details[open] { box-shadow:none; border-color:var(--t1-line); }
.landing.gateway-shell .gateway-faq details:last-child { border-bottom:1px solid var(--t1-line); }
.landing.gateway-shell .gateway-faq summary { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:0; color:inherit; font:400 17px/1.4 var(--sans); list-style:none; cursor:pointer; }
.landing.gateway-shell .gateway-faq summary::-webkit-details-marker { display:none; }
.landing.gateway-shell .gateway-faq summary > span[aria-hidden] { width:auto; height:auto; border-radius:0; color:inherit; background:transparent; font:300 26px/1 var(--sans); }
.landing.gateway-shell .gateway-faq details[open] summary > span[aria-hidden] { transform:rotate(45deg); }
.landing.gateway-shell .gateway-faq .faq-answer { padding:0; }
.landing.gateway-shell .gateway-faq details p { padding-top:19px; color:var(--t1-muted,#4b6289); font:400 14px/1.7 var(--sans); }
.landing.gateway-shell .gateway-faq summary:focus-visible { outline:2px solid var(--t1-ink); outline-offset:4px; border-radius:0; }
@media(max-width:760px) {
 .landing.gateway-shell .gateway-faq { grid-template-columns:1fr; gap:35px; }
 .landing.gateway-shell .gateway-faq h2 { font-size:31px; }
 .landing.gateway-shell .gateway-faq summary { font-size:15px; }
}

/* The closing section is shared by the homepage, Agents, Skills and MCP. */
.landing.gateway-shell .t2-closing { position:relative; z-index:4; width:100vw; max-width:none; margin-inline:calc(50% - 50vw); display:grid; grid-template-columns:minmax(0,1fr) minmax(200px,.35fr); gap:7%; padding:70px 4.4%; color:#f4f1e8; background-color:#961e84; background-image:linear-gradient(rgb(244 241 232 / .055) 1px,transparent 1px),linear-gradient(90deg,rgb(244 241 232 / .055) 1px,transparent 1px); background-size:56px 56px; }
.landing.gateway-shell .t2-closing > .t2-closing-copy { display:block; padding:0; }
.landing.gateway-shell .t2-closing h2 { max-width:20ch; margin:0; color:inherit; font-size:clamp(30px,3.6vw,60px); }
.gateway-shell .t2-closing-copy > p { max-width:58ch; margin-top:28px; color:#f4f1e8; font-size:14px; line-height:1.65; }
.gateway-shell .t2-closing-actions { display:flex; flex-wrap:wrap; align-items:center; gap:30px; margin-top:34px; }
.gateway-shell .t2-closing-actions a { display:inline-flex; align-items:center; justify-content:space-between; gap:32px; padding-block:12px; color:inherit; text-decoration:none; border-bottom:1px solid currentColor; font-size:14px; }
.gateway-shell .t2-closing-actions .t2-closing-primary { padding:15px 22px; border:1px solid #f4f1e8; background:#f4f1e8; color:#961e84; }
.gateway-shell .t2-closing-actions .t2-closing-primary:hover { background:transparent; color:#f4f1e8; }
.gateway-shell .t2-closing a:focus-visible { outline:2px solid #f4f1e8; outline-offset:5px; }
.gateway-shell .t2-closing-points { align-self:end; margin:0; padding:0; list-style:none; }
.gateway-shell .t2-closing-points li { padding:22px 0; border-top:1px solid rgb(244 241 232 / .45); font-size:18px; line-height:1.4; }
@media(max-width:760px) {
 .landing.gateway-shell .t2-closing { grid-template-columns:1fr; gap:40px; padding:48px 6%; }
 .gateway-shell .t2-closing-copy > p { font-size:14px; }
 .gateway-shell .t2-closing-points li { padding:18px 0; font-size:16px; }
}


.gateway-shell .gateway-explainer { margin:28px 0; padding:22px 0; border-block:1px solid var(--t1-line); color:var(--t1-ink); font-size:17px; line-height:1.65; }
.gateway-shell .nav-cta:is(:hover,:focus-visible) { background:var(--t1-paper,#f4f1e8); border-color:var(--t1-cherry,#961e84); color:var(--t1-cherry,#961e84); }

html[data-theme="dark"] .gateway-shell .nav-cta:is(:hover,:focus-visible) { color:var(--t1-cherry,#961e84); }

.gateway-link-icon { flex:none; vertical-align:-.15em; }

.landing.gateway-shell .gateway-faq .faq-item[open] .faq-icon { color:inherit; background:transparent; border:0; }
.landing.gateway-shell .gateway-faq h2 { font-weight:400 !important; }
