/* ============================================================
   BiliSG Theme v2 — Main Stylesheet
   Ported from ref/landing-page-ref-v2 React/Tailwind source.
   
   Table of contents:
   1.  Reset & base
   2.  Accessibility utilities
   3.  Layout helpers (page-container, page-inset)
   4.  Typography scale
   5.  Global patterns (grid-paper, bili-gradient)
   6.  Logo
   7.  Site header / navigation
   8.  Site footer
   9.  Shared components (Eyebrow, SectionHeading, Button)
   10. Reveal animations
   11. Phone device frame
   12. Action cards
   13. Page hero (secondary pages)
   14. FAQ accordion
   15. Next step CTA band
   16. Brand icons
   17. WordPress required classes
   18. Reduced motion
   ============================================================ */


/* ── 1. Reset & base ─────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-ink);
  background: #fff;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--color-ink);
  font-weight: 700;
  text-wrap: balance;
  margin: 0;
}

p {
  text-wrap: pretty;
  margin: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  padding: 0;
}

::selection {
  background: var(--color-warning);
  color: var(--color-ink);
}

:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: 8px;
}


/* ── 2. Accessibility utilities ──────────────────────────── */

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--color-ink);
  color: white;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  z-index: 60;
  overflow: visible;
}


/* ── 3. Layout helpers ───────────────────────────────────── */

html {
  scroll-padding-top: calc(var(--header-height) + 20px);
}

.page-container {
  width: 100%;
  max-width: var(--max-w-site);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.page-inset {
  width: 100%;
  max-width: var(--max-w-site);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.page-inset .page-container {
  padding-inline: var(--panel-gutter);
}

/* Scroll margin for anchor links */
[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}


/* ── 4. Typography scale ─────────────────────────────────── */

.text-h1 {
  font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.text-h2 {
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.text-h3 {
  font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  line-height: 1.3;
  font-weight: 700;
}


/* ── 5. Global patterns ──────────────────────────────────── */

/* Grid paper background */
.grid-paper {
  background-image:
    linear-gradient(rgb(33 33 33 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(33 33 33 / 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Bilirubin gradient — vertical (head to toe) */
.bili-gradient {
  background: linear-gradient(180deg, #fff5db 0%, #ffce71 40%, #f78d21 100%);
}

/* Bilirubin gradient — horizontal */
.bili-gradient-x {
  background: linear-gradient(90deg, #fff5db 0%, #ffce71 45%, #f78d21 100%);
}


/* ── 6. Logo ──────────────────────────────────────────────── */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 11px;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.logo__wordmark {
  padding-top: 0.25rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--color-ink);
}

.logo__sg {
  color: var(--color-brand);
}

.logo__copyright {
  margin-left: 0.25rem;
  font-size: 0.5em;
  font-weight: 600;
  color: var(--color-subtle);
  vertical-align: super;
}

/* Light variant used in footer */
.logo--light .logo__wordmark {
  color: white;
}

.logo--light .logo__copyright {
  color: rgba(255, 255, 255, 0.6);
}


/* ── 7. Site header / navigation ─────────────────────────── */

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  transition: background-color 300ms, box-shadow 300ms;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgb(33 33 33 / 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav-logo {
  border-radius: var(--radius-xl);
}

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-muted);
  transition: color 200ms;
}

.nav-link:hover {
  color: var(--color-ink);
}

.nav-link--active {
  color: var(--color-ink);
}

/* Active indicator */
.nav-link__indicator {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -0.25rem;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--color-brand);
  transform: scaleX(0);
  transition: transform 300ms;
}

.nav-link--active .nav-link__indicator {
  transform: scaleX(1);
}

/* Mobile menu toggle */
.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  color: var(--color-ink);
  transition: background-color 200ms;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(33, 33, 33, 0.05);
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile dropdown */
.nav-mobile {
  border-top: 1px solid var(--color-line);
  background: white;
  padding: 0.5rem var(--page-gutter) 1rem;
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-ink);
}

.nav-mobile-link:hover {
  background: rgba(33, 33, 33, 0.04);
}

.nav-mobile-link--active {
  background: var(--color-brand-soft);
  color: var(--color-ink);
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}


/* ── 8. Site footer ──────────────────────────────────────── */

.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.7);
}

/* Top gradient bar */
.footer-gradient-bar {
  height: 4px;
  width: 100%;
}

/* Research notice */
.footer-notice {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-6) 0;
}

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

.footer-notice__icon {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--color-warning);
}

.footer-notice__text {
  max-width: 56rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.footer-notice__text strong {
  font-weight: 600;
  color: white;
}

/* Main footer grid */
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: var(--space-11) 0;
}

.footer-desc {
  margin-top: 1rem;
  max-width: 24rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col-heading {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.footer-nav-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-nav-link {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: color 200ms;
}

.footer-nav-link:hover {
  color: var(--color-warning);
}

.footer-address {
  margin-top: 0.75rem;
  line-height: 1.6;
  font-style: normal;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-6) 0;
}

.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9375rem;
}

.footer-disclaimer {
  max-width: 48rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.footer-legal__link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.footer-legal__link:hover {
  color: var(--color-warning);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-bottom__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-legal {
    align-items: flex-end;
  }
}


/* ── 9. Shared components ────────────────────────────────── */

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-brand-ink);
  text-transform: uppercase;
}

.eyebrow__bar {
  height: 3px;
  width: 1.25rem;
  border-radius: var(--radius-full);
  background: var(--color-brand);
  flex-shrink: 0;
}

.eyebrow--light {
  color: var(--color-warning);
}

/* Section heading */
.section-heading {
  max-width: 42rem;
}

.section-heading--center {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.section-heading--light .section-heading__title {
  color: white;
}

.section-heading__title {
  margin-top: var(--space-3);
}

.section-heading__lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-muted);
}

.section-heading--light .section-heading__lead {
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 640px) {
  .section-heading__lead {
    font-size: 1.25rem;
  }
}

/* Button */
.btn {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  /* Reference: pt-1 px-5 = 5px top, 25px horizontal */
  padding: 5px 1.25rem;
  padding-top: 5px;
  font-size: 1.0625rem;
  font-weight: 600;
  transition: background-color 200ms, box-shadow 200ms, color 200ms;
}

.btn:active {
  transform: scale(0.98);
}

.btn__icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: -0.25rem;
  transition: transform 200ms;
  flex-shrink: 0;
}

.btn:hover .btn__icon {
  transform: translateX(0.25rem);
}

/* Primary variant */
.btn--primary {
  background: var(--color-brand);
  color: var(--color-ink);
  box-shadow: 0 10px 24px -12px rgba(247, 141, 33, 0.9);
}

.btn--primary:hover {
  background: var(--color-brand-hover);
  color: var(--color-ink);
}

/* Secondary variant */
.btn--secondary {
  background: white;
  color: var(--color-ink);
  box-shadow: inset 0 0 0 1px rgba(33, 33, 33, 0.15);
}

.btn--secondary:hover {
  box-shadow: inset 0 0 0 1px rgba(33, 33, 33, 0.4);
  color: var(--color-ink);
}

/* Dark variant */
.btn--dark {
  background: var(--color-ink);
  color: white;
}

.btn--dark:hover {
  background: black;
  color: white;
}

/* Light variant */
.btn--light {
  background: white;
  color: var(--color-ink);
}

.btn--light:hover {
  background: var(--color-brand-soft);
  color: var(--color-ink);
}


/* ── 10. Reveal animations ───────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.animate-rise {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}


/* ── 11. Phone device frame ──────────────────────────────── */

.phone-frame {
  position: relative;
  flex-shrink: 0;
  container-type: inline-size;
}

.phone-frame__shell {
  position: relative;
  border-radius: 15.5cqw;
  background: linear-gradient(to bottom right, #eeece9, #a9a6a2, #5d5a57);
  padding: 1.3cqw;
  box-shadow: 0 40px 80px -30px rgba(42, 29, 21, 0.55), 0 18px 36px -18px rgba(42, 29, 21, 0.35);
}

.phone-frame__body {
  border-radius: 14.6cqw;
  background: #111;
  padding: 3cqw;
}

.phone-frame__screen {
  position: relative;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border-radius: 12cqw;
  background: white;
}

.phone-frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Side buttons */
.phone-frame__btn {
  position: absolute;
  background: #8f8c88;
  width: 1.2cqw;
}

.phone-frame__btn--vol-1 {
  top: 20%;
  left: -1px;
  height: 6%;
  border-radius: 2px 0 0 2px;
}

.phone-frame__btn--vol-2 {
  top: 28%;
  left: -1px;
  height: 6%;
  border-radius: 2px 0 0 2px;
}

.phone-frame__btn--power {
  top: 24%;
  right: -1px;
  height: 10%;
  border-radius: 0 2px 2px 0;
}

/* Phone responsive width utilities — for Different Way section */
/* Reference: left phone 190px→215px, right phone 210px→235px */
@media (min-width: 640px) {
  .sm-phone-width-215 {
    width: 215px !important;
  }
  .sm-phone-width-235 {
    width: 235px !important;
  }
}


/* ── 12. Action cards ────────────────────────────────────── */

.action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 25px;
  background: white;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  box-shadow: inset 0 0 0 1px rgba(33, 33, 33, 0.05);
  transition: transform 300ms, box-shadow 300ms;
}

.action-card::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0;
  height: 4px;
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  box-shadow: inset 0 0 0 1px rgba(247, 141, 33, 0.4);
}

.action-card:hover::before,
.action-card:focus-visible::before {
  transform: scaleX(1);
}

/* Accent blob */
.action-card__blob {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 6rem;
  height: 6rem;
  border-radius: var(--radius-full);
  opacity: 0.4;
  transition: transform 300ms;
  pointer-events: none;
}

.action-card:hover .action-card__blob,
.action-card:focus-visible .action-card__blob {
  transform: scale(1.1);
}

.action-card__blob--peach { background: var(--color-brand-soft); }
.action-card__blob--blue { background: var(--color-sky); }
.action-card__blob--pink { background: var(--color-negative-soft); }

/* Icon */
.action-card__icon-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 20px;
  transition: transform 300ms;
}

.action-card:hover .action-card__icon-wrap,
.action-card:focus-visible .action-card__icon-wrap {
  transform: rotate(-6deg);
}

.action-card__icon-wrap--peach { background: var(--color-brand-soft); }
.action-card__icon-wrap--blue { background: var(--color-sky); }
.action-card__icon-wrap--pink { background: var(--color-negative-soft); }

.action-card__icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Header */
.action-card__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.action-card__index {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

/* Content */
.action-card__title {
  position: relative;
  margin-top: var(--space-6);
  font-size: 1.5rem;
  line-height: 1.2;
}

.action-card__text {
  position: relative;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-muted);
}

/* Footer */
.action-card__footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-brand-ink);
}

.action-card__arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background: var(--color-grey);
  color: var(--color-ink);
  transition: background-color 300ms, transform 300ms;
  flex-shrink: 0;
}

.action-card:hover .action-card__arrow,
.action-card:focus-visible .action-card__arrow {
  background: var(--color-brand);
  transform: translateX(0.25rem);
}

.action-card__arrow svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 640px) {
  .action-card {
    padding: 1.5rem;
  }

  .action-card::before {
    left: 1.5rem;
    right: 1.5rem;
  }
}


/* ── 13. Page hero (secondary pages) ──────────────────────── */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-sky);
  padding-top: var(--space-26);
  padding-bottom: var(--space-13);
}

@media (min-width: 640px) {
  .page-hero {
    /* Reference: sm:pt-30 sm:pb-19 = 150px top, 95px bottom */
    padding-top: var(--space-30);
    padding-bottom: var(--space-19);
  }
}

/* Grid paper overlay */
.page-hero__grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

/* Atmospheric glow */
.page-hero__glow {
  pointer-events: none;
  position: absolute;
  /* Reference: -top-32 -right-32 size-[560px] = -160px, 560px */
  top: -160px;
  right: -160px;
  width: 560px;
  height: 560px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.7);
  filter: blur(48px);
  -webkit-filter: blur(48px);
}

/* Content */
.page-hero__inner {
  position: relative;
  display: grid;
  align-items: flex-end;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .page-hero__inner {
    grid-template-columns: 1.35fr 1fr;
  }
}

.page-hero__content {
  max-width: 56rem;
}

.page-hero__title {
  margin-top: 1rem;
  max-width: 56rem;
}

.page-hero__intro {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(33, 33, 33, 0.8);
}

@media (min-width: 640px) {
  .page-hero__intro {
    font-size: 1.25rem;
  }
}

.page-hero__aside {
  align-self: center;
}

.page-hero__aside--delay {
  animation-delay: 150ms;
}


/* ── 14. FAQ accordion ───────────────────────────────────── */

.faq-accordion {
  border-radius: var(--radius-2xl);
  background: white;
  padding: 0 1.25rem;
  box-shadow: var(--shadow-card);
  box-shadow: inset 0 0 0 1px var(--color-line);
}

@media (min-width: 640px) {
  .faq-accordion {
    padding: 0 1.5rem;
  }
}

.faq-item {
  border-bottom: 1px solid var(--color-line);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 0 1rem;
  text-align: left;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-ink);
}

.faq-question__icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.25rem;
  border-radius: var(--radius-full);
  background: var(--color-brand-soft);
  color: var(--color-brand-ink);
  transition: transform 300ms, background-color 300ms;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-question__icon {
  transform: rotate(45deg);
  background: var(--color-brand);
  color: var(--color-ink);
}

.faq-question__icon svg {
  width: 1rem;
  height: 1rem;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms;
}

.faq-answer[aria-hidden="false"] {
  grid-template-rows: 1fr;
}

.faq-answer__inner {
  overflow: hidden;
}

.faq-answer__text {
  padding-right: 2rem;
  padding-bottom: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-muted);
}


/* ── 15. Next step CTA band ──────────────────────────────── */

.next-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  border-radius: var(--radius-3xl);
  background: var(--color-sky);
  padding: 2rem 1.25rem;
}

@media (min-width: 640px) {
  .next-step {
    flex-direction: row;
    align-items: center;
    border-radius: var(--radius-4xl);
    padding: 2.5rem;
  }
}

.next-step__label {
  max-width: 36rem;
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background: var(--color-brand);
  padding: var(--space-13) 1.25rem;
}

@media (min-width: 640px) {
  .cta-band {
    border-radius: var(--radius-4xl);
    padding: var(--space-16) 2.5rem;
  }
}

.cta-band__glow-1 {
  pointer-events: none;
  position: absolute;
  right: -4.75rem;
  bottom: -8rem;
  width: 27.5rem;
  height: 27.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 206, 113, 0.6);
  filter: blur(32px);
}

.cta-band__glow-2 {
  pointer-events: none;
  position: absolute;
  top: -4.75rem;
  left: 33%;
  width: 18.75rem;
  height: 18.75rem;
  border-radius: var(--radius-full);
  background: rgba(240, 153, 137, 0.5);
  filter: blur(48px);
}

.cta-band__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: var(--max-w-6xl);
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .cta-band__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.cta-band__content {
  max-width: 42rem;
}

.cta-band__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(33, 33, 33, 0.7);
  text-transform: uppercase;
}

.cta-band__title {
  margin-top: 0.5rem;
}

.cta-band__text {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(33, 33, 33, 0.85);
}

@media (min-width: 640px) {
  .cta-band__text {
    font-size: 1.25rem;
  }
}

.cta-band__btn {
  flex-shrink: 0;
  align-self: flex-start;
}

@media (min-width: 1024px) {
  .cta-band__btn {
    align-self: flex-end;
  }
}


/* ── 16. Brand icons ─────────────────────────────────────── */

.brand-icon {
  flex-shrink: 0;
}

/* Default icon colors */
:root {
  --icon-primary: var(--color-icon-primary);
  --icon-accent: var(--color-icon-accent);
}

/* On dark backgrounds */
.bg-ink,
.bg-black,
[class*="bg-ink"] {
  --icon-primary: var(--color-teal);
  --icon-accent: var(--color-warning);
}

/* On light/colored backgrounds */
.bg-brand,
.bg-white,
.bg-positive-soft,
.bg-warning-soft {
  --icon-primary: var(--color-icon-primary);
  --icon-accent: var(--color-icon-accent);
}

/* Make icons in buttons use currentColor */
button .brand-icon,
[role="button"] .brand-icon,
[data-button] .brand-icon {
  stroke: currentColor;
}


/* ── 17. WordPress required classes ──────────────────────── */

.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide  { max-width: 100%; }
.alignfull  { width: 100%; max-width: none; }

.wp-block-image figcaption,
.wp-caption-text {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 0.5rem;
}

.sticky { }
.bypostauthor { }

.entry-content > * + * {
  margin-top: 1.5em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.entry-content p {
  line-height: 1.7;
}

.entry-content a {
  color: var(--color-brand-ink);
  text-decoration: underline;
}

.entry-content a:hover {
  color: var(--color-brand-hover);
}


/* ── 18. Reduced motion ──────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
