/* ============================================================
   Wallace Bookkeeping Solutions — style.css
   Clean & Swiss · emerald-on-cream · ledger-grid motif
   ============================================================ */

/* ---- Design Tokens ---- */
:root,
[data-theme='light'] {
  /* Surfaces — warm cream */
  --color-bg: #f6f4ee;
  --color-surface: #fbfaf6;
  --color-surface-2: #ffffff;
  --color-surface-offset: #efece4;
  --color-surface-offset-2: #e9e5db;
  --color-divider: #e2ddd1;
  --color-border: #d8d2c4;

  /* Text */
  --color-text: #1c2420;
  --color-text-muted: #6b7068;
  --color-text-faint: #a7a99f;
  --color-text-inverse: #f6f4ee;

  /* Primary Accent — Ledger Emerald */
  --color-primary: #0f5132;
  --color-primary-hover: #0a3a23;
  --color-primary-active: #072a19;
  --color-primary-highlight: #d4e4d8;
  --color-accent-soft: #e6efe0;

  /* Neutral ink for fine lines */
  --color-ink: #2a322d;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 150 / 0.05);
  --shadow-md: 0 6px 20px oklch(0.2 0.02 150 / 0.07);
  --shadow-lg: 0 18px 48px oklch(0.2 0.02 150 / 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.6rem + 6.8vw, 7rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Switzer', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #111513;
  --color-surface: #171c19;
  --color-surface-2: #1c2220;
  --color-surface-offset: #1a201d;
  --color-surface-offset-2: #232a26;
  --color-divider: #232a26;
  --color-border: #2e3631;

  --color-text: #d6dcd5;
  --color-text-muted: #8a9088;
  --color-text-faint: #5d6259;
  --color-text-inverse: #111513;

  --color-primary: #6fbf8f;
  --color-primary-hover: #54a878;
  --color-primary-active: #3f8c60;
  --color-primary-highlight: #1e2a22;
  --color-accent-soft: #1c2a20;
  --color-ink: #c8d0c6;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 18px 48px oklch(0 0 0 / 0.45);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #111513;
    --color-surface: #171c19;
    --color-surface-2: #1c2220;
    --color-surface-offset: #1a201d;
    --color-surface-offset-2: #232a26;
    --color-divider: #232a26;
    --color-border: #2e3631;
    --color-text: #d6dcd5;
    --color-text-muted: #8a9088;
    --color-text-faint: #5d6259;
    --color-text-inverse: #111513;
    --color-primary: #6fbf8f;
    --color-primary-hover: #54a878;
    --color-primary-active: #3f8c60;
    --color-primary-highlight: #1e2a22;
    --color-accent-soft: #1c2a20;
    --color-ink: #c8d0c6;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 6px 20px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 18px 48px oklch(0 0 0 / 0.45);
  }
}

/* ---- Layout primitives ---- */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-3);
  max-width: 22ch;
}

.section-lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  max-width: 56ch;
  line-height: 1.65;
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header--hidden {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.brand__mark {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand__name small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
}

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

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.nav__cta-mobile {
  display: none;
}

/* Mid-width desktops: keep the brand on one line and tighten nav spacing */
.brand__name {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .header__inner {
    gap: var(--space-4);
  }
  .nav {
    gap: var(--space-5);
  }
  .nav__links {
    gap: var(--space-5);
  }
}

@media (max-width: 980px) {
  .nav__links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header__actions .btn--primary {
    display: none;
  }
  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    position: absolute;
    top: 72px;
    left: var(--space-4);
    right: var(--space-4);
    padding: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 60;
  }
  .nav--open .nav__cta-mobile {
    display: block;
    margin-top: var(--space-2);
  }
  .nav--open .nav__cta-mobile .btn.btn--primary {
    width: 100%;
    color: var(--color-text-inverse);
    background: var(--color-primary);
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.8em 1.4em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

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

.btn--ghost {
  color: var(--color-text);
  border-color: var(--color-border);
  background: var(--color-surface-2);
}

.btn--ghost:hover {
  border-color: var(--color-text-muted);
}

.btn--lg {
  padding: 1em 1.6em;
  font-size: var(--text-base);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-top: clamp(var(--space-12), 6vw, var(--space-20));
  padding-bottom: clamp(var(--space-16), 7vw, var(--space-24));
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-top: var(--space-4);
}

.hero__title em {
  font-style: normal;
  color: var(--color-primary);
}

.hero__lede {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-6);
  max-width: 44ch;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-10);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.hero__meta-item small {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 2px;
}

.hero__meta-item span {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.hero__logo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  background: var(--color-surface-2);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(var(--space-8), 5vw, var(--space-16));
}

.hero__logo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-divider) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-divider) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.7;
}

.hero__logo-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.hero__logo-mark {
  width: clamp(96px, 22vw, 150px);
  height: auto;
  color: var(--color-primary);
}

.hero__logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__logo-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.hero__logo-sub {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero__logo-tag {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
  width: 100%;
}

/* Under 900px the logo card is hidden (the header already shows the brand),
   so the headline and buttons sit higher on phones and tablets. */
@media (max-width: 900px) {
  .hero {
    padding-top: var(--space-8);
    padding-bottom: var(--space-12);
  }
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__logo-card {
    display: none;
  }
  .hero__lede {
    margin-top: var(--space-4);
  }
  .hero__actions {
    margin-top: var(--space-6);
  }
  .hero__meta {
    margin-top: var(--space-8);
  }
}

/* ---- Marquee / industries strip ---- */
.strip {
  border-block: 1px solid var(--color-divider);
  background: var(--color-surface);
  padding-block: var(--space-8);
  overflow: hidden;
}

.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6) var(--space-10);
  color: var(--color-text-muted);
}

.strip__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.strip__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6) var(--space-10);
}

.strip__items span {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ---- Section header (shared) ---- */
.section-head {
  max-width: 60ch;
  margin-bottom: clamp(var(--space-10), 4vw, var(--space-16));
}

.section-head--centered {
  margin-inline: auto;
  text-align: center;
}

.section-head--centered .section-title {
  margin-inline: auto;
}

.section-head--centered .eyebrow::before {
  display: none;
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  /* 6-col base so 5 cards fill two rows evenly: 3 across, then 2 across */
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--color-divider);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  grid-column: span 2;
  background: var(--color-surface);
  padding: var(--space-8) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Final two cards split the last row so no empty cell shows */
.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) {
  grid-column: span 3;
}

/* Add-on services: full-width label row, then AR and AP split the last row */
.services-grid__addons {
  grid-column: 1 / -1;
  background: var(--color-surface-offset);
  padding: var(--space-5) var(--space-7);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-6);
}

.services-grid__addons-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.services-grid__addons p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.services-grid__addons ~ .service-card {
  grid-column: span 3;
}

.service-card__icon {
  width: 30px;
  height: 30px;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 880px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-grid .service-card,
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5),
  .services-grid__addons ~ .service-card {
    grid-column: 1 / -1;
  }
  .services-grid__addons {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* ---- Split (image + text) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split__content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-top: var(--space-3);
}

.split__content p {
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  line-height: 1.65;
}

.split__list {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.split__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--color-text);
  max-width: none;
}

.split__list svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 880px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media {
    order: 0;
  }
}

/* ---- Process ---- */
.process {
  background: var(--color-surface);
  border-block: 1px solid var(--color-divider);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.process-step::before {
  content: '0' counter(step);
  counter-increment: step;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: var(--space-3);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  line-height: 1.6;
}

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

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

/* ---- Why / value cards ---- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-7);
}

.value-card span {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: var(--space-2);
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  line-height: 1.6;
}

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

/* ---- Meet your bookkeeper / pricing ---- */
.about-shawn__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.about-shawn__bio {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
}

.about-shawn__photo {
  flex-shrink: 0;
  width: 136px;
  height: 136px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.about-shawn__photo--placeholder {
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about-shawn__text h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-top: var(--space-3);
}

.about-shawn__text p {
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  line-height: 1.65;
}

.pricing-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-8) var(--space-7);
}

.pricing-card__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  white-space: nowrap;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-top: var(--space-3);
}

.pricing-card__price span {
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-text-muted);
}

.pricing-card__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-top: var(--space-4);
}

.pricing-card__addons {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
}

.pricing-card__addons-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.pricing-card__addons-list {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  max-width: 24rem;
}

.pricing-card__addons-list li {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
}

.pricing-card__addon-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.pricing-card__addon-price {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  white-space: nowrap;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.pricing-card__addon-price span {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-text-muted);
}

.pricing-card__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: var(--space-4);
}

.pricing-card .btn {
  margin-top: var(--space-6);
}

@media (max-width: 900px) {
  .about-shawn__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .about-shawn__bio {
    flex-direction: column;
    gap: var(--space-5);
  }
  .about-shawn__photo {
    width: 104px;
    height: 104px;
  }
  .about-shawn__photo--placeholder {
    font-size: 2.1rem;
  }
  .pricing-card .btn {
    width: 100%;
  }
}

/* ---- CTA band ---- */
.cta {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-12), 5vw, var(--space-20)) var(--space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.08;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.1;
}

.cta p {
  margin-top: var(--space-4);
  color: color-mix(in oklab, var(--color-text-inverse) 82%, transparent);
  line-height: 1.6;
}

.cta .btn--primary {
  background: var(--color-text-inverse);
  color: var(--color-primary);
}

.cta .btn--primary:hover {
  background: #fff;
}

/* Outlined secondary action on the dark CTA band */
.cta .btn--ghost {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: color-mix(in oklab, var(--color-text-inverse) 45%, transparent);
}

.cta .btn--ghost:hover {
  background: color-mix(in oklab, var(--color-text-inverse) 12%, transparent);
  border-color: var(--color-text-inverse);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-8);
}

/* ---- Contact form ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-top: var(--space-3);
}

.contact-info p {
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  line-height: 1.65;
}

.contact-detail {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail small {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.contact-detail__note {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.field label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: 0.7em 0.85em;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}

.form-status {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-primary);
  min-height: 1.2em;
}

.form-status.is-error {
  color: var(--color-warning);
}

.form__note strong {
  color: var(--color-text);
  word-break: break-word;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* ---- Contact: two options (form + Calendly) ---- */
.contact-info--top {
  margin-bottom: var(--space-10);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-10);
  margin-top: var(--space-2);
}

.contact-details .contact-detail__link {
  word-break: normal;
  overflow-wrap: anywhere;
}

.contact-info--top > p {
  max-width: 60ch;
}

.contact-grid--options {
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-6), 3vw, var(--space-10));
}

.contact-option {
  min-width: 0;
}

.contact-option__head {
  margin-bottom: var(--space-5);
  min-height: 5.5rem;
}

.contact-option__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.contact-option__head h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
  margin-top: var(--space-2);
}

.contact-option__head p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.booking__widget {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.booking__widget .calendly-inline-widget {
  width: 100%;
}

/* Calendly is lazy-loaded; this sits over the empty widget until the iframe is ready */
.booking__widget {
  position: relative;
}

.booking__placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-16) var(--space-6);
  text-align: center;
  background: var(--color-surface-2);
}

.booking__placeholder p {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.booking__placeholder a {
  font-size: var(--text-sm);
  color: var(--color-primary);
}

.booking__widget.is-loaded .booking__placeholder {
  display: none;
}

/* Mobile-only shortcut above the form to jump to the Calendly column */
.book-jump {
  display: none;
}

@media (max-width: 900px) {
  .book-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3) var(--space-4);
    margin-bottom: var(--space-10);
    padding: var(--space-4) var(--space-5);
    background: var(--color-accent-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
  }
  .book-jump span {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
  }
}

@media (max-width: 480px) {
  .book-jump__btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .contact-grid--options {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
  .contact-option__head {
    min-height: 0;
  }
}

/* Stack hero and CTA buttons on narrow screens */
@media (max-width: 560px) {
  .hero__actions,
  .cta__actions {
    flex-direction: column;
  }
  .hero__actions .btn,
  .cta__actions .btn {
    width: 100%;
    white-space: normal;
  }
  .booking__widget .calendly-inline-widget {
    height: 1000px !important;
  }
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
  padding-block: var(--space-12) var(--space-8);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-10);
}

.footer__about {
  max-width: 38ch;
}

.footer__about p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  line-height: 1.6;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.footer__col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 4px 0;
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

@media (max-width: 720px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- Scroll target offset (sticky header) ---- */
html {
  scroll-behavior: smooth;
}

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

[id] {
  scroll-margin-top: 88px;
}

/* ---- Required asterisk ---- */
.req {
  color: var(--color-primary);
  margin-left: 2px;
}

/* ---- Contact email link ---- */
.contact-detail__link {
  color: var(--color-primary);
  text-decoration: none;
  word-break: break-all;
}

.contact-detail__link:hover {
  text-decoration: underline;
}

/* ---- Footer email link ---- */
.footer__email {
  color: var(--color-text-muted);
  text-decoration: none;
  word-break: break-all;
}

.footer__email:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ---- Footer social icon ---- */
.footer__social {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--space-5);
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ============================================================
   Thank You page
   ============================================================ */
.thanks {
  padding: calc(var(--space-8) * 2.2) 0 var(--space-10);
  background:
    radial-gradient(
      ellipse 70% 60% at 50% 0%,
      var(--color-accent-soft) 0%,
      transparent 70%
    ),
    var(--color-bg);
}

.thanks__inner {
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.thanks__icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}

.thanks__icon svg {
  width: 1.9rem;
  height: 1.9rem;
}

.thanks__title {
  font-family: 'Switzer', sans-serif;
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 30ch;
  text-wrap: balance;
}

.thanks__lede {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: 0;
  max-width: 52ch;
  text-wrap: pretty;
}

.thanks__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  width: 100%;
  margin-top: var(--space-3);
}

/* Email is the longest value — give it the full row so nothing wraps oddly */
.thanks__meta-item:last-child {
  grid-column: 1 / -1;
}

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

.thanks__meta-item {
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: left;
}

.thanks__meta-item h4 {
  font-family: 'Switzer', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-faint);
  margin: 0 0 var(--space-2);
}

.thanks__meta-item p {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: 0;
  overflow-wrap: break-word;
}

.thanks__meta-item a {
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive);
}

.thanks__meta-item a:hover {
  border-bottom-color: currentColor;
}

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (max-width: 560px) {
  .thanks {
    padding: calc(var(--space-8) * 1.6) 0 var(--space-9);
  }
  .thanks__actions .btn {
    width: 100%;
  }
}
