/* Mate Maker — pre-launch landing page */
:root {
  --forest: #17211B;
  --brown: #24160B;
  --espresso: #221912;
  --moss: #2F3B2C;
  --amber: #C8925A;
  --amber-hover: #DDB07F;
  --on-amber: #1A120C;
  --sage: #A9C29A;
  --text: #F2EADF;
  --text-2: #D6CAB8;
  --muted: #B9AA95;
  --line: rgba(242, 234, 223, 0.1);
  --serif: Fraunces, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--forest);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
img { display: block; }
a { color: var(--amber); }
a:hover { color: var(--amber-hover); }
:focus-visible { outline: 3px solid var(--amber-hover); 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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--amber); color: var(--on-amber); padding: 12px 18px;
  border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--on-amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-amber { background: var(--amber); color: var(--on-amber); }
.btn-amber:hover { background: var(--amber-hover); color: var(--on-amber); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(200,146,90,.35); }
.btn-ghost { color: var(--text); border-color: rgba(242,234,223,.3); font-weight: 500; }
.btn-ghost:hover { color: var(--text); border-color: rgba(242,234,223,.6); transform: translateY(-2px); }
.btn-sm { font-size: 15px; }
.btn-lg { font-size: 17px; padding: 16px 30px; }
.btn-block { width: 100%; margin-top: auto; padding: 14px 24px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  max-width: 1200px; margin: 0 auto; padding: 24px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--text); text-decoration: none; letter-spacing: .2px; }
.logo:hover { color: var(--text); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; }
.nav-link { color: var(--text-2); text-decoration: none; padding: 12px 0; }
.nav-link:hover { color: var(--text); }

/* ---------- Hero + photo wall ---------- */
/* overflow: clip (not hidden) so links/focus can never scroll the hero internally */
.hero-wrap { position: relative; overflow: hidden; overflow: clip; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.photo-wall {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  opacity: .5; transform: rotate(-4deg) scale(1.12);
}
.photo-row { display: flex; gap: 18px; width: max-content; animation: mmScroll 90s linear infinite; }
.photo-row.rev { animation-direction: reverse; animation-duration: 110s; }
.photo {
  width: 230px; height: 290px; flex: none; border-radius: 20px; overflow: hidden; position: relative;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,33,27,0) 55%, rgba(23,33,27,.75) 100%);
}
.photo span {
  position: absolute; left: 18px; bottom: 16px; z-index: 1;
  font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--text);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,33,27,.72) 0%, rgba(23,33,27,.55) 40%, rgba(23,33,27,.8) 80%, #17211B 100%);
}
.hero-content { position: relative; z-index: 1; flex: 1; display: flex; }

/* Top padding clears the 96px header; content is centred in the space left */
.hero {
  flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(96px, 13vh, 120px) 32px clamp(20px, 4vh, 40px);
  display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 48px;
}
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: clamp(14px, 2.6vh, 24px); }
.eyebrow { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--amber); font-weight: 600; }
/* Scales with screen height too, so the whole first screen fits in view */
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, min(6vw, 8vh), 72px); line-height: 1.04; }
.lede { font-size: clamp(17px, 2.3vh, 19px); line-height: 1.6; color: var(--text-2); max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.fine { font-size: 14px; color: var(--muted); }

/* Countdown */
.countdown { display: flex; flex-direction: column; gap: 10px; }
.countdown-label { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.countdown-tiles { display: flex; gap: 10px; }
.tile {
  min-width: 72px; padding: 10px 12px; border-radius: 16px;
  background: rgba(36,22,11,.85); border: 1px solid rgba(200,146,90,.35);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tile span { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); }
.tile small { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* Sync demo card */
.demo-card {
  flex: 1 1 480px; min-width: 0;
  background: rgba(23,33,27,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(242,234,223,.12); border-radius: 28px; padding: clamp(20px, 3.2vh, 30px) 30px;
  display: flex; flex-direction: column; gap: clamp(12px, 2.2vh, 20px);
}
.demo-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.demo-head h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.demo-pct { font-size: 14px; color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }

.orb-stage {
  --orb: clamp(64px, min(22vw, 13vh), 116px);
  --gap: 1;
  display: flex; align-items: center; justify-content: center;
}
.orb-col { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; }
.orb { width: var(--orb, 124px); height: var(--orb, 124px); flex: none; border-radius: 50%; }
.orb-you {
  background: radial-gradient(circle at 32% 28%, #EEF3DF 0%, #9BBA86 30%, #3F5E3A 70%, #142017 100%);
  box-shadow: 0 0 50px rgba(155,186,134,.45), inset -12px -16px 28px rgba(10,8,5,.5);
}
.orb-match {
  background: radial-gradient(circle at 34% 30%, #FFF1DC 0%, #D9A066 32%, #7A4A2A 72%, #24160D 100%);
  box-shadow: 0 0 50px rgba(217,160,102,.45), inset -12px -16px 28px rgba(10,8,5,.5);
}
.orb-label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.bridge {
  /* Shrinks as more activities are shared, pulling the orbs together */
  width: calc(min(220px, 100% - 2 * var(--orb)) * var(--gap));
  min-width: 12px;
  transition: width .9s cubic-bezier(.2,.8,.2,1);
  margin-bottom: 25px; /* align with orb centres, not labels */
}
.bridge-line { height: 3px; width: 100%; background: #8C2335; box-shadow: 0 0 14px rgba(140,35,53,.9); border-radius: 2px; }

.sync-bar { height: 6px; background: rgba(242,234,223,.12); border-radius: 6px; overflow: hidden; }
.sync-fill { height: 100%; width: 0; background: var(--amber); border-radius: 6px; transition: width .9s ease; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: inherit; font-size: 15px; font-weight: 500; padding: 10px 16px; min-height: 44px;
  border-radius: 999px; border: 1px solid rgba(242,234,223,.3); background: transparent; color: var(--text);
  cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .2s;
}
.chip:hover { transform: translateY(-2px); border-color: rgba(242,234,223,.6); }
.chip[aria-pressed="true"] { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }

.shared { display: flex; flex-direction: column; gap: 8px; }
/* The live list and an invisible copy of the fullest list share one grid cell,
   so the box is always as tall as it will ever get and nothing shifts on tap */
.shared-body { display: grid; }
.shared-body > * { grid-area: 1 / 1; }
.shared-ghost { visibility: hidden; }
.shared-title { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.shared-body > div { display: flex; flex-direction: column; gap: 5px; }
.shared-body p { font-size: 15px; line-height: 1.45; color: var(--text); }
.shared-body .when { color: var(--sage); }
.shared-body .empty { color: var(--muted); }
.shared-body .unlocked { margin-top: 6px; font-weight: 600; color: var(--amber); }

/* ---------- Sections ---------- */
.section { padding: 96px 32px; }
.section-lg { padding: 104px 32px; }
.espresso { background: var(--espresso); }
.container { max-width: 1200px; margin: 0 auto; }
.container.narrow { max-width: 1000px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.center { align-items: center; }
.center-text { text-align: center; }
.full { width: 100%; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-head.wide { max-width: 680px; }
.section h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; }
.body-lg { font-size: 18px; line-height: 1.65; color: var(--text-2); }

.grid { display: grid; gap: 24px; }
.grid-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.gap-20 { gap: 20px; }
.tilt { perspective: 1000px; }

.card {
  background: var(--brown); border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.card h3 { font-size: 20px; font-weight: 600; }
.card p { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.card .step-num { font-family: var(--serif); font-size: 40px; color: var(--amber); line-height: 1.2; }
.card-sm { padding: 26px; border-radius: 20px; gap: 10px; }
.card-sm h3 { font-size: 18px; }
.card-sm p { font-size: 15px; }
.lift { transition: transform .35s ease, box-shadow .35s ease; }
.lift:hover { transform: translateY(-6px) rotateX(4deg); box-shadow: 0 24px 48px rgba(0,0,0,.45); }

/* Reveal stages */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.split-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.stages { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.stage {
  display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 20px;
  background: var(--brown); border: 1px solid var(--line);
}
.stage-final { background: var(--moss); border-color: rgba(200,146,90,.4); }
.indent-1 { margin-left: 32px; }
.indent-2 { margin-left: 64px; }
.mini-orb {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #EEF3DF 0%, #9BBA86 30%, #3F5E3A 70%, #142017 100%);
  box-shadow: 0 0 50px rgba(155,186,134,.45), inset -12px -16px 28px rgba(10,8,5,.5);
}
.stage > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.stage-name { font-weight: 600; font-size: 17px; }
.stage-desc { font-size: 15px; color: var(--muted); }

/* Pricing */
.plan {
  padding: 36px; border-radius: 26px; background: var(--espresso); border: 1px solid rgba(242,234,223,.14);
  display: flex; flex-direction: column; gap: 18px;
}
.plan h3 { font-size: 22px; font-weight: 600; }
.plan .price { font-family: var(--serif); font-size: 44px; }
.plan .price span { font-family: var(--sans); font-size: 16px; color: var(--muted); }
.plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--text-2); line-height: 1.5; }
.plan-member { background: var(--moss); border-color: rgba(200,146,90,.55); box-shadow: 0 0 60px rgba(200,146,90,.15); }
.plan-member h3 { color: var(--amber); }
.price-alt { margin-top: -8px !important; font-size: 14px; line-height: 1.5; color: var(--muted); }
.plus { margin-bottom: -8px !important; font-size: 16px; font-weight: 600; }
.founding {
  padding: 12px 14px; border-radius: 14px; background: rgba(200,146,90,.14); border: 1px solid rgba(200,146,90,.45);
  display: flex; flex-direction: column; gap: 4px;
}
.founding-title { font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; color: var(--amber-hover); }
.founding-body { font-size: 15px; }
.founding-count { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--amber-hover); font-variant-numeric: tabular-nums; }
.plan .btn-ghost { font-weight: 600; border-color: rgba(242,234,223,.35); }

/* Join / waitlist */
.join { max-width: 820px; display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.orb-pair { display: flex; gap: 18px; margin-bottom: 8px; }
.orb-sm { --orb: 64px; }
.join-lede { max-width: 600px; }
.waitlist { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.wl-label { font-size: 15px; font-weight: 600; color: var(--text); }
.wl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wl-row input {
  flex: 1 1 260px; min-width: 0; min-height: 52px; padding: 12px 20px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--forest); border: 1px solid rgba(242,234,223,.35); border-radius: 999px;
}
.wl-row input::placeholder { color: #8F8372; }
.wl-row input:focus-visible { outline: 3px solid var(--amber-hover); outline-offset: 2px; border-color: var(--amber); }
.wl-row input[aria-invalid="true"] { border-color: #E8A08A; }
.wl-row .btn { min-height: 52px; padding: 12px 26px; font-size: 16px; flex: 0 0 auto; }
.wl-status { min-height: 1.5em; font-size: 15px; font-weight: 600; }
.wl-status.ok { color: var(--sage); }
.wl-status.err { color: #F0B8A6; }
.wl-note { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.meet {
  margin-top: 24px; width: 100%; padding: 28px; border-radius: 22px;
  background: var(--brown); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.meet-title { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.meet-body { font-size: 16px; line-height: 1.6; color: var(--text-2); max-width: 600px; }
.meet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.meet-list li { font-size: 15px; font-weight: 500; color: var(--sage); }
.meet-list li + li::before { content: "·"; margin: 0 10px; color: var(--muted); }

/* Footer */
.site-footer {
  max-width: 1200px; margin: 0 auto; padding: 40px 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 14px; color: var(--muted);
}
.footer-logo { font-family: var(--serif); font-size: 18px; color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav a:hover { color: var(--text); }
.copyright { width: 100%; }

/* ---------- Motion ---------- */
@keyframes mmFloatA { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(4deg); } }
@keyframes mmFloatB { 0%,100% { transform: translateY(-10px) rotate(5deg); } 50% { transform: translateY(8px) rotate(-3deg); } }
@keyframes mmDrift { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-22px,0); } }
@keyframes mmPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes mmScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.float-a { animation: mmFloatA 7s ease-in-out infinite; }
.float-b { animation: mmFloatB 8s ease-in-out infinite; }
.drift { animation: mmDrift 11s ease-in-out infinite; }
.pulse { animation: mmPulse 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-a, .float-b, .drift, .pulse, .photo-row { animation: none; }
  .bridge, .sync-fill, .chip, .btn, .lift { transition: none; }
  .lift:hover, .chip:hover, .btn:hover { transform: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .nav-link { display: none; }
}
@media (max-width: 600px) {
  .site-header { padding: 16px; }
  .logo { font-size: 22px; }
  .hero { padding: 104px 16px 48px; gap: 40px; }
  .section, .section-lg { padding: 72px 16px; }
  .demo-card { padding: 22px 18px; border-radius: 22px; }
  .tile { min-width: 0; flex: 1; padding: 8px 6px; }
  .tile span { font-size: 24px; }
  .indent-1 { margin-left: 16px; }
  .indent-2 { margin-left: 32px; }
  .plan { padding: 26px 22px; }
  .wl-row .btn { width: 100%; }
  .meet { padding: 22px 18px; }
  .site-footer { padding: 32px 16px; }
}

/* ---------- Short laptop screens: keep the first screen in view ---------- */
@media (min-width: 861px) and (max-height: 700px) {
  .site-header { padding-top: 16px; padding-bottom: 16px; }
  .hero { padding-top: 84px; padding-bottom: 16px; }
  .tile { padding: 6px 12px; }
  .tile span { font-size: 26px; }
  .cta-row .btn-lg { padding: 12px 26px; }
  .orb-col { gap: 8px; }
  .chips { gap: 8px; }
  .chip { padding: 8px 14px; }
  .shared-body > div { gap: 3px; }
  .shared-body p { font-size: 14px; }
}
