/* =========================================================
   JigsawPuzzle.me — landing page styles
   1. Tokens & base      5. Create
   2. Header & nav       6. Progress / related
   3. Hero & waitlist    7. Footer & toast
   4. Features/puzzles   8. Responsive
   ========================================================= */

/* 1. Tokens & base
   ------------------------------------------------------ */
:root {
  --ink: #10211f;
  --ink-soft: #23322f;
  --muted: #61706c;
  --faint: #75817d;
  --paper: #fbf8f3;
  --cream: #f3ede4;
  --line: rgba(16, 33, 31, 0.10);
  --line-strong: rgba(16, 33, 31, 0.18);
  --white: #ffffff;
  --accent: #173c37;
  --accent-mid: #355d55;
  --accent-soft: #dfe7de;
  --shadow-sm: 0 12px 30px rgba(18, 39, 36, 0.08);
  --shadow-md: 0 18px 40px rgba(16, 33, 31, 0.10);
  --shadow-lg: 0 30px 70px rgba(27, 43, 40, 0.12);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --space-section: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { margin: 0; }
h1, h2 {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.04em;
  line-height: 1.0;
}
h1 { font-size: clamp(50px, 5.8vw, 82px); max-width: 700px; }
h1 span { color: var(--accent-mid); }
h2 { font-size: clamp(36px, 3.6vw, 54px); }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.26em;
  font-weight: 700;
  color: var(--faint);
}

.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: 200;
  background: var(--accent);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-dark {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(23, 60, 55, 0.15);
}
.btn-dark:hover { box-shadow: 0 14px 28px rgba(23, 60, 55, 0.24); }
.btn-light { background: var(--white); color: var(--accent); }
.btn-light:hover { box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16); }
.btn-large { min-height: 52px; padding-inline: 26px; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }


/* 2. Header & nav
   ------------------------------------------------------ */
.announce {
  background: var(--accent);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
}
.announce-inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 9px 0;
  text-align: center;
}
.announce p { margin: 0; }
.announce strong { color: var(--white); font-weight: 600; }
.announce-dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #8fd7b9;
  box-shadow: 0 0 0 0 rgba(143, 215, 185, 0.7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(143, 215, 185, 0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(143, 215, 185, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 215, 185, 0); }
}
.announce-link {
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
}
.announce-link:hover { border-color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(16, 33, 31, 0.05);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--accent); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 0.86;
  letter-spacing: -0.5px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 24px;
}
.desktop-nav a {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.desktop-nav a:hover { border-color: var(--line-strong); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.menu-btn {
  width: 42px; height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
}
.menu-btn span {
  width: 17px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { display: none; }


/* 3. Hero & waitlist
   ------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 92px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(227, 213, 192, 0.42), transparent 28%),
    radial-gradient(circle at 12% 10%, rgba(221, 230, 213, 0.60), transparent 24%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-mid);
  animation: pulse 2.4s ease-out infinite;
}

.hero-text {
  max-width: 540px;
  margin: 26px 0 0;
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--muted);
}

.waitlist-form {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  max-width: 470px;
}
.waitlist-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.waitlist-form input::placeholder { color: #9aa5a1; }
.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px rgba(53, 93, 85, 0.12);
}
.waitlist-form input[aria-invalid="true"] {
  border-color: #c0564b;
  box-shadow: 0 0 0 3px rgba(192, 86, 75, 0.12);
}
.waitlist-form .btn { height: 52px; padding-inline: 26px; }

.form-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}
.waitlist-form-light { margin-inline: auto; }
.waitlist-form-light input {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}
.waitlist-form-light input::placeholder { color: rgba(255, 255, 255, 0.55); }
.waitlist-form-light input:focus {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}
.form-note-light { color: rgba(255, 255, 255, 0.55); }

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 50px 0 0;
  padding: 0;
  list-style: none;
  max-width: 600px;
}
.trust-item { display: flex; align-items: center; gap: 11px; }
.trust-icon {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(223, 231, 222, 0.75);
}
.trust-item strong, .trust-item small { display: block; line-height: 1.35; }
.trust-item strong { font-size: 14px; }
.trust-item small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.hero-art { position: relative; min-height: 520px; display: grid; place-items: center; }
.puzzle-card {
  width: min(100%, 550px);
  aspect-ratio: 1.13;
  position: relative;
  transform: rotate(2deg);
  border-radius: var(--radius-md);
  padding: 13px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.puzzle-image {
  position: absolute;
  inset: 13px;
  border-radius: 17px;
  background-image:
    linear-gradient(to bottom, transparent 50%, rgba(7, 34, 36, 0.11)),
    url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1300&q=88");
  background-position: center;
  background-size: cover;
}
.puzzle-grid {
  position: absolute;
  inset: 13px;
  border-radius: 17px;
  opacity: 0.22;
  background-image:
    linear-gradient(to right, #0b1715 1px, transparent 1px),
    linear-gradient(to bottom, #0b1715 1px, transparent 1px);
  background-size: 16.66% 16.66%;
  mix-blend-mode: multiply;
}
.floating-piece {
  position: absolute;
  width: 68px; height: 68px;
  border-radius: var(--radius-sm);
  background-image: url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=600&q=88");
  background-size: 520px auto;
  box-shadow: 0 16px 34px rgba(26, 44, 40, 0.18);
  z-index: 3;
}
.floating-piece::before {
  content: "";
  position: absolute;
  width: 23px; height: 23px;
  border-radius: 50%;
  background: var(--paper);
  top: 22px; left: -10px;
}
.floating-piece::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: inherit;
  top: -10px; left: 24px;
  box-shadow: inherit;
}
.piece-one { left: -8px; top: 82px; transform: rotate(-16deg); background-position: 20% 45%; }
.piece-two { right: -8px; top: 40px; transform: rotate(16deg); background-position: 80% 15%; }
.piece-three { right: 46px; bottom: 45px; transform: rotate(12deg); background-position: 65% 70%; }

.hero-note {
  position: absolute;
  right: -10px; bottom: 28px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.1;
  transform: rotate(-6deg);
}
.mini-card {
  position: absolute;
  left: 24px; bottom: 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 14px 18px;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(26, 44, 40, 0.14);
}
.mini-card span, .mini-card small { display: block; color: var(--muted); font-size: 11px; }
.mini-card strong { display: block; margin: 3px 0; font-size: 14px; }


/* 4. Section shell, features, puzzles
   ------------------------------------------------------ */
.section { padding: var(--space-section) 0; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}
.section-intro {
  width: min(100%, 420px);
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 16px;
}

.features-section { background: var(--white); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.feature-card {
  padding: 30px 26px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 21px;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
}
.feature-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.68; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.category-card { cursor: default; }
.category-image {
  aspect-ratio: 0.93;
  border-radius: 22px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover .category-image {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(18, 39, 36, 0.14);
}
.category-card span {
  display: block;
  text-align: center;
  margin-top: 13px;
  font-weight: 600;
  font-size: 14px;
}
.nature  { background-image: url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=700&q=85"); }
.cities  { background-image: url("https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=700&q=85"); }
.animals { background-image: url("https://images.unsplash.com/photo-1474511320723-9a56873867b5?auto=format&fit=crop&w=700&q=85"); }
.art     { background-image: url("https://images.unsplash.com/photo-1547891654-e66ed7ebb968?auto=format&fit=crop&w=700&q=85"); }
.cozy    { background-image: url("https://images.unsplash.com/photo-1449158743715-0a90ebb6d2d8?auto=format&fit=crop&w=700&q=85"); }
.travel  { background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=700&q=85"); }


/* 5. Create
   ------------------------------------------------------ */
.create-section { padding-top: 24px; }
.create-card {
  min-height: 460px;
  border-radius: var(--radius-lg);
  padding: 56px;
  background:
    radial-gradient(circle at 80% 30%, rgba(230, 220, 205, 0.75), transparent 36%),
    linear-gradient(135deg, #f2ede5, #faf8f4);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  overflow: hidden;
}
.create-copy p:not(.eyebrow) {
  max-width: 500px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.72;
}
.photo-stack { position: relative; height: 360px; }
.photo-card {
  position: absolute;
  width: 330px;
  aspect-ratio: 1.15;
  border-radius: 22px;
  background-image: url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=900&q=86");
  background-size: cover;
  background-position: center;
  border: 11px solid var(--white);
  box-shadow: var(--shadow-lg);
}
.back-card { left: 11%; top: 50px; transform: rotate(-10deg); filter: saturate(0.85); }
.front-card { right: 6%; top: 30px; transform: rotate(7deg); }
.photo-puzzle-lines {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(to right, #111 1px, transparent 1px),
    linear-gradient(to bottom, #111 1px, transparent 1px);
  background-size: 25% 25%;
}
.create-piece { right: 0; bottom: 18px; width: 58px; height: 58px; }


/* 6. Launch progress & related games
   ------------------------------------------------------ */
.progress-section { padding: 28px 0 var(--space-section); }
.progress-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
  margin: 0;
  list-style: none;
}
.progress-grid li {
  padding: 30px 20px;
  text-align: center;
  position: relative;
}
.progress-grid li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25%; right: 0;
  height: 50%; width: 1px;
  background: var(--line);
}
.progress-grid strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.progress-grid span { color: var(--muted); font-size: 13px; }

.related-section { background: var(--white); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.related-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.related-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.related-icon {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.2s ease, color 0.2s ease;
}
.related-icon svg { width: 19px; height: 19px; }
.related-card:hover .related-icon { background: var(--accent); color: var(--white); }
.related-card h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}
.related-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.related-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.related-link b {
  margin-left: auto;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.related-card:hover .related-link b { transform: translateX(3px); }


/* 7. Final CTA, footer, toast
   ------------------------------------------------------ */
.final-cta { padding: 0 0 var(--space-section); }
.final-cta-inner {
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 76px 24px;
  box-shadow: 0 30px 60px rgba(23, 60, 55, 0.20);
}
.final-cta .eyebrow { color: rgba(255, 255, 255, 0.60); }
.final-cta-text {
  max-width: 480px;
  margin: 20px auto 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16.5px;
  line-height: 1.7;
}

.footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
}
.footer-brand-block { display: block; }
.footer-brand { color: var(--ink); }
.footer-tagline {
  max-width: 320px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.footer-nav h4 {
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--faint);
  text-transform: uppercase;
}
.footer-nav a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  max-width: calc(100% - 32px);
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 13px 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  text-align: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* 8. Responsive
   ------------------------------------------------------ */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  :root { --space-section: 76px; }
  .desktop-nav, .desktop-only { display: none; }
  .menu-btn { display: flex; }
  .mobile-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.28s ease, padding 0.28s ease;
  }
  .mobile-menu.open { max-height: 400px; opacity: 1; padding: 6px 24px 22px; }
  .mobile-menu a:not(.btn) { padding: 13px 8px; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 12px; }

  .hero { padding-top: 54px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .badge { margin-inline: auto; }
  .hero-text { margin-inline: auto; }
  .waitlist-form { margin-inline: auto; }
  .trust-row { margin-inline: auto; text-align: left; }
  .hero-art { min-height: 500px; }

  .section-heading { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-intro { width: 100%; }
  .category-grid { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .create-card { grid-template-columns: 1fr; text-align: center; padding-bottom: 24px; }
  .create-copy p:not(.eyebrow) { margin-inline: auto; }
  .photo-stack { height: 360px; margin-top: 26px; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-tagline { max-width: 420px; }
}

@media (max-width: 640px) {
  :root { --space-section: 64px; }
  .container { width: min(100% - 32px, 1180px); }
  .announce-inner { font-size: 12.5px; gap: 10px; }
  .nav-wrap { min-height: 70px; }
  .brand-text { font-size: 18px; }

  .hero { padding: 40px 0 62px; }
  h1 { font-size: clamp(42px, 12.5vw, 62px); }
  h2 { font-size: 34px; }
  .hero-text { font-size: 16px; }
  .waitlist-form { flex-direction: column; width: 100%; }
  .waitlist-form .btn { width: 100%; }
  .trust-row { grid-template-columns: 1fr; width: 100%; margin-top: 34px; }
  .hero-art { min-height: 380px; margin-top: 6px; }
  .puzzle-card { width: 92%; }
  .floating-piece { width: 48px; height: 48px; border-radius: 10px; }
  .floating-piece::before, .floating-piece::after { width: 16px; height: 16px; }
  .hero-note { display: none; }
  .mini-card { left: 6px; bottom: 0; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 26px 22px 28px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .create-section { padding-top: 8px; }
  .create-card { padding: 38px 22px 6px; border-radius: 28px; }
  .photo-stack { height: 290px; width: 100%; }
  .photo-card { width: 230px; border-width: 8px; }
  .back-card { left: 4%; }
  .front-card { right: 3%; top: 58px; }

  .progress-grid { grid-template-columns: repeat(2, 1fr); }
  .progress-grid li:nth-child(2)::after { display: none; }
  .progress-grid li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .related-grid { grid-template-columns: 1fr; gap: 12px; }
  .related-card { padding: 22px 20px 20px; }

  .final-cta-inner { padding: 54px 20px; border-radius: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

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