:root {
  --ink: #22180f;
  --ink-soft: #4a3d31;
  --marigold: #d97b1e;
  --marigold-deep: #b25f10;
  --cream: #fbf5ea;
  --cream-deep: #f2e6d3;
  --rose: #8c2f39;
  --line: rgba(34, 24, 15, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Segoe UI", sans-serif;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.4vw, 4.4rem);

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(34, 24, 15, 0.06), 0 4px 14px rgba(34, 24, 15, 0.06);
  --shadow-md: 0 2px 6px rgba(34, 24, 15, 0.07), 0 14px 34px rgba(34, 24, 15, 0.1);
  --shadow-lg: 0 4px 10px rgba(34, 24, 15, 0.08), 0 30px 70px rgba(34, 24, 15, 0.16);
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: 0.95rem; letter-spacing: 0.02em; }

p { margin: 0 0 1rem; }

a { color: var(--marigold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--marigold);
  color: #fff8ee;
  box-shadow: 0 2px 0 var(--marigold-deep), 0 10px 24px rgba(217, 123, 30, 0.28);
}
.btn-primary:hover {
  background: var(--marigold-deep);
  transform: translateY(-2px);
  box-shadow: 0 2px 0 #8f4b0b, 0 16px 30px rgba(217, 123, 30, 0.32);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--cream-deep);
  border-color: rgba(34, 24, 15, 0.28);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 234, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(34, 24, 15, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo-mark { color: var(--rose); flex: none; }

.nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav a {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
  position: relative;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--marigold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav a:hover::after { transform: scaleX(1); }

.header-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(217, 123, 30, 0.16), transparent 65%),
    radial-gradient(700px 500px at 0% 20%, rgba(140, 47, 57, 0.09), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  overflow: hidden;
}
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(45deg, rgba(34, 24, 15, 0.03) 0 1px, transparent 1px 7px);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 85%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
}

.hero h1 { max-width: 15ch; }
.hero h1 em {
  font-style: italic;
  color: var(--rose);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 1.4rem 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.micro {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

.hero-visual {
  position: relative;
  padding-bottom: 1.5rem;
}

.photo-frame {
  margin: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 120px var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255, 255, 255, 0.7);
  transform: rotate(-1.4deg);
}
.photo-frame img {
  width: 100%;
  height: clamp(320px, 52vw, 520px);
  object-fit: cover;
}

.match-card {
  position: absolute;
  left: clamp(-0.5rem, -1vw, 0rem);
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(251, 245, 234, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
}
.avatars { display: flex; }
.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff8ee;
  border: 2px solid var(--cream);
}
.avatars .av + .av { margin-left: -12px; }
.av-1 { background: var(--rose); }
.av-2 { background: var(--marigold-deep); }
.av-3 { background: var(--marigold); flex: none; }
.av-4 { background: var(--rose); flex: none; }

.match-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
}
.match-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

.stat-chip {
  position: absolute;
  right: 0;
  top: -1rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 16px;
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-md);
  display: grid;
  line-height: 1.25;
}
.stat-chip strong { font-family: var(--font-display); font-size: 1.15rem; }
.stat-chip span { font-size: 0.74rem; opacity: 0.8; }

/* ---------- Proof ---------- */
.proof {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
}
.proof-grid {
  display: grid;
  gap: 1.6rem;
}
.proof-item {
  display: grid;
  gap: 0.15rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(217, 123, 30, 0.6);
}
.proof-item strong {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
  color: #f6d7a8;
}
.proof-item span {
  font-size: 0.88rem;
  color: rgba(251, 245, 234, 0.75);
  line-height: 1.5;
}

/* ---------- Section heads ---------- */
.section-head { max-width: 34ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-top: 0; }
.section-sub { color: var(--ink-soft); margin-top: 0.9rem; }

/* ---------- How ---------- */
.how { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.how-grid {
  display: grid;
  gap: 1.25rem;
}
.how-step {
  position: relative;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-num {
  position: absolute;
  top: -0.9rem;
  left: 1.6rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--marigold);
  color: #fff8ee;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.how-step h3 { margin-bottom: 0.6rem; }
.how-step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Benefits ---------- */
.benefits {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.benefits-grid {
  display: grid;
  gap: 1.25rem;
}
.bento {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #fffdf8, var(--cream-deep));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.bento h3 { margin-bottom: 0.6rem; }
.bento p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 44ch; }

.bento-large {
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(140, 47, 57, 0.16), transparent 70%),
    linear-gradient(160deg, #fffdf8, var(--cream-deep));
}
.bento-large h3 { font-size: var(--step-2); max-width: 18ch; }
.bento-art {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 200px;
  color: var(--rose);
  opacity: 0.22;
}

/* ---------- Stories ---------- */
.stories {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background:
    radial-gradient(700px 400px at 10% 0%, rgba(217, 123, 30, 0.12), transparent 65%),
    var(--cream-deep);
}
.stories-grid {
  display: grid;
  gap: 1.25rem;
}
.story {
  margin: 0;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.story p {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.story footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.story footer strong { color: var(--ink); }

/* ---------- Plans ---------- */
.plans { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.plans-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
.plan {
  position: relative;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.plan h3 { margin-bottom: 0.2rem; }
.price { display: flex; align-items: baseline; gap: 0.35rem; margin: 0 0 0.8rem; }
.amount {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.period { font-size: 0.88rem; color: var(--ink-soft); }
.plan ul {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.plan li {
  position: relative;
  padding-left: 1.4rem;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--marigold);
  transform: rotate(45deg);
}
.plan .btn { margin-top: auto; }

.plan-featured {
  background: linear-gradient(170deg, #fffdf8, #fbeedd);
  border-color: rgba(217, 123, 30, 0.45);
  box-shadow: var(--shadow-md);
}
.plan-tag {
  position: absolute;
  top: -0.85rem;
  right: 1.4rem;
  background: var(--rose);
  color: #fff8ee;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--cream-deep);
}
.faq-grid { display: grid; gap: 1.5rem; }
.faq-list { display: grid; gap: 0.8rem; }
details {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--marigold-deep);
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- Closing ---------- */
.closing {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background:
    radial-gradient(600px 400px at 80% 10%, rgba(217, 123, 30, 0.25), transparent 60%),
    var(--ink);
  color: var(--cream);
}
.closing-inner { max-width: 640px; }
.closing h2 { color: var(--cream); }
.closing p { color: rgba(251, 245, 234, 0.78); margin-top: 1rem; }

.apply-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.apply-form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 245, 234, 0.25);
  background: rgba(251, 245, 234, 0.08);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.apply-form input::placeholder { color: rgba(251, 245, 234, 0.5); }
.apply-form input:focus-visible { outline-color: var(--marigold); }

.form-note {
  min-height: 1.4rem;
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
}
.form-note.is-error { color: #ffb4a8; }
.form-note.is-success { color: #f6d7a8; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1a120b;
  color: rgba(251, 245, 234, 0.72);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
.footer-brand .logo { color: var(--cream); }
.footer-brand p {
  margin-top: 1rem;
  max-width: 38ch;
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.footer-nav h4 {
  color: var(--cream);
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-nav a {
  display: block;
  color: rgba(251, 245, 234, 0.72);
  font-size: 0.9rem;
  padding: 0.18rem 0;
}
.footer-nav a:hover { color: var(--marigold); text-decoration: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(251, 245, 234, 0.12);
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.stagger {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}
.stagger:nth-child(1) { animation-delay: 0.05s; }
.stagger:nth-child(2) { animation-delay: 0.14s; }
.stagger:nth-child(3) { animation-delay: 0.23s; }
.stagger:nth-child(4) { animation-delay: 0.32s; }
.stagger:nth-child(5) { animation-delay: 0.41s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stagger, .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .btn, .how-step, .nav a::after, summary::after { transition: none; }
  .btn:hover, .how-step:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "large large small-a"
      "large large small-b"
      "wide wide wide";
  }
  .bento-large { grid-area: large; }
  .benefits-grid .bento:nth-child(2) { grid-area: small-a; }
  .benefits-grid .bento:nth-child(3) { grid-area: small-b; }
  .bento-wide { grid-area: wide; }
  .plans-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-featured { transform: translateY(-10px); }
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: start; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1.2rem 1rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .header-inner { position: relative; }
  .header-cta { margin-left: auto; }
  .nav-toggle { display: block; margin-left: 0.25rem; }
}

@media (max-width: 420px) {
  .header-cta { display: none; }
  .stat-chip { top: -0.6rem; padding: 0.55rem 0.8rem; }
  .match-card { left: 0; right: auto; padding: 0.6rem 0.8rem; }
}