/* landing.css | split from styles.css (cascade-preserving; see index.html link order) */
/* ── 5. Site header ────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(247,244,242,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.site-logo-icon { color: var(--coral); flex-shrink: 0; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 120ms;
}
.site-nav-link:hover { color: var(--ink); }

/* Hamburger button — only visible on mobile */
.site-nav-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-nav-menu-btn:hover { background: var(--stone); }

@media (max-width: 640px) {
  .site-header-inner,
  .wizard-bar-inner { padding: 0 16px; }

  .site-nav-menu-btn { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) - 6px);
    right: 12px;
    left: auto;
    z-index: 199;
    width: 180px;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border-radius: var(--r-md);
    box-shadow: 0 14px 32px rgba(17, 17, 17, 0.12);
    transform-origin: top right;
    transform: scale(0.96) translateY(-4px);
    opacity: 0;
    pointer-events: none;
    transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
  }
  .site-header.menu-open .site-nav {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Items — same treatment for <a> and <button>; .site-nav .site-nav-link
     beats .site-nav-link--button { padding: 0 } (equal specificity, source order). */
  .site-nav .site-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-align: left;
    border: none;
    border-radius: var(--r-sm);
    background: none;
    font-family: inherit;
    cursor: pointer;
  }
  .site-nav .site-nav-link[hidden] { display: none; }
  .site-nav .site-nav-link:hover,
  .site-nav .site-nav-link:active { background: var(--stone); }

  .site-nav .btn-primary {
    width: 100%;
    height: 40px;
    margin-top: 6px;
    font-size: 14px;
  }
}

/* ── 6. Landing — Hero ─────────────────────────────────────────── */

.page-landing {
  min-height: 100dvh;
}

.hero {
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255,90,110,0.13) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(127,169,201,0.10) 0%, transparent 50%),
    var(--stone);
  overflow: hidden;
  padding: 60px 0 80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 750;
  line-height: 1.10;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--coral);
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 13px;
  color: var(--faint);
}

/* Hero visual: overlapping memory cards */
.hero-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cards {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-card {
  position: absolute;
  width: 220px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  transition: transform 300ms ease;
}

.hero-card:hover { transform: translateY(-4px) !important; }

.hero-card--1 { top: 24px;  left: 10%;  transform: rotate(-4deg); }
.hero-card--2 { top: 60px;  left: 35%;  transform: rotate(2deg); z-index: 2; }
.hero-card--3 { top: 30px;  right: 0%;  transform: rotate(-2deg); }
.hero-card--4 { top: 240px; left: 20%;  transform: rotate(3deg); z-index: 1; }

/* The whole card is now the 1:1 image; the title sits as an overlay at the
   bottom with a soft dark-to-transparent scrim for legibility. */
.hero-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
}

.hero-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.30) 55%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.hero-card-title {
  font-size: 13px;
  font-weight: 650;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
/* Meta line removed from the hero cards — keep only the title. */
.hero-card-meta { display: none; }

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { height: 280px; }
  .hero-card { width: 150px; }
  .hero-card--1 { top: 16px; left: 5%; }
  .hero-card--2 { top: 40px; left: 30%; }
  .hero-card--3 { top: 20px; right: 2%; }
  .hero-card--4 { display: none; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding: 40px 0 60px; }
  .hero-visual { height: 200px; }
}

/* ── 7. Landing — How it works ─────────────────────────────────── */

.how-it-works {
  padding: var(--section-pad) 0;
  background: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.section-sub {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

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

/* Connector line — runs through the vertical center of the 48px circles
   (top: 24px) and is covered by the dots where they overlap. Insets pin
   the line ends to the inner edges of the outer circles:
   col width = (100% - 80px) / 3  →  half-col = (100% - 80px) / 6
   plus 24px (half the circle) reaches the first circle's right edge. */
.steps-grid::before {
  content: "";
  position: absolute;
  top: 24px;
  left: calc((100% - 80px) / 6 + 24px);
  right: calc((100% - 80px) / 6 + 24px);
  height: 1px;
  background: var(--line-md);
}

.step {
  text-align: center;
  padding: 0 16px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(var(--coral-dim), var(--coral-dim)) var(--stone);
  color: var(--coral);
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.step-title {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .step              { padding: 0 8px; }
  .step-num          { width: 40px; height: 40px; font-size: 16px; margin-bottom: 14px; }
  .step-title        { font-size: 17px; }
  .step-desc         { font-size: 14px; }
}

/* ── 8. Landing — Examples ─────────────────────────────────────── */

.examples {
  padding: var(--section-pad) 0;
  background: var(--stone);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.example-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  background: var(--surface);
  transition: transform 200ms ease, box-shadow 200ms ease;
  aspect-ratio: 1 / 1;
}
.example-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.example-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
}
/* Body is now an overlay at the bottom of the 1:1 image with a soft
   dark-to-transparent scrim for legibility. */
.example-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 18px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.36) 50%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.example-card-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.example-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.example-card-place {
  font-size: 12.5px;
  color: #fff;
  opacity: 0.78;
  margin-top: 3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

@media (max-width: 900px) {
  .examples-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .examples-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ── 9. Landing — Features ─────────────────────────────────────── */

.features {
  padding: var(--section-pad) 0;
  background: var(--surface);
}

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

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  padding: 28px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--warm-white);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--coral-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--coral);
}
.feature-title {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── 10. Landing — Final CTA ───────────────────────────────────── */

.final-cta {
  padding: 120px 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255,90,110,0.12) 0%, transparent 60%),
    var(--stone);
  text-align: center;
}
.final-cta-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 750;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.final-cta-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
}

/* ── 11. Landing — Footer ──────────────────────────────────────── */

.site-footer {
  padding: 32px 0;
  background: var(--stone);
}
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.site-footer-copy {
  font-size: 13px;
  color: var(--faint);
}

