:root {
  color-scheme: light;
  --bg: #fbfcf8;
  --surface: #ffffff;
  --surface-muted: #f3f7ef;
  --ink: #16231f;
  --muted: #5d6863;
  --line: #dce4dd;
  --primary: #0f766e;
  --primary-strong: #134e4a;
  --secondary: #1e3a8a;
  --accent: #f2c94c;
  --danger: #b45309;
  --gradient-hero: linear-gradient(135deg, #0f766e 0%, #1e3a8a 100%);
  --gradient-surface: linear-gradient(180deg, #fbfcf8 0%, #edf7ee 100%);
  --gradient-glow: radial-gradient(60% 60% at 50% 0%, rgba(242, 201, 76, .28), transparent 70%);
  --shadow-card: 0 1px 2px rgba(22, 35, 31, .04), 0 14px 36px -18px rgba(22, 35, 31, .16);
  --shadow-elegant: 0 24px 70px -28px rgba(30, 58, 138, .35);
  --shadow-glow: 0 12px 42px -14px rgba(15, 118, 110, .42);
  --font-display: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

svg {
  max-width: 100%;
}

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 1rem;
  padding: .75rem 1rem;
  position: absolute;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .72);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header > div,
.site-footer > div,
body:not(.home-page) main {
  margin: 0 auto;
  max-width: 78rem;
  padding: 1.25rem 1.5rem;
}

.site-header > div {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 750;
  gap: .6rem;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand span span {
  color: var(--primary);
}

.brand-mark {
  background: var(--gradient-hero);
  border-radius: .85rem;
  box-shadow: var(--shadow-glow);
  color: #fff;
  display: inline-grid;
  height: 2.25rem;
  place-items: center;
  width: 2.25rem;
}

.brand-mark .icon {
  height: 1.25rem;
  width: 1.25rem;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
}

.nav a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 650;
  min-height: 2.5rem;
  padding: .55rem .35rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  gap: .5rem;
  justify-content: center;
  min-height: 2.75rem;
  padding: .75rem 1.25rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary,
.site-header .button {
  background: var(--gradient-hero);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.button-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.button-light {
  background: #fff;
  color: var(--ink);
}

.icon {
  flex: 0 0 auto;
  height: 1.1rem;
  width: 1.1rem;
}

.home-page main {
  margin: 0;
  max-width: none;
  padding: 0;
}

.referral-page main {
  margin: 0;
  max-width: none;
  padding: 0;
}

.home-hero {
  overflow: hidden;
  position: relative;
}

.hero-glow {
  background: var(--gradient-glow);
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-grid {
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .9fr);
  margin: 0 auto;
  max-width: 78rem;
  padding: 6rem 1.5rem 5rem;
  position: relative;
}

.hero-copy {
  animation: fade-up .7s cubic-bezier(.16, 1, .3, 1) both;
}

.pill {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  color: var(--muted);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 750;
  gap: .45rem;
  margin: 0;
  padding: .45rem .75rem;
}

.pill .icon {
  color: var(--primary);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

.home-hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.5rem);
  line-height: 1.04;
  margin: 1.35rem 0 1.3rem;
  max-width: 56rem;
}

.home-hero h1 span,
.section-intro h2 span,
.metric-grid strong {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.consent-note {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 42rem;
}

.consent-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: .2rem;
}

.hero-points {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 2rem 0 0;
  max-width: 44rem;
  padding: 0;
}

.hero-points li {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: .9rem;
  gap: .45rem;
}

.hero-points .icon {
  color: var(--primary);
}

.mockup {
  align-self: center;
  animation: fade-up .7s cubic-bezier(.16, 1, .3, 1) .08s both;
  position: relative;
}

.mockup::before {
  background: var(--gradient-hero);
  border-radius: 2rem;
  content: "";
  filter: blur(42px);
  inset: -1.5rem;
  opacity: .18;
  position: absolute;
}

.mockup-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.45rem;
  box-shadow: var(--shadow-elegant);
  padding: 1.25rem;
  position: relative;
}

.mockup-top {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: .5rem;
  padding-bottom: 1rem;
}

.mockup-top span {
  border-radius: 999px;
  display: block;
  height: .62rem;
  width: .62rem;
}

.mockup-top span:nth-child(1) {
  background: #f87171;
}

.mockup-top span:nth-child(2) {
  background: var(--accent);
}

.mockup-top span:nth-child(3) {
  background: var(--primary);
}

.mockup-top small {
  color: var(--muted);
  flex: 1;
  font-size: .75rem;
  text-align: center;
}

.mockup-top .icon {
  color: var(--primary);
}

.mockup-body {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.4fr .9fr;
  padding-top: 1.25rem;
}

.mockup-main,
.mockup-side {
  display: grid;
  gap: .85rem;
}

.score-card,
.finding,
.checklist {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.score-card {
  display: grid;
  gap: .85rem;
}

.score-card > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.score-card small,
.status-panel small,
.checklist small {
  color: var(--muted);
  display: block;
  font-size: .75rem;
}

.score-card span {
  background: rgba(15, 118, 110, .1);
  border-radius: 999px;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 750;
  padding: .35rem .65rem;
}

.progress {
  background: var(--line);
  border-radius: 999px;
  height: .5rem;
  overflow: hidden;
}

.progress i {
  background: var(--gradient-hero);
  display: block;
  height: 100%;
  width: 78%;
}

.finding {
  align-items: flex-start;
  display: flex;
  font-size: .9rem;
  gap: .7rem;
}

.finding .icon {
  color: var(--primary);
  margin-top: .12rem;
}

.status-panel {
  background: var(--gradient-hero);
  border-radius: 1rem;
  box-shadow: var(--shadow-glow);
  color: #fff;
  padding: 1rem;
}

.status-panel strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: .25rem 0 .5rem;
}

.status-panel span {
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
}

.checklist p {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: .6rem 0 0;
}

.checklist .icon {
  color: var(--primary);
}

.band {
  margin: 0 auto;
  max-width: 78rem;
  padding: 5.5rem 1.5rem;
}

.band-muted {
  background: var(--gradient-surface);
  max-width: none;
}

.band-muted > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 78rem;
}

.section-intro {
  margin: 0 auto 3.5rem;
  max-width: 48rem;
  text-align: center;
}

.eyebrow,
.label {
  color: var(--primary);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 .7rem;
  text-transform: uppercase;
}

.section-intro h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0;
}

.section-intro > p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 1rem auto 0;
  max-width: 42rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-card,
.step-card,
.access-card,
.proof-grid article,
.comparison article,
.metric-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: var(--shadow-card);
}

.feature-card {
  padding: 1.4rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover,
.step-card:hover,
.proof-grid article:hover {
  box-shadow: var(--shadow-elegant);
  transform: translateY(-3px);
}

.icon-box {
  align-items: center;
  background: rgba(15, 118, 110, .1);
  border-radius: .9rem;
  color: var(--primary);
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  width: 2.75rem;
}

.feature-card h3,
.step-card h3,
.access-card h3,
.proof-grid h3,
.comparison h3 {
  font-size: 1.1rem;
  line-height: 1.25;
  margin: 1rem 0 .45rem;
}

.feature-card p,
.step-card p,
.access-card p,
.proof-grid p,
.comparison li,
.referral-callout p,
.faq-list p {
  color: var(--muted);
}

.step-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.step-grid.three-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  padding: 1.35rem;
}

.step-card > div {
  align-items: center;
  display: flex;
  gap: .75rem;
}

.step-card small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
}

.comparison {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison article {
  padding: 2rem;
}

.comparison-featured {
  background: var(--gradient-hero) !important;
  border-color: rgba(15, 118, 110, .2) !important;
  color: #fff;
}

.comparison-featured .label,
.comparison-featured li {
  color: rgba(255, 255, 255, .82);
}

.comparison-featured h3 {
  color: #fff;
}

.label-danger {
  color: var(--danger);
}

.comparison ul,
.access-card ul {
  display: grid;
  gap: .8rem;
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.comparison li,
.access-card li {
  align-items: center;
  display: flex;
  gap: .65rem;
}

.comparison b {
  align-items: center;
  background: rgba(180, 83, 9, .12);
  border-radius: 999px;
  color: var(--danger);
  display: inline-flex;
  font-size: .85rem;
  height: 1.55rem;
  justify-content: center;
  width: 1.55rem;
}

.referral-hero {
  overflow: hidden;
  position: relative;
}

.referral-hero-grid {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr);
  margin: 0 auto;
  max-width: 78rem;
  padding: 6rem 1.5rem 5rem;
  position: relative;
}

.referral-hero h1 {
  font-size: clamp(2.45rem, 5vw, 4.25rem);
  line-height: 1.05;
  margin: 1.35rem 0 1.3rem;
  max-width: 58rem;
}

.referral-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-elegant);
  padding: 2rem;
}

.referral-panel > p:last-child {
  color: var(--muted);
  margin: 1.25rem 0 0;
}

.referral-score {
  align-items: center;
  background: var(--gradient-surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: grid;
  gap: .8rem;
  grid-template-columns: auto 1fr;
  margin-top: 1rem;
  padding: 1rem;
}

.referral-score strong {
  color: var(--primary-strong);
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}

.referral-score span {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.35;
}

.referral-score.muted {
  background: #f8fafc;
}

.ladder-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: var(--shadow-card);
  margin: 0 auto;
  max-width: 58rem;
  overflow: hidden;
}

.ladder-table > div {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 1fr 1.4fr;
}

.ladder-table span {
  border-top: 1px solid var(--line);
  padding: 1rem 1.25rem;
}

.ladder-table .ladder-head {
  background: var(--primary-strong);
  color: #fff;
  font-weight: 850;
}

.ladder-table .ladder-head span {
  border-top: 0;
}

.source-note {
  color: var(--muted);
  font-size: .9rem;
  margin: 1rem auto 0;
  max-width: 58rem;
}

.rules-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 78rem;
}

.rules-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: var(--shadow-card);
  padding: 1.35rem;
}

.rules-grid h3 {
  align-items: center;
  display: flex;
  font-size: 1.05rem;
  gap: .55rem;
  line-height: 1.25;
  margin: 0 0 .5rem;
}

.rules-grid h3 .icon {
  color: var(--primary);
}

.rules-grid p {
  color: var(--muted);
  margin: 0;
}

.metric-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1.75rem;
}

.metric-grid article {
  padding: 1.45rem;
  text-align: center;
}

.metric-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.metric-grid span {
  color: var(--muted);
  display: block;
  font-size: .88rem;
  margin-top: .35rem;
}

.access-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.access-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.access-card.featured {
  border-color: rgba(15, 118, 110, .35);
  box-shadow: var(--shadow-elegant);
  outline: 1px solid rgba(15, 118, 110, .15);
}

.access-card .button {
  margin-top: auto;
}

.access-card li .icon {
  color: var(--primary);
}

.referral-callout {
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(15, 118, 110, .25);
  border-radius: 1.35rem;
  box-shadow: var(--shadow-elegant);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: auto 1fr auto;
  margin-top: 2rem;
  padding: 2rem;
}

.referral-callout h3,
.referral-callout p {
  margin: .2rem 0;
}

.proof-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-grid article {
  padding: 1.5rem;
}

.stars {
  color: #d99a00;
  font-size: .95rem;
  letter-spacing: .05rem;
}

.faq-list {
  display: grid;
  gap: .9rem;
  margin: 0 auto;
  max-width: 48rem;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  padding: 1.05rem 1.25rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  margin-bottom: 0;
}

.final-cta {
  padding: 5.5rem 1.5rem;
}

.final-cta > div {
  background: var(--gradient-hero);
  border-radius: 2rem;
  box-shadow: var(--shadow-elegant);
  color: #fff;
  margin: 0 auto;
  max-width: 64rem;
  overflow: hidden;
  padding: 4rem 2rem;
  position: relative;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin: 0 auto;
  max-width: 48rem;
}

.final-cta p {
  color: rgba(255, 255, 255, .86);
  font-size: 1.05rem;
  margin: 1.25rem auto 0;
  max-width: 42rem;
}

.final-cta .button {
  margin-top: 2rem;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 0;
}

.site-footer p {
  margin: 0 0 1rem;
}

main > .hero {
  padding: 4rem 0 2.5rem;
}

main > .hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
  margin: .75rem 0 1rem;
  max-width: 56rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 2rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .8rem;
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
}

.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: .8rem;
  color: var(--danger);
  padding: 1rem;
}

.post-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.post-meta {
  color: var(--muted);
  font-size: .9rem;
}

.section-links {
  margin: 1rem 0 0;
}

.section-links a {
  font-weight: 750;
}

.post-body {
  max-width: 52rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1119px) {
  .hero-grid,
  .referral-hero-grid,
  .mockup-body,
  .comparison,
  .access-grid,
  .referral-callout {
    grid-template-columns: 1fr;
  }

  .card-grid.five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step-grid,
  .step-grid.three-steps,
  .metric-grid,
  .proof-grid,
  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header .button {
    width: 100%;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    padding-left: 0;
  }

  .hero-grid {
    gap: 2.5rem;
    padding-top: 3rem;
  }

  .referral-hero-grid {
    gap: 2rem;
    padding-top: 3.5rem;
  }

  .hero-points,
  .card-grid.three,
  .card-grid.five,
  .step-grid,
  .step-grid.three-steps,
  .metric-grid,
  .proof-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .ladder-table,
  .ladder-table > div {
    display: block;
  }

  .ladder-table .ladder-head {
    display: none;
  }

  .ladder-table span {
    border-top: 0;
    display: block;
    padding: .45rem 1rem;
  }

  .ladder-table > div {
    border-top: 1px solid var(--line);
    padding: .8rem 0;
  }

  .ladder-table > div:first-child + div {
    border-top: 0;
  }

  .ladder-table > div span:first-child {
    color: var(--primary-strong);
    font-weight: 850;
  }

  .band,
  .final-cta {
    padding-bottom: 4rem;
    padding-top: 4rem;
  }
}

@media (max-width: 520px) {
  .site-header > div,
  .site-footer > div,
  body:not(.home-page) main,
  .hero-grid,
  .referral-hero-grid,
  .band,
  .final-cta {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-actions .button,
  .final-cta .button {
    width: 100%;
  }

  .mockup-window,
  .comparison article,
  .access-card,
  .referral-callout,
  .final-cta > div {
    border-radius: 1rem;
  }
}
