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

:root {
  color-scheme: light;
  --ink: #1f2933;
  --ink-soft: #52606d;
  --sand: #f7f4ee;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(31, 41, 51, 0.08);
  --terracotta: #c85e43;
  --moss: #5f7d52;
  --gold: #c89a3d;
  --shadow: 0 18px 40px rgba(31, 41, 51, 0.08);
  --radius-lg: 8px;
  --radius-xl: 8px;
  --max-width: 1120px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(247, 244, 238, 0.82), rgba(247, 244, 238, 0.96)),
    url("https://images.unsplash.com/photo-1608571423902-eed4a5ad8108?auto=format&fit=crop&w=1600&q=80") center/cover fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 41, 51, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 51, 0.015) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  z-index: 0;
}

a { color: inherit; }

.page-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(247, 244, 238, 0.86);
  border-bottom: 1px solid rgba(31, 41, 51, 0.06);
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(200, 94, 67, 0.16), rgba(95, 125, 82, 0.14));
  color: var(--terracotta);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-sub {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero {
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  padding: 3rem 1.25rem 2rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  gap: 1.5rem;
  align-items: end;
}

.hero-copy,
.hero-panel,
.resource-card,
.quote-strip,
.step,
.footer-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-copy {
  padding: 2rem;
  border-radius: var(--radius-xl);
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terracotta);
}

.eyebrow::before {
  content: "";
  width: 1.3rem;
  height: 1px;
  background: currentColor;
}

.hero h1,
.section-title,
.quote-text,
.step-title,
.card-title {
  font-family: "Cormorant Garamond", serif;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: 0;
}

.hero h1 em,
.section-title em {
  color: var(--terracotta);
  font-style: italic;
  font-weight: 500;
}

.hero-text {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

.button,
.button-secondary {
  min-height: 46px;
  padding: 0 1.1rem;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button-secondary:hover,
.card-link:hover { transform: translateY(-1px); }

.button {
  background: var(--ink);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid rgba(31, 41, 51, 0.14);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
  align-items: stretch;
}

.metric {
  flex: 1 1 11rem;
  min-width: 10rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(31, 41, 51, 0.08);
}

.metric-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.metric strong {
  font-size: 1rem;
  line-height: 1.4;
}

.hero-panel {
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  display: grid;
  gap: 1rem;
  align-self: stretch;
  min-width: 0;
}

.hero-image {
  min-height: 320px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(31, 41, 51, 0.12), rgba(31, 41, 51, 0.28)),
    url("https://images.unsplash.com/photo-1515377905703-c4788e51af15?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.hero-panel-copy {
  display: grid;
  gap: 0.8rem;
}

.hero-panel-copy h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.hero-panel-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.94rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: rgba(95, 125, 82, 0.12);
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 600;
}

.section {
  padding: 0 1.25rem 5rem;
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
  min-width: 0;
}

.section-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--moss);
}

.section-title {
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  line-height: 1.04;
  font-weight: 600;
  max-width: 12ch;
}

.section-copy {
  max-width: 34ch;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 0.95rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.resource-card {
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 0.9rem;
  min-height: 100%;
  min-width: 0;
}

.resource-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.icon-chip {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: rgba(31, 41, 51, 0.06);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.badge-terracotta { background: rgba(200, 94, 67, 0.12); color: var(--terracotta); }
.badge-moss { background: rgba(95, 125, 82, 0.12); color: var(--moss); }
.badge-gold { background: rgba(200, 154, 61, 0.14); color: #9a6b12; }

.card-title {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.05;
  font-weight: 600;
  text-wrap: balance;
}

.card-desc,
.card-notice {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
  font-size: 0.94rem;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.card-features li {
  display: flex;
  gap: 0.65rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.92rem;
}

.card-features li::before {
  content: "\2022";
  color: var(--gold);
  font-weight: 700;
}

.card-link {
  min-height: 46px;
  width: fit-content;
  max-width: 100%;
  padding: 0 1rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--ink);
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-align: center;
}

.card-link[data-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.card-link-unavailable {
  background: rgba(31, 41, 51, 0.08);
  color: var(--ink-soft);
  border: 1px solid rgba(31, 41, 51, 0.08);
  transform: none;
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(31, 41, 51, 0.04);
}

.quote-strip {
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: grid;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.quote-text {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
  font-weight: 500;
  max-width: 16ch;
}

.quote-sub {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 0.96rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step {
  border-radius: var(--radius-xl);
  padding: 1.4rem;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--terracotta);
  background: rgba(200, 94, 67, 0.1);
}

.step-title {
  margin: 1rem 0 0.55rem;
  font-size: 1.65rem;
  line-height: 1.05;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
  font-size: 0.94rem;
}

.footer {
  padding: 0 1.25rem 2rem;
}

.footer-panel {
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.footer-copy h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.footer-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  min-height: 42px;
  padding: 0 0.95rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(31, 41, 51, 0.1);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-copy,
.section-copy,
.quote-sub {
  min-width: 0;
}

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

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-inner,
  .resources-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .section-title,
  .section-copy,
  .quote-text {
    max-width: none;
  }

  .hero-copy,
  .hero-panel,
  .resource-card,
  .quote-strip,
  .step,
  .footer-panel {
    padding: 1.2rem;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .hero,
  .section,
  .footer {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .brand-sub { display: none; }

  .hero {
    min-height: auto;
    padding-top: 1.2rem;
    padding-bottom: 1.5rem;
  }

  .hero-copy {
    padding-top: 1.35rem;
    gap: 0.9rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
    max-width: 10ch;
  }

  .hero-text,
  .section-copy,
  .quote-sub,
  .step p,
  .card-desc,
  .card-features li {
    font-size: 0.96rem;
  }

  .hero-actions,
  .footer-links {
    width: 100%;
  }

  .button,
  .button-secondary,
  .topbar-link,
  .footer-links a {
    width: 100%;
  }

  .metric {
    min-width: 100%;
    padding: 0.85rem 0.95rem;
  }

  .resource-card {
    gap: 0.8rem;
  }

  .card-link {
    width: 100%;
  }

  .hero-image { min-height: 240px; }

  .footer-panel {
    padding-bottom: 1.2rem;
  }
}

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

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
