:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.08);
  --line-strong: rgba(29, 29, 31, 0.12);
  --accent: #ff5b37;
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.06);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "SF Pro Display", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 120px;
}

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 68px;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: 118px;
  max-width: 100%;
  height: auto;
}

/* ── Typography ─────────────────────────────────────────── */
.brand-subline,
.section-kicker,
.eyebrow,
.microcopy,
.memory-kicker,
.memory-frame-meta,
.memory-note-label {
  color: var(--muted);
  letter-spacing: -0.01em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(3.35rem, 6.45vw, 5.85rem);
  line-height: 1.0;
  max-width: 17.8ch;
  margin: 0 auto;
}

h2 {
  margin-top: 12px;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.6rem;
  line-height: 1.08;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
}

/* ── Hover states ───────────────────────────────────────── */
.topbar-link:hover,
.topbar-link:focus-visible,
.button:hover,
.button:focus-visible,
.benefit-card:hover,
.process-card:hover {
  transform: translateY(-1px);
}

/* ── Sections ───────────────────────────────────────────── */
.section {
  padding-top: 120px;
}

/* ── Hero ───────────────────────────────────────────────── */
.section-hero {
  padding-top: 0;
  padding-bottom: 0;
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-copy {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0 96px;
}

/* pill label above heading */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-bottom: 44px;
}

.hero-eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-lead {
  max-width: 680px;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
  line-height: 1.72;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 52px;
}

/* ── Button ─────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1.04rem;
  font-weight: 700;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 34px rgba(255, 91, 55, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ff6a49;
  box-shadow: 0 20px 40px rgba(255, 91, 55, 0.34);
}

.microcopy {
  font-size: 0.94rem;
  color: var(--muted);
}

/* ── Showcase / memory frame ────────────────────────────── */
.memory-frame {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.memory-frame-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.92rem;
  font-weight: 500;
}

.memory-accent-band {
  position: absolute;
  left: 28%;
  right: 0;
  bottom: 120px;
  height: 190px;
  background: var(--accent);
}

.memory-display {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: end;
  min-height: 620px;
  padding: 70px 8px 6px;
}

.memory-copy-column {
  position: relative;
  z-index: 2;
}

.memory-kicker,
.memory-note-label,
.memory-frame-meta,
.section-kicker,
.eyebrow,
.microcopy {
  font-size: 0.95rem;
}

.memory-kicker {
  display: inline-block;
  margin-bottom: 28px;
}

.memory-word-wrap {
  position: relative;
  min-height: 220px;
  display: inline-flex;
  align-items: flex-start;
}

.memory-word,
.memory-word-shadow {
  display: inline-flex;
  align-items: flex-start;
}

.memory-word,
.memory-word-shadow {
  position: absolute;
  left: 0;
  top: 0;
  font-size: clamp(4.6rem, 9vw, 8rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.08em;
  white-space: nowrap;
  transition:
    opacity 560ms ease,
    transform 720ms ease,
    filter 720ms ease,
    letter-spacing 720ms ease;
}

.memory-letter {
  display: inline-block;
  position: relative;
  transition: transform 460ms ease;
  will-change: transform;
}

.memory-letter.is-left {
  transform: translateX(var(--swap-distance));
}

.memory-letter.is-right {
  transform: translateX(calc(var(--swap-distance) * -1));
}

.memory-letter.is-drift {
  transform: translateX(var(--drift-distance)) translateY(-4px);
}

.memory-word {
  color: var(--ink);
}

.memory-word-shadow {
  color: rgba(29, 29, 31, 0.08);
  transform: translate(12px, 12px);
}

.memory-word.is-morphing {
  opacity: 0.65;
  transform: translateX(10px) scale(1.025);
  filter: blur(0.9px);
  letter-spacing: -0.065em;
}

.memory-word-shadow.is-morphing {
  transform: translate(18px, 20px) scale(1.06);
  filter: blur(2px);
}

.memory-note-card {
  position: relative;
  z-index: 2;
  align-self: start;
  margin-top: 12px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.memory-note-card p {
  margin-top: 10px;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ── Explanation / generic sections ────────────────────── */
.section-single {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-body {
  display: grid;
  gap: 22px;
  max-width: 660px;
}

.section-body-centered {
  margin: 28px auto 0;
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ── Process grid ───────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.process-card,
.benefit-card,
.cta-panel {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.process-card {
  min-height: 260px;
  padding: 30px;
}

.process-index {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
}

.process-card p,
.benefit-card p {
  margin-top: 12px;
}

/* ── Benefits grid ──────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.benefit-card {
  min-height: 250px;
  padding: 32px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

/* ── CTA panel ──────────────────────────────────────────── */
.cta-panel {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 40px;
}

.cta-panel p {
  max-width: 640px;
  margin: 18px auto 0;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 120px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.footer-logo {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
}

.footer-meta {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ── Reveal animation ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 760ms ease,
    transform 760ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .memory-display {
    grid-template-columns: 1fr;
    min-height: 520px;
    gap: 20px;
  }

  .memory-note-card {
    max-width: 360px;
  }

  .process-grid,
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 0 16px 88px;
  }

  .topbar {
    min-height: 56px;
  }

  .brand-logo {
    width: 92px;
  }

  .section {
    padding-top: 88px;
  }

  .section-hero {
    min-height: calc(100svh - 56px);
  }

  .hero-copy {
    padding: 40px 0;
  }

  .hero-eyebrow {
    margin-bottom: 32px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(3rem, 7.7vw, 4.35rem);
    max-width: 13.6ch;
  }

  .hero-lead {
    margin-top: 28px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 36px;
    flex-direction: column;
  }

  .memory-frame {
    padding: 20px;
    border-radius: 28px;
  }

  .memory-frame-meta {
    flex-direction: column;
    gap: 8px;
  }

  .memory-display {
    min-height: 420px;
    padding-top: 40px;
  }

  .memory-accent-band {
    left: 20%;
    bottom: 92px;
    height: 132px;
  }

  .memory-word-wrap {
    min-height: 160px;
  }

  .memory-note-card {
    max-width: none;
  }

  .process-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .benefit-card,
  .process-card,
  .cta-panel {
    padding: 24px;
  }

  .cta-panel {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .final-actions {
    flex-direction: column;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
