/* goddesign | structure: Photographic | direction: Luxury Serif | accent: neutral */

:root {
  color-scheme: dark;

  /* Raw palettes. Dark is the seeded row; light is its daylight counterpart. */
  --dark-bg: #100e0a;
  --dark-surface: #19160f;
  --dark-text: #EFE9DC;
  --dark-muted: #9C917C;
  --dark-accent: #C9CFDA;
  --dark-accent-hover: #E2E6EC;
  --dark-accent-active: #AEB5C1;
  --dark-on-accent: #0E0C08;
  --dark-hairline: #2E2A22;
  --dark-error: #E8B4A0;
  --dark-field-border: #746B5A;

  --light-bg: #F5F1E8;
  --light-surface: #ECE5D7;
  --light-text: #17140F;
  --light-muted: #665D4D;
  --light-accent: #39404C;
  --light-accent-hover: #232831;
  --light-accent-active: #525A69;
  --light-on-accent: #F5F1E8;
  --light-hairline: #D8CFBD;
  --light-error: #9A3B22;
  --light-field-border: #857B68;

  --paper: #EFE9DC;
  --ink: #0E0C08;
  --ink-muted: #5B5343;
  --ink-hairline: #CBC2AE;

  /* Semantic tokens, dark by default */
  --bg: var(--dark-bg);
  --surface: var(--dark-surface);
  --text: var(--dark-text);
  --muted: var(--dark-muted);
  --accent: var(--dark-accent);
  --accent-hover: var(--dark-accent-hover);
  --accent-active: var(--dark-accent-active);
  --on-accent: var(--dark-on-accent);
  --hairline: var(--dark-hairline);
  --error: var(--dark-error);
  --field-border: var(--dark-field-border);

  /* The "Before your visit" band inverts against the page */
  --band-bg: var(--paper);
  --band-text: var(--ink);
  --band-muted: var(--ink-muted);
  --band-hairline: var(--ink-hairline);

  --radius: 0;

  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --body: "Manrope", "Avenir Next", system-ui, sans-serif;

  /* goddesign-allow: padding-ratio lock Grammar line sets section paddings 160/128/96/64 through these tokens, which the literal scan cannot resolve */
  --pad-xl: 160px;
  --pad-l: 128px;
  --pad-m: 96px;
  --pad-s: 64px;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 1240px;
}

/* Jittered dark tones where relative color syntax is supported; the hex values above stand in elsewhere */
@supports (color: oklch(from #000 calc(l + 0.01) c h)) {
  :root {
    --dark-bg: oklch(from #0E0C08 calc(l + 0.01) c h);
    --dark-surface: oklch(from #171410 calc(l + 0.01) c h);
  }
}

/* Light theme: follows the device setting unless the visitor picked one */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: var(--light-bg);
    --surface: var(--light-surface);
    --text: var(--light-text);
    --muted: var(--light-muted);
    --accent: var(--light-accent);
    --accent-hover: var(--light-accent-hover);
    --accent-active: var(--light-accent-active);
    --on-accent: var(--light-on-accent);
    --hairline: var(--light-hairline);
    --error: var(--light-error);
    --field-border: var(--light-field-border);
    --band-bg: var(--dark-bg);
    --band-text: var(--dark-text);
    --band-muted: var(--dark-muted);
    --band-hairline: var(--dark-hairline);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: var(--light-bg);
  --surface: var(--light-surface);
  --text: var(--light-text);
  --muted: var(--light-muted);
  --accent: var(--light-accent);
  --accent-hover: var(--light-accent-hover);
  --accent-active: var(--light-accent-active);
  --on-accent: var(--light-on-accent);
  --hairline: var(--light-hairline);
  --error: var(--light-error);
  --field-border: var(--light-field-border);
  --band-bg: var(--dark-bg);
  --band-text: var(--dark-text);
  --band-muted: var(--dark-muted);
  --band-hairline: var(--dark-hairline);
}

/* The hero is a dark photograph in both themes */
.hero {
  color-scheme: dark;
  --bg: var(--dark-bg);
  --surface: var(--dark-surface);
  --text: var(--dark-text);
  --muted: var(--dark-muted);
  --accent: var(--dark-accent);
  --accent-hover: var(--dark-accent-hover);
  --accent-active: var(--dark-accent-active);
  --on-accent: var(--dark-on-accent);
  --hairline: var(--dark-hairline);
}

@media (max-width: 760px) {
  :root {
    --pad-xl: 96px;
    --pad-l: 80px;
    --pad-m: 64px;
    --pad-s: 44px;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* <picture> only swaps the source; the img keeps sizing against its figure */
picture {
  display: contents;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

a:active {
  color: var(--accent-active);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 18px;
  font-weight: 600;
}

.skip:focus {
  top: 16px;
}

.label {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Masthead */

.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  width: 168px;
  height: auto;
}

.masthead nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.masthead nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 0;
}

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

.logo-on-light {
  display: none;
}

:root[data-theme="light"] .logo-on-dark {
  display: none;
}

:root[data-theme="light"] .logo-on-light {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-on-dark {
    display: none;
  }
  :root:not([data-theme="dark"]) .logo-on-light {
    display: block;
  }
}

.masthead-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* One link to the other language: the full name, shortened to the code on small phones */
.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.lang-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.lang-link:active {
  color: var(--accent-active);
}

.lang-short {
  display: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.icon-btn:active {
  color: var(--accent-active);
}

.icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* The theme toggle needs JS; the head script adds .js before first paint, so no layout shift */
html:not(.js) .icon-btn[data-theme-toggle] {
  display: none;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-moon {
  display: none;
}

:root[data-theme="light"] .icon-sun {
  display: none;
}

:root[data-theme="light"] .icon-moon {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-sun {
    display: none;
  }
  :root:not([data-theme="dark"]) .icon-moon {
    display: block;
  }
}

.masthead-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}

.masthead-call .icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 1240px) {
  .masthead nav {
    display: none;
  }
}

@media (max-width: 860px) {
  .brand img {
    width: 132px;
  }
}

@media (max-width: 560px) {
  .masthead {
    gap: 12px;
  }
  .masthead-tools {
    gap: 8px;
  }
  .masthead-call {
    justify-content: center;
    width: 46px;
    border: 1px solid var(--hairline);
  }
  .lang-link {
    padding: 0;
  }
  .lang-full {
    display: none;
  }
  .lang-short {
    display: inline;
  }
  .call-num {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 374px) {
  .brand img {
    width: 112px;
  }
}

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}

.btn:hover {
  text-decoration: none;
}

.btn:hover::after {
  opacity: 0.1;
}

.btn:active::after {
  opacity: 0.2;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn:disabled::after {
  opacity: 0;
}

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

.btn-primary:hover,
.btn-primary:active {
  color: var(--on-accent);
}

.btn-quiet {
  background: transparent;
  color: var(--text);
}

.btn-quiet:hover,
.btn-quiet:active {
  color: var(--text);
}

/* Hero: photograph with the headline set in its dark negative space */

.hero {
  position: relative;
  background: var(--bg);
  color: var(--text);
  min-height: min(calc(100svh - 89px), 860px);
  display: flex;
  align-items: center;
  padding: var(--pad-m) var(--gutter) var(--pad-l);
}

.hero-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero h1 {
  font-size: clamp(3.25rem, 7vw, 6.75rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.hero-copy .label {
  display: block;
  margin-bottom: 20px;
}

.hero .lead {
  margin-top: 32px;
  max-width: 30em;
  font-size: 1.1875rem;
  color: var(--text);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.hero-plate {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: -56px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  column-gap: 24px;
  padding: 26px 32px 22px;
  background: var(--bg);
  border: 1px solid var(--hairline);
}

.hero-plate .label {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.plate-price {
  font-family: var(--display);
  font-size: 4.5rem;
  line-height: 0.9;
}

.plate-note {
  max-width: 9em;
  padding-bottom: 8px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 760px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 var(--pad-m);
  }
  .hero-photo {
    position: relative;
    height: 58svh;
    min-height: 340px;
  }
  .hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
  }
  .hero-photo img {
    object-position: 78% 50%;
  }
  .hero-copy {
    margin-top: -72px;
    padding: 0 var(--gutter);
  }
  .hero .lead {
    font-size: 1.0625rem;
    margin-top: 24px;
  }
  .actions {
    margin-top: 32px;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  .hero-plate {
    position: absolute;
    top: 20px;
    left: 16px;
    right: auto;
    bottom: auto;
    padding: 16px 20px 14px;
  }
  .plate-price {
    font-size: 3rem;
  }
  .plate-note {
    display: none;
  }
}

/* Statement: opens with no heading */

.statement {
  padding: var(--pad-xl) var(--gutter) var(--pad-l);
}

.statement-inner {
  max-width: 1040px;
}

.statement-text {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.875rem, 3.6vw, 3.25rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.statement-text .soft {
  color: var(--muted);
}

.founders {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  max-width: 720px;
}

.founders p {
  font-size: 1rem;
  line-height: 1.4;
}

.founders span {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}

.founders .founders-note {
  flex-basis: 100%;
  color: var(--muted);
  max-width: 36em;
}

/* Fees: unequal 5/7 split, referral row spans both */

.fees {
  background: var(--surface);
  padding: var(--pad-l) 0;
}

.fees-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0 clamp(40px, 6vw, 96px);
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.fees-photo {
  margin: 0;
  align-self: start;
}

.fees-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 48%;
}

.fees-photo figcaption {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--muted);
}

.fees h2 {
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  line-height: 1;
}

.fees-intro {
  margin-top: 20px;
  color: var(--muted);
  max-width: 32em;
}

.ledger {
  width: 100%;
  margin-top: 56px;
  border-collapse: collapse;
}

.ledger thead th {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}

.ledger thead th:last-child {
  text-align: right;
}

.ledger tbody th,
.ledger tbody td {
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: bottom;
}

.ledger tbody th {
  text-align: left;
  font-weight: 400;
  padding-right: 24px;
}

.svc {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.15;
}

.svc-note {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 24em;
}

.price {
  text-align: right;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(4rem, 8.4vw, 8.5rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
}

.price .cur {
  font-size: 0.4em;
  vertical-align: 0.95em;
  margin-right: 0.04em;
  letter-spacing: 0;
}

.price .cur-after {
  margin-right: 0;
  margin-left: 0;
}

.ledger-note {
  margin-top: 22px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.ledger-note a,
.policy-list a {
  display: inline-block;
  padding: 12px 0;
  margin: -12px 0;
}

.fees-extra {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0 clamp(40px, 6vw, 96px);
  margin-top: var(--pad-s);
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
}

.fees-extra h3 {
  font-size: clamp(1.75rem, 2.6vw, 2.375rem);
  line-height: 1.1;
}

.fees-extra p {
  max-width: 34em;
}

@media (max-width: 860px) {
  .fees-grid,
  .fees-extra {
    grid-template-columns: 1fr;
  }
  .fees-photo {
    margin-bottom: 48px;
  }
  .fees-photo img {
    aspect-ratio: 16 / 10;
  }
  .fees-extra p {
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  .ledger tbody th,
  .ledger tbody td {
    padding: 26px 0 22px;
  }
  .svc-note {
    font-size: 0.9375rem;
  }
}

/* Care list */

.care {
  padding: var(--pad-m) var(--gutter);
}

.care-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 32px clamp(40px, 6vw, 96px);
}

.care h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.05;
}

.care ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}

.care li {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.care-intro {
  margin-top: 16px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .care-inner,
  .care ul {
    grid-template-columns: 1fr;
  }
}

/* Before your visit: inverted band, full bleed */

.visit {
  background: var(--band-bg);
  color: var(--band-text);
  padding: var(--pad-l) 0 0;
}

.visit a {
  color: var(--band-text);
}

.visit a:hover {
  color: var(--band-muted);
}

.visit a:focus-visible {
  outline-color: var(--band-text);
}

.visit-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  align-items: end;
  gap: 48px;
  max-width: none;
  padding-left: max(var(--gutter), calc((100vw - var(--measure)) / 2 + var(--gutter)));
}

.visit-copy {
  padding-bottom: var(--pad-l);
  max-width: 560px;
}

.visit h2 {
  font-size: clamp(2.75rem, 5vw, 4.75rem);
  line-height: 0.98;
}

.visit-intro {
  margin-top: 22px;
  color: var(--band-muted);
}

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  padding: 24px 0;
  border-top: 1px solid var(--band-hairline);
}

.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
}

.steps strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.steps span {
  color: var(--band-muted);
}

.steps a {
  overflow-wrap: anywhere;
}

.visit-photo {
  margin: 0;
  align-self: stretch;
}

.visit-photo img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 50% 50%;
}

@media (max-width: 860px) {
  .visit-grid {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
  }
  .visit-copy {
    padding: 0 var(--gutter) var(--pad-m);
  }
  .visit-photo img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* Policies: the 24-hour window */

.policies {
  padding: var(--pad-xl) var(--gutter) var(--pad-l);
}

.policies-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.policies h2 {
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  line-height: 1;
}

.policies-intro {
  margin-top: 20px;
  max-width: 34em;
  color: var(--muted);
}

.window {
  margin: 64px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 56px;
  align-items: end;
}

/* The digits come from data-num so text extractors do not read "24" twice */
.window-num::before {
  content: attr(data-num);
}

.window-num {
  font-family: var(--display);
  font-size: clamp(7rem, 15vw, 13rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
}

.window-head p:first-child {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  line-height: 1.15;
  max-width: 18em;
}

.window-head p + p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 34em;
}

.track {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 7fr 3fr auto;
  margin-top: 40px;
  border-top: 1px solid var(--text);
}

.seg {
  padding: 16px 16px 0 0;
  border-left: 1px solid var(--hairline);
  padding-left: 16px;
}

.seg:first-child {
  border-left: 0;
  padding-left: 0;
}

.seg strong {
  display: block;
  font-weight: 600;
}

.seg span {
  color: var(--muted);
  font-size: 0.9375rem;
}

.seg-fee {
  position: relative;
  border-left: 1px solid var(--text);
}

.seg-fee::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -5px;
  height: 9px;
  background: var(--text);
}

.seg-fee strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.1;
}

.seg-appt {
  border-left: 1px solid var(--text);
  padding-right: 0;
}


.policy-list {
  margin: var(--pad-s) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}

.policy-list div {
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}

.policy-list dt {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.2;
}

.policy-list dd {
  margin: 10px 0 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .window {
    grid-template-columns: 1fr;
  }
  .track {
    grid-template-columns: 1fr 1fr;
  }
  .seg-appt {
    grid-column: 1 / -1;
    border-left: 0;
    padding-left: 0;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--hairline);
  }
  .policy-list {
    grid-template-columns: 1fr;
  }
}

/* FAQ: inverted band, two-column question list in the policy-list pattern */

.faq {
  background: var(--band-bg);
  color: var(--band-text);
  padding: var(--pad-l) var(--gutter);
}

.faq-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.faq h2 {
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  line-height: 1;
  max-width: 12em;
}

.faq-list {
  margin: var(--pad-s) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}

.faq-item {
  padding: 26px 0;
  border-top: 1px solid var(--band-hairline);
}

.faq h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.faq-item p {
  margin: 10px 0 0;
  max-width: 38em;
  color: var(--band-muted);
}

.faq a {
  color: var(--band-text);
  overflow-wrap: anywhere;
}

.faq a[href^="tel:"] {
  white-space: nowrap;
}

.faq a:hover {
  color: var(--band-muted);
}

.faq a:focus-visible {
  outline-color: var(--band-text);
}

@media (max-width: 760px) {
  .faq-list {
    grid-template-columns: 1fr;
  }
}

/* Contact */

.contact {
  padding: var(--pad-xl) var(--gutter) var(--pad-m);
}

.contact-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.contact h2 {
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  line-height: 1.05;
}

.contact-phone {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.75rem, 9.5vw, 8.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.contact-phone:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px clamp(40px, 6vw, 96px);
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 10px;
}

.email-row a {
  font-size: 1.375rem;
  word-break: break-word;
}

.copy-btn {
  min-height: 44px;
  padding: 10px 18px;
}

.copy-btn[hidden] {
  display: none;
}

.copy-status {
  min-height: 1.6em;
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--muted);
}

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

.contact-note {
  margin-top: 28px;
  color: var(--muted);
  max-width: 32em;
}

.people {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.people li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  line-height: 1.4;
}

.people span {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}

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

/* Footer */

.footer {
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--hairline);
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}

.footer-inner a {
  display: inline-block;
  padding: 12px 0;
  color: var(--muted);
}

.footer-inner a:hover {
  color: var(--accent);
}

/* 404 page */

.notfound {
  padding: var(--pad-xl) var(--gutter) var(--pad-l);
}

.notfound-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pad-s) clamp(40px, 6vw, 96px);
}

.notfound h1,
.notfound h2 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.notfound-col > p:not(.label) {
  margin: 20px 0 32px;
  color: var(--muted);
  max-width: 28em;
}

@media (max-width: 760px) {
  .notfound-inner {
    grid-template-columns: 1fr;
  }
}

/* Forms: the contact form and the new client intake */

.form {
  margin-top: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}

.field {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-half {
  grid-column: auto;
}

.field[hidden] {
  display: none;
}

.field > label,
.field-choice > legend {
  padding: 0;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.field-choice > legend {
  margin-bottom: 6px;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field-hint,
.form-note,
.form-section-intro {
  font-size: 0.9375rem;
  color: var(--muted);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="date"],
.form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.form textarea {
  min-height: 128px;
  line-height: 1.5;
  resize: vertical;
}

.form input:hover,
.form textarea:hover {
  border-color: var(--text);
}

.form input:focus-visible,
.form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form input:disabled,
.form textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form [aria-invalid="true"] {
  border-color: var(--error);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 28px;
}

.choices-stack {
  flex-direction: column;
}

.choice-option {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}

.choice-option input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.choice-option input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.choice-option input[aria-invalid="true"] {
  outline: 2px solid var(--error);
  outline-offset: 3px;
}

.choice-single,
.field > .choice-single {
  align-items: flex-start;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}

.choice-single input {
  margin-top: 1px;
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: var(--pad-s) 0 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}

.form-section + .form-section {
  margin-top: var(--pad-s);
}

/* Floating the legend keeps it inside the section instead of on its border */
.form-section-title {
  float: left;
  width: 100%;
  margin-bottom: 28px;
  padding: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  line-height: 1.1;
}

.form-section-intro,
.form-section .form-grid {
  clear: both;
}

.form-section-intro {
  margin-bottom: 20px;
}

.form-note {
  margin-top: 20px;
}

/* Cloudflare Turnstile (non-interactive): compact badge, no checkbox */
.turnstile-slot {
  margin-top: 20px;
  min-height: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 36px;
}

.form-status {
  flex: 1 1 260px;
  min-height: 1.5em;
  font-size: 0.9375rem;
}

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

.form-status.is-success {
  color: var(--text);
}

/* Hidden from people; bots that fill it are ignored */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-side-label {
  margin-top: 40px;
}

.intake-cta {
  margin-top: 32px;
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field-half {
    grid-column: 1 / -1;
  }
  .form-actions .btn {
    flex: 1 1 100%;
  }
}

/* Intake page */

.page-head {
  padding: var(--pad-l) var(--gutter) var(--pad-s);
}

.page-head-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.page-head h1 {
  margin-top: 16px;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 0.98;
}

.page-head .lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: 1.1875rem;
}

.page-notes {
  display: grid;
  gap: 10px;
  max-width: 46em;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.page-notes li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.page-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: var(--muted);
}

.intake {
  background: var(--surface);
  padding: var(--pad-m) var(--gutter) var(--pad-l);
}

.intake-inner {
  max-width: 880px;
  margin: 0 auto;
}

.form-sent {
  padding: var(--pad-s) 0;
}

.form-sent h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.form-sent p {
  max-width: 34em;
  margin: 16px 0 28px;
  color: var(--muted);
}
