/* KindKeep — shared landing styles */

:root {
  --kk-bg: #FEF9F3;
  --kk-surface: #FFE2D9;
  --kk-surface2: #FFEDE5;
  --kk-primary: #FFB4A2;
  --kk-accent: #FF938A;
  --kk-accent-deep: #E07566;
  --kk-text: #3D1F1A;
  --kk-text2: #7A4A43;
  --kk-text3: #A88078;
  --kk-divider: #FFD5C8;
  --kk-white: #FFFFFF;
  --kk-success: #5C9E6E;

  --sans: "Inter", -apple-system, system-ui, sans-serif;
  --serif: "Fraunces", "New York", Georgia, serif;
  --hand: "Caveat", "Fraunces", cursive;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--kk-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  color: var(--kk-text);
  line-height: 1.5;
}

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

::selection { background: var(--kk-primary); color: var(--kk-text); }

img { max-width: 100%; display: block; }

/* ── Typography helpers ─────────────────────────────── */
.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--kk-text2);
}

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.handwritten {
  font-family: var(--hand);
  font-weight: 500;
}

/* ── Container ──────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 48px;
  background: rgba(254, 249, 243, 0.78);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--kk-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo .wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.6px;
  color: var(--kk-text);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a:not(.btn-pill-dark) {
  font-size: 14px;
  color: var(--kk-text2);
  font-weight: 500;
}
.nav-links a:not(.btn-pill-dark):hover { color: var(--kk-text); }

.btn-pill-dark {
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  background: #ffffff;
  color: var(--kk-text);
  border: 1.5px solid var(--kk-divider);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(61, 31, 26, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
              background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-pill-dark svg { fill: currentColor; }
.btn-pill-dark:hover {
  transform: translateY(-1px);
  background: var(--kk-text);
  color: #ffffff;
  border-color: var(--kk-text);
  box-shadow: 0 8px 20px rgba(61, 31, 26, 0.22);
}

/* ── App Store button ───────────────────────────────── */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 22px;
  border-radius: 30px;
  background: var(--kk-text);
  color: var(--kk-white);
  box-shadow: 0 12px 28px rgba(61, 31, 26, 0.25);
  transition: transform 0.2s ease;
}
.appstore-btn:hover { transform: translateY(-2px); }
.appstore-btn--md { height: 52px; padding: 0 18px; border-radius: 26px; }
.appstore-btn--light {
  background: var(--kk-white);
  color: var(--kk-text);
  border: 1.5px solid var(--kk-divider);
  box-shadow: 0 8px 24px rgba(61, 31, 26, 0.08);
}

.appstore-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.appstore-btn-text .small {
  font-size: 10px;
  opacity: 0.7;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}
.appstore-btn-text .big {
  font-size: 19px;
  font-weight: 600;
  margin-top: 3px;
  letter-spacing: -0.3px;
}
.appstore-btn--md .appstore-btn-text .big { font-size: 16px; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 48px 120px;
  background: radial-gradient(ellipse 90% 70% at 50% 0%, var(--kk-surface2) 0%, var(--kk-bg) 60%);
}
.hero-blob-1 {
  position: absolute; top: -160px; right: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, var(--kk-surface) 0%, transparent 70%);
  filter: blur(40px); opacity: 0.7;
  pointer-events: none;
}
.hero-blob-2 {
  position: absolute; bottom: -180px; left: -140px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, var(--kk-primary) 0%, transparent 70%);
  filter: blur(60px); opacity: 0.25;
  pointer-events: none;
}
.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--kk-white);
  border: 1px solid var(--kk-divider);
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--kk-text2);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 84px;
  line-height: 0.96;
  letter-spacing: -2.5px;
  margin: 0;
  color: var(--kk-text);
}
.h1 .accent { color: var(--kk-accent); }

.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--kk-text2);
  margin-top: 28px;
  max-width: 520px;
}

.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.cta-row .privacy-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--kk-text2); font-weight: 500;
}

.handwritten-quote {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.handwritten-quote .big {
  font-family: var(--hand);
  font-size: 26px;
  color: var(--kk-accent-deep);
  transform: rotate(-3deg);
  display: inline-block;
}
.handwritten-quote .small {
  font-size: 13px; color: var(--kk-text3); font-style: italic;
}

/* ── Phone mockup ───────────────────────────────────── */
.phone-stage {
  position: relative;
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  background: #F2F2F7;
  box-shadow:
    0 50px 100px -20px rgba(61, 31, 26, 0.35),
    0 30px 60px -30px rgba(61, 31, 26, 0.3),
    0 0 0 1.5px rgba(61, 31, 26, 0.06);
}
.phone-island {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 28px;
  border-radius: 18px;
  background: #000;
  z-index: 50;
}
.phone-home-indicator {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center;
  z-index: 60;
}
.phone-home-indicator span {
  width: 110px; height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.25);
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 6px;
  position: relative;
  z-index: 10;
}
.phone-status .time {
  font-weight: 600;
  font-size: 14px;
  color: #000;
}
.phone-status .icons { display: flex; gap: 4px; align-items: center; }

.phone-content {
  background: var(--kk-bg);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Image-backed phone — used when we have a real iOS screenshot.
   The screenshot already includes its own status bar + dynamic island
   + bottom tab bar, so we suppress all CSS chrome. */
.phone--image .phone-island,
.phone--image .phone-home-indicator { display: none; }
.phone--image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* People list inside phone */
.phone-section-header {
  padding: 8px 22px 6px;
}
.phone-section-header .day {
  font-size: 11px;
  color: var(--kk-text2);
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
}
.phone-section-header .title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  font-weight: 500;
  color: var(--kk-text);
  letter-spacing: -0.8px;
  margin-top: 4px;
  line-height: 1.05;
}

.phone-list {
  padding: 14px 14px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-card-pin {
  background: var(--kk-surface);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.phone-card-pin .icon-bubble {
  width: 40px; height: 40px;
  border-radius: 20px;
  background: var(--kk-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--kk-white);
}
.phone-card-pin .body { flex: 1; min-width: 0; }
.phone-card-pin .body .title { font-size: 13px; font-weight: 600; color: var(--kk-text); }
.phone-card-pin .body .sub { font-size: 11px; color: var(--kk-text2); margin-top: 1px; }
.phone-card-pin .cta { font-size: 11px; color: var(--kk-accent-deep); font-weight: 600; }

.phone-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 6px;
}
.phone-avatar {
  width: 36px; height: 36px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
  color: var(--kk-text);
  flex-shrink: 0;
}
.phone-row .body { flex: 1; min-width: 0; }
.phone-row .body .name { font-size: 13px; font-weight: 600; color: var(--kk-text); }
.phone-row .body .detail {
  font-size: 11px; color: var(--kk-text2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Floating elements over hero phone */
.notif-card {
  width: 300px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 20px 50px -12px rgba(61, 31, 26, 0.25), 0 0 0 1px rgba(61, 31, 26, 0.04);
  display: flex; gap: 10px; align-items: flex-start;
}
.notif-card .icon-bubble {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--kk-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-card .head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.notif-card .head .name { font-size: 12px; font-weight: 600; color: var(--kk-text); letter-spacing: -0.1px; }
.notif-card .head .time { font-size: 11px; color: var(--kk-text3); }
.notif-card .title { font-size: 13px; font-weight: 600; color: var(--kk-text); margin-top: 2px; }
.notif-card .body { font-size: 12px; color: var(--kk-text2); margin-top: 1px; line-height: 1.35; }

.memory-card {
  width: 168px;
  padding: 12px;
  border-radius: 6px;
  background: var(--kk-white);
  box-shadow:
    0 18px 40px -10px rgba(61, 31, 26, 0.18),
    0 6px 14px rgba(61, 31, 26, 0.06);
}
.memory-card .photo {
  width: 100%; height: 138px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--kk-surface) 0%, var(--kk-primary) 120%);
  display: flex; align-items: center; justify-content: center;
}
.memory-card .photo .initials {
  font-family: var(--serif);
  font-style: italic;
  font-size: 64px;
  font-weight: 500;
  color: var(--kk-white);
  opacity: 0.92;
}
.memory-card .label-block { padding: 10px 4px 4px; text-align: center; }
.memory-card .label-block .name {
  font-family: var(--hand);
  font-size: 22px;
  font-weight: 500;
  color: var(--kk-text);
  line-height: 1;
}
.memory-card .label-block .sub {
  font-size: 10px;
  color: var(--kk-text2);
  margin-top: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.handwritten-note-card {
  padding: 14px 16px;
  background: var(--kk-white);
  border-radius: 14px;
  box-shadow: 0 16px 36px -10px rgba(61, 31, 26, 0.16);
  max-width: 200px;
}
.handwritten-note-card .note {
  font-family: var(--hand);
  font-size: 22px;
  color: var(--kk-text);
  line-height: 1.05;
}
.handwritten-note-card .ts {
  font-size: 10px; color: var(--kk-text2);
  margin-top: 6px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Hero floating positions */
.float-notif { position: absolute; top: 30px; left: -30px; z-index: 30; transform: rotate(-3deg); }
.float-memory { position: absolute; bottom: 20px; right: -20px; z-index: 30; transform: rotate(5deg); }
.float-note { position: absolute; bottom: 80px; left: -10px; z-index: 30; transform: rotate(-4deg); }
.hero-phone-wrap { position: absolute; transform: translate(0, -10px); }

/* ── Problem section ────────────────────────────────── */
.problem {
  padding: 140px 48px;
  background: var(--kk-bg);
}
.problem .head {
  max-width: 980px;
  margin: 0 auto;
}
.h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0;
  color: var(--kk-text);
}
.h2 .accent { color: var(--kk-accent); }
.problem .lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--kk-text2);
  margin-top: 28px;
  max-width: 640px;
}
.problem-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.problem-card {
  padding: 24px 28px;
  background: var(--kk-white);
  border: 1px solid var(--kk-divider);
  border-radius: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  color: var(--kk-text);
}
.problem-card.highlight { background: var(--kk-surface); }
.problem-finale {
  margin-top: 64px;
  text-align: center;
}
.problem-finale span {
  font-family: var(--hand);
  font-size: 38px;
  color: var(--kk-accent-deep);
  transform: rotate(-1.5deg);
  display: inline-block;
  line-height: 1.1;
}

/* ── Features ───────────────────────────────────────── */
.features {
  padding: 140px 48px;
  background: linear-gradient(180deg, var(--kk-bg) 0%, var(--kk-surface2) 100%);
}
.features .heading {
  text-align: center;
  margin-bottom: 80px;
}
.h2-large {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 60px;
  letter-spacing: -1.5px;
  margin: 0;
  color: var(--kk-text);
  line-height: 1.05;
}
.features-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--kk-white);
  border: 1px solid var(--kk-divider);
  border-radius: 28px;
  padding: 40px 44px;
  min-height: 360px;
}
.feature-card .icon-bubble {
  display: inline-flex;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--kk-surface);
  align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.8px;
  margin: 0;
  color: var(--kk-text);
  line-height: 1.05;
}
.feature-card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--kk-text2);
  margin-top: 16px;
  max-width: 380px;
}
.feature-card.span-4 { grid-column: span 4; }
.feature-card.span-2 { grid-column: span 2; padding: 36px 32px; min-height: 320px; }
.feature-card.span-2 h3 { font-size: 28px; }

.feature-card-flex {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: center;
}

.feature-card.surface {
  background: var(--kk-surface);
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 32px;
}
.feature-card.surface .icon-bubble { background: var(--kk-white); }
.feature-card.surface h3 { font-size: 30px; }
.feature-card.surface p { font-size: 14px; }
.feature-card.surface .note-block {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--kk-white);
  border-radius: 14px;
}
.feature-card.surface .note-block .note {
  font-family: var(--hand);
  font-size: 20px;
  color: var(--kk-text);
  line-height: 1.2;
}
.feature-card.surface .note-block .ts {
  font-size: 10px;
  color: var(--kk-text2);
  margin-top: 6px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
}

.feature-card.dark {
  background: var(--kk-text);
  color: var(--kk-white);
  border: none;
  position: relative;
  overflow: hidden;
}
.feature-card.dark::before {
  content: "";
  position: absolute;
  top: -100px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--kk-accent) 0%, transparent 70%);
  opacity: 0.35;
  filter: blur(30px);
}
.feature-card.dark .icon-bubble { background: rgba(255, 255, 255, 0.1); }
.feature-card.dark h3 { color: var(--kk-white); }
.feature-card.dark p { color: rgba(255, 255, 255, 0.7); max-width: 420px; }
.feature-card.dark .lock-stage {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.feature-card.dark .lock-stage .glow {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--kk-accent) 0%, transparent 75%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.feature-card.dark .lock-stage .glow .inner {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-checks {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 16px;
}
.feature-checks .row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--kk-bg);
  border-radius: 10px;
}
.feature-checks .row span {
  font-size: 12px;
  color: var(--kk-text);
}

/* ── How it works ───────────────────────────────────── */
.how {
  padding: 140px 48px;
  background: var(--kk-bg);
}
.how .heading {
  text-align: center;
  margin-bottom: 80px;
}
.how-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.how-grid::before {
  content: "";
  position: absolute;
  top: 50px; left: 16%; right: 16%;
  height: 2px;
  background-image: radial-gradient(circle, var(--kk-primary) 1.4px, transparent 1.6px);
  background-size: 12px 2px;
  background-repeat: repeat-x;
}
.how-step {
  position: relative;
  text-align: center;
  padding: 0 16px;
}
.how-bubble {
  width: 100px; height: 100px;
  border-radius: 50px;
  background: var(--kk-white);
  border: 1.5px solid var(--kk-divider);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 24px -10px rgba(61, 31, 26, 0.12);
}
.how-bubble .number {
  position: absolute;
  top: -8px; right: -8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 600;
  color: var(--kk-white);
  background: var(--kk-accent);
  width: 32px; height: 32px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.how-step h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.5px;
  margin: 32px 0 12px;
  color: var(--kk-text);
  line-height: 1.1;
}
.how-step p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--kk-text2);
  margin: 0 auto;
  max-width: 320px;
}

/* ── Screens carousel ───────────────────────────────── */
.screens {
  padding: 140px 0;
  background: linear-gradient(180deg, var(--kk-bg) 0%, var(--kk-surface2) 50%, var(--kk-bg) 100%);
  overflow: hidden;
}
.screens .heading {
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 0 48px;
  text-align: center;
}
.screens-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-end;
  padding: 0 48px;
  flex-wrap: wrap;
}
.screen-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.screen-item .label {
  font-family: var(--hand);
  font-size: 26px;
  color: var(--kk-text);
}

/* ── Final CTA ─────────────────────────────────────── */
.final-cta {
  padding: 140px 48px;
  background: radial-gradient(ellipse 80% 90% at 50% 50%, var(--kk-surface) 0%, var(--kk-bg) 70%);
  position: relative; overflow: hidden;
}
.final-cta-inner {
  max-width: 880px; margin: 0 auto;
  text-align: center;
  position: relative;
}
.final-cta .h-final {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 84px;
  line-height: 0.98;
  letter-spacing: -2.5px;
  margin: 32px 0 0;
  color: var(--kk-text);
}
.final-cta .h-final .accent { color: var(--kk-accent); }
.final-cta .lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--kk-text2);
  margin: 28px auto 0;
  max-width: 580px;
}
.final-cta .ps {
  margin-top: 36px;
  font-family: var(--hand);
  font-size: 28px;
  color: var(--kk-accent-deep);
  transform: rotate(-1.5deg);
  display: inline-block;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  padding: 64px 48px 40px;
  background: var(--kk-text);
  color: var(--kk-white);
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .wordmark span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--kk-white);
  letter-spacing: -0.5px;
}
.footer-brand p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 16px;
  max-width: 360px;
}
.footer-col .title {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col .links {
  display: flex; flex-direction: column; gap: 12px;
}
.footer-col .links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.footer-col .links a:hover { color: var(--kk-white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom .signoff {
  font-family: var(--hand);
  font-size: 22px;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Doc pages (privacy, terms, r) ──────────────────── */
.doc-page {
  padding: 80px 48px 120px;
  min-height: 100vh;
}
.doc-container {
  max-width: 720px;
  margin: 0 auto;
}
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--kk-text2);
  margin-bottom: 32px;
  font-weight: 500;
}
.doc-back:hover { color: var(--kk-text); }
.doc-container h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 54px;
  letter-spacing: -1.4px;
  line-height: 1.05;
  margin: 0;
  color: var(--kk-text);
}
.doc-container .updated {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--kk-text3);
}
.doc-container h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.5px;
  margin: 56px 0 16px;
  color: var(--kk-text);
}
.doc-container h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--kk-text);
}
.doc-container p, .doc-container li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--kk-text2);
}
.doc-container ul { padding-left: 22px; }
.doc-container li { margin-bottom: 6px; }
.doc-container a.inline { color: var(--kk-accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ── Referral page specific ─────────────────────────── */
.r-hero {
  padding: 100px 24px 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--kk-surface2) 0%, var(--kk-bg) 65%);
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.r-heart {
  width: 72px; height: 72px;
  margin: 0 auto;
}
.r-hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 56px;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 24px 0 0;
  color: var(--kk-text);
}
.r-hero h1 .accent { color: var(--kk-accent); }
.r-hero .sub {
  font-size: 18px;
  color: var(--kk-text2);
  margin-top: 20px;
  max-width: 480px;
  line-height: 1.55;
}
.r-code-box {
  margin-top: 44px;
  padding: 22px 28px;
  background: var(--kk-white);
  border-radius: 18px;
  border: 1.5px dashed var(--kk-accent);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--kk-text);
}
.r-code-box.muted { color: var(--kk-text3); border-color: var(--kk-divider); }
.r-code-copy {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--kk-accent);
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
}
.r-code-copy:hover { background: var(--kk-surface2); }
.r-instructions {
  margin-top: 20px;
  font-size: 14px;
  color: var(--kk-text2);
  max-width: 420px;
}
.r-cta {
  margin-top: 36px;
}
.r-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 12px 20px;
  background: var(--kk-success);
  color: var(--kk-white);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 32px -8px rgba(92, 158, 110, 0.5);
  transition: transform 0.3s ease;
  z-index: 1000;
}
.r-toast.show { transform: translateX(-50%) translateY(0); }

/* ────────────────────────────────────────────────────
   ANIMATIONS
   Easing: cubic-bezier(0.22, 1, 0.36, 1) = smooth deceleration
   Philosophy: gentle, not snappy. Long durations (600-900ms),
   generous stagger (80-150ms), only transform + opacity.
   ─────────────────────────────────────────────────── */

:root {
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* H1 split into lines for staggered entry */
.h1 .line { display: block; }

/* ── Hero entry sequence (auto on load) ───────────── */
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRisePhone {
  from { opacity: 0; transform: translateX(40px) translateY(-10px) rotate(-2.5deg); }
  to   { opacity: 1; transform: translateX(0) translateY(-10px) rotate(-2.5deg); }
}
@keyframes fadeFloat {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.anim-hero {
  opacity: 0;
  animation: fadeRise 800ms var(--ease-soft) forwards;
}
.anim-hero.d-0 { animation-delay: 0ms; }
.anim-hero.d-1 { animation-delay: 150ms; }
.anim-hero.d-2 { animation-delay: 300ms; }
.anim-hero.d-3 { animation-delay: 450ms; }
.anim-hero.d-4 { animation-delay: 600ms; }
.anim-hero.d-5 { animation-delay: 800ms; }
.anim-hero.d-6 { animation-delay: 1000ms; }

.h1 .line {
  opacity: 0;
  animation: fadeRise 800ms var(--ease-soft) forwards;
}
.h1 .line:nth-child(1) { animation-delay: 150ms; }
.h1 .line:nth-child(2) { animation-delay: 300ms; }
.h1 .line:nth-child(3) { animation-delay: 450ms; }

.hero-phone-wrap {
  opacity: 0;
  animation: fadeRisePhone 1100ms var(--ease-soft) 1100ms forwards;
}

.float-notif, .float-memory, .float-note {
  opacity: 0;
  animation: fadeFloat 700ms var(--ease-soft) forwards;
}
.float-notif { animation-delay: 1400ms; }
.float-memory { animation-delay: 1600ms; }
.float-note { animation-delay: 1800ms; }

/* ── Continuous: phone breathing ──────────────────── */
@keyframes breathe {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50%      { transform: rotate(-2.5deg) translateY(-6px); }
}
.hero-phone-wrap > .phone {
  animation: breathe 6s ease-in-out 2.4s infinite;
}

/* ── Continuous: blob drift ───────────────────────── */
@keyframes blobDrift1 {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(-20px, 30px); }
  66%      { transform: translate(15px, -20px); }
}
@keyframes blobDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(25px, -15px); }
}
.hero-blob-1 { animation: blobDrift1 22s ease-in-out infinite; }
.hero-blob-2 { animation: blobDrift2 28s ease-in-out infinite; }

/* ── Continuous: polaroid sway ────────────────────── */
@keyframes polaroidSway {
  0%, 100% { transform: rotate(5deg); }
  50%      { transform: rotate(7deg); }
}
.float-memory { transform-origin: top center; }
.float-memory.swaying {
  animation: fadeFloat 700ms var(--ease-soft) 1600ms forwards,
             polaroidSway 5s ease-in-out 2.4s infinite;
}
/* Override since .float-memory already has fadeFloat — promote to combined */
.float-memory {
  animation: fadeFloat 700ms var(--ease-soft) 1600ms forwards,
             polaroidSway 5s ease-in-out 2.4s infinite;
}

/* ── Continuous: heart pulse (final CTA) ──────────── */
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
.final-cta-inner > svg {
  animation: heartPulse 4s ease-in-out infinite;
  transform-origin: center;
}

/* ── Scroll reveals ───────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease-soft), transform 800ms var(--ease-soft);
}
.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of containers in view */
.stagger-cards > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-soft), transform 700ms var(--ease-soft);
}
.stagger-cards.in-view > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger-cards.in-view > *:nth-child(1) { transition-delay: 0ms; }
.stagger-cards.in-view > *:nth-child(2) { transition-delay: 80ms; }
.stagger-cards.in-view > *:nth-child(3) { transition-delay: 160ms; }
.stagger-cards.in-view > *:nth-child(4) { transition-delay: 240ms; }
.stagger-cards.in-view > *:nth-child(5) { transition-delay: 320ms; }

/* ── Feature card hover lift ──────────────────────── */
.feature-card {
  transition: transform 280ms var(--ease-soft), box-shadow 280ms var(--ease-soft);
}
.feature-card:hover:not(.dark) {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(61, 31, 26, 0.18);
}
.feature-card.dark { transition: transform 280ms var(--ease-soft); }
.feature-card.dark:hover { transform: translateY(-4px); }
.feature-card.dark .lock-stage .glow {
  transition: transform 600ms var(--ease-soft), opacity 600ms var(--ease-soft);
}
.feature-card.dark:hover .lock-stage .glow {
  transform: scale(1.08);
}

/* ── How it works dotted connector animated draw ── */
.how-grid::before {
  background-size: 0% 2px;
  background-repeat: no-repeat;
  transition: background-size 1200ms var(--ease-soft) 200ms;
}
.how-grid.in-view::before {
  background-size: 100% 2px;
}

/* ── How it works numeric badges pop-in ───────────── */
@keyframes badgePop {
  0%   { opacity: 0; transform: scale(0.5) rotate(-12deg); }
  60%  { opacity: 1; transform: scale(1.08) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.how-bubble .number {
  opacity: 0;
}
.how-grid.in-view .how-step:nth-child(1) .number { animation: badgePop 600ms var(--ease-soft) 300ms forwards; }
.how-grid.in-view .how-step:nth-child(2) .number { animation: badgePop 600ms var(--ease-soft) 500ms forwards; }
.how-grid.in-view .how-step:nth-child(3) .number { animation: badgePop 600ms var(--ease-soft) 700ms forwards; }

/* ── Writes-in (handwritten quotes) ───────────────── */
.writes-in {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1000ms var(--ease-soft) 200ms;
}
.writes-in.in-view {
  clip-path: inset(0 0 0 0);
}

/* ── Logo heart hover pulse (nav) ─────────────────── */
.logo svg {
  transition: transform 280ms var(--ease-soft);
}
.logo:hover svg {
  transform: scale(1.12);
}

/* ── App Store button shine on hover ──────────────── */
.appstore-btn {
  position: relative;
  overflow: hidden;
}
.appstore-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 700ms var(--ease-soft);
  pointer-events: none;
}
.appstore-btn:hover::after { left: 130%; }
.appstore-btn--light::after {
  background: linear-gradient(120deg, transparent 0%, rgba(61,31,26,0.06) 50%, transparent 100%);
}

/* ── Doc/r page subtle entry ──────────────────────── */
.doc-page, .r-hero {
  animation: fadeRise 700ms var(--ease-soft);
}

/* ── Reduced motion: kill non-essential animations ─ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 200ms !important;
  }
  .hero-phone-wrap > .phone,
  .hero-blob-1, .hero-blob-2,
  .final-cta-inner > svg,
  .float-memory {
    animation: none !important;
  }
  .scroll-reveal, .stagger-cards > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .h1 .line, .anim-hero, .hero-phone-wrap, .float-notif, .float-memory, .float-note {
    opacity: 1 !important;
    animation: none !important;
  }
  .writes-in { clip-path: none !important; }
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .nav { padding: 16px 24px; }
  .nav-links { gap: 20px; }
  .nav-links .hide-mobile { display: none; }

  .hero { padding: 64px 24px 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .h1 { font-size: 56px; line-height: 1; letter-spacing: -1.6px; }
  .lede { font-size: 17px; }

  .phone-stage { height: auto; padding: 40px 0; min-height: 600px; }
  .float-notif, .float-memory, .float-note { display: none; }

  .problem, .features, .how, .screens, .final-cta { padding: 80px 24px; }
  .h2, .h2-large { font-size: 40px; letter-spacing: -1px; line-height: 1.05; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-finale span { font-size: 28px; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card.span-4, .feature-card.span-2 { grid-column: auto; }
  .feature-card { padding: 32px 28px; }
  .feature-card-flex { grid-template-columns: 1fr; }
  .feature-card h3, .feature-card.surface h3 { font-size: 28px; }

  .how-grid { grid-template-columns: 1fr; gap: 56px; }
  .how-grid::before { display: none; }

  .screens .heading { padding: 0 24px; }
  .screens-row { padding: 0 24px; }

  .final-cta .h-final { font-size: 52px; letter-spacing: -1.5px; }
  .final-cta .ps { font-size: 22px; }

  .footer { padding: 48px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }

  .doc-page { padding: 56px 24px 80px; }
  .doc-container h1 { font-size: 40px; letter-spacing: -1px; }
  .r-hero { padding: 72px 24px 56px; }
  .r-hero h1 { font-size: 40px; letter-spacing: -1px; }
  .r-code-box { font-size: 19px; padding: 18px 22px; gap: 12px; }
}
