/* ==========================================================================
   Weazeel — Editorial reskin
   --------------------------------------------------------------------------
   COSMETIC LAYER ONLY. This stylesheet changes no markup and no copy.
   Every headline, disclaimer, phone number and link in the pages is
   untouched — only presentation is redefined here.

   How it wins the cascade: the generated Tailwind CSS in each page lives
   entirely inside @layer {properties, theme, base, utilities}. Unlayered
   rules always beat layered ones regardless of specificity, so nothing
   below needs !important.

   Palette:  ivory paper · ink · deep teal · burnt amber
   Type:     Fraunces (display serif) · Inter (text sans)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Editorial palette */
  --e-paper:      #fbf9f5;
  --e-paper-2:    #f4f0e7;
  --e-paper-3:    #ebe5d8;
  --e-white:      #ffffff;

  --e-ink:        #16181b;
  --e-ink-2:      #56595f;
  --e-ink-3:      #8b8e94;

  --e-rule:       #e5dfd1;
  --e-rule-2:     #d0c8b5;

  --e-teal:       #0f5c55;
  --e-teal-2:     #3a857c;
  --e-teal-d:     #0a423d;
  --e-teal-l:     #e7efec;

  --e-amber:      #b4673a;
  --e-amber-d:    #8f4f2b;
  --e-amber-l:    #f6ebe1;

  --e-dark:       #141f1d;
  --e-dark-2:     #1d2c29;

  --e-serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --e-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- Remap the site's own design tokens ------------------------------- */
  --background:        var(--e-paper);
  --foreground:        var(--e-ink);
  --ink:               var(--e-ink);
  --surface:           var(--e-white);
  --card:              var(--e-white);
  --card-foreground:   var(--e-ink);

  --primary:            var(--e-teal);
  --primary-foreground: #ffffff;
  --primary-soft:       var(--e-teal-l);
  --secondary:          var(--e-amber);
  --secondary-foreground:#ffffff;
  --accent:             var(--e-amber);
  --accent-foreground:  #ffffff;

  --muted:            var(--e-paper-2);
  --muted-foreground: var(--e-ink-2);
  --border:           var(--e-rule);
  --ring:             var(--e-teal);

  /* Gradients are consumed via inline style="" in a few places, so they are
     redefined rather than removed. */
  --gradient-hero:    linear-gradient(180deg, #f2eee4 0%, #f8f5ef 46%, var(--e-paper) 100%);
  --gradient-primary: linear-gradient(180deg, var(--e-teal), var(--e-teal));
  --gradient-accent:  linear-gradient(180deg, var(--e-amber), var(--e-amber));

  --shadow-soft: 0 1px 2px rgb(22 24 27 / .04);
  --shadow-card: none;
  --shadow-glow: 0 10px 30px -18px rgb(15 92 85 / .55);

  --font-display: var(--e-serif);
  --font-body:    var(--e-sans);
  --default-font-family: var(--e-sans);
}

/* --------------------------------------------------------------------------
   2. Page canvas & base typography
   -------------------------------------------------------------------------- */

html { scroll-behavior: smooth; }

body {
  background: var(--e-paper);
  color: var(--e-ink);
  font-family: var(--e-sans);
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.003em;
  font-feature-settings: "kern", "liga", "calt";
}

/* A faint warm horizon so the ivory never reads as flat grey. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 70vh;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(120% 60% at 50% -10%, #f0ebdf 0%, rgb(240 235 223 / 0) 65%);
}

::selection { background: var(--e-amber-l); color: var(--e-ink); }

:focus-visible {
  outline: 2px solid var(--e-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Headings ------------------------------------------------------------ */

h1, h2, .font-display, .gradient-text {
  font-family: var(--e-serif);
  font-optical-sizing: auto;
}

h1 {
  font-weight: 400;
  font-size: clamp(2.6rem, 1.45rem + 3.6vw, 4.65rem);
  line-height: 1.03;
  letter-spacing: -0.026em;
  font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 0;
  color: var(--e-ink);
  text-wrap: balance;
}

h2 {
  font-weight: 400;
  font-size: clamp(1.95rem, 1.3rem + 1.9vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48;
  color: var(--e-ink);
  text-wrap: balance;
}

h3, h3.font-display {
  font-family: var(--e-serif);
  font-weight: 600;
  font-size: 1.14rem;
  line-height: 1.28;
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 20;
  color: var(--e-ink);
}

p { text-wrap: pretty; }

.text-muted-foreground { color: var(--e-ink-2); }

/* Lead paragraphs under an h1 read a size up, in the sans. */
h1 + p,
h1 ~ p.text-lg {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--e-ink-2);
}

/* --------------------------------------------------------------------------
   3. Eyebrows / kickers
   Every section label uses tracking-[0.2em]; turn them into ruled kickers.
   -------------------------------------------------------------------------- */

span[class*="tracking-[0.2em]"] {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--e-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--e-amber);
}

span[class*="tracking-[0.2em]"]::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: currentColor;
  opacity: 0.55;
}

/* The hero pill badge — strip the glass chrome, keep it as a plain kicker. */
span.glass[class*="tracking-[0.18em]"] {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: var(--e-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--e-ink-3);
  gap: 0.65rem;
}

/* its leading dot becomes a small amber square, pinned to the first line */
span.glass[class*="tracking-[0.18em]"] { align-items: flex-start; }
span.glass[class*="tracking-[0.18em]"] > span:first-child {
  width: 7px;
  height: 7px;
  margin-top: 0.42em;
  border-radius: 0;
  background: var(--e-amber);
  background-image: none;
}

/* Smaller all-caps labels inside cards */
[class*="tracking-widest"] {
  font-family: var(--e-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--e-ink-3);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn-primary {
  background: var(--e-teal);
  background-image: none;
  color: #fff;
  border: 1px solid var(--e-teal);
  border-radius: 2px;
  padding: 0.85rem 1.35rem;
  font-family: var(--e-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary:hover {
  background: var(--e-teal-d);
  border-color: var(--e-teal-d);
  filter: none;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--e-ink);
  border: 1px solid var(--e-rule-2);
  border-radius: 2px;
  padding: 0.85rem 1.35rem;
  font-family: var(--e-sans);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color .18s ease, border-color .18s ease;
}
.btn-ghost:hover {
  background: var(--e-paper-2);
  border-color: var(--e-ink);
  transform: none;
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   Pill-in-a-glass-bubble → flat masthead with a hairline baseline.
   -------------------------------------------------------------------------- */

header[class*="sticky"] {
  padding: 0;
  background: rgb(251 249 245 / .88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--e-rule);
}

header nav.glass {
  background: none;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

/* Wordmark */
header nav > a:first-child { gap: 0.6rem; padding: 0; }

header nav > a:first-child > span:first-child {
  background: var(--e-teal);
  background-image: none;
  border-radius: 2px;
  height: 30px;
  width: 30px;
  font-family: var(--e-serif);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}

header nav > a:first-child > span:last-child,
footer .font-display {
  font-family: var(--e-serif);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--e-ink);
}

/* Links */
header nav ul a {
  border-radius: 0;
  padding: 0.4rem 0;
  margin: 0 0.6rem;
  font-family: var(--e-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.002em;
  color: var(--e-ink-2);
  background: none;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
header nav ul a:hover {
  color: var(--e-ink);
  background: none;
  border-bottom-color: var(--e-rule-2);
}
header nav ul a[data-status="active"] {
  color: var(--e-ink);
  font-weight: 600;
  background: none;
  border-bottom-color: var(--e-amber);
}

header nav ul { gap: 0; }

/* Header CTA sits a touch tighter than page buttons */
header nav .btn-primary {
  padding: 0.6rem 1.05rem;
  font-size: 0.8125rem;
}

/* Hamburger */
button[aria-label="Toggle menu"] {
  border-radius: 2px;
  background: transparent;
  border: 1px solid var(--e-rule-2);
  color: var(--e-ink);
  height: 38px;
  width: 38px;
}
button[aria-label="Toggle menu"]:hover { background: var(--e-paper-2); }

/* Mobile drawer */
#mobile-menu {
  background: var(--e-white);
  border: 1px solid var(--e-rule);
  border-radius: 3px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0.35rem;
  box-shadow: 0 18px 40px -28px rgb(22 24 27 / .35);
}
#mobile-menu a {
  border-radius: 2px;
  font-family: var(--e-sans);
  font-size: 0.9rem;
  color: var(--e-ink);
}
#mobile-menu a:hover { background: var(--e-paper-2); }
#mobile-menu .btn-primary { width: 100%; color: #fff; }
#mobile-menu .btn-primary:hover { background: var(--e-teal-d); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

/* The backdrop div reads --gradient-hero inline; add the closing hairline. */
main section.relative.overflow-hidden > div[style*="--gradient-hero"] {
  border-bottom: 1px solid var(--e-rule);
}

/* The emphasised word in the H1 — italic serif with an amber swash rule
   instead of the old purple gradient fill. */
.gradient-text {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--e-teal);
  font-style: italic;
  font-variation-settings: "opsz" 96, "WONK" 1;
  padding-bottom: 0.06em;
  box-shadow: inset 0 -0.075em 0 0 var(--e-amber);
}

/* Hero stat rail: three ruled columns instead of loose text. */
main dl[class*="grid-cols-3"] {
  border-top: 1px solid var(--e-rule-2);
  padding-top: 1.35rem;
  gap: 0;
  max-width: 34rem;
}
main dl[class*="grid-cols-3"] > div { padding-inline: 1.4rem; }
main dl[class*="grid-cols-3"] > div:first-child { padding-inline-start: 0; }
main dl[class*="grid-cols-3"] > div + div { border-left: 1px solid var(--e-rule); }

main dl dt {
  font-family: var(--e-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--e-ink-3);
}
main dl dd.font-display {
  font-family: var(--e-serif);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--e-ink);
  margin-top: 0.3rem;
}

/* Decorative blur blooms behind the hero art — retired. */
div[class*="blur-3xl"],
div[class*="blur-2xl"] { display: none; }

/* Hero art cards: glass → flat paper cards on a hairline. */
div.glass[class*="rounded-3xl"] {
  background: var(--e-white);
  border: 1px solid var(--e-rule);
  border-radius: 3px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

/* match the outlined icon language used by the category index */
div.glass[class*="rounded-3xl"] div[class*="rounded-2xl"] {
  background-color: transparent;
  border: 1px solid var(--e-rule-2);
  border-radius: 2px;
  color: var(--e-teal);
  height: 38px;
  width: 38px;
}

div.glass[class*="rounded-3xl"] p.font-display {
  font-family: var(--e-serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

/* "Explore" chip in the hero art */
span[class*="bg-[color:var(--color-primary-soft)]"] {
  border-radius: 2px;
  background: var(--e-teal-l);
  color: var(--e-teal);
  font-family: var(--e-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   7. Icon tiles
   Every gradient chip becomes a quiet teal-tinted square with a teal rule.
   -------------------------------------------------------------------------- */

[class*="bg-[image:var(--gradient-primary)]"],
[class*="bg-[image:var(--gradient-accent)]"],
[class*="bg-gradient-to-br"] {
  background-image: none;
  background-color: var(--e-teal-l);
  color: var(--e-teal);
  border-radius: 2px;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */

.card-elevated {
  background: var(--e-white);
  border: 1px solid var(--e-rule);
  border-radius: 3px;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   9. "Why referral platforms" — cards → ruled feature list
   -------------------------------------------------------------------------- */

ul[class*="sm:grid-cols-2"] > li.card-elevated {
  background: none;
  border: 0;
  border-top: 1px solid var(--e-rule-2);
  border-radius: 0;
  padding: 1.15rem 0 0;
}

ul[class*="sm:grid-cols-2"] > li.card-elevated > div:first-child {
  height: 22px;
  width: 22px;
  border-radius: 0;
  background: none;
  color: var(--e-amber);
  margin-bottom: 0.6rem;
}

ul[class*="sm:grid-cols-2"] > li.card-elevated p.font-display {
  font-family: var(--e-serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.012em;
}

/* --------------------------------------------------------------------------
   10. Category / topic grids → hairline index
   The rounded floating tiles are rebuilt as a single ruled grid, the way a
   printed directory would set them.
   -------------------------------------------------------------------------- */

#services > div[class*="lg:grid-cols-4"],
#topics   > div[class*="lg:grid-cols-3"] {
  gap: 0;
  border-top: 2px solid var(--e-ink);
  border-left: 1px solid var(--e-rule);
  /* Shows through wherever the last row runs short, so the gap reads as a
     deliberate blank tile rather than a missing one. */
  background: var(--e-paper-2);
}

#services > div[class*="lg:grid-cols-4"] > a,
#topics   > div[class*="lg:grid-cols-3"] > article {
  border: 0;
  border-right: 1px solid var(--e-rule);
  border-bottom: 1px solid var(--e-rule);
  border-radius: 0;
  background: var(--e-white);
  box-shadow: none;
  padding: 1.85rem 1.7rem 2rem;
  transition: background-color .22s ease;
}

#services > div[class*="lg:grid-cols-4"] > a:hover,
#topics   > div[class*="lg:grid-cols-3"] > article:hover {
  transform: none;
  box-shadow: none;
  background: var(--e-paper-2);
}

/* Icon tiles inside the index: outlined, parked in the top-right corner so
   the label and headline get a clean left edge to hang off. */
#services > div > a > div[class*="rounded-2xl"],
#topics   > div > article > div[class*="rounded-2xl"] {
  position: absolute;
  top: 1.7rem;
  right: 1.7rem;
  margin: 0;
  height: 38px;
  width: 38px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid var(--e-rule-2);
  color: var(--e-teal);
  box-shadow: none;
  transition: border-color .22s ease, background-color .22s ease;
}

/* keep text clear of the corner icon */
#services > div > a > span[class*="tracking-widest"] { display: block; }
#services > div > a > span[class*="tracking-widest"],
#services > div > a > h3,
#topics   > div > article > h3 { padding-right: 3.2rem; }

#services > div > a > h3 { margin-top: 0.9rem; }
#topics   > div > article > h3 { margin-top: 0; }
#services > div > a > div[class*="rounded-2xl"] > svg,
#topics   > div > article > div[class*="rounded-2xl"] > svg {
  height: 19px;
  width: 19px;
}
#services > div > a:hover > div[class*="rounded-2xl"],
#topics   > div > article:hover > div[class*="rounded-2xl"] {
  border-color: var(--e-teal);
  background: var(--e-white);
}

#services h3, #topics h3 {
  font-family: var(--e-serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
}

#services p, #topics p { font-size: 0.875rem; }

/* "Learn more" affordance (scoped to the card links, not the section eyebrow) */
#services > div > a > span[class*="text-[color:var(--color-primary)]"] {
  color: var(--e-teal);
  font-family: var(--e-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 1.5rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--e-rule-2);
  transition: border-color .2s ease;
}
#services > div > a:hover > span[class*="text-[color:var(--color-primary)]"] {
  border-bottom-color: var(--e-teal);
}

/* --------------------------------------------------------------------------
   11. Process steps — boxed badges → oversized serif numerals
   -------------------------------------------------------------------------- */

span[class*="place-items-center"]:has(+ span[class*="h-px"]) {
  display: block;
  height: auto;
  width: auto;
  border-radius: 0;
  background: none;
  background-image: none;
  font-family: var(--e-serif);
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--e-amber);
  font-variation-settings: "opsz" 40;
}

span[class*="h-px"][class*="flex-1"] { background: var(--e-rule-2); }

/* Give the step tiles a little more air now that the numeral is large. */
.card-elevated:has(> div > span[class*="h-px"]),
li[class*="rounded-3xl"]:has(> div > span[class*="h-px"]) {
  border: 0;
  border-top: 2px solid var(--e-ink);
  border-radius: 0;
  background: none;
  padding: 1.3rem 0 0;
}

/* --------------------------------------------------------------------------
   12. Benefits panel (framed section on home + service pages)
   -------------------------------------------------------------------------- */

div[class*="rounded-[2rem]"][class*="bg-[image:var(--gradient-hero)]"] {
  background: var(--e-rule-2);
  background-image: none;
  border-radius: 0;
  padding: 1px;
}

div[class*="rounded-[calc(2rem-4px)]"][class*="bg-white/70"] {
  background: var(--e-paper-2);
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Inner benefit cards */
div[class*="border-white/70"][class*="bg-white/80"] {
  background: var(--e-white);
  border: 1px solid var(--e-rule);
  border-radius: 3px;
}

div[class*="border-white/70"][class*="bg-white/80"] > div:first-child {
  height: 34px;
  width: 34px;
  border-radius: 2px;
  background: var(--e-amber-l);
  background-image: none;
  color: var(--e-amber);
}

div[class*="border-white/70"] p.font-display,
div[class*="border-white/70"] h3 {
  font-family: var(--e-serif);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.012em;
}

/* --------------------------------------------------------------------------
   13. FAQ — stacked cards → one continuous ruled ledger
   -------------------------------------------------------------------------- */

ul[class*="space-y-3"] > li.card-elevated {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--e-rule);
  border-radius: 0;
  background: none;
  overflow: visible;
}
ul[class*="space-y-3"] > li.card-elevated:first-child {
  border-top: 2px solid var(--e-ink);
}
ul[class*="space-y-3"] > li.card-elevated:last-child {
  border-bottom: 1px solid var(--e-rule);
}

ul[class*="space-y-3"] summary {
  padding: 1.4rem 0;
  gap: 2rem;
}

ul[class*="space-y-3"] summary > span:first-child {
  font-family: var(--e-serif);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -0.016em;
  color: var(--e-ink);
  transition: color .16s ease;
}
ul[class*="space-y-3"] summary:hover > span:first-child { color: var(--e-teal); }

/* the +/× toggle */
ul[class*="space-y-3"] summary > span:last-child {
  height: 26px;
  width: 26px;
  border-radius: 0;
  background: none;
  background-image: none;
  color: var(--e-ink-2);
  transition: transform .22s ease, color .22s ease;
}
ul[class*="space-y-3"] summary > span:last-child > svg {
  height: 20px;
  width: 20px;
}
ul[class*="space-y-3"] details[open] summary > span:last-child {
  background: none;
  background-image: none;
  color: var(--e-amber);
}

ul[class*="space-y-3"] details > div {
  padding: 0 4.5rem 1.6rem 0;
  max-width: 58ch;
  color: var(--e-ink-2);
}

/* The home page renders the FAQ heading twice (an outer wrapper plus the
   FAQ component's own header). Suppress the duplicate visually — the copy
   itself stays in the document. */
section:has(> section[data-tsd-source^="/src/components/FAQ.tsx"]) > div[class*="mb-10"] {
  display: none;
}
section:has(> section[data-tsd-source^="/src/components/FAQ.tsx"]) {
  padding-block: 0;
}

/* --------------------------------------------------------------------------
   14. Closing CTA panels
   -------------------------------------------------------------------------- */

[class*="bg-[oklch(0.15_0.04_265)]"] {
  background-color: var(--e-dark);
  border-radius: 0;
}

/* Coloured 4px frame around the CTA panel (both page types) */
div[class*="rounded-[2rem]"][class*="bg-gradient-to-br"],
div[class*="rounded-[2rem]"][class*="bg-[oklch(0.15_0.04_265)]"] {
  background-color: var(--e-amber);
  background-image: none;
  border-radius: 0;
}

/* Services with no published number lose the closing panel's call button,
   which would otherwise leave a dead column in the grid. Let the copy use
   the full width instead, and centre the hero's remaining button row. */
[class*="bg-[oklch(0.15_0.04_265)]"] div[class*="lg:grid-cols-"]:has(> div:last-child:empty) {
  grid-template-columns: 1fr;
}
[class*="bg-[oklch(0.15_0.04_265)]"] div[class*="lg:grid-cols-"] > div:empty {
  display: none;
}

/* Kill the leftover purple radial washes (they are set inline). */
div[style*="radial-gradient"] { opacity: 0; }

/* …and replace them with a warm one of our own. */
[class*="bg-[oklch(0.15_0.04_265)]"][class*="text-white"] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
[class*="bg-[oklch(0.15_0.04_265)]"][class*="text-white"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 120% at 12% 0%, rgb(15 92 85 / .55), transparent 62%),
    radial-gradient(55% 110% at 92% 100%, rgb(180 103 58 / .34), transparent 60%);
}

[class*="bg-[oklch(0.15_0.04_265)]"] h2 { color: #fff; }
[class*="bg-[oklch(0.15_0.04_265)]"] .gradient-text {
  color: #e8b48c;
  box-shadow: inset 0 -0.075em 0 0 rgb(232 180 140 / .45);
}

/* Light button on the dark panel */
[class*="bg-[oklch(0.15_0.04_265)]"] a[class*="bg-white"] {
  border-radius: 2px;
  background: var(--e-paper);
  color: var(--e-ink);
  font-family: var(--e-sans);
  font-weight: 600;
  box-shadow: none;
  transition: background-color .18s ease;
}
[class*="bg-[oklch(0.15_0.04_265)]"] a[class*="bg-white"]:hover {
  transform: none;
  background: #fff;
}

/* --------------------------------------------------------------------------
   15. Service-page hero side panel
   -------------------------------------------------------------------------- */

div[class*="rounded-2xl"][class*="bg-[image:var(--gradient-hero)]"] {
  background-image: none;
  background-color: var(--e-dark);
  border-radius: 2px;
}
div[class*="rounded-2xl"][class*="bg-[image:var(--gradient-hero)]"] p:first-child {
  color: rgb(255 255 255 / .55);
}
div[class*="rounded-2xl"][class*="bg-[image:var(--gradient-hero)]"] p.font-display {
  font-family: var(--e-serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Some pages put a line illustration in that slot instead of a statement —
   those read better on paper than on ink. */
div[class*="rounded-2xl"][class*="bg-[image:var(--gradient-hero)]"]:has(> svg) {
  background-color: var(--e-paper-2);
  border: 1px solid var(--e-rule);
}

/* The illustrations ship with hard-coded violet/blue/green fills as SVG
   presentation attributes; CSS outranks those, so they are re-tinted into the
   two-tone teal/amber scheme rather than edited in the markup. */
svg [fill*="0.52 0.24 293"], svg [stroke*="0.52 0.24 293"] { fill: var(--e-teal); }
svg [fill*="0.60 0.21 263"] { fill: var(--e-teal-2); }
svg [stroke*="0.60 0.21 263"] { stroke: var(--e-teal-2); fill: none; }
svg [fill*="0.80 0.17 75"]  { fill: var(--e-amber); }
svg [fill*="0.72 0.19 148"] { fill: var(--e-amber); }
svg [fill*="0.18 0.02 260"] { fill: var(--e-ink); }

/* the three small chips above it */
div[class*="grid-cols-3"] > div[class*="rounded-2xl"][class*="border-border"] {
  border-radius: 2px;
  border-color: var(--e-rule);
  background: var(--e-paper);
}
div[class*="grid-cols-3"] > div[class*="rounded-2xl"][class*="border-border"] > div:first-child {
  height: 30px;
  width: 30px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid var(--e-rule-2);
  color: var(--e-teal);
}

/* --------------------------------------------------------------------------
   15b. Floating call affordance (service pages)
   -------------------------------------------------------------------------- */

a[class*="fixed"][class*="z-40"] {
  background-color: var(--e-teal);
  background-image: none;
  color: #fff;
  border-radius: 2px;
  padding: 0.8rem 1.15rem;
  font-family: var(--e-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 34px -18px rgb(20 31 29 / .7);
  transition: background-color .18s ease;
}
a[class*="fixed"][class*="z-40"]:hover {
  transform: translateY(-50%);
  background-color: var(--e-teal-d);
}
a[class*="fixed"][class*="bottom-5"]:hover { transform: none; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

footer {
  margin-top: 6rem;
  background: var(--e-paper-2);
  border-top: 1px solid var(--e-rule-2);
}

footer > div { padding-block: 3.75rem 2.25rem; }

/* The standalone builds drop the Quick Links column, leaving two children in
   a three-column template. Re-balance only in that case. */
@media (min-width: 1024px) {
  footer div[class*="lg:grid-cols-"]:has(> div:nth-child(2):last-child) {
    grid-template-columns: 1.2fr 1.5fr;
    gap: 5rem;
  }
  /* the disclaimer inherits the freed-up width, so hold it to a readable measure */
  footer div[class*="lg:grid-cols-"]:has(> div:nth-child(2):last-child) > div:last-child p {
    max-width: 62ch;
  }
}

footer span[class*="place-items-center"] {
  background: var(--e-teal);
  background-image: none;
  border-radius: 2px;
  height: 34px;
  width: 34px;
  font-family: var(--e-serif);
  font-weight: 600;
  color: #fff;
}

footer .font-display { font-size: 1.5rem; }

footer h4 {
  font-family: var(--e-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--e-ink-3);
}

footer a {
  font-size: 0.9rem;
  color: var(--e-ink-2);
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
footer a:hover { color: var(--e-ink); border-bottom-color: var(--e-rule-2); }

footer [class*="border-t"] { border-color: var(--e-rule-2); }

/* --------------------------------------------------------------------------
   17. Section rhythm
   -------------------------------------------------------------------------- */

main > div > section { position: relative; }

@media (min-width: 1024px) {
  main > div > section[class*="py-20"] { padding-block: 5rem; }
  main > div > section[class*="py-16"] { padding-block: 4.25rem; }
}

/* The FAQ wrapper is already zeroed out above; keep its inner section from
   stacking a second full band on top of the previous one. */
section[data-tsd-source^="/src/components/FAQ.tsx"] { padding-block: 4.25rem; }

/* Hang the FAQ on the same left edge as every other section (it ships in a
   narrower container), while keeping the answers at a readable measure. */
@media (min-width: 1024px) {
  section[data-tsd-source^="/src/components/FAQ.tsx"] { max-width: 80rem; }
  section[data-tsd-source^="/src/components/FAQ.tsx"] > ul { max-width: 58rem; }
}

/* --------------------------------------------------------------------------
   18. Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
