/* MatchTap landing page - mobile-first styles */

:root {
  --ink: #0E1A14;
  --ivory: #F5F4EE;
  --muted: #51615A;
  --line: #D9DBD1;
  --green: #25503A;
  --green-text: #2F6B47;
  --lime: #D6F23C;
  --sage: #A4C262;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-logo: 'Inter Tight', 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--lime); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section { padding: 80px 0 72px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }

/* ---------- Logo + nav ---------- */
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; color: #1E3A29; min-width: 0; }
.logo svg { flex: 0 0 auto; }
.logo__word { font-family: var(--font-logo); font-weight: 700; font-size: 19px; letter-spacing: -0.035em; line-height: 1; white-space: nowrap; }
.logo__dot { color: var(--sage); }
.logo--footer { color: var(--ivory); }
.logo__word--footer { font-size: 22px; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 244, 238, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid #E1E3DA;
}
.nav__inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nav__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 11px; border-radius: 9px; border: 1.5px solid #B9BEB1;
  text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; flex: 0 0 auto;
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; text-decoration: none; font-weight: 600; font-size: 17px; }
.btn--lime { height: 56px; padding: 0 28px; border-radius: 14px; background: var(--lime); color: var(--ink); }
.btn--green { height: 60px; padding: 0 20px; border-radius: 12px; background: var(--green); color: #fff; }
.btn--block { width: 100%; }
.btn--lime.btn--block { border-radius: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--ivory); min-height: 700px; display: flex; flex-direction: column; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,26,20,.55) 0%, rgba(14,26,20,.5) 30%, rgba(14,26,20,.9) 100%); }
.hero__inner { position: relative; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; flex: 1; display: flex; flex-direction: column; }
.hero__content { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px 0 56px; scroll-margin-top: 60px; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; max-width: 600px; }
.pill { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: rgba(214,242,60,.12); color: var(--lime); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.hero h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 9vw, 68px); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
.accent { display: block; color: var(--lime); }
.hero__sub { margin: 0; font-size: 18px; line-height: 1.55; color: #B4C4BA; max-width: 520px; text-wrap: pretty; }
.hero__cta { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.hero__cta .btn { align-self: flex-start; }
.fineprint-dark { font-size: 14px; color: #9DB0A4; line-height: 1.5; }

/* ---------- Typography helpers ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: #3B4A42; }
.eyebrow--lime { display: flex; align-items: center; gap: 12px; color: var(--lime); }
.eyebrow--small { font-size: 12px; color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); flex: 0 0 auto; }
.display { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 8vw, 60px); line-height: 1.02; letter-spacing: -0.025em; }
.display--light { font-size: clamp(40px, 9vw, 64px); }
.accent-green { display: block; color: var(--green-text); }
.lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.how__head { max-width: 720px; }
.fineprint { margin: 0; max-width: 820px; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- Accordions (native <details>) ---------- */
.acc-list { max-width: 820px; border-bottom: 1px solid var(--line); }
.acc { border-top: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 20px 0; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc__num { flex: 0 0 28px; font-size: 15px; letter-spacing: .08em; color: var(--muted); }
.acc__title { flex: 1 1 auto; min-width: 0; font-size: 20px; line-height: 1.35; font-weight: 500; }
.acc__title--q { font-size: 19px; font-weight: 400; }
.pm { position: relative; width: 22px; height: 22px; flex: 0 0 auto; color: var(--ink); }
.pm--green { color: var(--green-text); }
.pm::before, .pm::after { content: ""; position: absolute; left: 2px; right: 2px; top: 10px; height: 2px; border-radius: 2px; background: currentColor; }
.pm::after { transform: rotate(90deg); transition: transform .2s ease; }
.acc[open] .pm::after { transform: rotate(0); }
.acc__body { padding: 0 0 28px 44px; display: flex; flex-direction: column; gap: 18px; }
.acc__body--flush { padding-left: 0; padding-right: 40px; }
.acc__body p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.chip { display: flex; align-items: center; gap: 12px; color: var(--green-text); font-size: 15px; line-height: 1.4; }
.chip svg { flex: 0 0 auto; }

/* ---------- Help shape + form ---------- */
.shape { background: var(--green); color: var(--ivory); padding: 88px 0; }
.shape__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 48px; align-items: start; }
.shape__lede { margin: 0; font-size: 18px; line-height: 1.65; color: #D3E1D8; max-width: 520px; text-wrap: pretty; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.checks li { display: flex; align-items: center; gap: 14px; }
.checks svg { flex: 0 0 auto; color: var(--lime); }

.card { scroll-margin-top: 84px; background: #F8F7F1; color: var(--ink); border-radius: 24px; padding: 32px 24px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 24px 48px rgba(0,0,0,.2); }
.card__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 7vw, 42px); line-height: 1.05; letter-spacing: -0.025em; }
.card__sub { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.card__note { text-align: center; font-size: 14px; line-height: 1.55; color: var(--muted); }

.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 16px; font-weight: 600; }
.optional { font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 56px; padding: 0 16px; border-radius: 12px;
  border: 1px solid #CFD3C7; background: #FFFEFA; color: var(--ink); font-size: 17px;
}
.field input::placeholder { color: #7B8C82; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 48px; }
.select svg { position: absolute; right: 16px; top: 19px; pointer-events: none; color: var(--green-text); }
.consent { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; line-height: 1.55; color: var(--muted); cursor: pointer; min-height: 44px; }
.consent input { flex: 0 0 auto; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--green); }
.error { font-size: 14px; color: #A33A22; }
.error--dark { color: #F2B8A8; }
.success { padding: 20px; border-radius: 14px; font-size: 17px; line-height: 1.55; }
.success--light { background: #E7F0C8; color: var(--ink); }
.success--dark { background: rgba(214,242,60,.12); border: 1px solid rgba(214,242,60,.4); color: var(--ivory); font-size: 16px; }
.success--dark strong { color: var(--lime); }

/* ---------- FAQ ---------- */
.faq { padding: 80px 0 88px; }

/* ---------- Footer / contact ---------- */
.footer { background: var(--ink); color: #9DB0A4; padding: 72px 0 40px; scroll-margin-top: 60px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 48px; align-items: start; }
.footer__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 7vw, 44px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ivory); }
.footer__lede { margin: 0; font-size: 17px; line-height: 1.6; color: #B4C4BA; max-width: 460px; }
.contact__toggle { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 20px; border-radius: 12px; border: 1px solid rgba(214,242,60,.5); color: var(--lime); font-size: 17px; font-weight: 600; cursor: pointer; }
.contact__toggle::-webkit-details-marker { display: none; }
.contact[open] .contact__toggle { margin-bottom: 24px; }
.pm--lime { color: var(--lime); }
.contact[open] .pm::after { transform: rotate(0); }
.form--dark { gap: 16px; }
.form--dark .field { gap: 8px; }
.form--dark .field label { font-size: 15px; color: var(--ivory); }
.form--dark .field input, .form--dark .field textarea { height: 52px; border: 1px solid rgba(245,244,238,.25); background: rgba(245,244,238,.08); color: var(--ivory); }
.form--dark .field textarea { height: auto; min-height: 128px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(245,244,238,.12); display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; }
.footer__legal .logo { align-self: flex-start; }
