/* Pixeluxe — brand styles
   Adapted from the design handoff (Direction 1 · Editorial Calm). */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --blue: #336CFA;
  --blue-deep: #2353D9;
  --pink: #D58AFB;
  --pink-deep: #B964E8;
  --gradient: linear-gradient(180deg, #336CFA 0%, #8F7DFA 55%, #D58AFB 100%);
  --gradient-h: linear-gradient(90deg, #336CFA 0%, #8F7DFA 55%, #D58AFB 100%);
  --ink: #1A1A2E;
  --ink-soft: #2D2D44;
  --mute: #6B7280;
  --mute-2: #9CA3AF;
  --canvas: #F5F5F7;
  --canvas-warm: #FAFAFB;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --white: #FFFFFF;

  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --pixel: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; overflow-x: clip; }
/* Reserve scrollbar gutter so the layout viewport width stays constant when
   the mobile menu locks body scroll — otherwise the fixed-positioned menu
   spans a wider viewport than the closed (in-flow) nav and the close-X
   appears to shift outward relative to where the burger sat. */
html { scrollbar-gutter: stable; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

/* ============================ LOGO ============================ */
.px-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.px-logo .orb {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}
.px-logo .word {
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.px-logo--light .word { color: #fff; }

/* ============================ BUTTONS ============================ */
.px-btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  padding: 14px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
  white-space: nowrap;
}
.px-btn:hover { transform: translateY(-1px); }
.px-btn-primary {
  background: var(--blue);
  color: #fff !important;
  box-shadow: 0 4px 24px -8px rgba(51,108,250,0.4);
}
.px-btn-primary:hover { background: var(--blue-deep); }
.px-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.px-btn-dark {
  background: var(--ink);
  color: #fff !important;
}

/* ============================ TYPE ============================ */
.px-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mute);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.px-h-display { font-family: var(--serif); font-size: clamp(40px, 5.6vw, 80px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 400; }
.px-h-section { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -0.015em; }
.px-h-card    { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.px-lead      { font-family: var(--serif); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.75; color: var(--ink-soft); text-wrap: pretty; }
.px-body      { font-family: var(--serif); font-size: 17px; line-height: 1.8; color: var(--ink-soft); text-wrap: pretty; }

/* ============================ NAV ============================ */
.px-nav {
  position: sticky; top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 5vw, 64px);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.px-nav-right {
  display: flex; align-items: center; gap: 28px;
}
.px-nav-links {
  display: flex; gap: 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.px-nav-links a { text-decoration: none; }
.px-nav-links a:hover { color: var(--blue); }

.px-burger {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.px-burger-icon, .px-burger-icon::before, .px-burger-icon::after {
  content: '';
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s, top 0.2s, opacity 0.2s;
}
.px-burger-icon::before { position: absolute; top: -7px; left: 0; right: 0; }
.px-burger-icon::after  { position: absolute; top:  7px; left: 0; right: 0; }
.px-burger.open .px-burger-icon { background: transparent; }
.px-burger.open .px-burger-icon::before { top: 0; transform: rotate(45deg); }
.px-burger.open .px-burger-icon::after  { top: 0; transform: rotate(-45deg); }

.px-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  /* Fixed-positioned elements span the visual viewport including the
     scrollbar gutter, but body content sits inside the layout viewport
     (gutter excluded). Without this, the close-X sits a gutter-width
     further out than the burger. --px-sbw is set by app.js. */
  right: var(--px-sbw, 0px);
  background: var(--white);
  z-index: 100;
  flex-direction: column;
  overflow-y: auto;
}
.px-mobile-menu.open { display: flex; }

.px-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Match .px-nav padding so the logo and close-X don't shift when the
     menu opens over the sticky header. */
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1;
}

.px-mobile-close {
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin-right: -10px;
}
.px-close-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}
.px-close-icon::before, .px-close-icon::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: absolute;
  top: 50%;
  left: 0;
}
.px-close-icon::before { transform: translateY(-50%) rotate(45deg); }
.px-close-icon::after  { transform: translateY(-50%) rotate(-45deg); }

.px-mobile-menu-nav {
  display: flex;
  flex-direction: column;
  /* Match .px-section horizontal padding so the open menu body aligns
     with the rest of the site's content (overridden at ≤480px). */
  padding: 20px 18px 0;
}
.px-mobile-menu-nav a {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  letter-spacing: -0.005em;
}
.px-mobile-menu-nav a:hover,
.px-mobile-menu-nav a:focus-visible { color: var(--blue); }

.px-mobile-cta {
  margin: 20px 18px 28px;
  align-self: stretch;
  justify-content: center;
  font-size: 13px;
  padding: 11px 20px;
}

/* ============================ SECTIONS ============================ */
.px-section { padding: clamp(72px, 10vw, 140px) clamp(24px, 5vw, 64px); }
.px-section.tight { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.px-section.dark { background: var(--ink); color: var(--canvas); }
.px-section.dark h1, .px-section.dark h2, .px-section.dark h3 { color: white; }
.px-section.dark .px-body, .px-section.dark .px-lead { color: rgba(255,255,255,0.78); }
.px-section.dark .px-eyebrow { color: var(--pink); }
.px-section.canvas { background: var(--canvas); }

.px-container { max-width: 1240px; margin: 0 auto; }
.px-container-sm { max-width: 880px; margin: 0 auto; }

/* ============================ RESPONSIVE GRIDS ============================ */
.px-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.px-grid-2.center { align-items: center; }
.px-grid-2.start  { align-items: start; }
.px-grid-2.wide-right { grid-template-columns: 1fr 2fr; }
.px-grid-2.wide-left  { grid-template-columns: 2fr 1fr; }
.px-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.px-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================ HERO (D1) ============================ */
.d1-hero {
  padding-top: 80px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}
.d1-hero-grid { grid-template-columns: 1.3fr 1fr; }
.d1-hero-eyebrow { margin-bottom: 28px; }
.d1-hero-lead { margin-top: 32px; max-width: 560px; }
.d1-hero-cta-row {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.d1-hero-fineprint {
  margin-top: 56px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mute);
}
.d1-hero-orb-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.d1-orb {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 40px 100px -30px rgba(143,125,250,0.45);
}

/* ============================ WHAT-IS (D1) ============================ */
.d1-whatis-grid { grid-template-columns: 1fr 1.2fr; }
.d1-whatis-right { padding-top: 38px; }
.d1-whatis-right .px-body { font-size: 19px; margin: 0; }
.d1-whatis-right .px-body + .px-body { margin-top: 18px; }
.d1-whatis-right .px-body.italic { font-style: italic; color: var(--ink); }
.d1-whatis-mock { margin-top: 48px; }

.px-platform-mock {
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 30px 80px -30px rgba(26,26,46,0.25), 0 12px 30px -16px rgba(26,26,46,0.12);
  border: 1px solid var(--line);
  background: #fff;
}
.px-platform-mock img { display: block; width: 100%; height: auto; }

.px-sticky-top { position: sticky; top: 100px; }

/* ============================ AI CARD (D1) ============================ */
.d1-ai-card {
  position: relative;
  min-height: 380px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FAFAFB 0%, #F5F5F7 100%);
  border: 1px solid var(--line);
  padding: 32px;
  font-family: var(--sans);
}
.d1-ai-label {
  font-size: 12px;
  color: var(--mute-2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 22px;
  font-weight: 600;
}
.d1-ai-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
}
.d1-ai-row + .d1-ai-row { border-top: 1px solid var(--line); }
.d1-ai-dot { width: 8px; height: 8px; display: block; }
.d1-ai-task { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.d1-ai-model { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--mute); }
.d1-ai-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--mute);
}

/* ============================ BLUEPRINT (D1) ============================ */
.d1-blueprint-intro { max-width: 720px; }
.d1-blueprint-rail-wrap {
  margin-top: 80px;
  position: relative;
  overflow-x: auto;
  padding-bottom: 8px;
}
.d1-blueprint-line {
  position: absolute;
  top: 38px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(51,108,250,0.6), rgba(213,138,251,0.6));
}
.d1-blueprint-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 0;
  position: relative;
}
.d1-phase { padding-right: 16px; position: relative; }
.d1-phase-pip {
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,0.92);
  margin-bottom: 22px;
  margin-top: 30px;
}
.d1-phase-pip--first { background: var(--blue); }
.d1-phase-pip--last  { background: var(--pink); }
.d1-phase-num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--pink);
}
.d1-phase-name {
  font-family: var(--serif);
  font-size: 22px;
  color: white;
  margin-top: 6px;
  margin-bottom: 12px;
}
.d1-phase-desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
  font-family: var(--serif);
}

/* ============================ CAPABILITIES (D1) ============================ */
.d1-cap-intro { max-width: 720px; margin-bottom: 60px; }
.d1-cap-grid { /* uses .px-grid-4 */ }
.d1-cap-card {
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  position: relative;
  min-height: 360px;
}
.d1-cap-num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--mute-2);
}
.d1-cap-title { margin-top: 8px; font-size: 28px; }
.d1-cap-list {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.d1-cap-list li {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 14px;
  position: relative;
}
.d1-cap-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--ink);
}

/* ============================ OBJECTIONS (D1) ============================ */
.d1-obj-intro { max-width: 720px; margin-bottom: 56px; }
.d1-obj-list { display: flex; flex-direction: column; gap: 0; }
.d1-obj-row {
  gap: 56px;
  padding: 40px 0;
  border-top: 1px solid var(--line-strong);
  align-items: start;
}
.d1-obj-row:last-child { border-bottom: 1px solid var(--line-strong); }
.d1-obj-num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--blue);
}
.d1-obj-q {
  font-family: var(--serif);
  font-size: 24px;
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--ink);
  line-height: 1.3;
  font-style: italic;
}
.d1-obj-a { margin: 0; }

/* ============================ PROOF (D1) ============================ */
.d1-proof-intro { max-width: 720px; margin-bottom: 56px; }
.d1-proof-intro .px-body { margin-top: 20px; max-width: 600px; }
.d1-proof-grid { gap: 32px; }
.d1-proof-card {
  display: block;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
}
.d1-proof-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -24px rgba(26,26,46,0.18);
}
.d1-proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}
.d1-proof-logo {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.d1-proof-cat {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--mute-2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.d1-proof-headline { font-size: 28px; line-height: 1.2; }
.d1-proof-summary { margin-top: 16px; }
.d1-proof-cta {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

/* ============================ PRICING (D1) ============================ */
.d1-pricing-intro { max-width: 720px; margin-bottom: 60px; }
.d1-pricing-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.px-pricerow {
  display: grid;
  grid-template-columns: 1fr 1.5fr 0.6fr;
  gap: 40px;
  padding: 32px 36px;
  align-items: center;
}
.px-pricerow + .px-pricerow { border-top: 1px solid var(--line); }
.d1-price-name { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.d1-price-desc { margin: 0; font-size: 16px; }
.d1-price-amount {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: right;
}
.d1-price-amount.featured { color: var(--blue); }

.d1-pricing-cta { text-align: center; margin-top: 40px; }

/* ============================ FAQ ============================ */
.px-faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}
.px-faq-intro { /* default */ }
.px-faq-intro .px-body { margin-top: 20px; }
.px-faq-list { /* container */ }
.px-faq-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.px-faq-list .px-faq-item:last-child { border-bottom: 1px solid var(--line); }
.px-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  line-height: 1.4;
}
.px-faq-item summary::-webkit-details-marker { display: none; }
.px-faq-item .px-faq-toggle {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  transform: rotate(0);
  transition: transform 0.2s;
}
.px-faq-item[open] .px-faq-toggle { transform: rotate(45deg); }
.px-faq-item p {
  margin-top: 14px;
  margin-bottom: 0;
  padding-right: 60px;
}
.px-faq-replace {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 60px 0 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.px-faq-replace li {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}
.px-faq-replace li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background: var(--blue);
}
.px-faq-replace strong { color: var(--ink); font-weight: 600; }

/* ============================ FINAL CTA ============================ */
.final-cta { text-align: center; }
.final-cta .px-h-section { font-size: clamp(40px, 5vw, 68px); }
.final-cta .px-lead { margin-top: 24px; max-width: 580px; margin-inline: auto; }
.final-cta .px-btn { margin-top: 36px; font-size: 16px; padding: 18px 30px; }
.final-cta .px-divider-row {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.px-divider-mini {
  display: inline-flex;
  gap: 4px;
}
.px-divider-mini span {
  width: 8px;
  height: 8px;
  display: block;
}

/* ============================ FOOTER ============================ */
.px-footer {
  padding: 64px clamp(24px, 5vw, 64px) 40px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--mute);
}
.px-footer a { text-decoration: none; }
.px-footer a:hover { color: var(--blue); }
.px-footer-row {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.px-footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.px-footer h5 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px 0;
}
.px-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.px-footer-tagline {
  margin-top: 14px;
  max-width: 300px;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.6;
}
.px-footer-bottom {
  max-width: 1240px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--mute-2);
}

/* ============================ MOBILE ≤860px ============================ */
@media (max-width: 860px) {
  .px-h-display { font-size: clamp(32px, 8vw, 44px); line-height: 1.08; }
  .px-h-section { font-size: clamp(26px, 6.5vw, 34px); line-height: 1.18; }
  .px-h-card    { font-size: 19px; }
  .px-lead      { font-size: 17px; line-height: 1.65; }
  .px-body      { font-size: 16px; line-height: 1.7; }

  .px-section { padding: 40px 18px; }
  .px-section.tight { padding: 28px 18px; }

  .px-grid-2,
  .px-grid-2.wide-right,
  .px-grid-2.wide-left,
  .d1-hero-grid,
  .d1-whatis-grid { grid-template-columns: 1fr; gap: 28px; }
  .px-grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .px-grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }

  .px-nav { padding: 14px 18px; }
  .px-nav-links { display: none; }
  .px-nav-right .px-btn { display: none; }
  /* Negative margin offsets the burger icon's centring inside its 44px hit
     target so the visible bars sit flush with section content on the right. */
  .px-burger { display: inline-flex; margin-right: -10px; }

  .px-footer-row { flex-direction: column; gap: 32px; }
  .px-footer { padding: 48px 20px 32px; }
  .px-footer-bottom { flex-direction: column; gap: 8px; }

  .d1-hero { padding-top: 24px; padding-bottom: 32px; }
  .d1-hero-lead { margin-top: 18px; }
  .d1-hero-cta-row { margin-top: 24px; }
  .d1-hero-fineprint { margin-top: 28px; }
  .d1-hero-orb-wrap { display: none; }

  .d1-whatis-right { padding-top: 0; }
  .d1-whatis-mock { margin-top: 24px; }

  .d1-ai-card { min-height: auto; padding: 20px; }

  .d1-cap-card { padding: 24px; min-height: auto; }
  .d1-cap-intro { margin-bottom: 32px; }
  .d1-obj-row { padding: 28px 0; }
  .d1-obj-intro { margin-bottom: 32px; }
  .d1-pricing-intro { margin-bottom: 32px; }
  .d1-proof-intro { margin-bottom: 32px; }
  .d1-blueprint-rail-wrap { margin-top: 36px; }

  .px-faq-grid { grid-template-columns: 1fr; gap: 32px; }

  .px-sticky-top { position: static; top: auto; }

  .px-pricerow {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 20px;
    text-align: left;
  }
  .px-pricerow .d1-price-amount { text-align: left; font-size: 22px; }

  .d1-blueprint-rail {
    grid-template-columns: repeat(7, 220px);
    overflow-x: auto;
  }

  .final-cta { padding: 48px 18px; }
}

@media (max-width: 480px) {
  .px-h-display { font-size: clamp(28px, 9vw, 36px); }
  .px-h-section { font-size: clamp(22px, 7vw, 28px); }
  .px-section { padding: 32px 16px; }
  .px-nav { padding: 14px 16px; }
  .px-mobile-menu-header { padding: 14px 16px; }
  .px-mobile-menu-nav { padding: 20px 16px 0; }
  .px-mobile-cta { margin: 20px 16px 28px; }
  .px-grid-4 { grid-template-columns: 1fr; }
}

/* ============================ BOOKING EMBED ============================ */
.px-booking-embed {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  opacity: 0;
  transition: max-height 0.55s ease-out, margin-top 0.55s ease-out, opacity 0.45s ease-out 0.1s;
}
.px-booking-embed.is-open {
  max-height: 900px;
  margin-top: 32px;
  opacity: 1;
}
.px-booking-embed .px-booking-iframe {
  display: block;
  width: 100%;
  height: 600px;          /* hugs the desktop booking card so the gap below ≈ the gap above the header */
  background: transparent;
}
@media (max-width: 860px) {
  .px-booking-embed.is-open { max-height: 1100px; margin-top: 24px; }
  .px-booking-embed .px-booking-iframe { height: 900px; }  /* card stacks taller on mobile */
}
#px-book-trigger.is-hidden { display: none; }

/* ============================ FOOTER LINK BUTTON ============================ */
/* "Manage cookies" lives in the legal column as a button (re-opens the banner)
   but should look identical to the surrounding <a> links. */
.px-footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  letter-spacing: inherit;
}
.px-footer-link-btn:hover { color: var(--blue); }

/* Inline body variant: when the same button appears mid-paragraph it should
   read as a regular link rather than a footer link. */
.px-footer-link-btn--inline {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.px-footer-link-btn--inline:hover { color: var(--blue-deep); }

/* ============================ LEGAL PAGE LAYOUT ============================ */
.px-legal {
  padding: clamp(64px, 8vw, 112px) clamp(24px, 5vw, 64px) clamp(80px, 10vw, 140px);
  background: var(--white);
}
.px-legal-container {
  max-width: 760px;
  margin: 0 auto;
}
.px-legal-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mute);
  margin: 14px 0 0;
}
.px-legal-prose { margin-top: 40px; }
.px-legal-prose h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  margin: 48px 0 16px;
}
.px-legal-prose h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 32px 0 10px;
}
.px-legal-prose p,
.px-legal-prose li {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.px-legal-prose p { margin: 0 0 16px; }
.px-legal-prose ul { margin: 0 0 16px; padding-left: 22px; }
.px-legal-prose li { margin-bottom: 8px; }
.px-legal-prose a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.px-legal-prose a:hover { color: var(--blue-deep); }
.px-legal-prose strong { color: var(--ink); font-weight: 700; }
.px-legal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
  margin: 16px 0 24px;
}
.px-legal-table th,
.px-legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}
.px-legal-table th {
  font-weight: 600;
  color: var(--ink);
  background: var(--canvas);
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .px-legal-table { font-size: 13px; }
  .px-legal-table th,
  .px-legal-table td { padding: 10px 8px; }
}

/* Visually-hidden helper (a11y labels) */
.px-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================ COOKIE BANNER ============================ */
.px-cookie-banner {
  position: fixed;
  left: clamp(12px, 3vw, 24px);
  right: clamp(12px, 3vw, 24px);
  bottom: clamp(12px, 3vw, 24px);
  z-index: 1000;
  background: var(--ink);
  color: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.px-cookie-banner.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.px-cookie-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.px-cookie-banner-text {
  flex: 1 1 380px;
  min-width: 280px;
  margin: 0;
}
.px-cookie-banner-text a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.px-cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.px-cookie-banner .px-btn {
  font-size: 13px;
  padding: 10px 18px;
}
.px-cookie-banner .px-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.92) !important;
  border-color: rgba(255,255,255,0.25);
}
.px-cookie-banner .px-btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
}

@media (max-width: 600px) {
  .px-cookie-banner { padding: 18px 18px 16px; border-radius: 12px; }
  .px-cookie-banner-inner { gap: 14px; }
  .px-cookie-actions { width: 100%; }
  .px-cookie-banner .px-btn { flex: 1 1 0; justify-content: center; }
}

/* ============================ COOKIE PREFERENCES MODAL ============================ */
.px-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(26, 26, 46, 0.55);
  backdrop-filter: blur(4px);
}
.px-cookie-modal.is-open { display: flex; }
.px-cookie-modal-card {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.4);
  font-family: var(--sans);
}
.px-cookie-modal-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 8px;
}
.px-cookie-modal-card > p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.px-cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.px-cookie-row:last-of-type { border-bottom: 1px solid var(--line); }
.px-cookie-row-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.px-cookie-row-help {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--mute);
  margin: 0;
}
.px-cookie-toggle {
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
}
.px-cookie-toggle input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.px-cookie-toggle-track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--line-strong);
  position: relative;
  transition: background 0.2s;
}
.px-cookie-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.px-cookie-toggle input:checked ~ .px-cookie-toggle-track { background: var(--blue); }
.px-cookie-toggle input:checked ~ .px-cookie-toggle-track::after { transform: translateX(18px); }
.px-cookie-toggle input:focus-visible ~ .px-cookie-toggle-track {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.px-cookie-toggle--locked {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 4px;
}
.px-cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 24px;
}
@media (max-width: 480px) {
  .px-cookie-modal-card { padding: 24px; }
  .px-cookie-modal-actions { flex-direction: column-reverse; }
  .px-cookie-modal-actions .px-btn { width: 100%; justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
