/* Memry — shared styles for landing, terms, privacy */

:root {
  --warm-bg: #FDFAF5;
  --warm-bg-soft: #F7F1E6;
  --surface: #FFFFFF;
  --dark-text: #1A1610;
  --body-text: #3B342C;
  --muted-text: #7A6F64;
  --light-muted: #D8CFC0;
  --gold: #C4A96A;
  --gold-deep: #A4884A;
  --dark-surface: #1A1610;

  --chapter-childhood: #FDF6EC;
  --chapter-love: #FDF0F0;
  --chapter-work: #EEF4F8;
  --chapter-wisdom: #F3F0F8;
  --chapter-open: #F1EFE8;

  --max-width: 1080px;
  --content-width: 720px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(26, 22, 16, 0.04);
  --shadow-md: 0 8px 24px -12px rgba(26, 22, 16, 0.18);
  --shadow-lg: 0 30px 60px -30px rgba(26, 22, 16, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-text);
  background: var(--warm-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196, 169, 106, 0.08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--dark-surface);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--gold-deep); }

::selection { background: rgba(196, 169, 106, 0.35); }

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  background: rgba(253, 250, 245, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}

header.site.is-scrolled {
  border-bottom-color: rgba(26, 22, 16, 0.08);
  background: rgba(253, 250, 245, 0.92);
}

header.site .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header.site .brand {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--dark-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

header.site nav a {
  font-size: 13px;
  margin-left: 16px;
  text-decoration: none;
  color: var(--muted-text);
  transition: color 150ms var(--ease);
}
header.site nav a:hover { color: var(--dark-text); }

/* ---------- Layout ---------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

main.legal {
  max-width: var(--content-width);
  padding-top: 48px;
}

.section {
  padding: 56px 0;
  border-top: 1px solid rgba(26, 22, 16, 0.06);
}
.section:first-of-type { border-top: 0; }

.section--tinted {
  background: linear-gradient(180deg, var(--warm-bg-soft), transparent);
  border-top: 0;
  margin: 0 -24px;
  padding: 56px 24px;
}

.section__intro {
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: center;
}

.section__intro p { color: var(--muted-text); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  color: var(--dark-text);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: 44px; margin: 0 0 16px; }
h2 { font-size: 28px; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 6px; }

p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

.lede {
  font-size: 17px;
  color: var(--body-text);
  line-height: 1.6;
}

/* ---------- Buttons ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dark-surface);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  transition: transform 150ms var(--ease), box-shadow 200ms var(--ease), background 150ms var(--ease);
}
.cta:hover {
  color: #fff;
  background: #2A211A;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.cta:active { transform: translateY(0); }

.cta--ghost {
  background: transparent;
  color: var(--dark-text);
  box-shadow: none;
  border: 1px solid rgba(26, 22, 16, 0.18);
}
.cta--ghost:hover {
  background: rgba(26, 22, 16, 0.04);
  color: var(--dark-text);
  box-shadow: none;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.muted { color: var(--muted-text); font-size: 13px; }

/* ---------- Example image ---------- */

.example-image {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 72px;
}

.hero__copy h1 {
  font-size: 52px;
  line-height: 1.05;
}

.hero__copy .lede { margin-top: 8px; max-width: 480px; }

.hero__art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__art svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(26, 22, 16, 0.18));
  will-change: transform;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  background: var(--surface);
  border: 1px solid rgba(26, 22, 16, 0.06);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}

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

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
  flex: none;
}

.step__glyph {
  width: 40px !important;
  height: 40px !important;
  display: block;
  margin-bottom: 10px;
  flex: none;
}

.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted-text); font-size: 14px; line-height: 1.55; }

/* ---------- Themes ---------- */

.themes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.theme {
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  border: 1px solid rgba(26, 22, 16, 0.06);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.theme:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.theme__emoji {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

.theme h3 { margin: 0 0 4px; font-size: 16px; font-family: Georgia, serif; }
.theme p  { margin: 0; font-size: 13px; color: var(--muted-text); line-height: 1.5; }

.theme--childhood { background: var(--chapter-childhood); }
.theme--love      { background: var(--chapter-love); }
.theme--work      { background: var(--chapter-work); }
.theme--wisdom    { background: var(--chapter-wisdom); }
.theme--open      { background: var(--chapter-open); }

/* ---------- Two-column section ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* ---------- Pull-quote cards ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.quote-card {
  position: relative;
  background: linear-gradient(180deg, #FFFCF5, #FBF6EC);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  border: 1px solid rgba(196, 169, 106, 0.2);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.quote-card::before {
  content: "“";
  position: absolute;
  top: 4px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 76px;
  color: rgba(196, 169, 106, 0.35);
  line-height: 1;
  pointer-events: none;
}

.quote-card blockquote {
  margin: 0 0 14px;
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.45;
  color: var(--dark-text);
  position: relative;
  z-index: 1;
}

.quote-card__attribution {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

.quote-card__chip {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Formats grid ---------- */

.formats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.format {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid rgba(26, 22, 16, 0.06);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.format:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.format__emoji {
  font-size: 22px;
  width: 44px;
  height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-bg-soft);
  border-radius: 12px;
}

.format h3 { margin: 0 0 2px; font-size: 16px; font-family: Georgia, serif; }
.format p  { margin: 0; font-size: 13px; color: var(--muted-text); line-height: 1.5; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--dark-surface);
  color: #FBF6EC;
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  background-image: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(196, 169, 106, 0.25), transparent 70%);
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(251, 246, 236, 0.78); max-width: 520px; margin: 0 auto 20px; }

.cta-band .cta {
  background: var(--gold);
  color: var(--dark-surface);
  box-shadow: 0 12px 32px -12px rgba(196, 169, 106, 0.6);
}
.cta-band .cta:hover { background: #D2B774; color: var(--dark-surface); }

/* ---------- FAQ ---------- */

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

.faq details {
  background: var(--surface);
  border: 1px solid rgba(26, 22, 16, 0.06);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  color: var(--dark-text);
  font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted-text);
  border-bottom: 2px solid var(--muted-text);
  transform: rotate(45deg);
  transition: transform 200ms var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(-135deg); }

.faq details p {
  margin: 10px 0 0;
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */

footer.site {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 40px;
  border-top: 1px solid rgba(26, 22, 16, 0.06);
  font-size: 12px;
  color: var(--muted-text);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
footer.site a { color: var(--muted-text); margin-right: 14px; text-decoration: none; }
footer.site a:hover { color: var(--dark-text); }

/* ---------- Legal pages ---------- */

.legal h1 { font-size: 34px; }
.legal .updated {
  color: var(--muted-text);
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 24px;
}

.callout {
  background: var(--surface);
  border: 1px solid rgba(26, 22, 16, 0.06);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Scroll-reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 450ms var(--ease), transform 450ms var(--ease);
  }
  .reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
  .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
  .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; }
  .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; }
  .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; }
  .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 240ms; }
}

/* ---------- Responsive: tablet ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 56px;
    text-align: center;
  }
  .hero__copy .lede { margin-left: auto; margin-right: auto; }
  .hero__copy .cta-row { justify-content: center; }
  .hero__copy h1 { font-size: 40px; }
  .hero__art { order: -1; }
  .hero__art svg { max-width: 240px; }

  .two-col { grid-template-columns: 1fr; gap: 24px; }

  .themes { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
  }
  .step__num { margin-bottom: 0; }
  .step__glyph { display: none; }
  .step h3 { margin-bottom: 2px; }

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

  .section { padding: 44px 0; }
  .section--tinted { padding: 44px 24px; }
  .section__intro { margin-bottom: 24px; }
}

/* ---------- Responsive: phone ---------- */

@media (max-width: 600px) {
  body { font-size: 15px; }
  main { padding: 0 18px 56px; }
  header.site .inner { padding: 12px 18px; }
  header.site nav a { margin-left: 12px; font-size: 12px; }
  header.site nav a:not(:last-child) { display: none; }

  h1 { font-size: 32px; }
  h2 { font-size: 24px; }

  .hero { padding: 32px 0 40px; gap: 24px; }
  .hero__copy h1 { font-size: 34px; line-height: 1.08; }
  .hero__art svg { max-width: 200px; }

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

  .cta-band { padding: 36px 22px; }
  .quote-card { padding: 22px 20px; }
  .quote-card blockquote { font-size: 17px; }

  .section { padding: 36px 0; }
  .section--tinted { padding: 36px 18px; margin: 0 -18px; }
}

/* ---------- Legacy feature grid (kept for backwards compat) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
}
.feature {
  background: var(--surface);
  border: 1px solid rgba(26, 22, 16, 0.06);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.feature .emoji { font-size: 28px; display: block; margin-bottom: 8px; }
.feature h3 { margin: 0 0 4px; font-size: 16px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 600; }
.feature p  { margin: 0; font-size: 14px; color: var(--muted-text); }
