/* MemoUS marketing site — family-oriented, responsive */

:root {
  --ink: #1e1b4b;
  --ink-soft: #4338ca;
  --accent: #6c63ff;
  --accent-light: #c4b5fd;
  --accent-pale: #ede9fe;
  --cream: #fdfaf6;
  --cream-dark: #f5efe6;
  --warm: #fff7ed;
  --coral: #fb7185;
  --sage: #6ee7b7;
  --sky: #7dd3fc;
  --text: #334155;
  --text-muted: #64748b;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(30, 27, 75, 0.12);
  --shadow-sm: 0 8px 24px rgba(30, 27, 75, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1120px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ── Navigation ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 27, 75, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* ── Hero ── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(108, 99, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(251, 113, 133, 0.14), transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(110, 231, 183, 0.12), transparent 45%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(108, 99, 255, 0.2);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.store-actions .btn-primary {
  background: #1a1a1a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.store-actions .btn-primary:hover {
  background: #000;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(30, 27, 75, 0.12);
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-lockup {
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #00040E;
}

.phone-frame {
  width: min(100%, 300px);
  /* Match Play Store screenshots (1080×1920 = 9∶16) */
  aspect-ratio: 9 / 16;
  background: linear-gradient(160deg, #2d2a5e 0%, #1e1b4b 100%);
  border-radius: 32px;
  padding: 8px;
  box-shadow: var(--shadow);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #0f0e24;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  /* contain + matching aspect ratio shows the full capture without cropping */
  object-fit: contain;
  object-position: top center;
}

.hero-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  animation: float 5s ease-in-out infinite;
}

.hero-float.one {
  top: 8%;
  left: -4%;
  animation-delay: 0s;
}

.hero-float.two {
  bottom: 14%;
  right: -6%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Sections ── */

section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  color: var(--ink);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.section-lead {
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

/* ── How it works ── */

.how-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.how-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 27, 75, 0.05);
}

.how-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.how-step h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.how-step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── Features ── */

.features {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(30, 27, 75, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-icon.purple { background: var(--accent-pale); }
.feature-icon.coral { background: #ffe4e6; }
.feature-icon.sage { background: #d1fae5; }
.feature-icon.sky { background: #e0f2fe; }
.feature-icon.warm { background: var(--warm); }
.feature-icon.ink { background: #e0e7ff; }

.feature-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── Screenshots ── */

.screenshots {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.screenshot-item {
  text-align: center;
}

.screenshot-item .phone-frame {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 1rem;
}

@media (max-width: 720px) {
  .screenshot-item .phone-frame {
    max-width: min(100%, 320px);
  }
}

.screenshot-item h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.screenshot-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Trust / family ── */

.family-band {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.family-band h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.family-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
}

.family-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.family-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.family-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── FAQ ── */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(30, 27, 75, 0.08);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.15rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item .answer p {
  margin: 0;
}

/* ── Support ── */

.support {
  background: var(--white);
}

.support-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-pale) 0%, var(--warm) 100%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(108, 99, 255, 0.15);
}

.support-card h2 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.support-card p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.support-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--white);
  border-radius: 999px;
  font-weight: 600;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.support-email:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Footer ── */

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(30, 27, 75, 0.08);
  background: var(--cream-dark);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

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

/* ── Legal pages ── */

.legal-page header.legal-header {
  background: var(--ink);
  color: var(--white);
  padding: 2.5rem 0;
}

.legal-page header.legal-header h1 {
  font-family: "Fraunces", Georgia, serif;
  margin: 0;
  font-size: 1.75rem;
}

.legal-page header.legal-header p {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.legal-page main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.legal-page h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page p,
.legal-page ul {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 1rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page .warning {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.legal-page .warning strong {
  display: block;
  color: #92400e;
  margin-bottom: 0.35rem;
}

.legal-page .warning p {
  color: #92400e;
  margin: 0;
}

/* ── Responsive ── */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-float {
    display: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-strip {
    grid-template-columns: 1fr;
  }

  .family-band {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(30, 27, 75, 0.08);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-sm);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.65rem 0;
  }

  .site-header .container {
    position: relative;
  }

  .feature-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 3rem 0 3.5rem;
  }
}
