/* ================================================
   KEEPERS — Shared Stylesheet
   ================================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg:           #FDFAF6;
  --white:        #FFFFFF;
  --text:         #2C2928;
  --text-muted:   #7A7169;
  --accent:       #C9A84C;
  --accent-hover: #B8962E;
  --accent-bg:    #F5EDD6;
  --accent-light: #FBF7EE;
  --border:       #E8DFD0;
  --charcoal:     #1E1B18;
  --step-bg:      #F8F4EE;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  --max-width: 1100px;
  --gutter:    24px;
  --transition: 0.28s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ================================================
   ANIMATIONS
   ================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.22s; }
.fade-in-delay-3 { transition-delay: 0.34s; }
.fade-in-delay-4 { transition-delay: 0.46s; }

/* ================================================
   TYPOGRAPHY
   ================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.125rem; }

p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.875rem;
}

/* ================================================
   BUTTONS
   ================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border);
}

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

.btn-nav {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 9px 22px;
  font-size: 0.875rem;
}

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

/* ================================================
   NAVIGATION
   ================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  background: rgba(253, 250, 246, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.nav.scrolled { border-bottom-color: var(--border); }

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

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

/* ================================================
   IMAGE PLACEHOLDER
   ================================================ */

.img-placeholder {
  background: var(--accent-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
  border: 1px dashed var(--border);
  width: 100%;
}

.img-placeholder span { max-width: 240px; line-height: 1.6; }

/* ================================================
   HERO
   ================================================ */

.hero {
  padding-top: 128px;
  padding-bottom: 80px;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  width: 100%;
}

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

.hero-content h1 { margin-bottom: 1.125rem; }

.hero-content .hero-sub {
  font-size: 1.125rem;
  margin-bottom: 2.25rem;
  max-width: 440px;
}

.hero-image .img-placeholder {
  aspect-ratio: 4 / 5;
  max-height: 580px;
}

/* ================================================
   HOW IT WORKS
   ================================================ */

.how-it-works {
  padding: 96px var(--gutter);
  background: var(--step-bg);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-header h2 { margin-bottom: 14px; }

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

.step {
  padding: 40px 32px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.06);
}

.step-number {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.step h3 { margin-bottom: 10px; }

.step p { font-size: 0.9375rem; }

/* ================================================
   EMOTIONAL HOOK — Shared Base
   ================================================ */

.emotional-hook {
  padding: 96px var(--gutter);
}

.hook-center {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hook-center h2 { margin-bottom: 1.25rem; }
.hook-center > p { max-width: 560px; margin: 0 auto 3rem; }

.hook-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3.5vw, 2.125rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--charcoal);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 48px 0;
}

.hook-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
  text-align: left;
}

.hook-card {
  padding: 30px 26px;
  background: var(--accent-light);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.hook-card h4 {
  font-family: var(--font-serif);
  color: var(--charcoal);
  margin-bottom: 10px;
  font-size: 1.125rem;
}

.hook-card p { font-size: 0.9375rem; line-height: 1.65; }

/* Split layout variant */
.hook-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hook-split .hook-text h2 { margin-bottom: 1.25rem; }
.hook-split .hook-text p  { margin-bottom: 1rem; }
.hook-split .hook-text .btn { margin-top: 1.25rem; }

.hook-split .hook-img .img-placeholder { aspect-ratio: 3 / 4; }

/* ================================================
   WAITLIST
   ================================================ */

.waitlist {
  padding: 96px var(--gutter);
  background: var(--charcoal);
}

.waitlist-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-inner h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.waitlist-inner > p {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 40px;
  font-size: 1.0625rem;
}

.waitlist-form .form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.waitlist-form input {
  flex: 1;
  min-width: 190px;
  padding: 14px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition);
}

.waitlist-form input::placeholder { color: rgba(255, 255, 255, 0.38); }
.waitlist-form input:focus { border-color: var(--accent); }

.form-note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 16px;
}

.form-success {
  display: none;
  padding: 20px 24px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  margin-top: 20px;
  text-align: center;
}

.form-success.visible { display: block; }

/* ================================================
   FOOTER
   ================================================ */

.footer {
  padding: 28px var(--gutter);
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-nav { display: flex; gap: 24px; }

.footer-nav a {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-nav a:hover { color: rgba(255, 255, 255, 0.75); }

.footer-copy {
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.8125rem;
}

/* ================================================
   HUB PAGE
   ================================================ */

.hub-hero {
  padding: 160px var(--gutter) 72px;
  text-align: center;
}

.hub-hero .eyebrow { justify-content: center; display: flex; }
.hub-hero h1 { margin-bottom: 20px; }

.hub-hero p {
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.variants-section {
  padding: 32px var(--gutter) 100px;
}

.variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.variant-card {
  display: block;
  padding: 40px 36px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.variant-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.07);
  border-color: var(--accent);
}

.variant-card .card-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.variant-card h3 {
  font-size: 1.375rem;
  margin-bottom: 10px;
}

.variant-card p { font-size: 0.9375rem; }

.card-arrow {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.variant-card:hover .card-arrow { transform: translateX(6px); }

/* ================================================
   COMMEMORATION OVERRIDES
   ================================================ */

body.page-commemoration {
  --accent:       #9B8265;
  --accent-hover: #7D6850;
  --accent-bg:    #F0EAE0;
  --accent-light: #F5F1EA;
  --step-bg:      #F0EAE0;
}

body.page-commemoration .hook-center { max-width: 680px; }

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 820px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-content .hero-sub { max-width: 100%; }

  .hero-image { order: -1; }

  .hero-image .img-placeholder {
    aspect-ratio: 3 / 2;
    max-height: 300px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hook-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hook-split {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hook-split .hook-img { order: -1; }

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

@media (max-width: 540px) {
  :root { --gutter: 20px; }

  .hero {
    padding-top: 104px;
    padding-bottom: 60px;
    min-height: unset;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .how-it-works,
  .emotional-hook,
  .waitlist { padding: 72px var(--gutter); }

  .waitlist-form .form-row { flex-direction: column; }
  .waitlist-form input    { min-width: 100%; }

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

  .btn-primary { width: 100%; }
  .btn-nav     { width: auto; }
}

/* ================================================
   FRAMEO-INSPIRED REFINEMENTS
   ================================================ */

/* --- Accent word in headlines --- */
em.accent {
  font-style: italic;
  color: var(--accent);
  font-family: var(--font-serif);
}

/* --- Stats bar --- */
.stats-bar {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.stat { text-align: center; padding: 0 20px; }

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.625rem;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.stat + .stat { border-left: 1px solid var(--border); }

/* --- Softer step cards: filled, no hard border --- */
.step {
  background: var(--accent-light);
  border-color: transparent;
}

.step:hover { box-shadow: 0 16px 48px rgba(0, 0, 0, 0.05); }

/* --- Softer hook cards: no border --- */
.hook-card { border-color: transparent; }

/* --- Rounded top on dark/colored sections --- */
.how-it-works {
  border-radius: 28px 28px 0 0;
  padding-top: 112px;
  padding-bottom: 112px;
}

.waitlist { border-radius: 28px 28px 0 0; }

/* --- More generous emotional hook breathing room --- */
.emotional-hook { padding: 112px var(--gutter); }

/* --- Responsive stats bar --- */
@media (max-width: 640px) {
  .stat + .stat { border-left: none; }
  .stats-inner   { flex-direction: column; gap: 20px; }
  .stat          { width: 100%; }
}
