/* site.css — how everything looks. Colors and fonts come from tokens.css.
   Sections are labeled so you can find things. */

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

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

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

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
/* the gold outline is for keyboard users only, never after a tap */
:focus:not(:focus-visible) { outline: none; }
a, button { -webkit-tap-highlight-color: transparent; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.skip-link:focus { top: 16px; }

/* Headings + intro text used at the top of many sections */
.section-head { max-width: 46rem; }
.section-head h2 { font-size: var(--step-4); }
.section-head p { margin-top: 20px; font-size: var(--step-1); color: var(--color-ink-soft); max-width: 40ch; }

/* A plain text link with a gold underline */
.text-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--color-primary);
  padding-bottom: 4px;
  background: linear-gradient(var(--color-accent), var(--color-accent)) left bottom / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
.text-link:hover { background-size: 40% 1px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 0.9375rem/1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.button--primary { background: var(--color-primary); color: var(--color-on-primary); }
.button--primary:hover { background: var(--color-primary-deep); }

.button--light { background: var(--color-bg); color: var(--color-primary); }
.button--light:hover { background: var(--color-surface); }

.button--outline { border-color: var(--color-primary); color: var(--color-primary); }
.button--outline:hover { background: var(--color-primary); color: var(--color-on-primary); }

.button--on-dark { border-color: rgba(247, 244, 238, 0.65); color: var(--color-on-primary); }
.button--on-dark:hover { background: var(--color-bg); color: var(--color-primary); border-color: var(--color-bg); }

.button--header { min-height: 42px; padding: 0 20px; border-color: var(--color-primary); color: var(--color-primary); }
.button--header:hover { background: var(--color-primary); color: var(--color-on-primary); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 30; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.wordmark {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__logo { display: block; height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.nav__list a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 6px;
  background: linear-gradient(var(--color-accent), var(--color-accent)) left bottom / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease-out);
}
.nav__list a:hover,
.nav__list a[aria-current="page"] { background-size: 100% 1px; }

/* Phone/tablet menu button: three lines that turn into an X */
.menu-toggle {
  display: none;
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-toggle__bars { position: relative; display: block; width: 22px; height: 14px; margin: auto; }
.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.28s var(--ease-out), opacity 0.2s, top 0.28s var(--ease-out);
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 6px; }
.menu-toggle__bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Only used by the phone drawer */
.nav__email,
.nav-overlay { display: none; }

/* Home page: header sits on top of the hero photo, in ivory */
.page-home .site-header { position: absolute; inset: 0 0 auto; color: var(--color-on-primary); }
.page-home .wordmark { color: inherit; }
.page-home .button--header { border-color: rgba(247, 244, 238, 0.65); color: var(--color-on-primary); }
.page-home .button--header:hover { background: var(--color-bg); color: var(--color-primary); }

/* "Service Areas" dropdown button (looks like the other menu links) */
.nav__subtoggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  background: linear-gradient(var(--color-accent), var(--color-accent)) left bottom / 0 1px no-repeat;
  color: inherit;
  font: 500 0.9375rem/1.65 var(--font-body);
  cursor: pointer;
  transition: background-size 0.35s var(--ease-out);
}
.nav__subtoggle::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease-out);
}
.nav__subtoggle[aria-expanded="true"]::after { transform: translateY(3px) rotate(-135deg); }
.nav__subtoggle:hover,
.nav__subtoggle.is-current { background-size: 100% 1px; }

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

/* Big screens: the city list drops down under "Service Areas" on hover or click */
@media (min-width: 1025px) {
  .has-sub { position: relative; }
  .nav__sub {
    position: absolute;
    top: 100%;
    left: -20px;
    z-index: 40;
    min-width: 220px;
    margin-top: 10px;
    padding: 10px 0;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-ink);
    box-shadow: 0 18px 40px rgba(23, 48, 34, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0.2s;
  }
  /* invisible bridge so the menu doesn't close while the mouse moves down to it */
  .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .has-sub:hover .nav__sub,
  .has-sub:focus-within .nav__sub,
  .has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__list .nav__sub a {
    display: block;
    padding: 8px 20px;
    background: none;
    white-space: nowrap;
  }
  .nav__list .nav__sub a:hover { background: var(--color-surface); color: var(--color-primary); }
  .nav__list .nav__sub a[aria-current="page"] { color: var(--color-primary); font-weight: 600; }
}

/* Phones and tablets: slim sticky header + a menu drawer that slides in from the right */
@media (max-width: 1024px) {
  html { scroll-padding-top: 76px; } /* links like #price-note don't end up under the sticky header */

  .js .site-header {
    position: sticky;
    top: 0;
    background: var(--color-bg);
    transition: box-shadow 0.25s, background-color 0.25s, color 0.25s;
  }
  .js .site-header__inner { min-height: 64px; }
  .js .wordmark { z-index: 0; font-size: 1.4375rem; } /* sits under the dark overlay when the menu is open */
  .js .site-header.is-scrolled { box-shadow: var(--shadow-header); }

  /* Home page: header floats over the photo, then turns ivory once you scroll down */
  .js .page-home .site-header { position: fixed; inset: 0 0 auto; background: transparent; }
  .js .page-home .site-header.is-scrolled { background: var(--color-bg); color: var(--color-ink); }
  .js .page-home .site-header.is-scrolled .wordmark { color: var(--color-primary); }
  /* the pinned before/after slider starts below the header instead of under it */
  .js .compare--scroll .compare__sticky { top: 64px; height: calc(100svh - 64px); }

  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .menu-open .menu-toggle { color: var(--color-primary); }

  /* The drawer itself */
  .js .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(80vw, 320px);
    padding: 76px 24px max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--color-bg);
    color: var(--color-ink);
    box-shadow: -12px 0 40px rgba(17, 28, 22, 0.18);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s var(--ease-out), visibility 0s linear 0.28s;
  }
  .js .nav.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.28s var(--ease-out), visibility 0s;
  }

  /* Dark see-through layer over the rest of the page; tap it to close */
  .js .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--color-scrim);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease-out), visibility 0s linear 0.28s;
  }
  .menu-open .nav-overlay { opacity: 1; visibility: visible; transition: opacity 0.28s var(--ease-out), visibility 0s; }

  /* Links: one per row, thin lines between, 52px tall so they're easy to tap */
  .js .nav__list { flex-direction: column; align-items: stretch; gap: 0; margin-bottom: auto; }
  .js .nav__list > li { border-bottom: 1px solid var(--color-line); }
  .js .nav__list > li > a,
  .js .nav__subtoggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 52px;
    padding: 0 0 0 2px;
    background: none;
    font: 500 1.0625rem/1.3 var(--font-body);
    color: var(--color-ink);
    text-align: left;
  }
  /* Current page: green, bolder, with a short gold bar in front */
  .js .nav__list a[aria-current="page"],
  .js .nav__subtoggle.is-current { color: var(--color-primary); font-weight: 600; }
  .js .nav__list > li > a[aria-current="page"]::before,
  .js .nav__subtoggle.is-current::before {
    content: "";
    width: 3px;
    height: 18px;
    margin-right: 12px;
    border-radius: 2px;
    background: var(--color-accent);
  }
  /* Service Areas arrow sits at the right end of its row and turns when opened */
  .js .nav__subtoggle::after { width: 7px; height: 7px; margin-left: auto; margin-right: 6px; }

  /* Tap "Service Areas" to show the cities underneath */
  .js .nav__sub { display: none; padding: 0 0 10px 14px; }
  .js .has-sub.is-open .nav__sub { display: block; }
  .js .nav__list .nav__sub a {
    display: flex;
    align-items: center;
    min-height: 44px;
    background: none;
    font: 500 0.9375rem/1.3 var(--font-body);
    color: var(--color-ink-soft);
  }
  .js .nav__list .nav__sub a[aria-current="page"] { color: var(--color-primary); font-weight: 600; }

  /* Book a Shoot: big green button at the bottom of the drawer */
  .js .nav .button--header {
    margin-top: 32px;
    min-height: 54px;
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 1rem;
  }
  .js .nav .button--header:hover { background: var(--color-primary-deep); }
  .js .nav__email {
    display: block;
    margin-top: 16px;
    padding-block: 6px;
    font-size: 0.875rem;
    text-align: center;
    color: var(--color-ink-soft);
    text-decoration: none;
  }

  /* Without JavaScript the menu just wraps under the name */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 16px; }
  html:not(.js) .nav { flex-wrap: wrap; gap: 16px; }
}

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(600px, 100svh);
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Black overlay on the photo so the white text reads clearly
   (an even wash, plus a little extra at the bottom behind the headline) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--color-hero-shade), transparent 55%),
    var(--color-hero-overlay);
}
.hero__content { position: relative; z-index: 1; padding-bottom: clamp(48px, 10vh, 112px); }
.hero h1 { max-width: none; font-size: var(--step-5); font-weight: 400; line-height: 1.02; color: inherit; }
.hero h1 > span { display: block; } /* "Temecula Real Estate" / "Photography" (phones: 3 lines, "Real Estate" kept together) */
.nowrap { white-space: nowrap; }
.hero__lead { max-width: 40ch; margin-top: 24px; font-size: var(--step-1); line-height: 1.5; opacity: 0.92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero__img { animation: hero-settle 2.2s var(--ease-out) both; }
  .js .hero__content > * { animation: hero-rise 1s var(--ease-out) both; }
  .js .hero__content > :nth-child(1) { animation-delay: 0.25s; }
  .js .hero__content > :nth-child(2) { animation-delay: 0.4s; }
  .js .hero__content > :nth-child(3) { animation-delay: 0.55s; }
}
@keyframes hero-settle { from { transform: scale(1.07); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Before / after slider ---------- */
.compare { position: relative; background: var(--color-primary); color: var(--color-on-primary); }

.compare__sticky {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 36px);
  padding-block: var(--space-section);
}

/* When scrolling drives the slider, the section is extra tall and the
   photo stays pinned in place while you scroll through it. */
.compare--scroll { height: 260vh; }
.compare--scroll .compare__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  justify-content: center;
  padding-block: clamp(24px, 6vh, 64px);
}

.compare__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 64px;
}
.compare__intro h2 { font-size: var(--step-3); color: inherit; }
.compare__intro p { max-width: 48ch; font-size: 0.9375rem; opacity: 0.82; }

.compare__frame {
  --pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 80svh;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-primary-deep);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.compare--scroll .compare__frame { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; max-height: none; }

.compare__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* The edited photo sits on top and is cut off at the divider. It's done by sliding the
   box one way and the photo inside it back the other way (instead of re-cutting the
   photo every frame), which phones can animate smoothly. */
.compare__after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translate3d(calc(var(--pos) - 100%), 0, 0);
  will-change: transform;
}
.compare__after img { transform: translate3d(calc(100% - var(--pos)), 0, 0); will-change: transform; }

/* The divider is as wide as the photo and slides sideways; its line and grip sit in its centre */
.compare__handle {
  position: absolute;
  inset: 0;
  transform: translate3d(calc(var(--pos) - 50%), 0, 0);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}
.compare__handle::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: var(--color-bg);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}
.compare__grip {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background: rgba(23, 48, 34, 0.62);
  transition: transform 0.3s var(--ease-out);
}
/* Two small arrows inside the round grip */
.compare__grip::before,
.compare__grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: solid var(--color-bg);
  border-width: 0 0 1.5px 1.5px;
}
.compare__grip::before { left: 13px; transform: translateY(-50%) rotate(45deg); }
.compare__grip::after { right: 13px; transform: translateY(-50%) rotate(-135deg); }

.compare__frame:hover .compare__grip,
.compare__frame.is-dragging .compare__grip { transform: scale(1.08); }
.compare__handle:focus-visible .compare__grip { outline: 2px solid var(--color-accent); outline-offset: 4px; }

.compare__label {
  position: absolute;
  bottom: 16px;
  padding: 7px 12px;
  border-radius: var(--radius);
  background: rgba(23, 48, 34, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  pointer-events: none;
}
.compare__label--after { left: 16px; }
.compare__label--before { right: 16px; }

/* ---------- Packages ---------- */
.packages { display: grid; margin-top: 56px; }

.package {
  display: flex;
  flex-direction: column;
  padding: 40px 0;
  border-top: 1px solid var(--color-line);
}
.package__flag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-accent);
}
.package__flag::before { content: ""; width: 28px; height: 1px; background: var(--color-accent); }
/* On ivory, gold text is too faint to read, so the label is green with a gold line */
.package:not(.package--featured) .package__flag { color: var(--color-primary); }
.package__name { font-size: var(--step-2); }
.package__price {
  margin: 18px 0 14px;
  font-family: var(--font-heading);
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 1;
  color: var(--color-primary);
  font-variant-numeric: lining-nums;
}
/* The small asterisk after each package price that jumps to the large-home note under the cards */
.package__star { margin-left: 2px; font-size: 0.5em; vertical-align: super; color: inherit; text-decoration: none; }
.package__star:hover { color: var(--color-accent); }
.package__tagline { color: var(--color-ink-soft); max-width: 32ch; }
/* Kept small and tight so the cards read at a glance */
.package__list { margin: 20px 0 24px; padding: 0; list-style: none; }
.package__list li { padding: 7px 0; border-top: 1px solid var(--color-line); font-size: 0.8125rem; }
.package__delivery { margin-top: auto; margin-bottom: 28px; font-size: 0.875rem; color: var(--color-ink-soft); }
/* Big, full-width Book button: the main thing to click on each card */
.package .button { align-self: stretch; min-height: 56px; font-size: 1.0625rem; }

.package--featured {
  margin-inline: calc(var(--gutter) * -1);
  padding: 48px var(--gutter);
  border-top: 0;
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.package--featured .package__name,
.package--featured .package__price { color: inherit; }
.package--featured .package__tagline,
.package--featured .package__delivery { color: rgba(247, 244, 238, 0.78); }
.package--featured .package__list li { border-top-color: var(--color-line-on-primary); }

/* Phones and tablets: each package is its own card, so they're easy to tell apart.
   Name and price share the top row; thin full-width lines split the list; button at the bottom. */
@media (max-width: 979px) {
  .packages { gap: 20px; margin-top: 40px; }
  .package {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 16px;
    padding: 26px 22px 22px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-card);
    box-shadow: var(--shadow-card);
  }
  .package > * { grid-column: 1 / -1; }
  .package__name { grid-column: 1; font-size: 1.625rem; line-height: 1.15; }
  .package__price { grid-column: 2; margin: 0; font-size: 2.375rem; text-align: right; }
  .package__tagline { margin-top: 8px; font-size: 0.9375rem; }

  /* "Most Popular" / "Best value": a small tab in the top-right corner of the card */
  .package__flag {
    position: absolute;
    top: 0;
    right: 22px;
    margin: 0;
    padding: 5px 10px 6px;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    background: var(--color-surface);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .package__flag::before { display: none; }
  .package__flag + .package__name { margin-top: 10px; }
  .package__flag + .package__name + .package__price { margin-top: 10px; }

  /* list lines run edge to edge across the card */
  .package__list { margin: 20px -22px 0; }
  .package__list li { padding: 11px 22px; font-size: 0.875rem; }
  .package__list li:last-child { border-bottom: 1px solid var(--color-line); }
  .package__delivery { margin: 16px 0 18px; font-size: 0.8125rem; }
  .package .button { min-height: 52px; }

  /* The highlighted package: a green card with a gold tab */
  .package--featured {
    margin-inline: 0;
    padding: 26px 22px 22px;
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 16px 36px rgba(23, 48, 34, 0.22);
  }
  .package--featured .package__flag { background: var(--color-accent); color: var(--color-primary); }
  .package--featured .package__list li:last-child { border-bottom-color: var(--color-line-on-primary); }
  .package--featured .package__tagline { font-size: 0.9375rem; }
}

@media (min-width: 980px) {
  .packages { grid-template-columns: 1fr 1.2fr 1fr; align-items: stretch; }
  .package { padding: 48px 44px; border-top: 0; }
  .package:first-child { padding-left: 0; }
  .package:last-child { padding-right: 0; }
  .package--featured { margin: -32px 0; padding: 80px 52px; border-radius: var(--radius); }
}

.packages__note { margin-top: 48px; max-width: 62ch; font-size: 0.9375rem; color: var(--color-ink-soft); }
.packages__note a { color: var(--color-primary); font-weight: 600; }

/* "Build Your Own" price list (Packages page): name + one line on the left, price on the right.
   Two groups side by side on wide screens, stacked on phones. */
.menu { display: grid; gap: 48px; margin-top: 56px; }
.menu__heading {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.menu__list { margin: 0; padding: 0; list-style: none; }
.menu__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
}
.menu__name { font-size: var(--step-1); font-weight: 500; line-height: 1.25; }
.menu__desc { margin-top: 4px; font-size: 0.875rem; color: var(--color-ink-soft); max-width: 46ch; }
.menu__price {
  flex-shrink: 0;
  text-align: right;
  font-family: var(--font-heading);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--color-primary);
  font-variant-numeric: lining-nums;
}
.menu__price span { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 0.75rem; color: var(--color-ink-soft); }
@media (min-width: 980px) {
  .menu { grid-template-columns: 1fr 1fr; gap: 72px; }
}

/* ---------- Photo galleries (home teaser + portfolio) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 52vw;
  grid-auto-flow: dense;
  gap: 10px;
  margin-top: 56px;
}
.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
  grid-column: span 2;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.gallery__item:hover img { transform: scale(1.03); }

.g-4, .g-6 { grid-column: span 1; }

@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(220px, 27vw, 400px); gap: 16px; }
  .g-4 { grid-column: span 4; }
  .g-6 { grid-column: span 6; }
  .g-8 { grid-column: span 8; }
  .g-12 { grid-column: span 12; }
  .g-tall { grid-row: span 2; }
}

.gallery-foot { margin-top: 40px; }

/* Images that gently uncover as you scroll to them */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    clip-path: inset(10% 0 0 0);
    opacity: 0;
    transform: translateY(28px);
    transition: clip-path 1.1s var(--ease-out), opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  }
  .js [data-reveal].is-visible { clip-path: inset(0 0 0 0); opacity: 1; transform: none; }
}

/* ---------- Closing call to action (green band) ---------- */
.cta { background: var(--color-primary); color: var(--color-on-primary); }
.cta__inner { display: grid; gap: 32px; align-items: end; }
.cta h2 { font-size: var(--step-4); color: inherit; max-width: 16ch; }
/* Portfolio's closing heading: exactly 2 lines on desktop (one <span> per line), wraps naturally on phones */
.cta h2.cta__title--two { max-width: none; }
@media (min-width: 768px) { .cta__title--two > span { display: block; } }
.cta p { margin-top: 20px; max-width: 44ch; opacity: 0.85; }
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: 1fr auto; gap: 64px; }
}

/* ---------- Inner pages: top of page ---------- */
.page-intro { padding-block: clamp(56px, 9vw, 128px) clamp(24px, 4vw, 48px); }
.page-intro h1 { font-size: var(--step-5); font-weight: 400; line-height: 1.02; }
.page-intro p { margin-top: 24px; max-width: 46ch; font-size: var(--step-1); line-height: 1.5; color: var(--color-ink-soft); }
.page-intro .page-intro__actions { margin-top: 32px; }
/* Packages page: smaller description under the title, and less space before the cards */
.page-intro--packages { padding-bottom: 0; }
.page-intro--packages p { margin-top: 18px; font-size: 1.0625rem; }

/* City pages: large photo under the intro */
.feature-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 78svh;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Packages page extras ---------- */
.split { display: grid; gap: 40px; }
.split h2 { font-size: var(--step-3); }
.split__text p { color: var(--color-ink-soft); max-width: 46ch; }
.split__text h2 + p { margin-top: 20px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
}

.fee-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.fee-table th {
  padding: 0 0 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--color-ink-soft);
}
.fee-table td { padding: 14px 0; border-top: 1px solid var(--color-line); }
.fee-table td:last-child, .fee-table th:last-child { text-align: right; }
.fee-table tbody tr:first-child td:last-child { color: var(--color-ink-soft); }


.band { background: var(--color-surface); }
/* A thin line between stacked sections so they don't blur together (Packages page) */
.section--divided { border-top: 1px solid var(--color-line); }

/* ---------- About page ---------- */
/* One centered reading column (heading, text, list and button all line up) */
.wrap.about { max-width: calc(720px + 2 * var(--gutter)); }
.page-intro--about { padding-bottom: clamp(20px, 3vw, 32px); }
.about__lead {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  line-height: 1.1;
  color: var(--color-primary);
}
.about p:not(.about__lead) { color: var(--color-ink-soft); }
.about__lead + p { margin-top: 24px; }
.about p + p:not(.about__cta) { margin-top: 18px; }

/* "How I work": compact. Small subheading, smaller items, thin lines, 2 x 2 on wider screens */
.about__subhead {
  margin: 56px 0 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.about__list { display: grid; margin: 0; padding: 0; list-style: none; }
.about__list li { padding: 12px 0; border-top: 1px solid var(--color-line); font-size: 0.9375rem; color: var(--color-ink-soft); }
.about__list strong { display: block; margin-bottom: 2px; color: var(--color-ink); font-weight: 600; }
@media (min-width: 700px) {
  .about__list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
.about__cta { margin-top: 40px; }

/* ---------- Contact page ---------- */
.email-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1rem + 4.2vw, 4.25rem);
  line-height: 1.1;
  color: var(--color-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--color-accent), var(--color-accent)) left bottom / 100% 1px no-repeat;
  padding-bottom: 6px;
  transition: background-size 0.5s var(--ease-out);
}
.email-link:hover { background-size: 30% 1px; }
/* Just the heading and the email, with room to breathe before the green "Ready to book?" band */
.page-intro--contact { padding-bottom: clamp(72px, 10vw, 140px); }
.page-intro--contact .email-link { margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-deep); color: rgba(247, 244, 238, 0.78); font-size: 0.9375rem; }
.site-footer .wordmark { color: var(--color-on-primary); }
.site-footer__grid { display: grid; gap: 40px; padding-block: 80px 56px; }
.site-footer__brand p { margin-top: 16px; max-width: 32ch; }
.site-footer__heading { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; color: var(--color-accent); margin-bottom: 12px; letter-spacing: 0.02em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--color-on-primary); text-decoration: underline; }
.site-footer__links { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.site-footer__base {
  padding-block: 24px 32px;
  font-size: 0.8125rem;
  /* thin line that lines up with the text edges */
  background: linear-gradient(var(--color-line-on-primary), var(--color-line-on-primary)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- Photo viewer (portfolio) ---------- */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-on-primary);
}
.lightbox::backdrop { background: rgba(15, 28, 20, 0.95); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.lightbox__img { max-width: min(94vw, 1800px); max-height: calc(100svh - 140px); width: auto; height: auto; border-radius: var(--radius); }
.lightbox__controls { display: flex; align-items: center; gap: 28px; font-size: 0.875rem; }
.lightbox__btn, .lightbox__close {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: inherit;
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
}
.lightbox__btn:hover, .lightbox__close:hover { color: var(--color-accent); }
.lightbox__close { position: absolute; top: 16px; right: var(--gutter); }

/* ---------- Booking page (/book) ---------- */
.book-intro { padding-block: clamp(40px, 7vw, 96px) clamp(16px, 3vw, 32px); }
.book-intro h1 { font-size: var(--step-4); font-weight: 400; line-height: 1.05; }
.book-intro p { margin-top: 12px; max-width: 48ch; color: var(--color-ink-soft); }

.book { padding-bottom: clamp(96px, 12vw, 160px); }
.book-noscript { padding: 20px; border: 1px solid var(--color-line); border-radius: var(--radius-card); }

/* Progress bar: 5 numbered steps joined by a line */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 0 clamp(28px, 4vw, 48px);
  padding: 0;
  list-style: none;
  scroll-margin-top: 88px;
}
.steps__item { position: relative; display: flex; justify-content: center; }
.steps__item + .steps__item::before {          /* the line between two steps */
  content: "";
  position: absolute;
  top: 17px;
  right: calc(50% + 22px);
  left: calc(-50% + 22px);
  height: 1px;
  background: var(--color-line);
}
.steps__item.is-done + .steps__item::before { background: var(--color-primary); }
.steps__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-ink-soft);
  font: 500 0.8125rem/1.2 var(--font-body);
  cursor: pointer;
}
.steps__btn:disabled { cursor: default; }
.steps__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: var(--color-bg);
  font-weight: 600;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.is-done .steps__num { border-color: var(--color-primary); color: var(--color-primary); }
.is-current .steps__num { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-on-primary); }
.is-current .steps__btn { color: var(--color-ink); }
.is-done .steps__btn:hover .steps__num { background: var(--color-selected-soft); }
@media (max-width: 559px) {
  .steps__label { display: none; }               /* phones: numbers only, plus the current step's name */
  .is-current .steps__label { display: block; position: absolute; top: 44px; white-space: nowrap; }
  .steps { margin-bottom: 52px; }
}

/* Form + running price side by side on wide screens */
.book__layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) {
  .book__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
}

.book-step__title { font-size: var(--step-3); margin-bottom: 24px; }
.book-step__title:focus { outline: none; }
.book-step__lead { margin: -8px 0 24px; color: var(--color-ink-soft); }
.book-note { margin-top: 20px; font-size: 0.875rem; color: var(--color-ink-soft); }
.book-note a { color: var(--color-primary); }

/* Step 1: groups of choice cards */
.choices-group { margin: 0 0 36px; padding: 0; border: 0; min-width: 0; }
.choices-group legend { display: block; width: 100%; margin-bottom: 14px; padding: 0; }
.choices-group__title { display: block; font-family: var(--font-heading); font-size: var(--step-2); font-weight: 500; line-height: 1.1; color: var(--color-primary); }
.choices-group__hint { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--color-ink-soft); }
.choices__subhead { margin: 22px 0 10px; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-ink-soft); }
.choices { display: grid; gap: 12px; }
@media (min-width: 720px) {
  .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choices--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.choice {
  position: relative;
  display: block;
  height: 100%;
  padding: 16px 16px 16px 50px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-card);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.choice:hover { border-color: var(--color-primary); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {                                   /* the tick box */
  position: absolute;
  top: 18px;
  left: 16px;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--color-ink-soft);
  border-radius: 6px;
  background: var(--color-bg);
  transition: background-color 0.2s, border-color 0.2s;
}
.choice__box::after {                            /* the tick */
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--color-on-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease-out);
}
.choice input:checked ~ .choice__box { background: var(--color-primary); border-color: var(--color-primary); }
.choice input:checked ~ .choice__box::after { transform: rotate(45deg) scale(1); }
.choice input:focus-visible ~ .choice__box { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.choice.is-picked { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); background: var(--color-selected-soft); }
.choice.is-included { cursor: default; opacity: 0.62; }
.choice.is-included:hover { border-color: var(--color-line); }
.choice__body { display: block; }
.choice__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.choice__name { font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--color-ink); }
.choice__badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: 2px;
}
.choice__price { flex: none; font-family: var(--font-heading); font-size: 1.375rem; line-height: 1; color: var(--color-primary); }
.choice__price small { font-family: var(--font-body); font-size: 0.75rem; color: var(--color-ink-soft); }
.choice__desc { display: block; margin-top: 6px; font-size: 0.8125rem; line-height: 1.5; color: var(--color-ink-soft); }
.choice__included { display: block; margin-top: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--color-primary); }
.choice__included[hidden] { display: none; }
.choice-item { display: grid; gap: 8px; align-content: start; }
.qty { display: flex; align-items: center; gap: 12px; padding-left: 50px; font-size: 0.875rem; }
.qty[hidden] { display: none; }
.qty label { white-space: nowrap; }
.book .qty input[type="number"] { width: 88px; min-height: 44px; }

/* Steps 2 and 4: text boxes */
.fields { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .fields { grid-template-columns: 1fr 1fr; gap: 22px 20px; }
  .field--wide { grid-column: 1 / -1; }
}
.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { display: block; margin-bottom: 8px; padding: 0; font-size: 0.875rem; font-weight: 600; color: var(--color-ink); }
.field__optional { margin-left: 6px; font-weight: 500; color: var(--color-ink-soft); }
.field__hint { margin: 8px 0 0; font-size: 0.8125rem; color: var(--color-ink-soft); }
.field__error { margin: 8px 0 0; font-size: 0.8125rem; font-weight: 600; color: var(--color-error); }
.field__error:empty { display: none; }
.book input[type="text"], .book input[type="email"], .book input[type="tel"], .book input[type="number"], .book textarea, .book select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-card);
  color: var(--color-ink);
  font: 400 1rem/1.4 var(--font-body);   /* 16px: stops phones zooming in when you tap a box */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.book textarea { min-height: 96px; resize: vertical; }
.book select { cursor: pointer; }
.field[hidden] { display: none; }
.book input:focus, .book textarea:focus, .book select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-selected-soft); }
.book [aria-invalid="true"] { border-color: var(--color-error); }

/* Vacant / Occupied switch */
.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; }
.toggle label { position: relative; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle span {
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-card);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.toggle label:hover span { border-color: var(--color-primary); }
.toggle input:checked + span { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.toggle input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; color: var(--color-ink-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--color-primary); flex: none; }

/* Step 3: calendar + times */
.cal { max-width: 440px; padding: 18px; border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-card); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__month { font-size: var(--step-1); font-family: var(--font-heading); font-weight: 600; }
.cal__nav {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}
.cal__nav:disabled { opacity: 0.35; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__dow { padding: 4px 0 8px; font-size: 0.75rem; font-weight: 600; color: var(--color-ink-soft); }
.cal__day {
  aspect-ratio: 1;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--color-selected-soft);
  color: var(--color-primary);
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.cal__day:hover:not(:disabled) { border-color: var(--color-primary); }
.cal__day:disabled { background: none; color: var(--color-ink-soft); opacity: 0.4; font-weight: 400; cursor: default; }
.cal__day.is-selected { background: var(--color-primary); color: var(--color-on-primary); }
.cal__empty { grid-column: 1 / -1; margin: 12px 0; color: var(--color-ink-soft); }

.times { margin-top: 28px; }
.times__title { margin-bottom: 12px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.times__empty { color: var(--color-ink-soft); }
.times__empty a { color: var(--color-primary); }
.times__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.time {
  display: grid;
  gap: 2px;
  min-height: 56px;
  padding: 8px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-card);
  color: var(--color-ink);
  font: 600 0.9375rem/1.2 var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.time small { font-size: 0.75rem; font-weight: 400; color: var(--color-ink-soft); }
.time:hover { border-color: var(--color-primary); }
.time.is-selected { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.time.is-selected small { color: var(--color-on-primary); opacity: 0.8; }

/* Step 5: review */
.review { margin: 0; }
.review__group { padding: 18px 0; border-top: 1px solid var(--color-line); }
.review__group:last-child { border-bottom: 1px solid var(--color-line); }
.review dt { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-ink-soft); }
.review dd { margin: 6px 0 0; line-height: 1.6; }
.link-button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font: 600 0.875rem/1.2 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.book-done { margin-top: 24px; padding: 20px; border-radius: var(--radius-card); background: var(--color-surface); }
.book-done h3 { font-size: var(--step-2); margin-bottom: 8px; }
.book-done a { color: var(--color-primary); }

/* Back / Next */
.book__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; }
.book__nav [data-next], .book__nav [data-submit] { margin-left: auto; min-width: 168px; min-height: 54px; font-size: 1rem; }
.book__nav [hidden] { display: none; }
.book__restart { margin-top: 20px; text-align: right; }
.book__restart .link-button { color: var(--color-ink-soft); font-weight: 500; }

/* Running price */
.summary__bar { display: none; }
.summary__body {
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}
.summary__title { font-size: var(--step-2); margin-bottom: 16px; }
.summary__lines { margin: 0; padding: 0; list-style: none; }
.summary__line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--color-line); font-size: 0.9375rem; }
.summary__line span:last-child { flex: none; font-weight: 600; }
.summary__line small { display: block; font-size: 0.75rem; color: var(--color-ink-soft); }
.summary__line.is-saving span:last-child { color: var(--color-primary); }
.summary__empty { margin: 0; padding: 10px 0; font-size: 0.9375rem; color: var(--color-ink-soft); }
.summary__empty[hidden] { display: none; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--color-primary); }
.summary__total span { font-weight: 600; }
.summary__total strong { font-family: var(--font-heading); font-size: var(--step-3); font-weight: 500; line-height: 1; color: var(--color-primary); }
.summary__when { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--color-selected-soft); font-size: 0.875rem; font-weight: 600; color: var(--color-primary); }
.summary__when[hidden] { display: none; }
.summary__note { margin: 14px 0 0; font-size: 0.8125rem; color: var(--color-ink-soft); }
.summary__note a { color: var(--color-primary); }
@media (min-width: 1024px) {
  .summary { position: sticky; top: 108px; }
}

/* Phones and tablets: the price lives in a bar along the bottom; tap it for the breakdown */
@media (max-width: 1023px) {
  .page-book .site-footer { padding-bottom: 72px; }
  .summary { position: fixed; right: 0; bottom: 0; left: 0; z-index: 25; }
  .summary__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 10px var(--gutter);
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--color-line);
    background: var(--color-card);
    box-shadow: var(--shadow-bar);
    color: var(--color-ink);
    font: 600 0.9375rem/1 var(--font-body);
    cursor: pointer;
  }
  .summary__bar strong { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 500; color: var(--color-primary); }
  .summary__more { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--color-primary); }
  .summary__more::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(2px) rotate(-45deg); transition: transform 0.25s; }
  .summary.is-open .summary__more::after { transform: translateY(-2px) rotate(135deg); }
  .summary__body {
    display: none;
    max-height: 60svh;
    overflow-y: auto;
    padding: 4px var(--gutter) 20px;
    border: 0;
    border-radius: 0;
    background: var(--color-card);
    box-shadow: none;
  }
  .summary.is-open .summary__body { display: block; }
  .summary.is-open .summary__bar { box-shadow: none; }
  .summary .summary__title, .summary .summary__total { display: none; }
  /* the open breakdown sits above the bar */
  .summary { display: flex; flex-direction: column-reverse; }
}
@media (max-width: 479px) {
  .book__nav [data-next], .book__nav [data-submit] { min-width: 0; flex: 1; }
}

/* ---------- Text pages (privacy policy) ---------- */
.prose-section { padding-top: clamp(16px, 3vw, 32px); }
.prose { max-width: 46rem; margin-inline: 0; }
.prose h2 { margin: 40px 0 12px; font-size: var(--step-2); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--color-ink-soft); }
.prose strong { color: var(--color-ink); font-weight: 600; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--color-primary); font-weight: 600; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; }

/* ---------- Respect "reduce motion" settings ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
