/* =============================================================
   Farewell Compare — shared stylesheet
   A calm funeral price comparison site for Glasgow, Scotland.

   Design intent:
   - Warm off-whites, muted sage and slate greens, warm greys
   - Serif typography throughout (Playfair Display + Lora)
   - Generous whitespace, unhurried layout
   - No bright colour, no dark mode
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --paper:      #f6f4ee;   /* page background, warm off-white */
  --paper-2:    #fbfaf6;   /* cards and raised surfaces */
  --paper-3:    #eeeadf;   /* quiet fills, table stripes */

  /* Ink */
  --ink:        #3a3833;   /* headings, warm near-black */
  --ink-soft:   #55524b;   /* body text */
  --ink-mute:   #837e73;   /* meta, captions */

  /* Greens */
  --sage:       #7c9078;   /* primary accent */
  --sage-deep:  #5e7058;   /* links, hover, focus */
  --sage-wash:  #e7ebe2;   /* tinted section backgrounds */
  --slate:      #67787040; /* soft slate green, translucent */
  --slate-solid:#68796f;

  /* Featured (muted brass, used sparingly) */
  --brass:      #9d8c63;
  --brass-wash: #efe9da;

  /* Lines */
  --line:       #e1dbcd;
  --line-soft:  #ebe6da;

  /* Shape */
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  18px;

  /* Soft, warm shadows */
  --shadow-sm:  0 1px 2px rgba(58, 56, 51, 0.04),
                0 2px 8px rgba(58, 56, 51, 0.05);
  --shadow:     0 2px 6px rgba(58, 56, 51, 0.05),
                0 12px 30px rgba(58, 56, 51, 0.07);

  /* Rhythm */
  --container:  1120px;
  --container-narrow: 760px;
  --gap:        clamp(1.5rem, 4vw, 3rem);
  --section-y:  clamp(3.5rem, 9vw, 7rem);

  --font-body:  "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-head:  "Playfair Display", "Lora", Georgia, serif;
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: 0.002em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.075rem; font-family: var(--font-body); font-weight: 600; color: var(--ink); }

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

a {
  color: var(--sage-deep);
  text-decoration-color: rgba(94, 112, 88, 0.35);
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
a:hover { color: var(--ink); text-decoration-color: var(--ink); }

strong { color: var(--ink); font-weight: 600; }

ul, ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
li { margin: 0.35rem 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.container.narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--wash { background: var(--sage-wash); }
.section--paper2 { background: var(--paper-2); }

.stack > * + * { margin-top: 1.15rem; }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure.center { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--sage-deep);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease,
              color 180ms ease, transform 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--sage);
  color: #fbfaf6;
  border-color: var(--sage);
}
.btn--primary:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: #fbfaf6; }

.btn--ghost {
  background: transparent;
  color: var(--sage-deep);
  border-color: var(--sage);
}
.btn--ghost:hover { background: rgba(124, 144, 120, 0.12); color: var(--sage-deep); }

.btn--block { width: 100%; }
.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.92rem; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 238, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
  transform: translateY(-1px);
}
.brand__place {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.98rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--sage);
}
/* Buttons in the nav should keep their own shape and colours,
   not inherit the plain-link padding / underline / colour above. */
.site-nav a.btn {
  padding: 0.7rem 1.15rem;
  border-bottom: 1px solid transparent;
}
.site-nav a.btn--primary,
.site-nav a.btn--primary:hover {
  color: #fbfaf6;
  border-color: var(--sage);
}
.site-nav a.btn--ghost {
  color: var(--sage-deep);
  border: 1px solid var(--sage);
}
.site-nav a.btn--ghost:hover {
  color: var(--sage-deep);
  background: rgba(124, 144, 120, 0.12);
}
.site-nav a.btn[aria-current="page"] { border-bottom: 1px solid var(--sage); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1.25rem, 5vw, 2.5rem) 1.25rem;
  }
  .site-nav li { margin: 0; }
  .site-nav a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line-soft); }
  .site-nav .btn { margin-top: 0.9rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--sage-wash);
}
.hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(246, 244, 238, 0.55) 0%,
              rgba(246, 244, 238, 0.82) 60%,
              rgba(246, 244, 238, 0.95) 100%);
}
.hero__inner {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  max-width: 720px;
}
.hero h1 { margin-bottom: 0.5rem; }
.hero .lead { margin-bottom: 2rem; }

/* Welcome / condolence message */
.welcome {
  margin: 0 0 1.75rem;
  padding: 0;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-style: italic;
  color: var(--slate-solid);
  min-height: 2.2em;
}
.welcome__text {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  /* A slow, gentle appearance. Plays on load; JS only swaps the words. */
  animation: gentleRise 2600ms cubic-bezier(0.22, 0.61, 0.36, 1) 300ms forwards;
}
@keyframes gentleRise {
  0%   { opacity: 0;    transform: translateY(12px); letter-spacing: 0.03em; }
  60%  { opacity: 0.85; }
  100% { opacity: 1;    transform: translateY(0);    letter-spacing: 0.006em; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome__text { opacity: 1; transform: none; animation: none; }
}

/* ---------- Postcode search ---------- */
.postcode-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--paper-2);
  padding: 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  max-width: 580px;
}
.postcode-form input[type="text"],
.postcode-form input[type="search"] {
  flex: 1 1 240px;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0.65rem 1rem;
  min-width: 0;
}
.postcode-form input::placeholder { color: var(--ink-mute); }
.postcode-form input:focus { outline: none; }
.postcode-form .btn { flex: 0 0 auto; }
.postcode-hint {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.field-error {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: #8a5a4b;
}

/* ---------- Steps / feature grids ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}

.step {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--sage-wash);
  color: var(--sage-deep);
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { font-size: 0.99rem; }

/* ---------- Panels / callouts ---------- */
.panel {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.panel--wash { background: var(--sage-wash); border-color: transparent; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--gap);
  align-items: center;
}
.split__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Resource / guide preview cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.guide-card__media {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-3);
}
.guide-card__body { padding: 1.5rem 1.5rem 1.75rem; }
.guide-card__body h3 { margin-bottom: 0.35rem; font-size: 1.2rem; }
.guide-card__body p { font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.guide-card__more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sage-deep);
}

/* ---------- Search results page ---------- */
.results-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 940px) {
  .results-layout { grid-template-columns: 1fr; }
}

.filters {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}
@media (max-width: 940px) {
  .filters { position: static; }
}
.filters h2 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group > legend,
.filter-group > .filter-label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  padding: 0;
}
.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
  padding: 0.3rem 0;
  cursor: pointer;
}
.filter-group input[type="radio"],
.filter-group input[type="checkbox"] {
  accent-color: var(--sage);
  width: 1rem; height: 1rem;
}
.filters fieldset { border: 0; margin: 0; padding: 0; }
.filters select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
.filters__reset {
  background: none;
  border: 0;
  color: var(--sage-deep);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.results-head h1 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 0.2rem; }
.results-head p { margin: 0; color: var(--ink-mute); font-size: 0.96rem; }
.results-sort select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--ink);
}

.result-card {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
}
.result-card--featured {
  border-color: var(--brass);
  box-shadow: 0 0 0 1px var(--brass) inset;
}
@media (max-width: 620px) {
  .result-card { grid-template-columns: 1fr; }
}
.result-card__name { margin-bottom: 0.2rem; font-size: 1.3rem; }
.result-card__name a { text-decoration: none; color: var(--ink); }
.result-card__name a:hover { color: var(--sage-deep); }
.result-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  color: var(--ink-mute);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}
.result-card__includes {
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin: 0.6rem 0 0;
}
.result-card__includes strong { color: var(--ink); }
.result-card__price {
  text-align: right;
  align-self: start;
}
@media (max-width: 620px) {
  .result-card__price { text-align: left; }
}
.result-card__price .amount {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--ink);
  display: block;
}
.result-card__price .label {
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.result-card__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  margin-top: 0.4rem;
}

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--brass-wash);
  color: var(--brass);
  border: 1px solid rgba(157, 140, 99, 0.3);
  margin-bottom: 0.6rem;
}

/* "Prices last verified" tag on funeral director pages */
.verified-tag {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #eef2ec;
  border: 1px solid rgba(90, 110, 85, 0.3);
  color: #4b5a45;
  font-size: 0.82rem;
  font-weight: 600;
}
.verified-tag::before { content: "\2713\00a0"; }

/* Star ratings */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--ink-mute);
}
.stars__track {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--line);
}
.stars__track::before { content: "★★★★★"; }
.stars__fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--brass);
}
.stars__fill::before { content: "★★★★★"; }

/* Email results box */
.email-results {
  background: var(--sage-wash);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin-top: 2.5rem;
}
.email-results h2 { font-size: 1.4rem; }
.email-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.email-form input[type="email"] {
  flex: 1 1 260px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  min-width: 0;
}
.form-note {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: var(--ink-mute);
}
.form-status { margin-top: 0.9rem; font-size: 0.95rem; }
.form-status.is-success { color: var(--sage-deep); }
.form-status.is-error { color: #8a5a4b; }

/* Pre-paid plan banner (calm) */
.plan-banner {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.75rem;
}
.plan-banner p { margin: 0; font-size: 0.98rem; }
.plan-banner .btn { flex: 0 0 auto; }
@media (max-width: 620px) {
  .plan-banner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Funeral home profile ---------- */
.profile-head {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 900px) { .profile-head { grid-template-columns: 1fr; } }
.profile-head__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.profile-title { margin-bottom: 0.3rem; }
.profile-sub {
  color: var(--ink-mute);
  font-size: 0.98rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 1rem;
}

.tier {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
}
.tier h3 { margin-bottom: 0.2rem; }
.tier__price {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--ink);
  margin: 0.3rem 0 0.2rem;
}
.tier__from { font-size: 0.85rem; color: var(--ink-mute); margin-bottom: 1rem; }
.tier ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tier li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  border-top: 1px solid var(--line-soft);
}
.tier li:first-child { border-top: 0; }
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95rem;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--sage);
}

.contact-card {
  background: var(--sage-wash);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; }
.contact-card dt { color: var(--ink-mute); font-size: 0.9rem; }
.contact-card dd { margin: 0; color: var(--ink); font-size: 0.96rem; }

.review {
  border-top: 1px solid var(--line-soft);
  padding: 1.4rem 0;
}
.review:first-of-type { border-top: 0; }
.review__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.review__name { font-weight: 600; color: var(--ink); }
.review__date { font-size: 0.85rem; color: var(--ink-mute); }
.review p { margin: 0; font-size: 0.98rem; }

.disclosure {
  font-size: 0.86rem;
  color: var(--ink-mute);
  background: var(--paper-3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

/* ---------- Guides article ---------- */
.article {
  max-width: 68ch;
  margin-inline: auto;
}
.article__hero-media {
  aspect-ratio: 21 / 9;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.article h2 { margin-top: 2.5rem; }
.article h3 { margin-top: 1.75rem; }
.article time { color: var(--ink-mute); font-size: 0.9rem; }
.callout {
  background: var(--sage-wash);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-size: 0.98rem;
}
.callout strong { display: block; margin-bottom: 0.25rem; }

.toc {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.toc p { font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.toc ul { margin: 0; padding-left: 1.1rem; }
.toc li { margin: 0.3rem 0; }

/* ---------- Plan comparison (pre-planned page) ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.plan-card h3 { margin-bottom: 0.3rem; }
.plan-card__price { font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); margin: 0.2rem 0 1rem; }
.plan-card ul { padding-left: 1.1rem; margin-bottom: 1.5rem; font-size: 0.95rem; }
.plan-card .btn { margin-top: auto; }
.affiliate-note {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 0.75rem;
}

/* ---------- Forms (get listed) ---------- */
.form-card {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.form-row { margin-bottom: 1.35rem; }
.form-row label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.form-row .hint { font-weight: 400; color: var(--ink-mute); font-size: 0.86rem; }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(124, 144, 120, 0.18);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}
@media (max-width: 620px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.75rem, 6vw, 4rem);
  margin-top: var(--section-y);
  font-size: 0.94rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--gap);
}
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.45rem 0; }
.site-footer a { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.site-footer__mission { color: var(--ink-mute); max-width: 34ch; }
.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-mute);
  font-size: 0.85rem;
}
.site-footer__legal p { margin-bottom: 0.5rem; }

/* ---------- Simple tables (used in guides) ---------- */
.table-wrap { overflow-x: auto; margin: 1.75rem 0; }
table.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  min-width: 460px;
}
table.price-table caption {
  text-align: left;
  color: var(--ink-mute);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}
table.price-table th,
table.price-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}
table.price-table thead th {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--line);
}
table.price-table tbody tr:nth-child(even) { background: var(--paper-3); }
table.price-table td:last-child { white-space: nowrap; font-weight: 600; color: var(--ink); }

/* ---------- Small utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-mute); }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sage-deep);
  text-decoration: none;
}
.pill-link:hover { color: var(--ink); }

/* ---------- Breadcrumbs (generated directory / area pages) ---------- */
.breadcrumb { margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--ink-mute); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.breadcrumb li { display: flex; align-items: center; gap: 0.45rem; }
.breadcrumb li::after { content: "\203A"; color: var(--ink-mute); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--sage-deep); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb li:last-child { color: var(--ink-soft); font-weight: 600; }
