/* ============================================================
   Keepsy — landing page
   Design tokens mirror the actual app (Fraunces + Inter, Paper theme)
   ============================================================ */

:root {
  --cream: #FAF7F2;
  --cream-deep: #F3ECE1;
  --surface: #F1ECE3;
  --surface-muted: #EAE2D4;
  --border: #E4DCCB;
  --border-strong: #D3C8B2;

  --ink: #211E1A;
  --ink-soft: #45403A;
  --ink-secondary: #736C60;
  --ink-tertiary: #ACA394;

  --terracotta: #B25F3B;
  --coral: #FF7A56;
  --coral-deep: #E85F3B;

  --sw-bg: var(--cream);
  --sw-accent: var(--terracotta);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-round: 999px;

  --font-serif: 'Fraunces', serif;
  --font-sans: 'Inter', sans-serif;

  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--cream);
  scroll-behavior: auto;
  overflow-anchor: none;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
  overflow-anchor: none;
  -webkit-font-smoothing: antialiased;
}

body.lenis, html.lenis { height: auto; }
html.lenis-smooth { scroll-behavior: auto !important; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-family: var(--font-serif); }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

::selection { background: var(--coral); color: #fff; }

/* ---------------- Utility type ---------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--terracotta);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.section-title em { font-weight: 400; }

/* ---------------- Grain overlay ---------------- */
#grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  contain: strict;
}

/* ---------------- Custom cursor ---------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}
.cursor-ring {
  position: absolute;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.4px solid var(--ink);
  transform: translate(-50%, -50%);
  transition: width 0.32s var(--ease-soft), height 0.32s var(--ease-soft),
              border-color 0.32s var(--ease-soft), background-color 0.32s var(--ease-soft),
              opacity 0.2s;
  opacity: 0.55;
}
.cursor.is-link .cursor-ring,
.cursor.is-button .cursor-ring {
  width: 64px; height: 64px;
  background: var(--ink);
  opacity: 1;
  border-color: transparent;
}
.cursor.is-link .cursor-dot, .cursor.is-button .cursor-dot { opacity: 0; }
.cursor.is-area .cursor-ring { width: 90px; height: 90px; opacity: 0.9; border-color: var(--coral); }
.cursor.is-hidden { opacity: 0; }

@media (pointer: coarse) {
  .cursor { display: none; }
  #grain { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #grain { display: none; }
}

/* ---------------- Preloader ---------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.preloader-mark { animation: pm-breathe 1.6s ease-in-out infinite; }
.preloader-mark img { display: block; }
@keyframes pm-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.preloader-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.preloader-bar {
  width: 160px; height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--coral);
}
.preloader.is-done {
  transition: opacity 0.7s var(--ease-editorial), visibility 0.7s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------------- Scroll progress rail ---------------- */
.scroll-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 9997;
  background: transparent;
}
.scroll-rail span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--coral), var(--terracotta));
}

/* ---------------- Nav ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: padding 0.4s var(--ease-soft), background-color 0.4s, backdrop-filter 0.4s, box-shadow .4s;
}
.nav.is-scrolled {
  padding: 12px 40px;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
}
.nav-logo svg,
.nav-logo img { color: var(--coral); flex-shrink: 0; display: block; }
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  overflow: hidden;
  height: 18px;
  display: inline-flex;
  align-items: center;
}
.nav-links a span { transition: transform 0.4s var(--ease-soft), color 0.4s; display: inline-block; }
.nav-links a:hover span { transform: translateY(-2px); color: var(--terracotta); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-round);
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 26px;
  position: relative;
  overflow: hidden;
}
.btn-small { padding: 10px 20px; font-size: 13px; }
.btn-primary, .nav-cta {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary::before, .nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--coral), var(--terracotta));
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-editorial);
  z-index: 0;
}
.btn-primary:hover::before, .nav-cta:hover::before { transform: translateY(0); }
.btn-primary span, .nav-cta span { position: relative; z-index: 1; }

.btn-label { display: inline-grid; overflow: hidden; height: 1.1em; }
.btn-label span { grid-row: 1; grid-column: 1; transition: transform 0.4s var(--ease-soft); }
.btn-label span:last-child { transform: translateY(115%); }
.btn:hover .btn-label span:first-child { transform: translateY(-115%); }
.btn:hover .btn-label span:last-child { transform: translateY(0); }

.btn-ghost {
  border: 1.4px solid var(--border-strong);
  color: var(--ink);
  background: transparent;
  transition: border-color 0.3s, background 0.3s;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(33,30,26,0.04); }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-burger span { width: 16px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-burger.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(78vw, 340px);
  height: 100vh;
  background: var(--cream);
  z-index: 480;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 110px 34px 40px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-editorial);
  box-shadow: -20px 0 60px rgba(0,0,0,0.08);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a:not(.btn) { font-family: var(--font-serif); font-size: 24px; color: var(--ink); }
.mobile-menu a.btn {
  font-family: var(--font-sans);
  text-align: center;
  justify-content: center;
  margin-top: 10px;
  color: var(--cream);
}

/* ---------------- Reveal helpers (JS-driven via GSAP but base state here) ---------------- */
.split-lines .line { display: block; overflow: hidden; }
.split-lines .line-inner { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 6vw 60px;
  overflow: hidden;
}

.hero-bg-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  will-change: transform;
}
.blob-a {
  width: 52vw; height: 52vw;
  top: -16vw; left: -12vw;
  background: radial-gradient(circle at 40% 40%, rgba(255, 217, 196, 0.95), rgba(255, 217, 196, 0.35) 42%, transparent 70%);
  animation: blob-float 22s ease-in-out infinite;
}
.blob-b {
  width: 44vw; height: 44vw;
  bottom: -16vw; right: -10vw;
  background: radial-gradient(circle at 60% 60%, rgba(240, 228, 208, 0.9), rgba(240, 228, 208, 0.3) 42%, transparent 70%);
  animation: blob-float 26s ease-in-out infinite reverse;
}
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, 5%) scale(1.08); }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  contain: strict;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 640px;
}

.hero-title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(48px, 8.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner { display: block; }
.hero-title em { font-weight: 400; font-style: italic; color: var(--terracotta); }

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-secondary);
  max-width: 480px;
  margin: 0 0 40px;
}

.hero-ctas { display: flex; align-items: center; gap: 18px; margin-bottom: 46px; flex-wrap: wrap; }

.hero-stats { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-family: var(--font-serif); font-size: 26px; color: var(--ink); line-height: 1; }
.hero-stat span { font-size: 11.5px; color: var(--ink-tertiary); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

.phone-stage {
  position: absolute;
  right: 7vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  perspective: 1400px;
}
.phone-glow {
  position: absolute;
  width: 460px; height: 460px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,122,86,0.28), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 6vw;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-tertiary);
  text-transform: uppercase;
}
.scroll-cue-line { width: 1px; height: 40px; background: var(--border-strong); overflow: hidden; }
.scroll-cue-line span { display: block; width: 100%; height: 40%; background: var(--coral); animation: scroll-cue 2s ease-in-out infinite; }
@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ============================================================
   PHONE MOCKUP (shared)
   ============================================================ */
.phone {
  position: relative;
  width: 300px;
  height: 620px;
  background: #16140F;
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 40px 80px -20px rgba(33, 30, 26, 0.35),
    0 10px 30px -10px rgba(33, 30, 26, 0.25),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  transform-style: preserve-3d;
}
.phone-small { width: 240px; height: 496px; border-radius: 38px; padding: 10px; }
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #16140F;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}
.phone-small .phone-notch { width: 74px; height: 18px; border-radius: 0 0 12px 12px; }
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: var(--cream);
  border-radius: 36px;
  overflow: hidden;
  transition: background 0.5s var(--ease-soft);
}
.phone-small .phone-screen { border-radius: 30px; }

.app-today { padding: 40px 18px 18px; height: 100%; display: flex; flex-direction: column; }
.app-today--compact { padding: 30px 15px 15px; }
.app-eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--ink-tertiary);
  margin: 0 0 2px;
}
.app-date {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--ink);
}
.app-date--sm { font-size: 26px; }
.app-progress { font-size: 10.5px; color: var(--ink-tertiary); margin: 0 0 14px; }

.app-photo-frame {
  position: relative;
  flex: 1;
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface-muted);
  margin-top: 6px;
}
.app-photo-frame--tall { margin-top: 12px; }
.app-photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-photo-scrim {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}
.app-photo-icons { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.app-icon-pill {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  backdrop-filter: blur(4px);
}
.app-photo-caption { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; }
.app-caption-text { font-size: 13px; font-weight: 500; margin: 0 0 3px; }
.app-caption-meta { font-size: 10px; opacity: 0.85; margin: 0; }
.app-lock-row {
  text-align: center;
  font-size: 10.5px;
  color: var(--ink-tertiary);
  margin: 12px 0 0;
}

.app-screen-face {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-soft);
}
.app-screen-face.is-active { opacity: 1; visibility: visible; }

.app-device-face { padding: 40px 20px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; }
.device-diagram { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.device-diagram-row { display: flex; align-items: center; gap: 14px; }
.device-diagram-phone {
  width: 68px; height: 112px;
  border-radius: 16px;
  border: 2.4px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.device-diagram-phone--small { width: 46px; height: 78px; border-radius: 12px; }
.device-diagram-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 8px rgba(255,122,86,0.16); }
.device-diagram-arrow { font-size: 20px; color: var(--ink-tertiary); }
.device-diagram-cloud { font-size: 30px; }
.device-diagram-label { font-size: 12px; line-height: 1.5; color: var(--ink-secondary); margin: 0; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  padding: 20px 0;
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-scroll 32s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 28px);
  color: var(--ink-soft);
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
}
.marquee-track span[aria-hidden] { color: var(--coral); font-style: normal; font-size: 10px; }

/* ============================================================
   STORY
   ============================================================ */
.story {
  position: relative;
  padding: 160px 6vw;
  max-width: 1000px;
  margin: 0 auto;
}
.story-quote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 48px;
  max-width: 720px;
}
.story-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 640px;
  margin-bottom: 64px;
}
.story-copy p {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0;
}
.goal-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 560px;
}
.goal-label { font-size: 11px; letter-spacing: 0.14em; font-weight: 700; color: var(--ink-tertiary); margin: 0 0 12px; }
.goal-headline { font-family: var(--font-serif); font-size: clamp(26px, 3vw, 34px); margin: 0 0 14px; color: var(--ink); }
.goal-body { font-size: 15.5px; color: var(--ink-secondary); margin: 0; line-height: 1.6; }

.story-floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.floater { position: absolute; border-radius: 20px; object-fit: cover; box-shadow: 0 30px 60px -20px rgba(33,30,26,0.25); }
.floater-1 { width: 190px; height: 240px; top: 6%; right: 4vw; transform: rotate(6deg); }
.floater-2 { width: 150px; height: 190px; top: 55%; right: 14vw; transform: rotate(-4deg); }
.floater-3 { width: 130px; height: 165px; top: 30%; right: -2vw; transform: rotate(10deg); opacity: 0.85; }

/* ============================================================
   FEATURES (pinned)
   ============================================================ */
.features {
  padding: 140px 6vw 0;
  background: var(--cream);
}
.features-head { max-width: 620px; margin: 0 auto 60px; text-align: center; }
.features-head .eyebrow { text-align: center; }

.features-pin {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8vw;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  min-height: 100vh;
  padding: 80px 0;
}
.features-phone-col { display: flex; justify-content: center; }

.feature-list { display: flex; flex-direction: column; gap: 6vh; }
.feature-item {
  opacity: 0.3;
  transform: translateX(0);
  transition: opacity 0.5s var(--ease-soft);
  max-width: 460px;
  padding: 4px 0;
}
.feature-item.is-active { opacity: 1; }
.feature-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--coral);
  display: block;
  margin-bottom: 8px;
}
.feature-item h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 10px;
  color: var(--ink);
}
.feature-item p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: 160px 6vw;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.how-eyebrow, .how-title { text-align: center; }
.how-title { margin: 0 auto 90px; max-width: 720px; }

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
  margin-bottom: 120px;
}
.how-step {
  border-top: 1.4px solid var(--border-strong);
  padding-top: 26px;
}
.how-step-num { font-family: var(--font-serif); font-style: italic; color: var(--coral); font-size: 15px; }
.how-step h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 500; margin: 10px 0 12px; }
.how-step p { font-size: 15px; line-height: 1.6; color: var(--ink-secondary); margin: 0; }

.year-grid-wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.year-grid {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 5px;
  width: 100%;
  max-width: 900px;
}
.year-grid .cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--surface-muted);
}
.year-grid .cell.is-filled { background: var(--coral); }
.year-grid-caption { font-size: 13px; color: var(--ink-tertiary); margin: 0; }

/* ============================================================
   GHOST CAMERA
   ============================================================ */
.ghost {
  padding: 140px 6vw;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: center;
}
.ghost-copy h2 { margin-bottom: 20px; }
.ghost-body { font-size: 16px; line-height: 1.6; color: var(--ink-secondary); max-width: 440px; margin: 0 0 26px; }
.ghost-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.ghost-hint-icon { flex-shrink: 0; opacity: 0.7; }

.ghost-compare { display: flex; justify-content: center; }
.ghost-compare-frame {
  position: relative;
  width: min(360px, 90vw);
  aspect-ratio: 7/9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(33,30,26,0.3);
  cursor: grab;
  user-select: none;
}
.ghost-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ghost-clip { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ghost-clip .ghost-img { opacity: 0.55; filter: grayscale(0.2) brightness(1.15); mix-blend-mode: luminosity; }
.ghost-viewfinder-chrome { position: absolute; top: 14px; left: 14px; }
.ghost-chrome-pill {
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: var(--radius-round);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.ghost-handle {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  color: var(--ink);
  pointer-events: none;
}
.ghost-handle-icon { display: block; }

/* ============================================================
   WIDGETS (Home Screen + Lock Screen)
   ============================================================ */
.widgets {
  padding: 140px 6vw;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 7vw;
  align-items: center;
}
.widgets-copy h2 { margin-bottom: 20px; }
.widgets-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 440px;
  margin: 0 0 28px;
}

.widgets-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 28px;
  max-width: 420px;
}
.widgets-points li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1.4px solid var(--border);
}
.widgets-points span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.widgets-points p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin: 0;
}

.widgets-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.widgets-free-pill {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: var(--radius-round);
}
.widgets-hint {
  font-size: 12.5px;
  color: var(--ink-tertiary);
  letter-spacing: 0.04em;
  margin: 0;
}

.widgets-toggle {
  display: inline-flex;
  background: var(--surface);
  border-radius: var(--radius-round);
  padding: 4px;
  gap: 2px;
}
.widgets-toggle-btn {
  padding: 8px 16px;
  border-radius: var(--radius-round);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: background 0.28s var(--ease-soft), color 0.28s var(--ease-soft);
}
.widgets-toggle-btn.is-active {
  background: var(--ink);
  color: var(--cream);
}

.widgets-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
  min-height: 520px;
}
.widgets .phone-small {
  width: 252px;
  height: 522px;
}
.widgets-lock-wrap,
.widgets-home-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.widgets-home-wrap {
  margin-bottom: 36px;
}
.widgets-surface-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0;
}

.widgets-lock-screen {
  background: #16140F;
}
.widgets-lock-wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.92);
}
.widgets-lock-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 14px 18px;
  color: #fff;
}
.widgets-lock-date {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.widgets-lock-time {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 68px;
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}
.widgets-lock-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}
.widgets-lock-homebar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.42);
  z-index: 2;
}

.widget-circular {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.28);
  overflow: hidden;
}
.widget-circular .widget-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
}
.widget-circular span {
  font-size: 10.5px;
  font-weight: 600;
}

.widget-rect {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.28);
  overflow: hidden;
}
.widget-rect .widget-face {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 13px;
  color: #fff;
}
.widget-rect-headline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.2;
  margin: 0;
}
.widget-rect-support {
  font-size: 11px;
  font-weight: 400;
  margin: 0;
  opacity: 0.92;
}

.widget-face {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-soft), visibility 0.45s;
}
.widgets[data-state="saved"] .widget-face--saved,
.widgets[data-state="waiting"] .widget-face--waiting {
  opacity: 1;
  visibility: visible;
}

.widgets-home-card {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 28px 50px -16px rgba(33, 30, 26, 0.4),
    0 0 0 1px rgba(33, 30, 26, 0.06);
  transform: rotate(3.5deg);
}
.widget-home-saved {
  background: #000;
}
.widget-home-saved img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.widget-home-copy {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  text-align: center;
  color: #fff;
}
.widget-home-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.widget-home-empty .widget-home-line {
  color: var(--ink);
  text-shadow: none;
  font-size: 15px;
}
.widget-home-date {
  font-size: 11px;
  font-weight: 400;
  margin: 4px 0 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.widget-home-empty {
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 14px;
  gap: 2px;
}
.widget-home-empty .widget-home-date {
  color: var(--ink-secondary);
  text-shadow: none;
  font-size: 11.5px;
}

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy {
  padding: 140px 6vw 160px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.privacy .eyebrow, .privacy .section-title { text-align: center; }
.privacy-body {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--ink-secondary);
  max-width: 620px;
  margin: 26px auto 70px;
}

.privacy-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.privacy-node {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 34px 40px;
  min-width: 200px;
}
.privacy-node-icon { font-size: 32px; margin-bottom: 12px; }
.privacy-node p { font-family: var(--font-serif); font-size: 19px; margin: 0 0 4px; }
.privacy-node span { font-size: 12.5px; color: var(--ink-tertiary); }
.privacy-diagram-line { display: flex; align-items: center; gap: 6px; }
.privacy-diagram-line::before, .privacy-diagram-line::after {
  content: '';
  width: 40px; height: 1.4px;
  background: repeating-linear-gradient(to right, var(--border-strong) 0 6px, transparent 6px 10px);
}
.privacy-diagram-lock { font-size: 16px; }

.privacy-nots {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.privacy-not {
  display: flex; align-items: center; gap: 8px;
  border: 1.4px solid var(--border);
  border-radius: var(--radius-round);
  padding: 10px 18px;
  font-size: 13px;
  color: var(--ink-secondary);
}
.privacy-not span { color: var(--terracotta); font-size: 11px; }

.privacy-callout {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--terracotta);
  margin: 0;
}

/* ============================================================
   THEMES
   ============================================================ */
.themes {
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
  --themes-bg: #FAF7F2;
  --themes-ink: #211E1A;
  --themes-muted: #736C60;
  --themes-accent: #B25F3B;
  background: var(--themes-bg);
  color: var(--themes-ink);
  text-align: center;
  transition: background 0.6s var(--ease-soft), color 0.6s var(--ease-soft);
}
.themes .section-title { color: inherit; }
.themes .eyebrow { color: var(--themes-accent, var(--terracotta)); transition: color 0.6s var(--ease-soft); }

.themes-head {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 6vw;
}

.themes-watermark {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(80px, 18vw, 220px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--themes-ink, var(--ink));
  opacity: 0.075;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
  transition: color 0.6s var(--ease-soft);
}

.themes-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  max-width: 1100px;
  margin: 36px auto 0;
  padding: 0 16px;
}

.themes-viewport {
  position: relative;
  height: 540px;
  overflow: hidden;
  touch-action: pan-y;
  outline: none;
  cursor: grab;
  user-select: none;
}
.themes-viewport:active,
.themes.is-dragging .themes-viewport { cursor: grabbing; }

.themes-track {
  position: absolute;
  inset: 0;
}

.theme-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0) translateX(var(--tx, 0px)) scale(var(--sc, 0.72));
  opacity: var(--op, 0);
  z-index: var(--zi, 0);
  transition: transform 0.7s var(--ease-editorial), opacity 0.45s var(--ease-soft);
  pointer-events: none;
  will-change: transform, opacity;
}
.theme-slide.is-active,
.theme-slide.is-near { pointer-events: auto; cursor: pointer; }
.theme-slide.is-active { cursor: grab; }
.themes.is-dragging .theme-slide { transition: none; }
.theme-slide img { pointer-events: none; -webkit-user-drag: none; }
.theme-slide:nth-child(1) { --tx: 0px; --sc: 1; --op: 1; --zi: 20; }
.theme-slide:nth-child(2) { --tx: 210px; --sc: 0.78; --op: 0.46; --zi: 19; }
.theme-slide:nth-child(6) { --tx: -210px; --sc: 0.78; --op: 0.46; --zi: 19; }

.theme-slide .phone-screen { background: var(--t-bg); }
.theme-slide .app-eyebrow { color: var(--t-tertiary); }
.theme-slide .app-date { color: var(--t-ink); }
.theme-slide .app-photo-frame { background: var(--t-muted); }
.theme-slide .app-lock-row {
  color: var(--t-accent);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
}

.themes-arrow {
  position: relative;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--themes-ink, var(--ink));
  border: 1.4px solid color-mix(in srgb, var(--themes-ink, var(--ink)) 16%, transparent);
  background: color-mix(in srgb, var(--themes-bg, var(--cream)) 72%, transparent);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease-soft), border-color 0.3s, background 0.3s, color 0.3s;
  flex-shrink: 0;
}
.themes-arrow:hover {
  transform: scale(1.06);
  border-color: color-mix(in srgb, var(--themes-ink, var(--ink)) 40%, transparent);
}

.themes-legend {
  position: relative;
  z-index: 2;
  margin: 18px auto 0;
  min-height: 72px;
  padding: 0 22px;
}
.themes-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: inherit;
}
.themes-blurb {
  margin: 0;
  font-size: 14px;
  color: var(--themes-muted, var(--ink-secondary));
  transition: color 0.6s var(--ease-soft);
}
.themes-hint {
  display: none;
  margin: 10px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--themes-muted, var(--ink-tertiary));
}

.themes-chips {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 4px auto 0;
  padding: 10px 16px;
  width: max-content;
  max-width: calc(100% - 32px);
  border-radius: var(--radius-round);
  background: color-mix(in srgb, var(--themes-ink, var(--ink)) 5%, transparent);
  border: 1.4px solid color-mix(in srgb, var(--themes-ink, var(--ink)) 10%, transparent);
}

.theme-chip {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-editorial);
}
.theme-chip-face {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sw-bg);
  border: 1.5px solid var(--sw-accent);
  box-shadow: inset 0 0 0 5px var(--sw-bg), inset 0 0 0 11px var(--sw-accent);
  display: block;
  transition: transform 0.35s var(--ease-editorial), box-shadow 0.35s;
}
.theme-chip:focus-visible {
  outline: 2px solid var(--sw-accent);
  outline-offset: 3px;
}
.themes-arrow:focus-visible {
  outline: 2px solid var(--themes-accent, var(--terracotta));
  outline-offset: 3px;
}
.theme-chip.is-active { transform: scale(1.18); }
.theme-chip.is-active .theme-chip-face {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--themes-bg, var(--cream)) 88%, transparent),
    0 0 0 5px var(--sw-accent),
    inset 0 0 0 5px var(--sw-bg),
    inset 0 0 0 11px var(--sw-accent);
}

/* ============================================================
   QUOTE / MEMORIES
   ============================================================ */
.quote {
  position: relative;
  padding: 200px 6vw;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}
.quote-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  opacity: 0.35;
}
.quote-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.quote-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; text-align: center; }
.quote-inner .eyebrow { color: var(--coral); text-align: center; }
.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.25;
  color: var(--cream);
  margin: 0 0 30px;
}
.quote-sub { font-size: 15px; color: rgba(250,247,242,0.6); margin: 0; }

/* ============================================================
   DOWNLOAD / CTA
   ============================================================ */
.download {
  position: relative;
  padding: 200px 6vw 160px;
  text-align: center;
  overflow: hidden;
}
.download .eyebrow { text-align: center; }
.download-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 108px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.download-sub { font-size: 17px; color: var(--ink-secondary); margin: 0 0 46px; }
.download-ctas { display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative; z-index: 2; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 28px;
  border-radius: var(--radius-md);
}
.store-badge span { display: flex; flex-direction: column; text-align: left; }
.store-badge small { font-size: 10px; opacity: 0.75; }
.store-badge strong { font-size: 17px; font-family: var(--font-sans); }

.download-note { display: flex; gap: 10px; font-size: 12.5px; color: var(--ink-tertiary); }
.download-note span:first-child::after { content: '·'; margin-left: 10px; }

.download-floaters { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.d-floater { position: absolute; border-radius: 18px; object-fit: cover; opacity: 0.5; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.2); }
.d-floater-1 { width: 160px; height: 200px; top: 8%; left: 6vw; transform: rotate(-8deg); }
.d-floater-2 { width: 140px; height: 175px; bottom: 10%; right: 8vw; transform: rotate(6deg); }
.d-floater-3 { width: 120px; height: 150px; top: 15%; right: 16vw; transform: rotate(10deg); opacity: 0.35; }

/* ============================================================
   LEGAL PAGES (privacy + terms)
   ============================================================ */
.legal {
  position: relative;
  padding: 160px 6vw 120px;
  max-width: 780px;
  margin: 0 auto;
  z-index: 1;
}

.legal-hero {
  margin-bottom: 64px;
}

.legal-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.legal-updated {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0 0 28px;
}

.legal-lede {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 640px;
  margin: 0;
  overflow-wrap: break-word;
}

.page-legal .nav {
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(8px);
}

.legal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
}

.legal-section strong {
  font-weight: 600;
  color: var(--ink);
}

.footer-col a[aria-current="page"] {
  color: var(--terracotta);
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.legal-section h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ink);
}

.legal-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 14px;
  overflow-wrap: break-word;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section a {
  color: var(--terracotta);
  border-bottom: 1px solid color-mix(in srgb, var(--terracotta) 35%, transparent);
  transition: border-color 0.25s, color 0.25s;
}

.legal-section a:hover {
  color: var(--coral-deep);
  border-bottom-color: var(--coral-deep);
}

.legal-section ul {
  margin: 4px 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-section li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}

.legal-note {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 8px;
}

.legal-note strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--ink);
}

.legal-note p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.legal-contact {
  margin-top: 16px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.legal-contact .eyebrow { margin-bottom: 10px; }

.legal-contact-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 12px;
}

.legal-contact p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0 0 8px;
}

.legal-contact a.legal-mail {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--terracotta);
  border-bottom: 1px solid color-mix(in srgb, var(--terracotta) 30%, transparent);
  transition: color 0.25s, border-color 0.25s;
}

.legal-contact a.legal-mail:hover {
  color: var(--coral-deep);
  border-bottom-color: var(--coral-deep);
}

.legal-cross {
  margin-top: 36px;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.legal-cross a {
  color: var(--ink);
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.25s, border-color 0.25s;
}

.legal-cross a:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  padding: 90px 6vw 34px;
  border-top: 1px solid var(--border);
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; margin-bottom: 70px; }
.footer-top p { font-size: 14px; color: var(--ink-secondary); margin: 0; line-height: 1.5; text-align: right; }
.footer-cols { display: flex; gap: 80px; margin-bottom: 70px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-tertiary); margin: 0 0 4px; }
.footer-col a { font-size: 14.5px; color: var(--ink-soft); transition: color 0.25s; }
.footer-col a:hover { color: var(--terracotta); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-tertiary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .features-pin { grid-template-columns: 1fr; text-align: center; gap: 40px; padding: 40px 0; min-height: auto; }
  .features-phone-col { order: -1; }
  .feature-item { max-width: 100%; margin: 0 auto; }
  .ghost { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .ghost-copy { display: flex; flex-direction: column; align-items: center; }
  .ghost-body { margin-left: auto; margin-right: auto; }
  .widgets { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .widgets-copy { display: flex; flex-direction: column; align-items: center; order: -1; }
  .widgets-body, .widgets-points { margin-left: auto; margin-right: auto; }
  .widgets-points li { grid-template-columns: 1fr; gap: 4px; text-align: center; }
  .widgets-stage { min-height: 0; }
  .themes-viewport { height: 500px; }
  .themes-stage { margin-top: 28px; }
}

@media (max-width: 900px) {
  .nav { padding: 16px 22px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .hero {
    padding: 96px 22px 32px;
    min-height: auto;
  }
  .hero-sub { margin-bottom: 28px; }
  .hero-ctas { margin-bottom: 28px; gap: 12px; }
  .hero-stats { margin-bottom: 8px; }
  .phone-stage {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 28px auto 0;
    display: flex;
    justify-content: center;
  }
  .hero-inner { max-width: 100%; }
  .hero-title { font-size: clamp(44px, 13vw, 70px); margin-bottom: 16px; }
  .br-desktop { display: none; }
  .scroll-cue { display: none; }

  .marquee-strip { padding: 14px 0; }

  .story,
  .features,
  .how,
  .ghost,
  .widgets,
  .privacy,
  .quote,
  .download,
  .legal {
    padding-left: 22px;
    padding-right: 22px;
  }

  .story {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .story-quote { margin-bottom: 32px; }
  .story-copy { margin-bottom: 40px; gap: 16px; }
  .goal-card { padding: 28px; }

  .features {
    padding-top: 72px;
    padding-bottom: 0;
  }
  .features-head { margin-bottom: 36px; }
  .features-pin { padding: 24px 0 48px; gap: 28px; }
  .feature-list { gap: 40px; }

  .how {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .how-title { margin-bottom: 44px; }
  .how-steps { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }

  .ghost {
    padding-top: 72px;
    padding-bottom: 72px;
    gap: 32px;
  }
  .ghost-body { margin-bottom: 18px; }

  .widgets {
    padding-top: 72px;
    padding-bottom: 72px;
    gap: 32px;
  }
  .widgets-body { margin-bottom: 22px; }
  .widgets-points { margin-bottom: 22px; }
  .widgets-home-wrap { margin-bottom: 8px; }
  .widgets-home-card { transform: rotate(2deg); }
  .widgets .phone-small { width: 230px; height: 478px; }

  .privacy {
    padding-top: 72px;
    padding-bottom: 80px;
  }
  .legal {
    padding-top: 120px;
    padding-bottom: 80px;
  }
  .legal-hero { margin-bottom: 48px; }
  .legal-body { gap: 40px; }
  .legal-note { padding: 24px; }
  .privacy-body { margin: 20px auto 40px; }
  .privacy-diagram { margin-bottom: 36px; gap: 24px; }
  .privacy-nots { margin-bottom: 32px; gap: 10px; }

  .themes {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .themes-stage {
    grid-template-columns: 1fr;
    padding: 0;
    margin-top: 12px;
  }
  .themes-arrow { display: none; }
  .themes-viewport { height: 460px; }
  .themes-legend { min-height: 64px; margin-top: 16px; }
  .themes-chips { margin-top: 8px; gap: 10px; }
  .themes-hint { display: block; }
  .theme-slide .phone-small { width: 214px; height: 444px; }

  .quote { padding-top: 96px; padding-bottom: 96px; }
  .quote-text { margin-bottom: 20px; }

  .download {
    padding-top: 96px;
    padding-bottom: 80px;
  }
  .download-title { margin-bottom: 16px; }
  .download-sub { margin-bottom: 28px; }

  .footer {
    padding: 56px 22px 28px;
  }
  .footer-top { margin-bottom: 40px; }
  .footer-cols { gap: 32px; margin-bottom: 40px; }
  .footer-top p { text-align: left; }

  .year-grid { grid-template-columns: repeat(15, 1fr); }
}

@media (max-width: 560px) {
  .hero { padding-top: 88px; }
  .hero-title { font-size: clamp(40px, 12vw, 56px); }

  .story,
  .how,
  .ghost,
  .widgets,
  .privacy,
  .themes {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .legal {
    padding-top: 108px;
    padding-bottom: 64px;
  }
  .themes-viewport { height: 390px; }
  .themes-watermark { top: 42%; }
  .themes-chips { padding: 8px 12px; gap: 8px; }
  .theme-chip { width: 36px; height: 36px; }
  .theme-chip-face { width: 20px; height: 20px; }

  .features { padding-top: 56px; }
  .features-pin { padding-bottom: 40px; }
  .feature-list { gap: 32px; }

  .how-title { margin-bottom: 32px; }
  .how-steps { gap: 24px; margin-bottom: 44px; }

  .widgets-stage {
    position: relative;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    padding: 0 56px 8px 0;
  }
  .widgets-home-wrap {
    position: absolute;
    right: 0;
    bottom: 20px;
    margin-bottom: 0;
  }
  .widgets-home-card {
    width: 128px;
    height: 128px;
    transform: rotate(3deg);
  }
  .widgets .phone-small { width: 220px; height: 456px; }
  .widgets-lock-time { font-size: 58px; }
  .widgets-lock-content { padding-top: 44px; }
  .widget-rect-headline { font-size: 12.5px; }
  .widget-home-line { font-size: 12px; }
  .widget-home-empty .widget-home-line { font-size: 13px; }
  .widgets-home-wrap .widgets-surface-tag {
    background: var(--cream);
    padding: 3px 8px;
    border-radius: var(--radius-round);
  }

  .quote { padding-top: 72px; padding-bottom: 72px; }
  .download { padding-top: 72px; padding-bottom: 64px; }

  .footer { padding-top: 48px; }

  .hero-stats { gap: 12px; }
  .phone { width: 250px; height: 520px; }
  .phone-small { width: 200px; height: 416px; }
  .theme-slide .phone-small { width: 176px; height: 366px; }
  .themes-viewport { height: 390px; }
  .floater, .d-floater { display: none; }
  .quote-grid { grid-template-columns: repeat(4, 1fr); }
  .privacy-diagram { gap: 16px; }
  .privacy-diagram-line { transform: rotate(90deg); }
  .privacy-not { padding: 8px 14px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
