/* ==========================================================================
   Curious Katie – Body Explorations
   Design system: "Mist and lavender"
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-bg: #F4F4F8;          /* mist: main page background */
  --color-surface: #FFFFFF;     /* cards, content panels */
  --color-soft: #E1E2EE;        /* alternate sections, dividers */
  --color-lavender: #C2C5DD;    /* decorative accents, borders, shapes */
  --color-accent: #757AA3;      /* decorative accents, borders, icons */
  --color-accent-dark: #5C618A; /* buttons, links, small headings */
  --color-text: #3E415C;        /* body and heading text */
  --color-text-muted: #62668A;  /* captions, secondary text */

  /* Light text on #757AA3 is only ~4.1:1 (below WCAG AA), so buttons
     and text links use the darker accent, which is ~6:1. */
  --color-button: var(--color-accent-dark);
  --color-button-hover: #494D74;
  --color-link: var(--color-accent-dark);
  --color-link-hover: var(--color-text);

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-wordmark: "Leckerli One", "Brush Script MT", cursive;

  --radius-card: 20px;
  --radius-pill: 999px;
  --max-width: 1100px;
  --reading-width: 680px;
  --gutter: 20px;
  --section-pad: 56px;

  --shadow-soft: 0 10px 30px rgba(62, 65, 92, 0.06);
  --transition: 0.25s ease;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --section-pad: 104px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body {
    font-size: 1.125rem; /* 18px */
  }
}

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

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  font-family: var(--font-heading);
  font-weight: 400;
  font-variation-settings: "SOFT" 100;
  line-height: 1.2;
  color: var(--color-text);
  text-wrap: balance;
}

h1 {
  font-size: 2.1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.1rem;
  }
}

p {
  margin: 0 0 1.2em;
}

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

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition), text-decoration-thickness var(--transition);
}

a:hover {
  color: var(--color-link-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--color-accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

ul {
  padding-left: 1.2em;
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  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;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 20px;
  background: var(--color-button);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
  color: #FFFFFF;
}

.container {
  width: 100%;
  max-width: calc(var(--max-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.reading {
  max-width: var(--reading-width);
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.lead {
  font-size: 1.15em;
  color: var(--color-text-muted);
  text-wrap: balance;
}

/* A line break that only applies where the first line fits on one row */
@media (max-width: 599px) {
  .br-wide {
    display: none;
  }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: var(--section-pad) 0;
}

.section--soft {
  background: var(--color-soft);
  /* Slightly deeper muted text so it keeps AA contrast on the soft background */
  --color-text-muted: #575B7E;
}

/* Follows a page hero directly, so the hero's spacing is enough */
.section--flush-top {
  padding-top: 0;
}

.section-intro {
  margin-bottom: 2.5rem;
}

/* ---------- Parallax photo sections ----------
   The photo stays put while the page scrolls past it. Content sits on a
   frosted panel so text stays readable whatever the photo behind it. */
.section--photo {
  padding: calc(var(--section-pad) * 1.4) 0;
  background-color: var(--color-lavender);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Fixed backgrounds only on devices that handle them well (not touch
   phones, where they jump or blur) and only when motion is welcome */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .section--photo {
    background-attachment: fixed;
  }
}

.photo--sunset {
  background-image: url("../images/bg-sunset.jpg");
}

.photo--sky {
  background-image: url("../images/bg-sky.jpg");
}

.photo--petunia {
  background-image: url("../images/bg-petunia.jpg");
}

.photo--petunias {
  background-image: url("../images/bg-petunias.jpg");
}

.photo--hammock {
  background-image: url("../images/bg-hammock.jpg");
}

.frost {
  padding: 40px 24px;
  border-radius: 28px;
  background: rgba(244, 244, 248, 0.92);
  box-shadow: var(--shadow-soft);
  /* Deeper muted text keeps AA contrast over any photo */
  --color-text-muted: #4E5275;
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .frost {
    background: rgba(244, 244, 248, 0.86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

@media (min-width: 768px) {
  .frost {
    padding: 64px 56px;
  }
}

/* Narrower panel so the photo shows around it */
.section--photo .cta-band {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(244, 244, 248, 0.94);
  --color-text-muted: #4E5275;
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .section--photo .cta-band {
    background: rgba(244, 244, 248, 0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 28px;
  border: 1.5px solid var(--color-button);
  border-radius: var(--radius-pill);
  background: var(--color-button);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
  background: var(--color-button-hover);
  border-color: var(--color-button-hover);
  color: #FFFFFF;
}

.btn--secondary {
  background: transparent;
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.btn--secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-accent-dark);
  color: var(--color-text);
}

.btn--small {
  padding: 9px 20px;
  font-size: 0.95rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

.center .btn-row {
  justify-content: center;
}

.text-link {
  font-weight: 500;
}

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 244, 248, 0.94);
  border-bottom: 1px solid var(--color-soft);
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header {
    background: rgba(244, 244, 248, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--color-text);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--color-text);
}

.wordmark-name {
  font-family: var(--font-wordmark);
  font-size: 1.6rem;
  font-weight: 400; /* Leckerli One has a single weight; avoid faux bold */
  letter-spacing: 0.01em;
}

.wordmark-tag {
  margin-top: 3px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1.5px solid var(--color-lavender);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--transition);
}

.nav-toggle:hover {
  border-color: var(--color-accent);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--color-text);
  font-size: 1rem;
  text-decoration: none;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-lavender);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-list a:hover {
  color: var(--color-accent-dark);
}

.nav-list a:hover::after {
  transform: scaleX(1);
}

.nav-list a[aria-current="page"] {
  color: var(--color-accent-dark);
  font-weight: 500;
}

.nav-list a[aria-current="page"]::after {
  background: var(--color-accent);
  transform: scaleX(1);
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
  }

  /* Without JavaScript the menu simply wraps below the wordmark */
  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px 0 20px;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--color-soft);
    font-size: 1.05rem;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-list a[aria-current="page"] {
    padding-left: 14px;
    border-left: 3px solid var(--color-accent);
  }

  .site-nav .btn {
    align-self: flex-start;
  }

  /* With JavaScript the menu becomes a toggled panel */
  .js .header-inner {
    flex-wrap: nowrap;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-soft);
    box-shadow: var(--shadow-soft);
  }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

@media (min-width: 768px) {
  .hero {
    padding: 140px 0 150px;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: 2.5rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.6rem;
  }
}

.hero .lead {
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

/* A soft mist glow behind the words, so they stay easy to read
   over the meadow's tree and grasses */
.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(820px, 130%);
  aspect-ratio: 1.7;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 244, 248, 0.9), rgba(244, 244, 248, 0.7) 55%, rgba(244, 244, 248, 0));
  transform: translate(-50%, -50%);
}

/* ---------- Ink meadow hero (three.js background, js/meadow.js) ---------- */
.hero--meadow {
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(88vh, 46rem);
}

.hero--meadow > .container {
  width: 100%;
}

.billboard {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* shown where WebGL isn't available */
  background: linear-gradient(180deg, #F4F4F8 0%, #F0F0F6 60%, #E4E5EF 100%);
}

.billboard canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Meadow behind a whole section (About "How I work"): the scene sticks to the
   screen while the section's cards scroll over it */
.section--meadow {
  isolation: isolate;
  padding: calc(var(--section-pad) * 1.3) 0;
}

.meadow-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #F4F4F8 0%, #F0F0F6 60%, #E4E5EF 100%);
}

.meadow-backdrop .billboard {
  position: sticky;
  top: 0;
  height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
  .meadow-backdrop .billboard {
    position: relative;
  }
}

.section--meadow > .container {
  position: relative;
  z-index: 1;
}

/* Cards stay nearly solid white over the scene, so they read as easily as anywhere else */
.section--meadow .card {
  background: rgba(255, 255, 255, 0.94);
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .section--meadow .card {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

/* Half-height version for inner pages (Services) */
.page-hero.hero--meadow-half {
  min-height: min(44vh, 23rem);
  padding: 56px 0;
}

/* The outlined button can sit over branches, so give it a mist fill here */
.hero--meadow .btn--secondary {
  background: rgba(244, 244, 248, 0.88);
}

.hero--meadow .btn--secondary:hover {
  background: var(--color-surface);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 112px 0 56px;
  }
}

/* A page hero that is the whole page (Contact, 404) */
.page-hero--full {
  padding-bottom: var(--section-pad);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

/* Soft, blurred organic shapes behind hero areas */
.blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  background: var(--color-lavender);
  opacity: 0.45;
  filter: blur(48px);
}

.blob--1 {
  top: -12%;
  left: -8%;
  width: 46vw;
  max-width: 520px;
  aspect-ratio: 1 / 0.85;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
}

.blob--2 {
  right: -10%;
  bottom: -18%;
  width: 52vw;
  max-width: 600px;
  aspect-ratio: 1 / 0.8;
  border-radius: 42% 58% 38% 62% / 55% 45% 55% 45%;
  opacity: 0.38;
}

.page-hero .blob--1 {
  top: -40%;
  left: auto;
  right: -6%;
  opacity: 0.35;
}

.page-hero .blob--2 {
  display: none;
}

/* Gentle entrance, only for people who haven't asked for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: fade-up 0.9s ease both;
  }

  .fade-in--delay {
    animation-delay: 0.15s;
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(14px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-soft);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .card {
    padding: 36px;
  }
}

.card-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

.feeling-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
}

.feeling-card p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-variation-settings: "SOFT" 100;
  line-height: 1.4;
}

.feeling-mark {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 0.4em;
  border-radius: 50% 46% 54% 50%;
  background: var(--color-lavender);
}

.prose {
  margin-top: 2rem;
}

/* ---------- Split layout (photo + text) ---------- */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 820px) {
  .split {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
  }
}

.photo-frame {
  position: relative;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--color-lavender);
  border-radius: 999px 999px 28px 28px;
}

.photo-frame img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 28px 28px;
  background: linear-gradient(170deg, var(--color-lavender), var(--color-bg));
}

/* Illustration variant: no frame, edges fade softly into the section,
   and the cream paper blends into the lavender behind it */
.photo-frame--soft::before {
  display: none;
}

.photo-frame--soft img {
  border-radius: 0;
  background: none;
  opacity: 0.9;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
}

/* Photo variant: no frame, edges fade gently into the page */
.photo-frame--fade::before {
  display: none;
}

.photo-frame--fade img {
  border-radius: 0;
  background: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 50%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 50%, transparent 100%);
}

.illustration-caption {
  position: relative;
  margin-top: -0.75rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  color: var(--color-accent-dark);
}

/* ---------- About ---------- */
.about-intro .split {
  align-items: start;
}

.section--compact {
  padding: calc(var(--section-pad) * 0.7) 0;
}

.credentials {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0.5rem auto 0;
}

@media (min-width: 768px) {
  .credentials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.credentials li {
  padding: 22px 24px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-variation-settings: "SOFT" 100;
  line-height: 1.35;
  text-align: center;
}

.ways-in h3 {
  margin-bottom: 0.5em;
}

.card--wide {
  grid-column: 1 / -1;
}

.parts-card {
  text-align: center;
}

.parts-card p:not(.parts-welcome) {
  max-width: var(--reading-width);
  margin-left: auto;
  margin-right: auto;
}

.parts-welcome {
  margin-top: 1.25rem;
  font-family: var(--font-wordmark);
  font-size: 1.75rem;
  line-height: 1.3;
  color: var(--color-accent-dark);
}

.reflection {
  margin-top: 4rem;
}

.verse {
  margin: 1.6em 0;
  padding: 0.4em 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  line-height: 1.6;
  color: var(--color-accent-dark);
}

@media (min-width: 768px) {
  .verse {
    font-size: 1.55rem;
  }
}

.embodiment {
  margin-left: auto;
  margin-right: auto;
}

.closing-line {
  margin-top: 3.5rem;
}

.closing-sprig {
  width: 56px;
  margin: 0 auto 1rem;
}

.closing-line p {
  font-family: var(--font-wordmark);
  font-size: 1.75rem;
  line-height: 1.35;
  color: var(--color-accent-dark);
  text-wrap: balance;
}

@media (min-width: 768px) {
  .closing-line p {
    font-size: 2.25rem;
  }
}

/* ---------- Services ---------- */
.offer-card {
  display: flex;
  flex-direction: column;
}

.offer-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4em;
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.offer-meta li {
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  border: 1px solid var(--color-soft);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.offer-meta .offer-price {
  background: var(--color-soft);
  color: var(--color-text);
}

.offer-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.offer-card p {
  margin-bottom: 1.75rem;
}

.steps {
  display: grid;
  gap: 20px;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--color-soft);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-accent-dark);
}

.step h3 {
  margin-bottom: 0.3em;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.95em;
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  display: grid;
  gap: 14px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-soft);
  border-radius: var(--radius-card);
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--color-lavender);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 22px 64px 22px 26px;
  border-radius: var(--radius-card);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  font-variation-settings: "SOFT" 100;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--color-accent-dark);
}

/* Plus / minus icon */
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--color-accent);
  transition: transform var(--transition);
}

.faq-item summary::after {
  transform: rotate(90deg);
}

.faq-item[open] summary::after {
  transform: rotate(0deg);
}

.faq-answer {
  padding: 0 26px 24px;
  color: var(--color-text);
}

/* ---------- Testimonials ---------- */
.testimonial {
  margin: 0;
}

.testimonial blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  font-variation-settings: "SOFT" 100;
  line-height: 1.55;
}

.testimonial figcaption {
  font-size: 0.9rem;
  font-weight: 500;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

/* ---------- Call-to-action band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 56px 24px;
  border-radius: 28px;
  background: var(--color-soft);
  text-align: center;
  --color-text-muted: #575B7E;
}

@media (min-width: 768px) {
  .cta-band {
    padding: 80px 48px;
  }
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: var(--color-lavender);
  opacity: 0.5;
  filter: blur(40px);
}

.cta-band::before {
  top: -60px;
  left: -40px;
  width: 260px;
  height: 200px;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
}

.cta-band::after {
  right: -50px;
  bottom: -70px;
  width: 300px;
  height: 220px;
  border-radius: 42% 58% 38% 62% / 55% 45% 55% 45%;
}

.cta-band p {
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-muted);
}

.cta-band .btn {
  margin-top: 1.75rem;
}

/* ---------- Contact ---------- */
.contact-card {
  max-width: 640px;
  margin: 2.5rem auto 0;
  text-align: center;
}

@media (min-width: 768px) {
  .contact-card {
    padding: 56px;
  }
}

.contact-email {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 5.4vw, 2rem);
  font-variation-settings: "SOFT" 100;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-help {
  max-width: 46ch;
  margin: 1.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-soft);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 52vh;
  display: flex;
  align-items: center;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px 0 40px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-soft);
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-brand p {
  margin: 0.9rem 0 0;
  color: var(--color-text-muted);
}

.footer-brand .footer-email {
  margin-top: 0.4rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--color-text);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 40px;
}

.footer-bottom-inner {
  padding-top: 24px;
  border-top: 1px solid var(--color-soft);
}

/* Runs the full width of the footer on every page */
.disclaimer {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.copyright {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
