:root {
  /* Official Theme Park AG brand palette */
  --color-bg: #faf8ff;
  --color-surface: #ffffff;
  --color-ink: #333333;
  --color-ink-muted: #6b6473;
  --color-border: #ebe6f0;
  --color-accent: #9e005d;
  --color-accent-hover: #7a0048;
  --color-accent-soft: #bf82ae;
  --color-silver: #d8d0d7;

  /* Hero gradient — brand "matching gradient" magenta → purple → blue */
  --gradient-hero: linear-gradient(135deg, #9e005d 0%, #88429c 55%, #456bc8 100%);
  --color-deep: #1a0d24;

  --font-sans: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-width: 1100px;
  --radius: 6px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;
  --space-7: 7rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

/* Anchor targets sit a bit below the top of the viewport when scrolled to */
[id] { scroll-margin-top: var(--space-2); }

/* In-page subhero bands act as section headers — they need to clear the
   sticky header (~53px when shrunk) AND leave a visible breathing gap so
   the band's top edge sits below the header, not flush against it. */
.subhero-band[id] { scroll-margin-top: var(--space-6); }

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover { color: var(--color-accent-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  color: var(--color-ink);
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

/* Reset: prose elements have no default spacing.
   Rhythm is added by wrapping in a .stack container. */
p, ul, ol, dl, blockquote, figure, pre { margin: 0; }

/* ----- Stack — vertical rhythm utility -----
   Add `class="stack"` to any container whose direct children should
   be separated by consistent vertical space. Default gap is space-3.
   Override per-block with .stack-sm / .stack-md / .stack-lg / .stack-xl,
   or by setting --stack-gap inline.
   Headings get typographically tighter spacing below them and wider above them. */
.stack { --stack-gap: var(--space-3); }
.stack > * + * { margin-top: var(--stack-gap); }
.stack > h2 + *, .stack > h3 + * { margin-top: var(--space-2); }
.stack > * + h2 { margin-top: var(--space-5); }
.stack > h2:first-child, .stack > h3:first-child { margin-top: 0; }
/* Pillar grids deserve generous breathing room from the prose above them
   so the unified card reads as its own visual block. */
.stack > * + .pillars { margin-top: var(--space-6); }

.stack-sm { --stack-gap: var(--space-2); }
.stack-md { --stack-gap: var(--space-3); }
.stack-lg { --stack-gap: var(--space-4); }
.stack-xl { --stack-gap: var(--space-5); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Header — sticky, shrinks when scrolled */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 10px rgba(26, 13, 36, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
  transition: padding 0.2s ease;
}

.site-header.is-scrolled .container {
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

/* Brand-full is now an inline <svg> (so Montserrat 400/800 weights render correctly —
   <img>-loaded SVGs can't access page-level fonts). brand-mark stays as <img>. */
.brand .brand-full,
.brand img {
  display: block;
  height: 57px;
  width: auto;
  transition: height 0.2s ease;
}

.brand .brand-mark { display: none; }

/* When scrolled: full wordmark hides, square icon mark takes over */
.site-header.is-scrolled .brand-full { display: none; }
.site-header.is-scrolled .brand-mark {
  display: block;
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: var(--space-3);
}

.site-nav a {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--color-ink); text-decoration: none; }

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: var(--color-ink);
  border-radius: var(--radius);
}

.nav-toggle:hover { color: var(--color-accent); }
.nav-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-2) var(--space-3);
    gap: var(--space-1);
    box-shadow: 0 6px 14px rgba(26, 13, 36, 0.06);
    z-index: 10;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: var(--space-1) var(--space-2);
    font-size: 1rem;
    border-radius: var(--radius);
  }

  .site-nav a:hover { background: var(--color-bg); }
}

/* Hero — animated stage with living gradient + vignette,
   bottom-left content (eyebrow + headline + subhead).
   Headline reveals once on mount; gradient drifts forever. */
.hero {
  position: relative;
  color: #fff;
  min-height: 370px;
  height: clamp(370px, 48vw, 610px);
  overflow: hidden;
  isolation: isolate;
  background: #1a0d24;
}

.hero-bg,
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg {
  z-index: -2;
  background-image:
    radial-gradient(circle at var(--orb-a-x, 25%) var(--orb-a-y, 35%), #b32d7a 0%, transparent 55%),
    radial-gradient(circle at var(--orb-b-x, 78%) var(--orb-b-y, 55%), #4a4ed8 0%, transparent 60%),
    radial-gradient(circle at var(--orb-c-x, 50%) var(--orb-c-y, 20%), #8b2fa6 0%, transparent 50%),
    linear-gradient(115deg, #6b1648 0%, #3a1a5c 45%, #2e2a78 100%);
  will-change: background-image;
}

.hero-vignette {
  z-index: -1;
  background: radial-gradient(ellipse at 30% 50%, transparent 30%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-content {
  position: absolute;
  left: clamp(20px, 5.5vw, 96px);
  right: clamp(20px, 5.5vw, 96px);
  bottom: clamp(28px, 6vw, 80px);
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: clamp(14px, 2.2vw, 28px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(36px, 6.2vw, 88px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: #fff;
  margin: 0;
  max-width: 95%;
  /* All slogan sets stack into the same grid cell so headline height is the
     max of any slogan, and only the active set's words are visible. */
  display: grid;
  grid-template-areas: "stack";
}

.hero-set {
  grid-area: stack;
}

.hero-line { display: block; }

.hero-word {
  display: inline-block;
  margin-right: 0.28em;
  opacity: 0;
  transform: translateY(24px);
  filter: blur(5px);
  transition:
    opacity 550ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 550ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 550ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform, filter;
}

.hero-word.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(13px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  line-height: 1.5;
  margin: clamp(16px, 2.2vw, 28px) 0 0;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-sub.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { background-image: var(--gradient-hero); }
  .hero-word,
  .hero-sub {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ===== Subpage headers (per themepark-subheader-spec.html) =====
   Two variants: slim-band (Contact / Billing / Thanks + in-page section
   dividers on home) and minimal (legal pages). */

/* Slim band — soft violet-indigo band (Variant B · blue, per subheader spec v2).
   Hue sits in the same violet family as the page bg #faf8ff (just deeper),
   so the band reads as "deeper surface" rather than "different color." */
.subhero-band {
  position: relative;
  background: #ecebf6;
  border-top: 1px solid #dfdcee;
  border-bottom: 1px solid #dfdcee;
  overflow: hidden;
}

.subhero-band__orb {
  position: absolute;
  top: -60%;
  right: -8%;
  width: 55%;
  height: 320%;
  background: radial-gradient(ellipse at center, rgba(59, 58, 140, 0.32) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.5;
  transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
  .subhero-band__orb {
    opacity: 0;
    transform: translateX(30px);
    animation: subhero-band-orb 1500ms cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s forwards;
  }
}

@keyframes subhero-band-orb {
  0%   { opacity: 0;   transform: translateX(30px); }
  60%  { opacity: 0.7; transform: translateX(8px); }
  100% { opacity: 0.7; transform: translateX(0); }
}

.subhero-band__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 44px) clamp(20px, 5.5vw, 64px) clamp(28px, 3.8vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

.subhero-band__crumb {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #52495e;
  margin: 0 0 12px;
  font-weight: 500;
}

.subhero-band__crumb a {
  color: inherit;
  text-decoration: none;
}

.subhero-band__crumb a:hover { color: var(--color-accent); }

.subhero-band__crumb-sep {
  color: rgba(82, 73, 94, 0.35);
  margin: 0 8px;
}

.subhero-band__crumb-here { color: #3b3a8c; }

.subhero-band__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3b3a8c;
  margin: 0 0 12px;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 10px;
}

.subhero-band__eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: #3b3a8c;
}

.subhero-band.is-inpage .subhero-band__crumb { display: none; }
.subhero-band.is-inpage .subhero-band__eyebrow { display: inline-flex; }

.subhero-band h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1a0d24;
  margin: 0;
}

.subhero-band__lede {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.55;
  color: #52495e;
  max-width: 460px;
  margin: 0;
  justify-self: end;
  text-align: right;
}

@media (max-width: 720px) {
  .subhero-band__inner { grid-template-columns: 1fr; }
  .subhero-band__lede {
    justify-self: start;
    text-align: left;
    max-width: none;
  }
}

/* Minimal — typography-only header on page background, with 28px magenta rule */
.subhero-minimal {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5.5vw, 64px) clamp(28px, 4vw, 48px);
  position: relative;
}

.subhero-minimal__rule {
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  margin: 0 0 16px;
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: no-preference) {
  .subhero-minimal__rule {
    opacity: 0;
    transform: translateX(-8px);
    animation: subhero-minimal-rule 900ms cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s forwards;
  }
}

@keyframes subhero-minimal-rule {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.subhero-minimal__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 18px;
  font-weight: 500;
}

.subhero-minimal h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #1a0d24;
  margin: 0;
  max-width: 14ch;
}

.subhero-minimal__lede {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: #52495e;
  max-width: 540px;
  margin: 22px 0 0;
}

/* Section — vertical rhythm via margin-top only, so adjacent sections
   don't compound their padding. Section dividers (.subhero-*) follow the
   same rule so all major content blocks share one rhythm value (--space-6).
   The first content block under the site header or hero doesn't need a
   margin reset because none of these selectors match the header/hero. */
.section,
.subhero-band,
.subhero-minimal {
  margin-top: var(--space-6);
}

/* First content block (right after the site header) sits flush — its own
   internal padding handles the spacing from the header. */
.site-header + .section,
.site-header + .subhero-band,
.site-header + .subhero-minimal { margin-top: 0; }

/* Last content block before the footer needs breathing room on the bottom */
.site-footer { margin-top: var(--space-6); }

/* Lede paragraphs render as normal body text (same size, color, and width
   as any other p). The class is kept as a semantic marker only. */

/* ----- Card system -----
   Two formats only:
   1. Single box   — `.section-narrow` and `.cta`, max 720px, centered in container
   2. Three-up grid — `.pillars` containing `.pillar` cards, sized by grid
   Both formats share identical surface, border, radius, padding, and gradient bar.
*/

.section-narrow,
.cta {
  background: #ffffff;
  border: 1px solid #ebe6f0;
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
  box-shadow: 0 1px 0 rgba(26, 13, 36, 0.02);
  transition:
    transform 200ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 200ms cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.section-narrow:hover,
.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(26, 13, 36, 0.08);
  border-color: #d8c8de;
}

@media (prefers-reduced-motion: reduce) {
  .section-narrow,
  .cta { transition: none; }
  .section-narrow:hover,
  .cta:hover { transform: none; }
}

/* Single-box width — 720 max, centered, with horizontal page-edge breathing on narrow viewports */
.section-narrow,
.cta {
  width: calc(100% - 2 * var(--space-3));
  max-width: 720px;
  margin: 0 auto;
}

/* Spacing between consecutive direct children of a section
   (covers any combination of .container, .section-narrow, .duo, .cta) */
.section > * + * {
  margin-top: var(--space-4);
}

/* CTA — centered text */
.cta { text-align: center; }

/* (gradient accent bar retired — all cards now use the unified plain chrome) */

/* Two-up grid — same max-width as pillars; equal-size boxes side by side */
.duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  max-width: 1000px;
  margin: 0 auto;
}

.duo > .section-narrow {
  width: auto;
  max-width: none;
  margin: 0;
}

@media (max-width: 720px) {
  .duo { grid-template-columns: 1fr; }
  .duo > .section-narrow + .section-narrow { margin-top: var(--space-3); }
}

/* Pillars grid — three-up, no diagonal stagger any more (per card spec) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; }
}

/* Unified pillars — merged-card treatment that mirrors the threeways tier
   card (gradient hairline at top, 18px radius, panels split by hairlines).
   Apply via class="pillars is-unified". The default .pillars (no modifier)
   keeps the three-separate-cards behavior used by billing.html. */
.pillars.is-unified {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1080px;
  /* Longhand only — using `margin: 0 auto` here would clobber the
     stack's `margin-top` rule above the trio. */
  margin-left: auto;
  margin-right: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  background-image:
    linear-gradient(var(--gradient-hero)),
    linear-gradient(var(--color-surface), var(--color-surface));
  background-repeat: no-repeat;
  background-size: 100% 3px, 100% 100%;
  background-position: top left, top left;
}

.pillars.is-unified .pillar {
  background: linear-gradient(180deg, #fcfaff 0%, var(--color-surface) 60%);
  border: none;
  border-right: 1px solid #f0ecf3;
  border-radius: 0;
  padding: var(--space-5) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 220px;
  box-shadow: none;
  transition: none;
  font-family: var(--font-sans);
  color: var(--color-deep);
}
.pillars.is-unified .pillar:last-child { border-right: none; }
.pillars.is-unified .pillar:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent transparent transparent transparent;
  border-right: 1px solid #f0ecf3;
}
.pillars.is-unified .pillar:last-child:hover { border-right: none; }

.pillars.is-unified .pillar p.pillar-lead {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1;
  margin: 0;
}

.pillars.is-unified .pillar h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--color-deep);
  margin: 0;
  text-wrap: balance;
}

.pillars.is-unified .pillar p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-ink);
  margin: 0;
}

@media (max-width: 800px) {
  .pillars.is-unified { grid-template-columns: 1fr; }
  .pillars.is-unified .pillar {
    border-right: none;
    border-bottom: 1px solid #f0ecf3;
  }
  .pillars.is-unified .pillar:last-child { border-bottom: none; }
}

/* Pillar card · plain variant (per themepark-card-spec.html) */
.pillar {
  background: #ffffff;
  border: 1px solid #ebe6f0;
  border-radius: 14px;
  padding: 32px 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 0 rgba(26, 13, 36, 0.02);
  transition:
    transform 200ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 200ms cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
  font-family: var(--font-sans);
  color: #1a0d24;
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(26, 13, 36, 0.08);
  border-color: #d8c8de;
}

@media (prefers-reduced-motion: reduce) {
  .pillar { transition: none; }
  .pillar:hover { transform: none; }
}

/* Specificity bumped (.pillar p.pillar-lead) so it wins over the .pillar p body styling rule */
.pillar p.pillar-lead {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1;
  margin: 0 0 18px;
}

.pillar h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #1a0d24;
  margin: 0 0 12px;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-2);
  color: var(--color-accent);
  background: linear-gradient(135deg, rgba(158, 0, 93, 0.10) 0%, rgba(136, 66, 156, 0.08) 50%, rgba(69, 107, 200, 0.08) 100%);
  border-radius: 10px;
}

.icon-tile svg {
  width: 26px;
  height: 26px;
}

/* Section icon (used next to engagement-model h2 on what-we-do) */
.section-icon-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.section-icon-row .icon-tile {
  margin-bottom: 0;
  flex-shrink: 0;
}

.section-icon-row h2 {
  margin: 0;
}

.section-narrow .section-icon-row + p {
  margin-top: 0;
}

.pillar p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: #52495e;
  margin: 0 0 12px 0;
}

.pillar p:last-child { margin-bottom: 0; }

.pillar-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-accent);
}

.pillar-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* Pillar with inline icon + title head, and bottom-aligned CTA */
.pillar-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.pillar-head .icon-tile {
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.pillar-head .icon-tile svg {
  width: 20px;
  height: 20px;
}

.pillar-head h3 {
  margin: 0;
  display: block;
}

/* Billing pillars (with .pillar-head): bottom-align the CTA button */
.pillar:has(.pillar-head) > p:last-child {
  margin-top: auto;
  text-align: center;
  padding-top: var(--space-2);
}

.cta p { color: var(--color-ink-muted); }

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
}

.btn:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}

/* Long-form prose: heading size for sub-sections inside a single .stack. */
.section-narrow h2 { font-size: 1.4rem; }

/* Legal pages: align the body container's horizontal padding with the
   subhero-minimal hero text above it, so prose lines up with the title. */
.subhero-minimal + .section > .container {
  padding-left: clamp(20px, 5.5vw, 64px);
  padding-right: clamp(20px, 5.5vw, 64px);
}

/* Lists in any .stack container — bullet indent and item rhythm.
   Scoped to .stack (not .section-narrow) so it works anywhere prose lives. */
.stack ul,
.stack ol { padding-left: 1.5rem; }

.stack li { line-height: 1.6; }
.stack li + li { margin-top: var(--space-1); }

/* Don't apply default list rhythm inside the threeways examples list,
   which sets its own grid-based layout. */
.tw-examples li,
.tw-examples li + li { margin-top: 0; line-height: 1.45; }

.stack code {
  background: var(--color-border);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

/* Definition list (used on contact / imprint) */
.facts {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-2) var(--space-3);
  margin: var(--space-3) 0;
}

.facts dt {
  color: var(--color-ink-muted);
  font-weight: 600;
}

.facts dd { margin: 0; }

/* Contact form */
.form-error {
  background: #fdecef;
  border: 1px solid #f5c2cc;
  color: #7a0048;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin: var(--space-3) 0;
  font-size: 0.95rem;
}

.contact-form {
  max-width: 540px;
  margin: var(--space-4) 0;
}

.form-row {
  margin-bottom: var(--space-3);
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--color-ink);
  font-size: 0.95rem;
}

.form-row input,
.form-row textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(158, 0, 93, 0.15);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row select {
  display: block;
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%236b6473' stroke-width='1.6'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.form-row select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(158, 0, 93, 0.15);
}

.contact-form button[type="submit"] {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Scroll-in fade animations — gated by .js-anim on <html> so non-JS visitors see content,
   and skipped entirely if the user prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js-anim .pillar,
  .js-anim .section-narrow,
  .js-anim .cta {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .js-anim .pillar.is-visible,
  .js-anim .section-narrow.is-visible,
  .js-anim .cta.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger the entrance of grouped cards */
  .js-anim .pillars > .pillar:nth-child(2) { transition-delay: 0.08s; }
  .js-anim .pillars > .pillar:nth-child(3) { transition-delay: 0.16s; }
  .js-anim .duo > .section-narrow:nth-child(2) { transition-delay: 0.08s; }
}

/* Footer */
.site-footer {
  background: var(--color-deep);
  color: var(--color-silver);
  padding: var(--space-4) 0;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .brand .brand-full,
  .brand img { height: 45px; }
}

/* Small phones: the canonical wordmark is too wide at any reasonable
   height, so collapse to the icon-only mark — same pattern as scrolled state. */
@media (max-width: 600px) {
  .site-header .brand-full { display: none; }
  .site-header .brand-mark {
    display: block;
    height: 36px;
    width: auto;
  }
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.site-footer a { color: var(--color-silver); }
.site-footer a:hover { color: #fff; text-decoration: none; }

.footer-links {
  display: flex;
  gap: var(--space-3);
}

/* ============================================================
   Three ways we work — section redesign (from Claude Design)
   Scoped to .threeways-section. Self-contains its own padding/rhythm.
   Design's local space scale (1=8, 2=12, 3=16, 4=24, 5=32, 6=48, 7=72)
   is translated to site tokens or literal px to preserve design intent.
   ============================================================ */
.threeways-section {
  padding: 72px var(--space-3);
  background: var(--color-bg);
}
.threeways-section .tw-inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* Lede */
.tw-lede {
  max-width: 56ch;
  margin: 0 auto 72px;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--color-ink);
  text-wrap: pretty;
}

/* Tier label — small mono caption naming each grouping */
.tw-tier-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3b3a8c;
}
.tw-tier-label::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #3b3a8c;
  flex: none;
}
.tw-tier-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Tier A: paired platform engagements */
.tw-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  background-image:
    linear-gradient(var(--gradient-hero)),
    linear-gradient(var(--color-surface), var(--color-surface));
  background-repeat: no-repeat;
  background-size: 100% 3px, 100% 100%;
  background-position: top left, top left;
}

.tw-way {
  padding: var(--space-5) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.tw-way .tw-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin: 0;
}
.tw-way h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--color-deep);
  text-wrap: balance;
}
.tw-way p {
  margin: 0;
  color: var(--color-ink);
  text-wrap: pretty;
}
.tw-way .tw-fit {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid #f0ecf3;
  font-size: 0.95rem;
  color: var(--color-ink-muted);
}
.tw-way .tw-fit strong {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: 6px;
}

/* The "or" hinge — physical connector between the two doors */
.tw-hinge {
  position: relative;
  width: 1px;
  background: var(--color-border);
  margin: var(--space-4) 0;
}
.tw-hinge::before {
  content: "or";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-ink-muted);
}

/* Subtle indicator that ways 1 and 2 share a tier */
.tw-way--acquire,
.tw-way--partner {
  background: linear-gradient(180deg, #fcfaff 0%, var(--color-surface) 60%);
}

/* Spacer between tier A and tier B */
.tw-tier-gap { height: 72px; }

/* Tier B: software for SMBs (deep ink card) */
.tw-smb {
  position: relative;
  background: var(--color-deep);
  color: #ebe6f0;
  border-radius: 18px;
  overflow: hidden;
  padding: var(--space-5) var(--space-4);
  background-image:
    radial-gradient(900px 280px at -10% -30%, rgba(158, 0, 93, 0.32), transparent 60%),
    radial-gradient(900px 280px at 110% 130%, rgba(69, 107, 200, 0.28), transparent 60%),
    linear-gradient(var(--color-deep), var(--color-deep));
}
.tw-smb .tw-tier-label { color: #d8c8e3; }
.tw-smb .tw-tier-label::before { background: #d8c8e3; }
.tw-smb .tw-tier-label::after { background: rgba(255, 255, 255, 0.16); }

.tw-smb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}
.tw-smb .tw-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #e3a8c7;
  margin: 0 0 12px;
}
.tw-smb h3 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-sans);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-wrap: balance;
}
.tw-smb-prose p {
  margin: 0 0 var(--space-2);
  color: #d8d0d7;
  text-wrap: pretty;
}
.tw-smb-prose p:last-child { margin-bottom: 0; }
.tw-smb-prose .tw-engage {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
  color: #b8a9c2;
}
.tw-smb-prose .tw-engage strong {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b8a9c2;
  margin-bottom: 6px;
}

.tw-examples {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  overflow: hidden;
  counter-reset: ex;
}
.tw-examples li {
  background: rgba(255, 255, 255, 0.02);
  padding: var(--space-2) var(--space-3);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2);
  align-items: baseline;
  color: #e8dfee;
  font-size: 0.98rem;
  line-height: 1.45;
}
.tw-examples li::before {
  content: counter(ex, decimal-leading-zero);
  counter-increment: ex;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #b885a3;
  padding-top: 2px;
}
.tw-examples-cap {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b8a9c2;
}

/* Reveal hooks — design-utility class used by threeways + billing redesigns.
   Unscoped so any element with `class="reveal"` fades in via the IntersectionObserver
   in nav.js. Toggled by adding `is-in` once the element enters the viewport. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[data-stagger="1"] { transition-delay: 80ms; }
.reveal[data-stagger="2"] { transition-delay: 160ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 880px) {
  .tw-smb-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}
@media (max-width: 720px) {
  .threeways-section { padding: var(--space-5) var(--space-2); }
  .tw-pair { grid-template-columns: 1fr; }
  .tw-hinge {
    width: auto;
    height: 1px;
    margin: 0 var(--space-4);
    background: var(--color-border);
  }
  .tw-hinge::before {
    width: 38px;
    height: 38px;
    font-size: 11px;
  }
  .tw-way { padding: var(--space-4) var(--space-3); }
  .tw-way h3 { font-size: 1.3125rem; }
  .tw-smb { padding: var(--space-4) var(--space-3); }
  .tw-smb h3 { font-size: 1.375rem; }
}

/* Responsive */
@media (max-width: 720px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: var(--space-5) 0; }
  .pillars { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: var(--space-1); }
  .facts dt { margin-top: var(--space-2); }
  .site-nav { gap: var(--space-2); }
  .site-nav a { font-size: 0.9rem; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   Billing page redesign (from Claude Design)
   Scoped via .bp-* classes. Design's local space scale is
   replaced with literal pixel values where it differs from
   site tokens. Color tokens mapped to site equivalents.
   ============================================================ */
.bp-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5.5vw, 64px);
}

.bp-lede {
  max-width: 740px;
  margin: clamp(40px, 5vw, 64px) 0 clamp(28px, 3.4vw, 44px);
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--color-ink-muted);
}
.bp-lede strong { color: var(--color-deep); font-weight: 600; }

.bp-tier-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(56px, 6vw, 88px) 0 clamp(20px, 2.4vw, 28px);
}
.bp-tier-label::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--color-accent);
  flex: none;
}
.bp-tier-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.bp-tier-label .step {
  color: var(--color-ink-muted);
  letter-spacing: 0.18em;
}
.bp-tier-label .label-body { white-space: nowrap; }

.bp-tier-h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-deep);
  margin: 0 0 clamp(20px, 2.6vw, 32px);
  max-width: 720px;
  text-wrap: balance;
}

/* Step 1 - paths */
.bp-paths {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #fcfaff 0%, #ffffff 60%);
}
.bp-paths::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-hero);
}

.bp-path {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 3.4vw, 40px) clamp(24px, 3vw, 40px);
}
.bp-path + .bp-path {
  border-top: 1px solid #f1edf6;
}

.bp-path-id .bp-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin: 0 0 12px;
}
.bp-descriptor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bp-descriptor code {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(18px, 1.7vw, 22px);
  letter-spacing: -0.01em;
  color: var(--color-deep);
  background: #f4f0f8;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.bp-descriptor .or {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.bp-path-body h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--color-deep);
  margin: 0 0 6px;
}
.bp-path-body p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-ink-muted);
  margin: 0;
  max-width: 56ch;
}

.bp-path-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Buttons */
.bp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.005em;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 160ms, color 160ms, border-color 160ms, transform 160ms;
  text-decoration: none;
  white-space: nowrap;
}
.bp-btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.bp-btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}
.bp-btn--ghost {
  background: transparent;
  color: var(--color-deep);
  border-color: var(--color-border);
}
.bp-btn--ghost:hover {
  background: #f4f0f8;
  color: var(--color-deep);
  border-color: #d8c8de;
  text-decoration: none;
}
.bp-btn--on-dark {
  background: #fff;
  color: var(--color-deep);
}
.bp-btn--on-dark:hover {
  background: #f4f0f8;
  color: var(--color-deep);
  text-decoration: none;
}
.bp-btn .arrow {
  display: inline-block;
  transition: transform 160ms;
}
.bp-btn:hover .arrow { transform: translateX(2px); }

.bp-path-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bp-path-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2f7d4f;
}
.bp-path-meta.is-manual .dot { background: #3b3a8c; }

@media (max-width: 860px) {
  .bp-path {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .bp-path-cta { align-items: flex-start; }
}

/* Step 2 - fraud / never signed up (deep ink card) */
.bp-fraud {
  position: relative;
  background: var(--color-deep);
  color: #e6dfee;
  border-radius: 18px;
  overflow: hidden;
  padding: clamp(36px, 4vw, 56px);
  isolation: isolate;
}
.bp-fraud::before,
.bp-fraud::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.bp-fraud::before {
  top: -30%; left: -10%;
  width: 60%; height: 130%;
  background: radial-gradient(ellipse at center, rgba(158, 0, 93, 0.40) 0%, transparent 60%);
}
.bp-fraud::after {
  bottom: -40%; right: -10%;
  width: 60%; height: 140%;
  background: radial-gradient(ellipse at center, rgba(69, 107, 200, 0.32) 0%, transparent 60%);
}
.bp-fraud-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.bp-fraud-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.bp-fraud-eyebrow::before {
  content: ""; width: 18px; height: 1px;
  background: rgba(255, 255, 255, 0.5);
}
.bp-fraud h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 16px;
  text-wrap: balance;
}
.bp-fraud p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(230, 223, 238, 0.78);
  margin: 0 0 22px;
}
.bp-fraud-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: fraud;
  display: grid;
  gap: 14px;
}
.bp-fraud-list li {
  counter-increment: fraud;
  position: relative;
  padding: 14px 16px 14px 56px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(230, 223, 238, 0.92);
  margin-top: 0;
}
.bp-fraud-list li::before {
  content: counter(fraud, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--color-accent);
}
.bp-fraud-list strong { color: #fff; font-weight: 600; }
.bp-fraud-list code {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 860px) {
  .bp-fraud-grid { grid-template-columns: 1fr; }
}

/* FAQ - restrained accordion, hairline rules only */
.bp-faq {
  border-top: 1px solid var(--color-border);
}
.bp-faq details {
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}
.bp-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-deep);
  letter-spacing: -0.005em;
}
.bp-faq summary::-webkit-details-marker { display: none; }
.bp-faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 22px;
  color: var(--color-accent);
  flex: none;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: transform 200ms, background 200ms, color 200ms;
}
.bp-faq details[open] summary::after {
  content: "\2013";
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.bp-faq-body {
  margin: 14px 0 0;
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink-muted);
}
.bp-faq-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: #f4f0f8;
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--color-deep);
}

/* Contact form */
.bp-form-shell {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: clamp(32px, 4vw, 56px);
  overflow: hidden;
}
.bp-form-shell::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-hero);
}
.bp-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 860px) {
  .bp-form-grid { grid-template-columns: 1fr; }
}
.bp-form-intro h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-deep);
  margin: 0 0 12px;
}
.bp-form-intro p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-ink-muted);
  margin: 0 0 18px;
  max-width: 36ch;
}
.bp-reply-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3b3a8c;
  background: #ecebf6;
  border: 1px solid #dcd8ee;
  border-radius: 999px;
  padding: 6px 12px;
}
.bp-reply-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3b3a8c;
}

form.bp-form { display: grid; gap: 18px; }
.bp-row { display: grid; gap: 6px; }
.bp-row.is-pair {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) {
  .bp-row.is-pair { grid-template-columns: 1fr; }
}
.bp-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.bp-form label .req {
  color: var(--color-accent);
  margin-left: 2px;
}
.bp-form label .opt {
  color: var(--color-ink-muted);
  opacity: 0.75;
  letter-spacing: 0.12em;
}
.bp-honeypot label { margin: 0; }

.bp-input,
.bp-select,
.bp-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-deep);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 160ms, box-shadow 160ms;
  -webkit-appearance: none;
  appearance: none;
}
.bp-input:focus,
.bp-select:focus,
.bp-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(158, 0, 93, 0.12);
}
.bp-input::placeholder,
.bp-textarea::placeholder { color: #a99fb3; }
.bp-textarea { min-height: 140px; resize: vertical; }
.bp-select-wrap { position: relative; }
.bp-select {
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-ink-muted) 50%),
    linear-gradient(-45deg, transparent 50%, var(--color-ink-muted) 50%);
  background-position:
    calc(100% - 18px) 55%,
    calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.bp-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.bp-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.bp-submit-row .fineprint {
  font-size: 13px;
  color: var(--color-ink-muted);
  line-height: 1.4;
}

section.bp-section { padding: clamp(36px, 4.5vw, 64px) 0; }
section.bp-section.is-tight { padding-top: 0; }


/* ============================================================
   Home top sections redesign (from Claude Design)
   Scoped via .hp-* classes. Replaces the old "What we do" trio
   + "How we partner" + "We also build" prose in segment 1, and
   the old About lede + "How we work" trio in segment 2.
   ============================================================ */

/* ── Segment 1: positioning band ───────────────────────────── */
.hp-positioning {
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5.5vw, 64px) clamp(40px, 5vw, 64px);
  background: var(--color-bg);
}
.hp-positioning .hp-inner,
.hp-about .hp-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.hp-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3b3a8c;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(20px, 2.4vw, 28px);
}
.hp-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: #3b3a8c;
  flex: none;
}
.hp-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.hp-stmt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.hp-stmt-lead {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-deep);
  margin: 0;
  text-wrap: balance;
}
.hp-stmt-lead em {
  font-style: normal;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hp-stmt-body {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--color-ink);
  margin: 0;
  max-width: 52ch;
  text-wrap: pretty;
}

.hp-markers {
  margin: clamp(36px, 4.5vw, 56px) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 22px);
}
.hp-marker {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: clamp(24px, 2.6vw, 32px) clamp(22px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  background-image: linear-gradient(180deg, #fcfaff 0%, #ffffff 60%);
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.hp-marker::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-hero);
  opacity: 0.85;
}
.hp-marker:hover {
  border-color: #d8c8de;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px -16px rgba(26, 13, 36, 0.18);
}
/* Specificity bumped (p.hp-marker-tag) so the magenta accent wins over
   any generic .hp-marker p body styling. */
.hp-marker p.hp-marker-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: none;
  color: var(--color-accent);
  margin: 0;
  white-space: nowrap;
  line-height: 1.4;
}
.hp-marker h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--color-deep);
  text-wrap: balance;
}
.hp-marker p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-ink);
  text-wrap: pretty;
}

@media (max-width: 820px) {
  .hp-stmt { grid-template-columns: 1fr; }
  .hp-markers { grid-template-columns: 1fr; }
}

/* ── Segment 2: About body grid ────────────────────────────── */
.hp-about {
  padding: clamp(48px, 6vw, 80px) clamp(20px, 5.5vw, 64px) clamp(56px, 7vw, 96px);
  background: var(--color-bg);
}
.hp-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.hp-about-prose p {
  margin: 0 0 clamp(16px, 1.6vw, 22px);
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.65;
  color: var(--color-ink);
  text-wrap: pretty;
  max-width: 56ch;
}
.hp-about-prose p:last-child { margin-bottom: 0; }
.hp-about-prose strong { color: var(--color-deep); font-weight: 600; }

.hp-facts {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  background-image: linear-gradient(180deg, #fcfaff 0%, #ffffff 60%);
}
.hp-facts::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-hero);
}
.hp-facts-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin: 0;
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.4vw, 28px) 14px;
}
.hp-facts dl {
  margin: 0;
  padding: 0 clamp(20px, 2.4vw, 28px) clamp(20px, 2.4vw, 28px);
  display: grid;
  gap: 0;
}
.hp-fact {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid #f1edf6;
  align-items: baseline;
}
.hp-fact:first-of-type { border-top: none; }
.hp-fact dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin: 0;
}
.hp-fact dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-deep);
  font-weight: 500;
  text-wrap: pretty;
}
.hp-fact dd .muted {
  color: var(--color-ink-muted);
  font-weight: 400;
}

@media (max-width: 820px) {
  .hp-about-grid { grid-template-columns: 1fr; gap: 32px; }
}
