/*
  Calm Practice Sites: styles for the sales page.
  Mobile-first: the base styles are for phones, media queries add the wider layouts.
  Colours are different from the Tidewell demo on purpose: this is your own brand.

  Fonts: font-display: optional + the preload links in index.html, so the text never visibly
  changes font after the page appears (with "swap" it looked like the page loading twice).
*/

@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-display: optional;
  font-weight: 100 900;
  src: url(/fonts/fraunces-latin-wght-normal.woff2) format("woff2-variations");
}

@font-face {
  font-family: "Fraunces Variable";
  font-style: italic;
  font-display: optional;
  font-weight: 100 900;
  src: url(/fonts/fraunces-latin-wght-italic.woff2) format("woff2-variations");
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: optional;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
}

:root {
  /* Colours (all text pairs pass WCAG AA contrast) */
  --color-bg: #f6f4ef;
  --color-surface: #ffffff;
  --color-surface-alt: #ebeee8;
  --color-border: #dcdfd6;

  --color-ink: #1b2622;
  --color-ink-muted: #545f5a;

  --color-primary: #2d5a4c;
  --color-primary-hover: #224539;
  --color-primary-soft: #dfeae4;

  --color-accent: #8a5a12;
  --color-accent-soft: #f4e8d2;

  --color-dark: #1e3a31;
  --color-on-dark: #f3f0e8;
  --color-on-dark-muted: #b8c8c0;
  --color-accent-on-dark: #e3b866;

  --color-device: #1d2421;

  /* Typography */
  --font-heading: "Fraunces Variable", Georgia, "Times New Roman", serif;
  --font-body: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-md: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-lg: clamp(1.1875rem, 1.1rem + 0.45vw, 1.375rem);
  --text-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
  --text-2xl: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-space: clamp(3.5rem, 2.25rem + 5vw, 6.5rem);

  /* Shape & depth */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.5rem;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgb(27 38 34 / 0.06), 0 1px 3px rgb(27 38 34 / 0.04);
  --shadow-md: 0 6px 16px rgb(27 38 34 / 0.08), 0 2px 4px rgb(27 38 34 / 0.04);
  --shadow-lg: 0 24px 48px -12px rgb(27 38 34 / 0.28);

  /* Layout */
  --container: 72rem;
  --gutter: 1rem;
  --header-height: 4rem;
}

@media (min-width: 48rem) {
  :root {
    --gutter: 1.5rem;
    --header-height: 4.5rem;
  }
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

a {
  color: var(--color-primary);
  text-underline-offset: 0.2em;
}

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Icons: <svg class="icon"><use href="#i-name" /></svg> */
.icon {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 1.125rem;
  height: 1.125rem;
}

.icon--lg {
  width: 2rem;
  height: 2rem;
}

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

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: var(--color-on-dark);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Buttons: full-width on phones where it matters, natural width from 30rem up */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0.625rem 1.375rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn--sm {
  min-height: 2.5rem;
  padding-inline: 1.125rem;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.btn--lg {
  min-height: 3.25rem;
  padding-inline: 1.75rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  border-color: rgb(45 90 76 / 0.35);
  background: transparent;
  color: var(--color-primary);
}

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

.btn--light {
  background: var(--color-on-dark);
  color: var(--color-dark);
}

.btn--light:hover {
  background: #fff;
}

.btn--outline-light {
  border-color: rgb(243 240 232 / 0.4);
  background: transparent;
  color: var(--color-on-dark);
}

.btn--outline-light:hover {
  border-color: var(--color-on-dark);
  color: #fff;
}

.button-row {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 30rem) {
  .button-row {
    display: flex;
    flex-wrap: wrap;
  }

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

/* Small shared pieces */
.eyebrow {
  margin-bottom: var(--space-3);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.icon-badge {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.pill {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.check-list {
  display: grid;
  gap: var(--space-2);
}

.check-list li {
  display: flex;
  gap: var(--space-2);
}

.check-list .icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.25em;
  color: var(--color-primary);
  stroke-width: 2.25;
}

/* Sections */
.section {
  padding-block: var(--section-space);
}

.section--alt {
  background: var(--color-surface-alt);
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-on-dark);
}

.section-head {
  max-width: 42rem;
  margin-bottom: var(--space-7);
}

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

.section-title {
  font-size: var(--text-xl);
}

.section-intro {
  margin-top: var(--space-4);
  color: var(--color-ink-muted);
  font-size: var(--text-md);
}

.section--dark .eyebrow {
  color: var(--color-accent-on-dark);
}

.section--dark .section-intro {
  color: var(--color-on-dark-muted);
}

/* Header: stays at the top while scrolling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-border);
  background: rgb(246 244 239 / 0.92);
  backdrop-filter: blur(10px);
}

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

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

.brand__logo {
  width: 2.25rem;
  height: 2.25rem;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.1;
}

/* The section links only appear on wider screens; phones scroll the one page */
.site-nav {
  display: none;
}

@media (min-width: 56rem) {
  .site-nav {
    display: flex;
    gap: var(--space-6);
    margin-left: auto;
  }

  .site-nav a {
    color: var(--color-ink);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
  }

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

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--space-7) var(--section-space);
}

.hero::before {
  content: "";
  position: absolute;
  top: -16rem;
  right: -14rem;
  z-index: -1;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent-soft) 0%, transparent 68%);
}

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

.hero__title {
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
}

.hero__title em {
  color: var(--color-primary);
  font-style: italic;
  font-weight: 400;
}

.hero__lead {
  max-width: 38rem;
  margin-block: var(--space-5) var(--space-6);
  color: var(--color-ink-muted);
  font-size: var(--text-md);
}

.hero__points {
  margin-top: var(--space-6);
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Device frames around the demo screenshots: a laptop with a phone in front of it */
.mockup__devices {
  position: relative;
  padding: 0 7% 2.5rem 0;
}

.laptop__screen {
  overflow: hidden;
  border: 0.5rem solid var(--color-device);
  border-bottom-width: 0.75rem;
  border-radius: 0.875rem 0.875rem 0 0;
  background: var(--color-device);
  box-shadow: var(--shadow-lg);
}

.laptop__screen img {
  width: 100%;
  height: auto;
}

.laptop__base {
  height: 0.75rem;
  margin-inline: -5%;
  border-radius: 0 0 1rem 1rem;
  background: linear-gradient(#d3d6d2, #a7aca8);
}

.phone {
  overflow: hidden;
  border: 0.375rem solid var(--color-device);
  border-radius: 1.5rem;
  background: var(--color-device);
  box-shadow: var(--shadow-lg);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 1.125rem;
}

.mockup__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
  border-width: 0.25rem;
  border-radius: 1rem;
}

.mockup__phone img {
  border-radius: 0.75rem;
}

.mockup__caption {
  margin-top: var(--space-5);
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
}

@media (min-width: 64rem) {
  .hero {
    padding-top: var(--space-8);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-7);
  }

  .mockup__phone {
    border-width: 0.375rem;
    border-radius: 1.5rem;
  }

  .mockup__phone img {
    border-radius: 1.125rem;
  }
}

/* "Why it matters": photo beside the text */
.split {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.split__photo {
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.problem-list {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.problem-list li {
  display: flex;
  gap: var(--space-4);
}

.problem-list h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0;
}

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

@media (min-width: 48rem) {
  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-8);
  }

  .split__photo {
    aspect-ratio: 4 / 5;
  }
}

/* Demo: phones swipe sideways on small screens, three in a row from 48rem */
.phone-gallery {
  display: grid;
  grid-auto-columns: 15rem;
  grid-auto-flow: column;
  gap: var(--space-5);
  margin-inline: calc(-1 * var(--gutter));
  padding: var(--space-2) var(--gutter) var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
}

.phone-gallery li {
  scroll-snap-align: start;
}

.phone-gallery h3 {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  font-weight: 600;
}

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

.phone-gallery__more {
  margin-top: var(--space-5);
  text-align: center;
}

@media (min-width: 48rem) {
  .phone-gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 15rem));
    justify-content: center;
    gap: var(--space-7);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

/* What you get. Phones: icon beside the text to keep cards short. Wider screens: icon on top. */
.feature-grid {
  display: grid;
  gap: var(--space-4);
}

.feature-grid .card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.feature-grid h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}

.feature-grid p {
  margin-top: var(--space-2);
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
}

@media (min-width: 40rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .feature-grid .card {
    flex-direction: column;
  }
}

@media (min-width: 64rem) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Before and after: two phones side by side, with an arrow between them */
.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  max-width: 42rem;
  margin-inline: auto;
}

.compare__item {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  margin: 0;
}

.compare__item .phone {
  width: 100%;
  max-width: 15rem;
}

.compare__item figcaption {
  max-width: 15rem;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.compare__label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare__label--before {
  color: #8f3a2c;
}

.compare__label--after {
  color: var(--color-primary);
}

.compare__arrow {
  color: var(--color-primary);
}

.compare__note {
  margin-top: var(--space-6);
  color: var(--color-ink-muted);
  font-size: var(--text-xs);
  text-align: center;
}

@media (min-width: 48rem) {
  .compare {
    gap: var(--space-7);
  }
}

/* Privacy (dark band): the three promises, and a phone showing the booking pop-up */
.privacy {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.privacy .section-head {
  margin-bottom: var(--space-6);
}

.privacy-list {
  display: grid;
  gap: var(--space-5);
}

.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.privacy-list .icon {
  color: var(--color-accent-on-dark);
}

.privacy-list h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}

.privacy-list p {
  margin-top: var(--space-1);
  color: var(--color-on-dark-muted);
}

.privacy__visual {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  margin: 0;
}

.privacy__visual .phone {
  width: 100%;
  max-width: 15rem;
  border-color: #0e1b17;
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.55);
}

.privacy__visual figcaption {
  max-width: 16rem;
  color: var(--color-on-dark-muted);
  font-size: var(--text-sm);
  text-align: center;
}

@media (min-width: 64rem) {
  .privacy {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: var(--space-8);
  }
}

/* Pricing */
.offer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 48rem;
  margin: 0 auto var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-ink);
}

.offer .icon {
  margin-top: 0.15em;
  color: var(--color-accent);
}

.price-grid {
  display: grid;
  gap: var(--space-5);
  max-width: 60rem;
  margin-inline: auto;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.price-card--featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-md);
}

.price-card .pill {
  align-self: flex-start;
  margin-bottom: var(--space-3);
}

.price-card__name {
  font-size: var(--text-lg);
  font-weight: 600;
}

.price-card__for {
  margin-top: var(--space-2);
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
}

.price-card__price {
  margin-top: var(--space-5);
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1;
}

.price-card__price span {
  color: var(--color-ink-muted);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
}

.price-card__founding {
  margin-top: var(--space-2);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 600;
}

.price-card .check-list {
  flex: 1;
  margin-block: var(--space-5) var(--space-6);
  font-size: 0.9375rem;
}

.addon-grid {
  display: grid;
  gap: var(--space-4);
  max-width: 60rem;
  margin: var(--space-5) auto 0;
}

.addon {
  padding: var(--space-5);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

.addon h3 {
  font-size: var(--text-md);
  font-weight: 600;
}

.addon h3 span {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
}

.addon p {
  margin-top: var(--space-2);
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
}

.fine-print {
  display: grid;
  gap: var(--space-3);
  max-width: 60rem;
  margin: var(--space-6) auto 0;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.fine-print li {
  display: flex;
  gap: var(--space-2);
}

.fine-print .icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15em;
  color: var(--color-primary);
}

.fine-print strong {
  color: var(--color-ink);
}

@media (min-width: 48rem) {
  .price-grid,
  .addon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-card {
    padding: var(--space-7) var(--space-6);
  }
}

/* How it works: heading and steps, with a photo beside them from 64rem */
.process {
  display: grid;
  gap: var(--space-6);
  grid-template-areas:
    "head"
    "photo"
    "steps";
}

.process .section-head {
  grid-area: head;
  margin-bottom: 0;
}

.process .steps {
  grid-area: steps;
}

.process__photo {
  grid-area: photo;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.process__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

@media (min-width: 64rem) {
  .process {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    grid-template-areas:
      "head photo"
      "steps photo";
    column-gap: var(--space-8);
    row-gap: var(--space-6);
  }

  .process__photo {
    align-self: start;
    aspect-ratio: 4 / 5;
  }
}

/* How it works: numbered steps */
.steps {
  display: grid;
  gap: var(--space-5);
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 3.5rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
}

.steps h3 {
  padding-top: 0.35rem;
  font-size: var(--text-lg);
  font-weight: 600;
}

.steps p {
  margin-top: var(--space-1);
  color: var(--color-ink-muted);
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* About */
.about {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.about__photo {
  display: grid;
  overflow: hidden;
  place-items: center;
  width: 9rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-primary), var(--color-dark));
  box-shadow: var(--shadow-md);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__initials {
  color: var(--color-on-dark);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 500;
}

.about__text {
  max-width: 40rem;
  margin-top: var(--space-4);
  color: var(--color-ink-muted);
  font-size: var(--text-md);
}

.about__promises {
  max-width: 40rem;
  margin-top: var(--space-6);
}

@media (min-width: 48rem) {
  .about {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: var(--space-8);
  }

  .about__photo {
    width: 16rem;
  }

  .about__initials {
    font-size: 5rem;
  }
}

/* FAQ: native <details>, works with the keyboard and without JavaScript.
   Phones: heading, the questions, then the "Still have a question?" card.
   From 64rem: heading and card on the left, questions on the right. */
.faq {
  display: grid;
  gap: var(--space-6);
}

.faq .section-head {
  margin-bottom: 0;
}

.faq__side {
  display: contents;
}

.faq__list {
  order: 1;
}

.ask {
  order: 2;
  overflow: hidden;
  max-width: 28rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.ask__photo {
  aspect-ratio: 3 / 2;
}

.ask__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ask__body {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
  padding: var(--space-5);
  color: var(--color-ink-muted);
  font-size: 0.9375rem;
}

.ask__title {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
}

.ask__body .btn {
  margin-top: var(--space-2);
}
.faq__list {
  display: grid;
  gap: var(--space-3);
  max-width: 48rem;
}

.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3.5rem;
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary .icon {
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--color-ink-muted);
}

@media (min-width: 64rem) {
  .faq {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: var(--space-8);
    align-items: start;
  }

  .faq__side {
    position: sticky;
    top: calc(var(--header-height) + var(--space-5));
    display: grid;
    gap: var(--space-6);
  }

  .faq__list {
    order: 0;
  }
}

/* Final call to action */
.cta-panel {
  padding: var(--space-7) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-dark);
  color: var(--color-on-dark);
  text-align: center;
}

.cta-panel__title {
  max-width: 32rem;
  margin-inline: auto;
  font-size: var(--text-xl);
}

.cta-panel__text {
  max-width: 36rem;
  margin: var(--space-4) auto var(--space-6);
  color: var(--color-on-dark-muted);
  font-size: var(--text-md);
}

/* The email address can be long: let it wrap on very small phones */
.cta-panel .btn--outline-light {
  overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
  .cta-panel {
    padding: var(--space-8) var(--space-7);
  }
}

/* Footer */
.site-footer {
  padding-block: var(--space-7);
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
  color: var(--color-ink-muted);
  font-size: var(--text-sm);
}

.site-footer__small {
  font-size: var(--text-xs);
}
