:root {
  color-scheme: light;
  --ink: #18231f;
  --muted: #5e6a62;
  --paper: #f5f7f1;
  --surface: #ffffff;
  --soft: #e4eadf;
  --line: rgba(24, 35, 31, 0.14);
  --brand: #1e6b58;
  --brand-dark: #124536;
  --accent: #c86f4a;
  --accent-soft: #f3c9b9;
  --shadow: 0 24px 70px rgba(28, 35, 31, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--brand-dark);
  border-radius: 8px;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(245, 247, 241, 0.88);
  border-bottom: 1px solid rgba(24, 35, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(30, 107, 88, 0.25);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: #31433c;
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a,
.site-footer a {
  text-underline-offset: 5px;
}

.site-nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(200, 111, 74, 0.45);
  outline-offset: 3px;
}

.header-action,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 750;
  white-space: nowrap;
}

.header-action {
  color: white;
  background: var(--brand-dark);
}

.button.primary {
  color: white;
  background: var(--brand);
  box-shadow: 0 18px 36px rgba(18, 69, 54, 0.24);
}

.button.secondary {
  color: #fdf8ef;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

.button:hover,
.header-action:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 999px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(720px, 76svh);
  overflow: hidden;
  background: #26332f;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background-image: image-set(
    url("assets/matchee-hero.webp") type("image/webp"),
    url("assets/matchee-hero.png") type("image/png")
  );
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 32, 27, 0.82) 0%, rgba(16, 32, 27, 0.62) 38%, rgba(16, 32, 27, 0.12) 72%),
    linear-gradient(0deg, rgba(16, 32, 27, 0.24), rgba(16, 32, 27, 0.04));
}

.hero-content {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 10vh, 112px) 0 clamp(36px, 7vh, 76px);
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd9bd;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: 8.8rem;
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 3.6rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-value {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-value li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
  width: min(640px, 100%);
  margin: clamp(34px, 8vh, 78px) 0 0;
}

.hero-stats div {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-stats dt {
  font-size: 1.65rem;
  font-weight: 850;
}

.hero-stats dd {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  width: min(var(--max), calc(100% - 36px));
  margin: -28px auto 0;
  position: relative;
  z-index: 5;
  padding: 22px clamp(18px, 4vw, 34px);
  color: white;
  background: var(--brand-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.proof-strip p {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 760;
}

.proof-strip p:first-child {
  color: #ffd8bc;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 11vw, 128px) 0 0;
}

section[id] {
  scroll-margin-top: 92px;
}

.section-heading {
  max-width: 820px;
}

.section-heading > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-button {
  margin-top: 28px;
}

.problem-grid,
.offer-grid,
.date-grid,
.pricing-grid,
.trust-grid,
.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

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

.offer-grid,
.date-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-grid article,
.offer-grid article,
.date-card,
.step,
.price-card,
.partner-panel article,
.trust-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.problem-grid article {
  padding: 24px;
}

.offer-grid article,
.date-card {
  padding: 24px;
}

.offer-grid span,
.date-tag {
  display: inline-flex;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.date-card {
  min-height: 260px;
  display: grid;
  align-content: start;
}

.date-card p:not(.date-tag) {
  color: var(--muted);
}

.date-card strong {
  display: block;
  margin-top: 16px;
  color: var(--brand-dark);
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 20px;
  color: white;
  background: var(--brand-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.inline-cta p {
  margin: 0;
  font-weight: 750;
}

.invitation-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.82fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.sample-invite {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px);
  color: white;
  background:
    linear-gradient(135deg, rgba(200, 111, 74, 0.22), rgba(200, 111, 74, 0) 44%),
    #143f34;
  box-shadow: var(--shadow);
}

.invite-kicker {
  margin: 0 0 18px;
  color: #ffd8bc;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.invite-head span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 760;
}

.invite-head strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
}

.invite-lines {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.invite-lines p {
  margin: 0;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.invite-lines span {
  display: block;
  margin-bottom: 4px;
  color: #ffd8bc;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.invite-commitment {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.invite-commitment strong {
  display: block;
}

.invite-commitment p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.muted-cta {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.metric {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 24px;
  color: var(--brand-dark);
  font-size: 1.85rem;
  font-weight: 880;
}

.problem-grid p,
.offer-grid p,
.step p,
.price-card li,
.partner-panel p,
.trust-grid p,
.pilot-copy p,
.form-note {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.step {
  min-height: 245px;
  padding: 24px;
}

.step span {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--accent);
  font-weight: 850;
}

.pricing-section {
  padding-top: clamp(82px, 12vw, 144px);
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.price-card {
  position: relative;
  min-height: 385px;
  padding: 24px;
}

.price-card.featured {
  background: #143f34;
  color: white;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 6px 10px;
  color: #173f35;
  background: #f8dbc4;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.price {
  margin: 18px 0 22px;
  font-size: 2.45rem;
  font-weight: 880;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.featured .price span,
.featured li {
  color: rgba(255, 255, 255, 0.78);
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 20px;
}

.price-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.partner-section {
  width: 100%;
  max-width: none;
  margin-top: clamp(72px, 11vw, 128px);
  padding: clamp(72px, 10vw, 110px) 0;
  background: #dfe9e2;
}

.partner-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 76px);
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  align-items: start;
}

.partner-panel {
  display: grid;
  gap: 14px;
}

.partner-panel article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.partner-panel span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.partner-panel strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1.1;
}

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

.trust-grid article {
  padding: 24px;
  min-height: 190px;
}

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

.faq-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.pilot-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  margin-bottom: clamp(72px, 10vw, 112px);
}

.waitlist-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.waitlist-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 780;
}

.hidden-field {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.waitlist-form input,
.waitlist-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(24, 35, 31, 0.2);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fbfcf7;
}

.waitlist-form select {
  margin-top: 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.pilot-promises {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

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

.pilot-promises li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.waitlist-form input:focus,
.waitlist-form select:focus {
  outline: 3px solid rgba(30, 107, 88, 0.2);
  border-color: var(--brand);
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.form-note.success {
  color: var(--brand-dark);
  font-weight: 750;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.legal-main {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.legal-main > .brand {
  margin-bottom: clamp(54px, 9vw, 86px);
}

.legal-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  max-width: 740px;
  font-size: 3.2rem;
  line-height: 1;
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
}

.legal-content p + p {
  margin-top: 12px;
}

.legal-content a {
  color: var(--brand-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-date {
  margin-top: 18px !important;
}

.success-page {
  min-height: 100svh;
  display: grid;
  align-content: center;
}

.success-page .button {
  margin-top: 28px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .header-action {
    display: none;
  }

  .site-header.nav-open {
    grid-template-columns: auto auto;
  }

  .site-header.nav-open .site-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding-top: 10px;
  }

  .site-header.nav-open .site-nav a {
    padding: 13px 0;
    border-top: 1px solid var(--line);
  }

  .hero {
    min-height: min(710px, 74svh);
  }

  h1 {
    font-size: 6.8rem;
  }

  h2 {
    font-size: 2.85rem;
  }

  .legal-content h1 {
    font-size: 2.6rem;
  }

  .hero-bg {
    background-position: 46% center;
  }

  .problem-grid,
  .offer-grid,
  .date-grid,
  .pricing-grid,
  .trust-grid,
  .faq-list,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-layout,
  .invitation-layout,
  .pilot-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 64px;
    padding: 10px 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: min(100% - 30px, var(--max));
    padding: 44px 0 30px;
  }

  .hero-bg {
    background-position: 28% center;
  }

  h1 {
    font-size: 4.1rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .legal-content h1 {
    font-size: 2.1rem;
  }

  .hero-lead {
    max-width: 34rem;
    font-size: 1.08rem;
  }

  .hero-actions,
  .form-row,
  .field-grid,
  .inline-cta {
    grid-template-columns: 1fr;
  }

  .inline-cta {
    display: grid;
  }

  .hero-actions {
    display: grid;
    max-width: 360px;
    margin-top: 22px;
  }

  .section-button {
    width: 100%;
    max-width: 360px;
  }

  .hero-value {
    display: none;
  }

  .hero-stats,
  .problem-grid,
  .offer-grid,
  .date-grid,
  .pricing-grid,
  .trust-grid,
  .faq-list,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 360px;
    margin-top: 24px;
    gap: 6px;
  }

  .hero-stats div {
    padding: 10px;
  }

  .hero-stats dt {
    font-size: 1.08rem;
  }

  .hero-stats dd {
    font-size: 0.74rem;
    line-height: 1.2;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .partner-panel strong {
    font-size: 1.28rem;
  }

  .proof-strip {
    width: min(100% - 30px, var(--max));
    margin-top: 0;
  }

  .section,
  .partner-layout,
  .pilot-section,
  .site-footer {
    width: min(100% - 30px, var(--max));
  }

  .section {
    padding-top: 64px;
  }

  .step,
  .price-card {
    min-height: auto;
  }

  .step span {
    margin-bottom: 28px;
  }

  .pilot-section {
    margin-bottom: 72px;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

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