/* Dave the Ring Finder — coastal / trust / gold */

:root,
[data-theme='light'] {
  --color-bg: #faf7f0;
  --color-surface: #fffdf8;
  --color-surface-2: #f4efe4;
  --color-surface-offset: #ece5d6;
  --color-divider: #ddd5c4;
  --color-border: #cdc3ae;

  --color-text: #17262e;
  --color-text-muted: #56646c;
  --color-text-faint: #8b959b;
  --color-text-inverse: #fbf8f1;

  --color-ocean: #0d4a58;
  --color-ocean-hover: #0a3944;
  --color-gold: #b4831a;
  --color-gold-strong: #8e6510;
  --color-gold-surface: #f6ecd4;
  --color-urgent: #a3341f;

  --btn-bg: #d5a032;
  --btn-bg-hover: #c08d22;
  --btn-text: #14232b;

  --shadow-sm: 0 1px 2px rgba(23, 38, 46, 0.06), 0 1px 3px rgba(23, 38, 46, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(23, 38, 46, 0.08), 0 2px 4px -2px rgba(23, 38, 46, 0.06);
  --shadow-lg: 0 12px 28px -8px rgba(23, 38, 46, 0.16);
  --hero-scrim: linear-gradient(180deg, rgba(250, 247, 240, 0.2) 0%, rgba(250, 247, 240, 0.86) 62%, var(--color-bg) 100%);
}

[data-theme='dark'] {
  --color-bg: #0e1a20;
  --color-surface: #14242c;
  --color-surface-2: #1a2d36;
  --color-surface-offset: #21363f;
  --color-divider: #2a414b;
  --color-border: #35505b;

  --color-text: #f1ece2;
  --color-text-muted: #a8b4bb;
  --color-text-faint: #75838b;
  --color-text-inverse: #14232b;

  --color-ocean: #7fc6d6;
  --color-ocean-hover: #a3d9e5;
  --color-gold: #e0b45f;
  --color-gold-strong: #eec87e;
  --color-gold-surface: #24313033;
  --color-urgent: #f0917c;

  --btn-bg: #d9a53c;
  --btn-bg-hover: #e6b558;
  --btn-text: #122027;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 14px 32px -10px rgba(0, 0, 0, 0.55);
  --hero-scrim: linear-gradient(180deg, rgba(14, 26, 32, 0.35) 0%, rgba(14, 26, 32, 0.88) 62%, var(--color-bg) 100%);
}

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-md: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

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

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-full: 999px;

  --font-display: 'Boska', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;

  --header-h: 4.25rem;
  --wrap: 76rem;
  --prose: 68ch;
}

*,
*::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-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  font-weight: 600;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

h3,
h4 {
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0 0 var(--space-5);
}

a {
  color: inherit;
}

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

ul,
ol {
  margin: 0 0 var(--space-5);
  padding-left: var(--space-5);
}

li {
  margin-bottom: var(--space-2);
}

strong {
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-surface);
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
  z-index: 200;
  border-radius: var(--radius-sm);
}
.skip:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ---------- layout ---------- */

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

@media (min-width: 48rem) {
  .wrap {
    padding-inline: var(--space-8);
  }
}

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

.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

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

.prose {
  max-width: var(--prose);
}

.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.prose h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.prose > :first-child {
  margin-top: 0;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 44ch;
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-strong);
  margin: 0 0 var(--space-4);
}

[data-theme='dark'] .eyebrow {
  color: var(--color-gold);
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}

.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--color-gold);
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  white-space: nowrap;
}

.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  white-space: nowrap;
}

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

@media (min-width: 68rem) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.nav a[aria-current='page'] {
  color: var(--color-text);
  font-weight: 700;
}

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

.iconbtn {
  display: grid;
  place-items: center;
  width: 2.375rem;
  height: 2.375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s, border-color 0.15s;
}

.iconbtn:hover {
  color: var(--color-text);
  border-color: var(--color-text-faint);
}

.iconbtn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.menubtn {
  display: grid;
}

@media (min-width: 68rem) {
  .menubtn {
    display: none;
  }
}

.drawer {
  display: none;
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
  padding: var(--space-3) 0 var(--space-5);
}

.drawer[data-open='true'] {
  display: block;
}

@media (min-width: 68rem) {
  .drawer {
    display: none !important;
  }
}

.drawer__grid {
  display: grid;
  gap: var(--space-1);
}

.drawer a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
}

.drawer a:hover {
  background: var(--color-surface-2);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn svg {
  width: 1.0625rem;
  height: 1.0625rem;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-1px);
}

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

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

.btn--sm {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
}

.btn--wide {
  width: 100%;
}

@media (min-width: 40rem) {
  .btn--wide {
    width: auto;
  }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.header .btn {
  display: none;
}

@media (min-width: 30rem) {
  .header .btn {
    display: inline-flex;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(var(--space-16), 11vw, var(--space-32)) clamp(var(--space-12), 7vw, var(--space-24));
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 26, 33, 0.94) 0%, rgba(6, 26, 33, 0.82) 38%, rgba(6, 26, 33, 0.42) 66%, rgba(6, 26, 33, 0.24) 100%),
    linear-gradient(to top, rgba(6, 26, 33, 0.6) 0%, rgba(6, 26, 33, 0) 45%);
}

.hero__inner {
  max-width: 46rem;
}

.hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
}

.hero h1 {
  color: #fdfbf5;
}

.hero .eyebrow {
  color: var(--color-gold);
}

.hero .lede {
  max-width: 42ch;
  color: rgba(247, 243, 234, 0.86);
}

.hero .btn--ghost {
  color: #fdfbf5;
  border-color: rgba(253, 251, 245, 0.42);
  background: rgba(253, 251, 245, 0.06);
}

.hero .btn--ghost:hover {
  background: rgba(253, 251, 245, 0.16);
  border-color: rgba(253, 251, 245, 0.7);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.78);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__meta svg {
  width: 0.875rem;
  height: 0.875rem;
  color: #dfb463;
}

.pagehead {
  padding-block: clamp(var(--space-12), 7vw, var(--space-20)) clamp(var(--space-8), 4vw, var(--space-12));
  border-bottom: 1px solid var(--color-divider);
}

.pagehead h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  max-width: 34ch;
}

/* ---------- urgency bar ---------- */

.urgent {
  background: var(--color-ocean);
  color: #f7f3e8;
}

[data-theme='dark'] .urgent {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.urgent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
}

.urgent p {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  max-width: 58ch;
}

/* ---------- cards & grids ---------- */

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

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

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

.card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.card p:last-child {
  margin-bottom: 0;
}

a.card {
  display: block;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

a.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border);
}

.card__meta {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-strong);
  margin-bottom: var(--space-3);
}

[data-theme='dark'] .card__meta {
  color: var(--color-gold);
}

.card__more {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ocean);
  margin: 0;
}

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

.step__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.step h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.step p:last-child {
  margin-bottom: 0;
}

/* ---------- split ---------- */

.split {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--wide-text {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .split--flip > :first-child {
    order: 2;
  }
}

.split h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}

.figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-md);
  background: var(--color-surface-2);
}

.figure img {
  width: 100%;
}

.figure figcaption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
}

.photogrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

@media (min-width: 56rem) {
  .photogrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
  }
}

.photogrid .figure img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- quote ---------- */

.quote {
  margin: 0;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.quote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.45;
}

.quote p:last-of-type {
  margin-bottom: var(--space-5);
}

.quote footer {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
}

.quote footer span {
  display: block;
  font-weight: 500;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
}

.stars {
  color: var(--color-gold);
  letter-spacing: 0.12em;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

/* ---------- pill list / chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  margin: 0;
}

.chips a,
.chips span {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  transition: border-color 0.15s, background 0.15s;
}

.chips a:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-surface);
}

/* ---------- table ---------- */

.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 34rem;
}

th,
td {
  text-align: left;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
}

th {
  font-weight: 700;
  background: var(--color-surface-2);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 52rem;
  border-top: 1px solid var(--color-divider);
}

.faq details {
  border-bottom: 1px solid var(--color-divider);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-5) var(--space-8) var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: 700;
  position: relative;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: var(--space-5);
  font-size: 1.375rem;
  line-height: 1;
  font-weight: 400;
  color: var(--color-gold);
}

.faq details[open] summary::after {
  content: '–';
}

.faq details > div {
  padding-bottom: var(--space-5);
  max-width: var(--prose);
  color: var(--color-text-muted);
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* ---------- callout ---------- */

.callout {
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--color-gold-surface);
  border: 1px solid var(--color-divider);
}

[data-theme='dark'] .callout {
  background: var(--color-surface-2);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--color-text);
}

/* ---------- price ---------- */

.pricecard {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.pricecard__amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  display: block;
}

.pricecard h3 {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold-strong);
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
}

[data-theme='dark'] .pricecard h3 {
  color: var(--color-gold);
}

/* ---------- breadcrumb ---------- */

.crumbs {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  padding-top: var(--space-6);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs li {
  margin: 0;
}

.crumbs li + li::before {
  content: '/';
  margin-right: var(--space-2);
  color: var(--color-text-faint);
}

.crumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

/* ---------- CTA band ---------- */

.ctaband {
  background: var(--color-ocean);
  color: #f7f3e8;
  text-align: center;
}

[data-theme='dark'] .ctaband {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-block: 1px solid var(--color-divider);
}

.ctaband h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  max-width: 32ch;
  margin-inline: auto;
}

.ctaband p {
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  opacity: 0.88;
  font-size: var(--text-base);
}

.ctaband .btn-row {
  justify-content: center;
}

.ctaband .btn--ghost {
  color: inherit;
  border-color: currentColor;
  opacity: 0.85;
}

.ctaband .btn--ghost:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- footer ---------- */

.footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-8);
  font-size: var(--text-sm);
}

.footer__grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-8);
  }
}

.footer h2 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

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

.footer li {
  margin-bottom: var(--space-3);
}

.footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.footer__brand p {
  color: var(--color-text-muted);
  max-width: 34ch;
  font-size: var(--text-sm);
}

.footer__phone {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  text-decoration: none !important;
  color: var(--color-text) !important;
  display: inline-block;
  margin-bottom: var(--space-2);
}

.footer__legal {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__legal p {
  margin: 0;
}

/* ---------- sticky mobile call bar ---------- */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-divider);
}

.callbar .btn {
  padding: var(--space-4) var(--space-3);
}

@media (min-width: 48rem) {
  .callbar {
    display: none;
  }
}

@media (max-width: 47.99rem) {
  body {
    padding-bottom: 4.75rem;
  }
}

/* ---------- misc ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- additional components ---------- */

.section--flush {
  padding-block: 0 clamp(var(--space-10), 5vw, var(--space-16));
}

.pagehead--article .lede {
  max-width: 52ch;
}

.split--wide-text {
  align-items: start;
}

.figure--wide {
  margin: 0;
}

.figure--wide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card--feature {
  padding: var(--space-8);
}

.card--feature h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.card--static {
  box-shadow: var(--shadow-sm);
}

.card--static .card__more {
  margin-top: var(--space-4);
}

.card--static .card__more a {
  color: var(--color-ocean);
  font-weight: 700;
  text-decoration: none;
}

.card--static .card__more a:hover {
  text-decoration: underline;
}

/* fact bar on recovery stories */

.factbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-6);
  margin: var(--space-8) 0 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  max-width: 46rem;
}

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

.factbar dt {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.factbar dd {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
}

/* definition list */

.deflist {
  margin: var(--space-7) 0 0;
  display: grid;
  gap: var(--space-4);
}

.deflist > div {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}

.deflist > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.deflist dt {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}

.deflist dd {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* sidebox */

.sidebox {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-top: 3px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + var(--space-5));
}

@media (max-width: 63.99rem) {
  .sidebox {
    position: static;
  }
}

.sidebox h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.sidebox ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: grid;
  gap: var(--space-2);
}

.sidebox ul li {
  font-size: var(--text-sm);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.45;
}

.sidebox ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
}

.sidebox p {
  font-size: var(--text-sm);
  line-height: 1.55;
}

.sidebox__note {
  color: var(--color-text-muted);
  font-size: var(--text-xs) !important;
  margin-bottom: var(--space-5);
}

/* contact card */

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

.contactcard__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.contactcard__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.contactcard__phone:hover {
  color: var(--color-ocean);
}

/* block button */

.btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* callouts */

.callout--urgent {
  border-left-color: var(--color-urgent);
  background: color-mix(in srgb, var(--color-urgent) 8%, var(--color-surface));
}

.callout--urgent ol {
  margin-bottom: 0;
}

/* big quote */

.quote--big {
  padding: clamp(var(--space-7), 4vw, var(--space-12));
  max-width: 52rem;
}

.quote--big p {
  font-size: var(--text-lg);
}

.quote--big footer a {
  color: var(--color-ocean);
}

/* screen-reader only */

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

/* bottom-align the card call-to-action */
.card {
  display: flex;
  flex-direction: column;
}

.card > .card__more {
  margin-top: auto;
  padding-top: var(--space-4);
}

.photogrid .figure figcaption {
  min-height: 3.25rem;
}

/* keep portrait photos from dominating the page */
.figure--wide img,
.figure img {
  max-height: 34rem;
  object-fit: cover;
  object-position: center;
}

:target {
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}

/* small phones: keep the header on one row */
@media (max-width: 30rem) {
  .header__inner {
    gap: var(--space-2);
  }
  .brand {
    gap: var(--space-2);
    min-width: 0;
  }
  .brand__mark {
    width: 1.875rem;
    height: 1.875rem;
  }
  .brand__name {
    font-size: 1.0625rem;
  }
  .brand__sub {
    display: none;
  }
}

/* FAQ: editorial two-column at wide widths */
.faqgroup {
  display: grid;
  gap: var(--space-6);
}

.faqgroup__title {
  font-size: var(--text-lg);
  line-height: 1.15;
  margin: 0;
}

@media (min-width: 64rem) {
  .faqgroup {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
  }
  .faqgroup__title {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }
  .faqgroup .faq {
    max-width: none;
  }
}

/* tables fit small phones without a horizontal scroll */
@media (max-width: 34rem) {
  table {
    min-width: 0;
    font-size: 0.8125rem;
  }
  th, td {
    padding-inline: var(--space-3);
  }
}

/* ---------- books ---------- */

.book {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.book:first-child {
  border-top: 0;
  padding-top: 0;
}

.book__cover img {
  display: block;
  width: 100%;
  max-width: 15rem;
  height: auto;
  max-height: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 1.25rem 2.5rem -0.75rem rgb(14 26 32 / 0.35);
}

.book__body > h2 {
  font-size: var(--text-xl);
  line-height: 1.05;
  margin: var(--space-2) 0 0;
}

.book__sub {
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--color-text-muted);
  margin: var(--space-2) 0 var(--space-4);
  max-width: 34rem;
}

.book__body .prose {
  margin-bottom: var(--space-5);
}

.book__for {
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.book__meta {
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
}

.book .stars {
  margin-bottom: var(--space-4);
}

@media (min-width: 56rem) {
  .book {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
    padding-block: var(--space-9, 4.5rem);
  }
  .book__cover {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }
}

/* the header carries a logo, 8 nav links and a phone button: compact it
   between the nav breakpoint and very wide screens so nothing overflows */
@media (min-width: 68rem) and (max-width: 96rem) {
  .header__inner {
    gap: var(--space-3);
  }
  .brand {
    gap: var(--space-2);
    min-width: 0;
  }
  .brand__sub {
    display: none;
  }
  img.brand__mark {
    height: 2.25rem;
  }
  .nav {
    gap: 0;
  }
  .nav a {
    font-size: 0.875rem;
    padding: var(--space-2) 0.5rem;
  }
}

@media (min-width: 68rem) and (max-width: 78rem) {
  .brand__name {
    font-size: 1.0625rem;
  }
  .nav a {
    font-size: 0.8125rem;
    padding: var(--space-2) 0.4375rem;
  }
}

.bookduo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

.bookduo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 1.25rem 2.5rem -0.75rem rgb(14 26 32 / 0.35);
  transition: transform var(--ease-out, 220ms) ease;
}

.bookduo a:hover img {
  transform: translateY(-4px);
}

@media (min-width: 56rem) {
  .bookduo {
    gap: var(--space-6);
  }
  .bookduo a:last-child img {
    margin-top: var(--space-8);
  }
}

/* ---------- real brand logo ---------- */

img.brand__mark {
  width: auto;
  height: 2.5rem;
  max-height: none;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 30rem) {
  img.brand__mark {
    height: 2.125rem;
  }
}

.footer__logo {
  display: block;
  width: 100%;
  max-width: 15rem;
  height: auto;
  max-height: none;
  margin-bottom: var(--space-5);
}

.bookduo--one {
  grid-template-columns: minmax(0, 1fr);
  max-width: 17rem;
}
