/* MatMatch website — shared styles. Matches the app's brand palette. */
:root {
  --bg: #ECEEF3;
  --card: #FFFFFF;
  --ink: #14161B;
  --ink-soft: #4C525E;
  --muted: #8A90A0;
  --line: #E4E6EC;
  --green: #8FD3B0;
  --green-deep: #6DBE96;
  --dark: #0F1116;
  --tag: #F3F4F8;
  --radius: 22px;
  --shadow: 0 6px 24px rgba(20, 22, 27, 0.06);
  --shadow-lg: 0 18px 50px rgba(20, 22, 27, 0.12);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --wrap: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
}

a { color: var(--green-deep); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(236, 238, 243, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 34px; height: 34px; border-radius: 10px; display: block; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover { background: var(--tag); color: var(--ink); }

/* Mobile nav (hamburger). Hidden on desktop; toggled by a checkbox on mobile. */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(236, 238, 243, 0.98);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.mobile-menu a {
  display: block;
  padding: 16px 20px;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; }
.nav-toggle:checked ~ .mobile-menu { display: block; }
.nav-toggle:checked ~ .wrap .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .wrap .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .wrap .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-green { background: var(--green-deep); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.pill {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: 46px; margin: 0 0 18px; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; max-width: 30em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-cta .note { font-size: 13px; color: var(--muted); }

/* Device frame — holds a real app screenshot */
.device {
  justify-self: center;
  width: 270px;
  aspect-ratio: 1206 / 2622;
  background: #0F1116;
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--shadow-lg);
}
.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 36px;
}

/* Screenshot gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  justify-items: center;
  align-items: start;
}
.gallery figure { margin: 0; text-align: center; max-width: 240px; }
.gallery .device { width: 100%; }
.gallery figcaption {
  margin-top: 16px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.gallery figcaption span { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 40px; }
.section-head h2 { font-size: 32px; margin: 0 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.feature .ic {
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(143,211,176,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.feature h3 { font-size: 19px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.step .num {
  counter-increment: step;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 14px;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 18px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* CTA band */
.cta-band {
  background: var(--dark);
  border-radius: 28px;
  padding: 48px 40px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: 30px; margin: 0 0 12px; }
.cta-band p { color: rgba(255,255,255,0.72); margin: 0 0 24px; font-size: 17px; }

/* ---------- Article (legal / support) ---------- */
.page-hero { padding: 56px 0 8px; }
.page-hero h1 { font-size: 38px; margin: 0 0 8px; }
.page-hero p { color: var(--muted); margin: 0; }
.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
  margin: 28px 0 40px;
}
.article h2 { font-size: 24px; margin: 34px 0 12px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 18px; margin: 24px 0 8px; }
.article p, .article li { color: var(--ink-soft); }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article a { font-weight: 600; }
.tag-note {
  background: #FFF7E6;
  border: 1px solid #F3E2B8;
  color: #8a6d1a;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  margin: 18px 0;
}

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* Contact card */
.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.contact .feature { text-align: left; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  margin-top: 20px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
.site-footer .muted { color: var(--muted); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 36px 0 12px; }
  .hero h1 { font-size: 34px; }
  section.block { padding: 40px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 27px; }
  .features, .steps, .contact { grid-template-columns: 1fr; }

  /* Mobile nav: swap inline links for a hamburger menu */
  .nav { display: none; }
  .nav-burger { display: flex; }

  /* Screenshots on a single swipeable row */
  .gallery {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 20px 14px;
    margin: 0 -20px;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure {
    flex: 0 0 62%;
    max-width: 62%;
    scroll-snap-align: center;
  }

  .cta-band { padding: 36px 24px; }
  .cta-band h2 { font-size: 25px; }
  .article { padding: 28px 22px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
