/**
==========================================================================
@fileOverview
Shared "standard" page layout (hero, seams, cards) used by Developers,
Contact, Careers, News. Home remains on its own stylesheet.
@notes
This update centers the "Developer Resources" heading and constrains the
card grid width to match the reference design — title in white, centered,
and grid contained to a comfortable max-width (not edge-to-edge).
@timestamp
2026-03-21 11:05:00 PM UTC
========================================================================== */

/* Standard Page Layout — shared by Developers, Contact, Careers, News
  Keep Home on its own home.css. This file defines the common hero,
  section seam, buttons, and grid baseline so normal pages look consistent. */

:root {
  /* Shared card height for compact, even rows */
  --std-card-height: clamp(240px, 32vh, 300px);
  --std-surface: rgb(16 28 52 / 88%);
  --std-border: rgb(210 225 255 / 16%);
  --std-border-strong: rgb(255 255 255 / 20%);
  --std-text: var(--qk-premium-text);
  --std-text-muted: var(--qk-premium-text-soft);
  --std-heading: var(--qk-premium-title);
  --std-accent-orange: var(--qk-accent-orange);
  --std-accent-blue: var(--qk-accent-blue); /* rgb(77 130 255) */
  --std-link: #fbd9a2;
  --std-card-shadow: 0 24px 48px rgb(5 12 24 / 50%);
  --std-rot-dark: var(--qk-standard-band-dark);
  --std-rot-mid: var(--qk-standard-band-mid);
  --std-rot-cta: var(--qk-standard-band-cta);
  --std-light-canvas: var(--qk-standard-light-canvas);
  --std-light-band: var(--qk-standard-light-band);
  --std-light-surface: var(--qk-standard-light-surface);
  --std-light-border: var(--qk-standard-light-border);
  --std-divider: var(--qk-standard-band-divider);
  --std-light-divider: var(--qk-standard-light-divider);
  --std-rot-pattern: var(--qk-standard-band-pattern);
}

/* Standard customer pages should never reveal default white body seams.
   Keep a dark base behind all shared section blocks. */
body.p-standard {
  background-color: var(--std-rot-dark);
  background-image: var(--std-rot-pattern);
  background-blend-mode: overlay;
  color: var(--std-text);
}

:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard {
  --std-surface: rgb(255 255 255 / 95%);
  --std-border: rgb(43 79 162 / 20%);
  --std-border-strong: rgb(43 79 162 / 30%);
  --std-text: #1f2d4a;
  --std-text-muted: #465979;
  --std-heading: #162544;
  --std-link: #2b4aa2;
  --std-card-shadow: 0 16px 30px rgb(15 23 42 / 10%);
  --std-rot-dark: var(--std-light-band);
  --std-rot-mid: var(--std-light-surface);
  --std-rot-cta: var(--std-light-band);
  --std-rot-pattern: linear-gradient(180deg, rgb(255 255 255 / 55%), rgb(245 249 255 / 74%));
  background: linear-gradient(180deg, var(--std-light-canvas) 0%, var(--std-light-surface) 100%);
  color: var(--std-text);
}

:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .section-bg,
:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .section-bg-dark,
:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .standard-section.standard-section-accent,
:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .standard-section.standard-section-tint,
:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .standard-section.standard-cta {
  border-top-color: var(--std-light-border);
  background-blend-mode: normal;
}

:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .section-bg-dark::before,
:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .standard-section.standard-section-accent::before {
  background: linear-gradient(180deg, rgb(157 173 204 / 36%), rgb(157 173 204 / 0%));
}

:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .contact-cta.section-bg-dark {
  background-color: var(--std-rot-mid);
  background-image: var(--std-rot-pattern);
}

/* --- Generic scroll animation helpers (standard pages) --- */
.fade-in {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.pending-animation {
  opacity: 0;
  transform: translateY(8px);
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* --- Hero (shared) --- */
.hero.hero-landing {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56vh; /* tuned to reduce whitespace under CTAs */
  text-align: center;
}

.hero .hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;

  /* Gradient fallback when no video is present */
  background: linear-gradient(135deg, rgb(15 29 56) 0%, rgb(17 38 79) 38%, rgb(62 99 238) 100%);
}

.hero .hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238aa9ff' fill-opacity='0.28'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 60px 60px;
  opacity: 0.28;
  mix-blend-mode: screen;
}

.hero .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgb(7 17 48 / 35%) 0%, rgb(5 12 32 / 40%) 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 3;
  padding: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 3;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.p-company-querykey-backup .hero.hero-landing .hero-content {
  padding-bottom: clamp(1.5rem, 5vw, 3rem);
}

.hero .hero-buttons {
  margin-top: 10px;
}

/* Hero keeps the dark gradient in light theme — body text vars switch to dark elsewhere,
   so force readable foreground + buttons inside the hero only. */
:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .hero.hero-landing .hero-title {
  color: #ffffff;
}

:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .hero.hero-landing .page-hero-description,
:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .hero.hero-landing .hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
}

:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .hero.hero-landing .hero-buttons .btn-primary {
  color: #ffffff;
}

:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .hero.hero-landing .hero-buttons .btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.72);
  color: #ffffff;
  background: rgba(8, 18, 42, 0.42);
  box-shadow: 0 10px 28px rgb(3 8 20 / 38%);
}

:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .hero.hero-landing .hero-buttons .btn-secondary:hover,
:is(body.light-mode, html.light-mode body, body[data-theme='light'], html[data-theme='light'] body).p-standard .hero.hero-landing .hero-buttons .btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  color: #ffffff;
}

.text-orange {
  color: var(--std-accent-orange);
}

.text-blue {
  color: var(--std-accent-blue);
}

/* Shared buttons (kept lightweight, consistent with marketing theme) */
.btn {
  padding: 12px 28px;
  border-radius: 18px;
  font-weight: 600;
  text-align: center;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary {
  border: 2px solid var(--std-accent-orange);
  background-color: var(--std-accent-orange);
  color: var(--std-heading);
}

.btn-primary:hover {
  background-color: rgb(247 138 29 / 92%);
  transform: translateY(-3px);
}

.btn-secondary {
  border: 2px solid var(--std-accent-blue);
  color: #fff;
  background: linear-gradient(135deg, var(--std-accent-blue) 0%, #2f4ab2 100%);
}

.btn-secondary:hover {
  transform: translateY(-3px);
}

.btn-ghost {
  border: 2px solid rgb(255 255 255 / 45%);
  color: var(--std-heading);
  background: transparent;
  box-shadow: 0 0 18px rgb(10 24 54 / 20%);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: rgb(255 255 255 / 6%);
  color: var(--std-heading);
}

body.light-mode.p-company-brand .btn-secondary {
  border-color: #3552d6;
  color: #111c3c;
  background: linear-gradient(135deg, #dee8ff 0%, #f7f9ff 100%);
  box-shadow: 0 8px 32px rgb(15 23 42 / 12%);
}

body.light-mode.p-company-brand .btn-secondary:hover {
  background: rgb(53 82 214 / 10%);
  color: #111c3c;
}

/* --- Section seam + backdrop --- */
.section-bg-dark {
  position: relative;
  background-color: var(--std-rot-dark);
  padding: 1px 0;
  background-image: var(--std-rot-pattern);
  background-blend-mode: overlay;
  border-top: 1px solid var(--std-divider);
}

/* Home-parity lighter rotating section tone */
.section-bg {
  position: relative;
  background-color: var(--std-rot-mid);
  padding: 1px 0;
  background-image: var(--std-rot-pattern);
  background-blend-mode: overlay;
  border-top: 1px solid var(--std-divider);
}

.section-bg-dark::before{
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;

  /* soft divider fade from hero into section */
  background: linear-gradient(180deg, rgb(7 17 48 / 40%), rgb(7 17 48 / 0%));
  pointer-events: none;
}

/*
  Developers section container tweaks
  - Add inner vertical rhythm
  - Constrain width and center the block
  - Ensure the section title appears white and centered
*/
.section-bg-dark .container {
  /* Vertical rhythm consistent with other standard sections */
  padding: clamp(2.5rem, 5vw, 4rem) 0;

  /* Center and constrain content width for cards & heading */
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}

.section-bg-dark .container > h2 {
  color: var(--std-heading);
  text-align: center;
  margin-bottom: clamp(1.25rem, 2.6vw, 2rem);
}

.standard-section-heading {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  margin: 0 0 clamp(1.25rem, 2.6vw, 2rem);
  text-align: center;
}

.standard-section-heading h2 {
  margin: 0;
  color: var(--std-heading);
}

.standard-section-heading p {
  margin: 0;
  max-width: 62ch;
  color: var(--std-text-muted);
}

/* Standard section inner spacing */
.contact-panels .container,
.standard-section .container {
  /* Establish consistent rhythm and readable line length for content
     sections that aren’t using the dark seam variant. This mirrors the
     width treatment applied to `.section-bg-dark .container` so text blocks
     like “What it is” don’t run edge‑to‑edge on wide screens. */
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}

/* Default heading treatment for standard sections (neutral surface).
   Accent sections override color/centering below. */
.standard-section > .container > h2 {
  margin: 0 0 clamp(1rem, 2.4vw, 1.6rem);
  line-height: 1.2;
}

/* Accent section variant for standard pages (lighter than .section-bg-dark) */
.standard-section.standard-section-accent {
  position: relative;
  background-color: var(--std-rot-dark);
  background-image: var(--std-rot-pattern);
  background-blend-mode: overlay;
  color: var(--std-text);
  border-top: 1px solid var(--std-divider);
}

.standard-section.standard-section-accent h2 {
  color: var(--std-heading);
  text-align: center;
  margin-bottom: clamp(1.1rem, 2.2vw, 1.6rem);
}

/* Subtle top seam so accent blocks transition smoothly after the hero */
.standard-section.standard-section-accent::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(180deg, rgb(7 17 48 / 40%), rgb(7 17 48 / 0%));
  pointer-events: none;
}

/* Soft-tint variant for neutral content sections: a lighter navy wash that
   complements the accent seams without overwhelming the copy. */
.standard-section.standard-section-tint {
  position: relative;
  background-color: var(--std-rot-mid);
  background-image: var(--std-rot-pattern);
  background-blend-mode: overlay;
  color: var(--std-text);
  border-top: 1px solid var(--std-divider);
}

/* Keep the first content section on standard pages in the canonical blue
   band so local/production surface parity stays consistent. */
body.p-standard main > .standard-section:first-of-type {
  background-color: var(--std-rot-dark);
}

.standard-section.standard-cta {
  position: relative;
  background-color: var(--std-rot-cta);
  background-image: var(--std-rot-pattern);
  background-blend-mode: overlay;
  color: var(--std-text);
  border-top: 1px solid var(--std-divider);
}

.p-company-querykey-backup .qk-after-hero-content > .standard-section.standard-section-tint {
  margin-top: -32px;
}

.p-company-querykey-backup .qk-after-hero-content > .standard-section.standard-section-tint .container {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.standard-section.standard-section-tint h2 {
  color: var(--std-heading);
  text-align: center;
}

/* --- Grid baseline --- */
.card-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: stretch;
  grid-auto-rows: 1fr; /* even rows */
}

/* Standard grid mirrors the contact grid baseline */
.standard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: stretch;
  grid-auto-rows: 1fr;
}

/* --- Cards (shared visuals) --- */

/* Theme scope: support new .std-theme wrapper and legacy .dev-contact-theme */
.std-theme,
.dev-contact-theme {
  color: var(--std-text);
}

.std-theme .contact-card,
.dev-contact-theme .contact-card {
  background: var(--std-surface);
  border: 2px solid var(--std-border);
  border-radius: 24px;
  padding: clamp(1.1rem, 2.2vw, 1.7rem);
  box-shadow: var(--std-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  height: var(--std-card-height);
  min-height: 0;
  justify-content: space-between;
}

/* Standard card visuals (neutral variant of contact-card) */
.standard-card {
  background: var(--std-surface);
  border: 2px solid var(--std-border);
  border-radius: 24px;
  padding: clamp(1.1rem, 2.2vw, 1.7rem);
  box-shadow: var(--std-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  height: var(--std-card-height);
  min-height: 0;
  justify-content: space-between;
  color: var(--std-text);
}

.std-theme .contact-card h2,
.dev-contact-theme .contact-card h2,
.std-theme .contact-card h3,
.dev-contact-theme .contact-card h3 {
  font-size: 1.6rem;
  margin-top: 0.2rem;
  color: var(--std-heading);
}

.standard-card h2,
.standard-card h3 {
  font-size: 1.6rem;
  margin-top: 0.2rem;
  color: var(--std-heading);
}

.std-theme .contact-card p,
.dev-contact-theme .contact-card p {
  margin: 0;
  color: var(--std-text-muted);
}

.standard-card p {
  margin: 0;
  color: var(--std-text-muted);
}

/* Alternating accents */
.std-theme .contact-grid .contact-card:nth-child(odd),
.dev-contact-theme .contact-grid .contact-card:nth-child(odd) {
  border-color: rgb(77 130 255 / 38%);
  box-shadow: 0 26px 52px rgb(77 130 255 / 18%), var(--std-card-shadow);
}

.std-theme .contact-grid .contact-card:nth-child(odd) :is(h2, h3),
.dev-contact-theme .contact-grid .contact-card:nth-child(odd) :is(h2, h3) {
  color: var(--std-accent-orange);
}

.std-theme .contact-grid .contact-card:nth-child(odd)::after,
.dev-contact-theme .contact-grid .contact-card:nth-child(odd)::after {
  background: linear-gradient(135deg, rgb(77 130 255 / 18%), transparent 60%);
}

.std-theme .contact-grid .contact-card:nth-child(even),
.dev-contact-theme .contact-grid .contact-card:nth-child(even) {
  border-color: rgb(var(--qk-accent-orange-rgb) / 45%);
  box-shadow: 0 26px 52px rgb(var(--qk-accent-orange-rgb) / 20%), var(--std-card-shadow);
}

.std-theme .contact-grid .contact-card:nth-child(even) :is(h2, h3),
.dev-contact-theme .contact-grid .contact-card:nth-child(even) :is(h2, h3) {
  color: var(--std-accent-blue);
}

.std-theme .contact-grid .contact-card:nth-child(even)::after,
.dev-contact-theme .contact-grid .contact-card:nth-child(even)::after {
  background: linear-gradient(135deg, rgb(var(--qk-accent-orange-rgb) / 22%), transparent 60%);
}

.std-theme .contact-card::after,
.dev-contact-theme .contact-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.std-theme .contact-card:hover::after,
.dev-contact-theme .contact-card:hover::after {
  opacity: 1;
}

.standard-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.standard-card:hover::after {
  opacity: 1;
}

/* Alternating accent treatment for similar light-mode company surfaces only. */
:is(body.p-company-querykey-db, body.p-company-querykey-knowledge-platform) .standard-grid .standard-card:nth-child(odd) {
  border-color: rgb(77 130 255 / 38%);
  box-shadow: 0 26px 52px rgb(77 130 255 / 18%), var(--std-card-shadow);
}

:is(body.p-company-querykey-db, body.p-company-querykey-knowledge-platform) .standard-grid .standard-card:nth-child(odd) :is(h2, h3) {
  color: var(--std-accent-orange);
}

:is(body.p-company-querykey-db, body.p-company-querykey-knowledge-platform) .standard-grid .standard-card:nth-child(odd)::after {
  background: linear-gradient(135deg, rgb(77 130 255 / 18%), transparent 60%);
}

:is(body.p-company-querykey-db, body.p-company-querykey-knowledge-platform) .standard-grid .standard-card:nth-child(even) {
  border-color: rgb(var(--qk-accent-orange-rgb) / 45%);
  box-shadow: 0 26px 52px rgb(var(--qk-accent-orange-rgb) / 20%), var(--std-card-shadow);
}

:is(body.p-company-querykey-db, body.p-company-querykey-knowledge-platform) .standard-grid .standard-card:nth-child(even) :is(h2, h3) {
  color: var(--std-accent-blue);
}

:is(body.p-company-querykey-db, body.p-company-querykey-knowledge-platform) .standard-grid .standard-card:nth-child(even)::after {
  background: linear-gradient(135deg, rgb(var(--qk-accent-orange-rgb) / 22%), transparent 60%);
}

/* Utility: compact card rows (less vertical whitespace) */
.standard-grid.compact {
  --std-card-height: clamp(200px, 26vh, 260px);
}

/* QueryKey Docs: match the home-page How It Works section more closely so
   the docs page keeps the same quality bar and motion rhythm. */
body.p-company-powered-docs .powered-docs-how-section {
  --docs-how-accent-orange: var(--qk-premium-accent);
  --docs-how-accent-orange-dark: #d66c00;
  --docs-how-accent-soft: #f6d19a;
  --docs-how-heading-accent: var(--std-accent-blue);
  --docs-how-surface-bg: rgb(22 44 80 / 40%);
  --docs-how-surface-border: rgb(255 255 255 / 10%);
  --docs-how-surface-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}

body.p-company-powered-docs .powered-docs-hero-wordmark__docs {
  color: var(--std-heading);
}

body.light-mode.p-company-powered-docs .powered-docs-how-section {
  --docs-how-surface-bg: var(--qk-standard-light-surface);
  --docs-how-surface-border: var(--qk-standard-light-border);
  --docs-how-surface-shadow: 0 8px 18px rgb(15 23 42 / 8%);
}

body.p-company-powered-docs .powered-docs-how-section .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
}

body.p-company-powered-docs .powered-docs-how-section .container > h2 {
  color: var(--docs-how-heading-accent);
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  margin-bottom: 50px;
}

body.p-company-powered-docs .powered-docs-how-section::before,
body.p-company-powered-docs .powered-docs-download-section::before {
  content: none;
}

body.p-company-powered-docs .powered-docs-how-section .fade-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.p-company-powered-docs .powered-docs-how-section .fade-in.pending-animation {
  opacity: 0;
  transform: translateY(30px);
}

body.p-company-powered-docs .powered-docs-how-section .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

body.p-company-powered-docs .powered-docs-how-section .how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

body.p-company-powered-docs .powered-docs-how-section .step-card {
  background: var(--docs-how-surface-bg);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--docs-how-accent-orange);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
  box-shadow: var(--docs-how-surface-shadow);
}

body.p-company-powered-docs .powered-docs-how-section .step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgb(0 0 0 / 20%);
  border-color: var(--docs-how-accent-orange-dark);
}

body.p-company-powered-docs .powered-docs-how-section .step-card h3 {
  font-size: 1.5rem;
  margin: 0 0 15px;
  color: var(--docs-how-accent-soft);
}

body.p-company-powered-docs .powered-docs-how-section .step-card p {
  margin: 0;
  color: var(--std-text-muted);
  max-width: 600px;
  margin-inline: auto;
}

body.p-company-powered-docs .powered-docs-how-section .step-card code {
  display: inline-block;
  padding: 0.18rem 0.45rem;
  border-radius: 8px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 10%);
  color: #f6d19a;
  font-size: 0.92em;
}

body.light-mode.p-company-powered-docs .powered-docs-how-section .step-card code {
  background: rgb(43 79 162 / 8%);
  border-color: rgb(43 79 162 / 18%);
  color: #2b4aa2;
}

body.p-company-powered-docs .powered-docs-how-section .step-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--docs-how-accent-orange);
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  border: 2px solid var(--docs-how-accent-orange);
  margin: 0 auto 20px;
}

body.p-company-powered-docs .powered-docs-how-section .how-it-works-grid .step-card:nth-child(1) {
  transition-delay: 0s;
}

body.p-company-powered-docs .powered-docs-how-section .how-it-works-grid .step-card:nth-child(2) {
  transition-delay: 0.1s;
}

body.p-company-powered-docs .powered-docs-how-section .how-it-works-grid .step-card:nth-child(3) {
  transition-delay: 0.2s;
}

body.p-company-powered-docs .powered-docs-how-section .toggle-section-container {
  padding-bottom: 50px;
}

body.p-company-powered-docs .powered-docs-how-section .toggle-content-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.7s ease-in-out, opacity 0.5s ease;
}

body.p-company-powered-docs .powered-docs-how-section .toggle-content-wrapper.active {
  opacity: 1;
}

body.p-company-powered-docs .powered-docs-how-section .toggle-btn {
  background: var(--docs-how-accent-orange);
  border: 2px solid var(--docs-how-accent-orange);
  color: var(--std-heading);
  cursor: pointer;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  width: 100%;
  margin: 20px auto 50px;
  padding: 12px 28px;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

body.p-company-powered-docs .powered-docs-how-section .toggle-btn:hover,
body.p-company-powered-docs .powered-docs-how-section .toggle-btn.active {
  background-color: var(--docs-how-accent-orange-dark);
  border-color: var(--docs-how-accent-orange-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgb(0 0 0 / 20%);
}

body.p-company-powered-docs .powered-docs-how-section .toggle-btn .icon {
  display: inline-flex;
  transition: transform 0.5s ease;
}

body.p-company-powered-docs .powered-docs-how-section .toggle-btn.active .icon {
  transform: rotate(180deg);
}

body.light-mode.p-company-powered-docs .powered-docs-how-section .toggle-btn {
  color: var(--qk-premium-title);
}

body.p-company-powered-docs .powered-docs-how-section .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding-top: 30px;
}

body.p-company-powered-docs .powered-docs-how-section .feature-card {
  background: var(--docs-how-surface-bg);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--docs-how-surface-border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--docs-how-surface-shadow);
}

body.p-company-powered-docs .powered-docs-how-section .toggle-content-wrapper .feature-card {
  border-color: rgb(255 255 255 / 14%);
}

body.light-mode.p-company-powered-docs .powered-docs-how-section .toggle-content-wrapper .feature-card {
  border-color: rgb(43 79 162 / 16%);
}

body.p-company-powered-docs .powered-docs-how-section .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 26px rgb(15 23 42 / 16%);
}

body.p-company-powered-docs .powered-docs-how-section .toggle-content-wrapper .feature-card:hover {
  border-color: rgb(255 255 255 / 24%);
}

body.light-mode.p-company-powered-docs .powered-docs-how-section .toggle-content-wrapper .feature-card:hover {
  border-color: rgb(43 79 162 / 26%);
}

body.p-company-powered-docs .powered-docs-how-section .feature-icon {
  font-size: 2.5rem;
  color: var(--docs-how-accent-orange);
  margin-bottom: 15px;
}

body.p-company-powered-docs .powered-docs-how-section .feature-card h3 {
  font-size: 1.5rem;
  margin: 0 0 15px;
  color: var(--docs-how-accent-soft);
}

body.p-company-powered-docs .powered-docs-how-section .feature-card p {
  margin: 0 auto;
  max-width: 600px;
  color: var(--std-text-muted);
}

body.p-company-powered-docs .powered-docs-how-section .feature-card code {
  display: inline-block;
  padding: 0.18rem 0.45rem;
  border-radius: 8px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 10%);
  color: #f6d19a;
  font-size: 0.92em;
}

body.light-mode.p-company-powered-docs .powered-docs-how-section .feature-card code {
  background: rgb(43 79 162 / 8%);
  border-color: rgb(43 79 162 / 18%);
  color: #2b4aa2;
}

@media (max-width: 768px) {
  body.p-company-powered-docs .powered-docs-how-section .container {
    width: min(92%, 1200px);
    padding: 64px 0;
  }
}

body.p-company-powered-docs .center-text {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

body.p-company-powered-docs .powered-docs-download-section .container,
body.p-company-powered-docs .powered-docs-dev-section .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
}

body.p-company-powered-docs .powered-docs-download-section {
  --docs-section-accent: var(--std-accent-orange);
  --docs-section-accent-soft: #f6d19a;
  --docs-section-accent-dark: #d66c00;
  --docs-heading-accent: var(--std-accent-blue);
}

body.p-company-powered-docs .powered-docs-dev-section {
  --docs-section-accent: var(--std-accent-blue);
  --docs-section-accent-soft: #a9c5ff;
  --docs-section-accent-dark: #2f4ab2;
  --docs-heading-accent: var(--std-accent-orange);
}

body.p-company-powered-docs .powered-docs-download-section h2,
body.p-company-powered-docs .powered-docs-dev-section h2 {
  color: var(--docs-heading-accent);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 18px;
}

body.p-company-powered-docs .powered-docs-download-section .center-text,
body.p-company-powered-docs .powered-docs-dev-section .center-text {
  max-width: 760px;
  color: var(--std-text-muted);
  margin-bottom: 32px;
}

body.p-company-powered-docs .powered-docs-download-section .center-text code,
body.p-company-powered-docs .powered-docs-dev-section .center-text code,
body.p-company-powered-docs .powered-docs-download-meta code,
body.p-company-powered-docs .dev-tab-note code {
  display: inline-block;
  padding: 0.18rem 0.45rem;
  border-radius: 8px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 10%);
  color: var(--docs-section-accent-soft);
  font-size: 0.92em;
}

body.light-mode.p-company-powered-docs .powered-docs-download-section .center-text code,
body.light-mode.p-company-powered-docs .powered-docs-dev-section .center-text code,
body.light-mode.p-company-powered-docs .powered-docs-download-meta code,
body.light-mode.p-company-powered-docs .dev-tab-note code {
  background: rgb(43 79 162 / 8%);
  border-color: rgb(43 79 162 / 18%);
  color: #2b4aa2;
}

body.p-company-powered-docs .powered-docs-download-card,
body.p-company-powered-docs .dev-integration-card {
  background: rgb(22 44 80 / 40%);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgb(255 255 255 / 10%);
  box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode.p-company-powered-docs .powered-docs-download-card,
body.light-mode.p-company-powered-docs .dev-integration-card {
  background: var(--qk-standard-light-surface);
  border-color: var(--qk-standard-light-border);
  box-shadow: 0 8px 18px rgb(15 23 42 / 8%);
}

body.p-company-powered-docs .powered-docs-download-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 30px;
  align-items: stretch;
}

body.p-company-powered-docs .powered-docs-download-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--docs-section-accent);
}

body.p-company-powered-docs .powered-docs-download-copy h3 {
  margin: 0 0 15px;
  color: var(--docs-section-accent-soft);
  font-size: 1.6rem;
}

body.p-company-powered-docs .powered-docs-download-copy p {
  margin: 0 0 18px;
  color: var(--std-text-muted);
  max-width: 620px;
}

body.p-company-powered-docs .powered-docs-download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

body.p-company-powered-docs .powered-docs-download-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 12%);
  background: rgb(255 255 255 / 5%);
  color: var(--std-text);
  font-size: 0.92rem;
}

body.light-mode.p-company-powered-docs .powered-docs-download-meta span {
  border-color: rgb(43 79 162 / 16%);
  background: rgb(43 79 162 / 4%);
}

body.p-company-powered-docs .powered-docs-download-stack {
  display: grid;
  gap: 18px;
}

body.p-company-powered-docs .powered-docs-dev-section .dev-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  margin-bottom: 30px;
}

body.light-mode.p-company-powered-docs .powered-docs-dev-section .dev-tabs-nav {
  border-bottom-color: var(--qk-standard-light-border);
}

body.p-company-powered-docs .powered-docs-dev-section .dev-tab-link {
  padding: 10px 20px;
  background: transparent;
  border: none;
  color: var(--std-text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

body.p-company-powered-docs .powered-docs-dev-section .dev-tab-link.active {
  color: var(--docs-section-accent);
  border-bottom-color: var(--docs-section-accent);
}

body.p-company-powered-docs .powered-docs-dev-section .dev-tab-link:hover:not(.active) {
  color: var(--docs-section-accent-soft);
}

body.p-company-powered-docs .powered-docs-dev-section .dev-tab-pane {
  display: none;
}

body.p-company-powered-docs .powered-docs-dev-section .dev-tab-pane.active {
  display: block;
}

body.p-company-powered-docs .powered-docs-dev-section .dev-tab-intro {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--std-text-muted);
  max-width: 720px;
}

body.p-company-powered-docs .powered-docs-dev-section .dev-tab-note {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--std-text);
}

body.p-company-powered-docs .powered-docs-download-section .code-caption,
body.p-company-powered-docs .powered-docs-dev-section .code-caption {
  font-weight: 700;
  margin-bottom: 8px;
  font-family: QueryKeyMono, monospace;
  color: var(--docs-section-accent-soft);
}

body.p-company-powered-docs .powered-docs-download-section .code-block,
body.p-company-powered-docs .powered-docs-dev-section .code-block {
  background-color: #000;
  border-radius: 20px;
  padding: 20px;
  margin-top: 15px;
  position: relative;
  transition: background-color 0.3s ease;
}

body.light-mode.p-company-powered-docs .powered-docs-download-section .code-block,
body.light-mode.p-company-powered-docs .powered-docs-dev-section .code-block {
  background-color: #edf2f7;
}

body.p-company-powered-docs .powered-docs-download-section pre,
body.p-company-powered-docs .powered-docs-dev-section pre {
  color: var(--docs-section-accent);
  font-family: QueryKeyMono, monospace;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.light-mode.p-company-powered-docs .powered-docs-download-section pre,
body.light-mode.p-company-powered-docs .powered-docs-dev-section pre {
  color: #2d3748;
}

body.p-company-powered-docs .powered-docs-download-section .copy-button,
body.p-company-powered-docs .powered-docs-dev-section .copy-button {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--docs-section-accent);
  border: none;
  color: var(--std-heading);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

body.p-company-powered-docs .powered-docs-download-section .copy-button:hover,
body.p-company-powered-docs .powered-docs-dev-section .copy-button:hover {
  background-color: var(--docs-section-accent-dark);
}

body.p-company-powered-docs .powered-docs-dev-section .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 40px;
}

@media (max-width: 980px) {
  body.p-company-powered-docs .powered-docs-download-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.p-company-powered-docs .powered-docs-download-section .container,
  body.p-company-powered-docs .powered-docs-dev-section .container {
    width: min(92%, 1200px);
    padding: 64px 0;
  }

  body.p-company-powered-docs .powered-docs-download-section .hero-actions,
  body.p-company-powered-docs .powered-docs-dev-section .cta-buttons {
    flex-direction: column;
  }
}

/* Clamp descriptions for unified height */
.std-theme .contact-card p,
.dev-contact-theme .contact-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.standard-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

/* CTA pills and dev-link */
.std-theme .dev-link,
.dev-contact-theme .dev-link,
.std-theme .contact-pill,
.dev-contact-theme .contact-pill {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--std-border);
  background: rgb(255 255 255 / 4%);
  font-weight: 600;
  color: var(--std-link);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.standard-card .dev-link,
.standard-card .contact-pill {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--std-border);
  background: rgb(255 255 255 / 4%);
  font-weight: 600;
  color: var(--std-link);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.std-theme .contact-card:hover .dev-link,
.dev-contact-theme .contact-card:hover .dev-link,
.std-theme .contact-card:hover .contact-pill,
.dev-contact-theme .contact-card:hover .contact-pill {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgb(6 12 24 / 28%);
}

.standard-card:hover .dev-link,
.standard-card:hover .contact-pill {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgb(6 12 24 / 28%);
}

/* Compact list + muted text for standard sections */
.standard-section .compact-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  color: var(--std-text-muted);
}

.standard-section .compact-list li {
  margin: 0 0 0.5rem;
}

.standard-section .compact-list code {
  background: rgb(255 255 255 / 6%);
  border: 1px solid var(--std-border);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.standard-section .muted {
  color: var(--std-text-muted);
}

/* CTA centering for standard pages */
.standard-cta .container {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Branded CTA actions variant for standard pages that need fixed orange/blue
   action semantics across dark and light modes. */
.standard-section.standard-cta.standard-cta--brand-actions .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.standard-section.standard-cta.standard-cta--brand-actions .hero-actions .btn {
  min-width: clamp(220px, 30vw, 300px);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.5rem;
  text-decoration: none;
}

.standard-section.standard-cta.standard-cta--brand-actions .hero-actions .btn.btn-primary {
  border: 1px solid rgb(236 138 35 / 45%);
  background: linear-gradient(135deg, rgb(255 190 115 / 98%), rgb(236 138 35 / 98%));
  color: #231a0a;
  box-shadow: 0 14px 28px rgb(236 138 35 / 34%), inset 0 1px 0 rgb(255 245 226 / 88%);
}

.standard-section.standard-cta.standard-cta--brand-actions .hero-actions .btn.btn-primary:is(:hover, :focus-visible) {
  border-color: rgb(236 138 35 / 60%);
  background: linear-gradient(135deg, rgb(255 203 140 / 98%), rgb(236 138 35 / 96%));
  box-shadow: 0 16px 30px rgb(236 138 35 / 42%), inset 0 1px 0 rgb(255 247 232 / 95%);
}

.standard-section.standard-cta.standard-cta--brand-actions .hero-actions .btn.btn-secondary {
  border: 1px solid rgb(53 82 214 / 60%);
  background: linear-gradient(135deg, rgb(94 133 255 / 96%), rgb(53 82 214 / 97%));
  color: #f8fbff;
  box-shadow: 0 14px 28px rgb(53 82 214 / 33%), inset 0 1px 0 rgb(220 231 255 / 28%);
}

.standard-section.standard-cta.standard-cta--brand-actions .hero-actions .btn.btn-secondary:is(:hover, :focus-visible) {
  border-color: rgb(53 82 214 / 80%);
  background: linear-gradient(135deg, rgb(112 147 255 / 98%), rgb(62 99 238 / 99%));
  box-shadow: 0 16px 30px rgb(53 82 214 / 42%), inset 0 1px 0 rgb(235 241 255 / 35%);
}

/* Eyebrow and lists (used on Contact) */
.std-theme .card-eyebrow,
.dev-contact-theme .card-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--std-accent-orange);
  font-weight: 700;
}

.std-theme .contact-card ul,
.dev-contact-theme .contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--std-text-muted);
}

.std-theme .contact-card li,
.dev-contact-theme .contact-card li {
  margin-bottom: 0.5rem;
}

.std-theme .contact-card strong,
.dev-contact-theme .contact-card strong {
  color: var(--std-heading);
}

/* Compact code block used on CLI card */
.std-theme .code-caption,
.dev-contact-theme .code-caption {
  font-size: 0.78rem;
  color: var(--std-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0.1rem 0 0.2rem;
}

.std-theme .code-block pre,
.dev-contact-theme .code-block pre {
  font-size: 0.85rem;
  padding: 0.5rem 0.7rem;
  margin: 0;
}

.std-theme .code-block,
.dev-contact-theme .code-block {
  margin: 0.1rem 0 0.25rem;
  position: relative;
}

.std-theme .copy-button,
.dev-contact-theme .copy-button {
  position: absolute;
  right: 8px;
  top: 8px;
  background: var(--std-accent-orange);
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

/* Contact CTA section styling to match dark section and centered header */
.contact-cta .container {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
}

/* Contact CTA stays on the shared rotating middle band for visual parity. */
.contact-cta.section-bg-dark {
  /* Match canonical rotating middle band */
  background-color: var(--std-rot-mid);
}

.contact-cta .container > h2 {
  color: var(--std-heading);
  margin-bottom: 0.75rem;
}

.contact-cta .cta-copy {
  color: var(--std-text-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.contact-cta .cta-copy a {
  color: var(--std-link);
  font-weight: 700;
}
