/* ===========================
   Printed Memory — Warm, heartfelt, emotionally thoughtful
   =========================== */

:root {
  --cream: #FFF8F0;
  --blush: #F9E4D4;
  --beige: #EDE3D6;
  --warm-gold: #C4A882;
  --charcoal: #3D3831;
  --warm-gray: #7A6F66;
  --light-gray: #B8ADA4;
  --white: #FFFFFF;
  --surface: #FAF6F0;
  --shadow-soft: rgba(61, 56, 49, 0.08);
  --shadow-medium: rgba(61, 56, 49, 0.14);
}

/* ===========================
   Base
   =========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; font-family: 'Nunito', sans-serif; }

p { color: var(--warm-gray); }

a { color: inherit; text-decoration: none; }

/* ===========================
   Navigation
   =========================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--beige);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--warm-gray);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--charcoal);
  color: var(--cream) !important;
  padding: 0.45rem 1.25rem;
  border-radius: 20px;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: #2a2520 !important;
  color: var(--cream) !important;
}

/* ===========================
   Hero
   =========================== */

.hero {
  padding: 6rem 2rem 5rem;
  background: var(--cream);
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gold);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--warm-gray);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-examples {
  margin-top: 0.5rem;
}

.example-label {
  font-size: 0.75rem;
  color: var(--light-gray);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--blush);
  color: var(--warm-gray);
  font-size: 0.8rem;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-weight: 500;
}

/* ===========================
   Hero Visual — Card Stack
   =========================== */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 480px;
}

.card-stack {
  position: relative;
  width: 300px;
  height: 380px;
}

.message-card {
  position: absolute;
  width: 280px;
  background: var(--white);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 8px 32px var(--shadow-soft), 0 2px 8px var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-back {
  top: 20px;
  left: 10px;
  transform: rotate(-8deg);
  background: var(--blush);
  opacity: 0.6;
}

.card-middle {
  top: 55px;
  left: 0;
  transform: rotate(-3deg);
  background: var(--beige);
  opacity: 0.85;
}

.card-front {
  top: 0;
  left: 20px;
  transform: rotate(2deg);
  background: var(--white);
  border: 1px solid var(--beige);
}

.card-occasion {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gold);
}

.card-snippet {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--charcoal);
  opacity: 0.7;
}

.card-message {
  font-family: 'Fraunces', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.55;
  flex: 1;
}

.card-formats {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.format-badge {
  font-size: 0.62rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--warm-gold);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

/* ===========================
   Section Shared
   =========================== */

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-gold);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-heading {
  font-weight: 300;
  color: var(--charcoal);
}

/* ===========================
   How It Works
   =========================== */

.howitworks {
  padding: 7rem 2rem;
  background: var(--surface);
}

.howitworks-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--beige), var(--beige), transparent);
}

.step-number {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--warm-gold);
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.step-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.step-content p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--warm-gray);
}

/* ===========================
   Occasions
   =========================== */

.occasions {
  padding: 7rem 2rem;
  background: var(--cream);
}

.occasions-inner {
  max-width: 1000px;
  margin: 0 auto;
}

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

.occasion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--beige);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
}

.occasion-item svg {
  color: var(--warm-gold);
  flex-shrink: 0;
}

/* ===========================
   Why SimplyWrote
   =========================== */

.different {
  padding: 7rem 2rem;
  background: var(--blush);
}

.different-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: start;
}

.different-heading {
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 3rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.difference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.diff-item h4 {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.diff-item p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--warm-gray);
}

.different-quote {
  padding: 2.5rem;
  background: var(--cream);
  border-radius: 20px;
  margin-top: 4rem;
  border: 1px solid var(--beige);
}

.different-quote blockquote {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.quote-attribution {
  font-size: 0.8rem;
  color: var(--light-gray);
  font-style: normal;
}

/* ===========================
   Closing Statement
   =========================== */

.closer {
  padding: 8rem 2rem;
  background: var(--charcoal);
  text-align: center;
}

.closer-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closer h2 {
  color: var(--cream);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.75rem;
  line-height: 1.2;
}

.closer p {
  color: var(--light-gray);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ===========================
   Footer
   =========================== */

.footer {
  padding: 3rem 2rem 2.5rem;
  background: var(--cream);
  border-top: 1px solid var(--beige);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--light-gray);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--warm-gray);
  transition: color 0.2s;
}

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

.footer-note {
  font-size: 0.72rem;
  color: var(--light-gray);
  max-width: 560px;
  line-height: 1.5;
}

/* ===========================
   CTA Buttons
   =========================== */

.btn-primary {
  display: inline-block;
  background: var(--charcoal);
  color: var(--cream) !important;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
}

.btn-primary:hover {
  background: #2a2520 !important;
  transform: translateY(-1px);
  color: var(--cream) !important;
}

.closer-cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.85rem 2.25rem;
  background: var(--cream);
  color: var(--charcoal) !important;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
}

.closer-cta:hover {
  background: var(--white) !important;
  transform: translateY(-2px);
  color: var(--charcoal) !important;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    height: 340px;
  }

  .card-stack {
    transform: scale(0.85);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .steps::before { display: none; }

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

  .different-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .difference-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-visual {
    display: none;
  }

  .howitworks, .occasions, .different {
    padding: 5rem 1.5rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .occasion-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .occasion-item {
    padding: 0.75rem 0;
  }

  .closer {
    padding: 5rem 1.5rem;
  }

  .nav-links { display: none; }

  .footer-links {
    gap: 1rem;
  }
}

/* ─────────────────────────────────────────────
   Printed Memory global launch styling
   Warm, polished, soft stationery-inspired UI
───────────────────────────────────────────── */

:root {
  --pm-bg: #fffaf4;
  --pm-bg-soft: #f7f1ea;
  --pm-card: #ffffff;
  --pm-card-warm: #fff8ef;
  --pm-ink: #3d3831;
  --pm-muted: #6f6258;
  --pm-soft-muted: #9b8b7d;
  --pm-border: rgba(196, 168, 130, 0.28);
  --pm-border-strong: rgba(196, 168, 130, 0.42);
  --pm-shadow: 0 14px 38px rgba(61, 56, 49, 0.08);
  --pm-shadow-strong: 0 18px 55px rgba(61, 56, 49, 0.12);
  --pm-radius: 24px;
  --pm-radius-sm: 16px;
  --pm-button: #3d3831;
  --pm-button-hover: #292520;
  --pm-gold: #c4a882;
  --pm-blush: #f5d8dc;
}

html {
  background: var(--pm-bg);
}

body {
  background:
    radial-gradient(circle at top left, rgba(245, 216, 220, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(196, 168, 130, 0.13), transparent 30rem),
    var(--pm-bg);
  color: var(--pm-ink);
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Headings */

h1,
h2,
h3,
h4,
.brand-name,
.logo-text {
  color: var(--pm-ink);
}

h1,
h2,
h3 {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.02em;
}

p {
  color: var(--pm-muted);
}

/* Shared cards */

.auth-card,
.output-card,
.template-section,
.card-setup-section,
.image-card,
.empty-state,
.next-step-card,
.alternate-section,
.library-card,
.account-card,
.info-card,
.pricing-card,
.checkout-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
}

/* Forms */

input,
select,
textarea {
  border: 1px solid var(--pm-border-strong);
  border-radius: 14px;
  background: #ffffff;
  color: var(--pm-ink);
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(196, 168, 130, 0.78);
  box-shadow: 0 0 0 4px rgba(196, 168, 130, 0.13);
}

label {
  color: var(--pm-ink);
}

/* Buttons */

button,
.auth-btn,
.btn-generate,
.btn-next-step,
.primary-link,
.btn-download-open,
.ctrl-unlock {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-btn,
.btn-generate,
.btn-next-step,
.primary-link,
.btn-download-open,
.ctrl-unlock {
  background: var(--pm-button);
  color: #ffffff;
  border-radius: 999px;
  border: none;
  font-weight: 800;
}

.auth-btn:hover,
.btn-generate:hover,
.btn-next-step:hover,
.primary-link:hover,
.btn-download-open:hover,
.ctrl-unlock:hover {
  background: var(--pm-button-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(61, 56, 49, 0.16);
}

/* Secondary buttons / links */

.secondary-link,
.btn-copy,
.btn-regen,
.btn-edit-message,
.btn-download {
  border: 1px solid var(--pm-border-strong);
  background: #fffaf4;
  color: var(--pm-ink);
  border-radius: 12px;
}

.secondary-link:hover,
.btn-copy:hover,
.btn-regen:hover,
.btn-edit-message:hover,
.btn-download:hover {
  background: #fff4e8;
}

/* Nav polish */

.site-nav,
nav,
.header,
.pm-nav {
  background: rgba(255, 250, 244, 0.92);
  border-bottom: 1px solid rgba(196, 168, 130, 0.18);
  backdrop-filter: blur(10px);
}

.site-nav a,
nav a,
.header a {
  color: var(--pm-ink);
}

.site-nav a:hover,
nav a:hover,
.header a:hover {
  color: #1f1b17;
}

/* Small labels / eyebrows */

.gen-eyebrow,
.next-step-eyebrow,
.card-tab-step,
.output-label,
.form-disclaimer,
.image-type {
  color: var(--pm-soft-muted);
  letter-spacing: 0.08em;
}

/* Output/result styling */

.output-card {
  overflow: hidden;
}

.output-card-header {
  align-items: center;
}

.output-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, #ffe8ef, #fff1dc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Generator step tabs */

.card-step-tabs .card-tab {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--pm-border);
}

.card-step-tabs .card-tab.active {
  background: linear-gradient(135deg, #fff8ef 0%, #ffffff 100%);
  border-color: var(--pm-border-strong);
}

/* Alerts */

.alert {
  border-radius: 14px;
}

.alert-success,
.unlock-status.unlocked {
  background: #eef8f1;
  color: #2f6f44;
  border: 1px solid rgba(47, 111, 68, 0.18);
}

.alert-error {
  background: #fff0f0;
  color: #8a2d2d;
  border: 1px solid rgba(138, 45, 45, 0.18);
}

/* Page spacing */

main,
.page-wrap,
.library-wrap,
.account-wrap,
.pricing-wrap {
  position: relative;
}

section {
  scroll-margin-top: 90px;
}

/* Mobile polish */

@media (max-width: 760px) {
  body {
    background: var(--pm-bg);
  }

  .auth-card,
  .output-card,
  .template-section,
  .card-setup-section,
  .image-card,
  .empty-state,
  .next-step-card,
  .alternate-section,
  .pricing-card {
    border-radius: 20px;
  }
}