/* ===== LoveMate - styles.css =====
   Palette: warm off-white base, deep warm-gray text, restrained coral accent.
   No AI-purple, no beige-brass. One accent locked across the page.
   Dark mode via prefers-color-scheme.
   ========================================= */

:root {
  /* Light mode */
  --bg: #FAF6F2;
  --surface: #FFFFFF;
  --surface-elevated: #FFFCFA;
  --text: #1C1118;
  --text-muted: #6B5860;
  --accent: #DC6470;
  --accent-hover: #C85360;
  --accent-soft: rgba(220, 100, 112, 0.10);
  --accent-tint: #F9E8EA;
  --border: rgba(28, 17, 24, 0.08);
  --border-strong: rgba(28, 17, 24, 0.14);
  --shadow: 0 4px 24px rgba(28, 17, 24, 0.06);
  --radius: 16px;
  --radius-small: 10px;
  --max-width: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14101A;
    --surface: #1E1820;
    --surface-elevated: #251E28;
    --text: #F4EDEA;
    --text-muted: #A19299;
    --accent: #E8808B;
    --accent-hover: #F0949E;
    --accent-soft: rgba(232, 128, 139, 0.14);
    --accent-tint: #2A1F2A;
    --border: rgba(244, 237, 234, 0.10);
    --border-strong: rgba(244, 237, 234, 0.16);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.30);
  }
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  height: 64px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
}

.brand-name {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-small { padding: 0.5rem 1.25rem; }

.btn-large { padding: 0.9rem 2.5rem; font-size: 1.05rem; }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  padding: 0.7rem 1.75rem;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  padding: calc(0.7rem - 1.5px) calc(1.75rem - 1.5px);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem) clamp(4rem, 8vw, 6rem);
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: calc(100dvh - 64px);
}

.hero-content { max-width: 480px; }

.hero-title {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 28rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1400 / 788;
  object-fit: cover;
}

/* ===== Section common ===== */
.section-head {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== Features Bento ===== */
.features { padding: clamp(3rem, 6vw, 5rem) 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.bento-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-cell:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cell-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.bento-cell h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.bento-cell p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Asymmetric bento placement */
.cell-tall {
  grid-column: 1;
  grid-row: 1 / 3;
  background: var(--accent-tint);
  border-color: transparent;
}

.cell-tall h3 { color: var(--text); }
.cell-tall .cell-number { color: var(--accent); }

.cell-wide {
  grid-column: 2 / 4;
  grid-row: 1;
  display: flex;
  flex-direction: column;
}

.cell-scrapbook {
  grid-column: 2;
  grid-row: 2;
}

.cell-rewards {
  grid-column: 3;
  grid-row: 2;
  background: var(--surface-elevated);
}

/* Sync challenge visual decoration */
.sync-bars {
  display: flex;
  gap: 8px;
  margin-top: 1.5rem;
  height: 48px;
}

.sync-bars span {
  flex: 1;
  background: var(--accent-soft);
  border-radius: 6px;
  animation: syncPulse 3s ease-in-out infinite;
}

.sync-bars span:nth-child(1) { animation-delay: 0s; }
.sync-bars span:nth-child(2) { animation-delay: 0.3s; }
.sync-bars span:nth-child(3) { animation-delay: 0.6s; }
.sync-bars span:nth-child(4) { animation-delay: 0.9s; }
.sync-bars span:nth-child(5) { animation-delay: 1.2s; }

@keyframes syncPulse {
  0%, 100% { transform: scaleY(0.4); background: var(--accent-soft); }
  50% { transform: scaleY(1); background: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  .sync-bars span { animation: none; transform: scaleY(0.7); background: var(--accent-soft); }
}

/* ===== Partners ===== */
.partners {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 3rem);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.partners-copy h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.partners-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.partner-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.partner-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== Quote ===== */
.quote-section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem);
  text-align: center;
}

blockquote {
  max-width: 720px;
  margin: 0 auto;
}

blockquote p {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.quote-attr {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quote-name { font-weight: 600; color: var(--accent); }
.quote-meta { color: var(--text-muted); font-size: 0.9rem; }

/* ===== CTA ===== */
.cta-section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 3rem);
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--accent-tint);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 5vw, 4rem);
}

.cta-inner h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.75rem;
}

.cta-inner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.25rem, 5vw, 3rem);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
}

.brand-mark-sm { color: var(--accent); }

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-contact {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-contact:hover { color: var(--accent-hover); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a:not(.btn) { display: none; }
  .nav-toggle { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .hero-content { order: 2; }
  .hero-visual { order: 1; margin-bottom: 1rem; }
  .hero-title { font-size: clamp(2.25rem, 9vw, 3rem); }

  .bento {
    grid-template-columns: 1fr;
  }

  .cell-tall, .cell-wide, .cell-scrapbook, .cell-rewards {
    grid-column: 1;
    grid-row: auto;
  }

  .partners-inner {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .cta-inner .btn { width: 100%; }
}

/* ===== Mobile nav open state ===== */
.nav.nav-open .nav-links {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
  align-items: flex-start;
}

.nav.nav-open .nav-links a:not(.btn) {
  display: inline;
  font-size: 1.1rem;
}

.nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
