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

:root {
  --bg:        #F7EBDF;
  --bg-alt:    #F1E0CC;
  --surface:   #FFFBF5;
  --border:    #E8D4C0;
  --rose:      #B44160;
  --rose-dark: #77233B;
  --rose-light:#F7E1E7;
  --gold:      #EFBC78;
  --text:      #3A1E26;
  --text-sec:  #8C6672;
  --muted:     #C9AAB0;
  --radius:    20px;
}

/* overflow-x lives on html, not body -- setting it on body makes body its
   own scrolling context, which breaks position:sticky for nav (its nearest
   scrolling ancestor becomes body instead of the real viewport, so it can
   never find anything to stick within). Confirmed live: nav detached from
   the top and drifted down near the bottom of the viewport on scroll. */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: #F7EBDF;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-icon { width: 32px; height: 32px; border-radius: 8px; display: block; }

.nav-wordmark {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.nav-wordmark-book   { color: var(--text); }
.nav-wordmark-beacon { color: var(--text-sec); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sec);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--rose);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--rose-dark); transform: translateY(-1px); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 88px 48px 56px;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 24px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero h1 {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--rose);
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 48px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-store:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,105,139,0.22); }

.btn-store-primary {
  background: var(--text);
  color: #fff;
}

.btn-store-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-store-icon { width: 22px; height: 22px; flex-shrink: 0; }
.btn-store-label { font-size: 10px; font-weight: 600; opacity: 0.65; display: block; }
.btn-store-platform { display: block; font-size: 15px; font-weight: 800; line-height: 1.1; }

/* ── WAITLIST FORM ──────────────────────────────────────────── */
.waitlist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 440px;
}

.waitlist-input {
  flex: 1;
  min-width: 200px;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.waitlist-input::placeholder { color: var(--muted); font-weight: 400; }
.waitlist-input:focus { border-color: var(--rose); }

.waitlist-btn {
  padding: 13px 24px;
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.waitlist-btn:hover { background: var(--rose-dark); transform: translateY(-1px); }

.waitlist-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 10px;
}

.store-badges-soon {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.store-badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

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

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
}

.hero-trust-icon { color: var(--rose); font-size: 14px; }

.hero-trust-divider {
  width: 1px;
  height: 14px;
  background: var(--border);
}

/* ── PHONE MOCKUP ──────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: -20px;
  position: relative;
}

.phone-stack {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  position: relative;
}

.phone-frame {
  width: 200px;
  height: 400px;
  background: var(--text);
  border-radius: 32px;
  padding: 10px;
  box-shadow:
    0 32px 80px rgba(61,43,43,0.22),
    0 8px 24px rgba(61,43,43,0.12),
    inset 0 0 0 1.5px rgba(255,255,255,0.08);
  flex-shrink: 0;
  position: relative;
}

.phone-frame.phone-back {
  transform: translateY(32px) scale(0.9);
  z-index: 0;
}

.phone-frame.phone-front {
  z-index: 1;
}

.phone-notch {
  width: 80px;
  height: 22px;
  background: var(--text);
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

/* Screenshot placeholder screens */
.screen-library {
  background: linear-gradient(160deg, #F7EBDF 0%, #F1E0CC 100%);
  display: flex;
  flex-direction: column;
  padding: 16px 12px 12px;
  gap: 6px;
}

.screen-header-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.screen-logo-dot {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--rose);
  opacity: 0.7;
}

.screen-wordmark-placeholder {
  width: 60px;
  height: 8px;
  border-radius: 4px;
  background: var(--muted);
  opacity: 0.5;
}

.screen-title-bar {
  width: 70px;
  height: 16px;
  border-radius: 6px;
  background: var(--text);
  opacity: 0.12;
  margin-bottom: 4px;
}

.screen-search {
  height: 26px;
  border-radius: 8px;
  background: rgba(196,181,170,0.18);
  margin-bottom: 4px;
}

.screen-book-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.screen-book-thumb {
  height: 64px;
  border-radius: 5px;
}

.screen-book-thumb:nth-child(1) { background: linear-gradient(135deg, #B44160 0%, #77233B 100%); }
.screen-book-thumb:nth-child(2) { background: linear-gradient(135deg, #EFBC78 0%, #D89B52 100%); }
.screen-book-thumb:nth-child(3) { background: linear-gradient(135deg, #8C6672 0%, #6A5650 100%); }
.screen-book-thumb:nth-child(4) { background: linear-gradient(135deg, #7C9A92 0%, #5A7870 100%); opacity: 0.8; }
.screen-book-thumb:nth-child(5) { background: linear-gradient(135deg, #B44160 0%, #EFBC78 100%); opacity: 0.7; }
.screen-book-thumb:nth-child(6) { background: linear-gradient(135deg, #3A1E26 0%, #6A4A4A 100%); opacity: 0.6; }

.screen-scan {
  background: linear-gradient(160deg, #3A1E26 0%, #2A1B16 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.screen-scan-viewfinder {
  width: 120px;
  height: 80px;
  border: 2px solid rgba(196,105,139,0.7);
  border-radius: 10px;
  position: relative;
}

.screen-scan-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--rose);
  border-style: solid;
  border-width: 0;
}

.screen-scan-corner.tl { top: -2px; left: -2px; border-top-width: 3px; border-left-width: 3px; border-radius: 3px 0 0 0; }
.screen-scan-corner.tr { top: -2px; right: -2px; border-top-width: 3px; border-right-width: 3px; border-radius: 0 3px 0 0; }
.screen-scan-corner.bl { bottom: -2px; left: -2px; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 3px; }
.screen-scan-corner.br { bottom: -2px; right: -2px; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 3px 0; }

.screen-scan-line {
  width: 80px;
  height: 2px;
  border-radius: 2px;
  background: rgba(196,105,139,0.5);
  animation: scanline 2s ease-in-out infinite;
}

@keyframes scanline {
  0%, 100% { transform: translateY(-30px); opacity: 0.3; }
  50%       { transform: translateY(30px);  opacity: 1; }
}

.screen-scan-label {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(250,246,240,0.5);
}

.screen-scan-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rose);
  margin-top: 4px;
}

/* ── STATS STRIP ──────────────────────────────────────────── */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--border);
}

.stat-cell {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-cell:last-child { border-right: none; }

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number span { color: var(--rose); }

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── SECTION WRAPPER ──────────────────────────────────────── */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 72px 48px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-sub {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 560px;
}

/* ── FEATURES ─────────────────────────────────────────────── */
.features-header {
  margin-bottom: 56px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(196,105,139,0.1);
  border-color: rgba(196,105,139,0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.feature-icon.gold { background: #FBF3E4; }
.feature-icon.warm { background: #F5EDE8; }

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-sec);
  line-height: 1.65;
}

/* ── SCREENSHOTS ──────────────────────────────────────────── */
.screenshots-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 72px 0;
}

.screenshots-header {
  max-width: 1160px;
  margin: 0 auto 64px;
  padding: 0 48px;
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  padding: 0 48px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshots-scroll::-webkit-scrollbar { display: none; }

.screenshot-item {
  scroll-snap-align: start;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.screenshot-phone {
  width: 220px;
  height: 440px;
  background: var(--text);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 24px 64px rgba(61,43,43,0.2),
    0 6px 16px rgba(61,43,43,0.1),
    inset 0 0 0 1.5px rgba(255,255,255,0.06);
  position: relative;
}

.screenshot-notch {
  width: 88px;
  height: 24px;
  background: var(--text);
  border-radius: 0 0 18px 18px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.screenshot-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.screenshot-placeholder-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.4;
}

/* Screen gradient themes */
.screen-warm  { background: linear-gradient(160deg, #F7EBDF 0%, #F1E0CC 40%, #F7E1E7 100%); color: var(--text); }
.screen-dark  { background: linear-gradient(160deg, #1A100D 0%, #2A1B16 60%, #33221B 100%); color: #F7EBDF; }
.screen-rose  { background: linear-gradient(160deg, #F7E1E7 0%, #F7EBDF 100%); color: var(--text); }
.screen-gold  { background: linear-gradient(160deg, #FBF3E4 0%, #FDF9F0 100%); color: var(--text); }
.screen-stats { background: linear-gradient(160deg, #F7EBDF 0%, #F1E0CC 100%); color: var(--text); }

/* Screenshot UI wireframe elements */
.ss-ui { padding: 20px 14px; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.ss-bar { display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.ss-dot { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }
.ss-line { height: 7px; border-radius: 4px; background: currentColor; opacity: 0.12; }
.ss-line-title { height: 18px; border-radius: 6px; background: currentColor; opacity: 0.16; width: 50%; }
.ss-line-sub { height: 9px; border-radius: 4px; background: currentColor; opacity: 0.1; width: 75%; }
.ss-search { height: 30px; border-radius: 10px; background: currentColor; opacity: 0.08; }
.ss-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; flex: 1; }
.ss-book { border-radius: 5px; min-height: 70px; }
.ss-book-1 { background: linear-gradient(135deg, #B44160, #77233B); }
.ss-book-2 { background: linear-gradient(135deg, #EFBC78, #D89B52); }
.ss-book-3 { background: linear-gradient(135deg, #7C9A92, #5A7870); }
.ss-book-4 { background: linear-gradient(135deg, #8C6672, #6A5650); opacity: 0.8; }
.ss-book-5 { background: linear-gradient(135deg, #B44160, #EFBC78); opacity: 0.65; }
.ss-book-6 { background: linear-gradient(135deg, #3A1E26, #6A4A4A); opacity: 0.55; }
.ss-book-7 { background: linear-gradient(135deg, #9B7FA8, #7A5E87); }
.ss-book-8 { background: linear-gradient(135deg, #6B8EA3, #4A6D82); }
.ss-book-9 { background: linear-gradient(135deg, #A8C08A, #87A569); opacity: 0.75; }
.ss-stat-row { display: flex; gap: 8px; }
.ss-donut { width: 60px; height: 60px; border-radius: 50%; border: 8px solid var(--rose); opacity: 0.75; flex-shrink: 0; }
.ss-donut-gold { border-color: var(--gold); }
.ss-donut-warm { border-color: #8C6672; }
.ss-list-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.ss-thumb { width: 32px; height: 44px; border-radius: 3px; flex-shrink: 0; }
.ss-row-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ss-avatar-ring { width: 52px; height: 52px; border-radius: 50%; background: var(--rose); opacity: 0.4; margin: 0 auto 8px; }

.screenshot-caption {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sec);
  letter-spacing: 0.5px;
  text-align: center;
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.how-step {
  position: relative;
}

.how-number {
  font-size: 64px;
  font-weight: 800;
  color: var(--rose);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 20px;
}

.how-connector {
  position: absolute;
  top: 32px;
  right: -20px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.how-step:last-child .how-connector { display: none; }

.how-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.how-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-sec);
  line-height: 1.65;
}

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.testimonials-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.star { color: var(--gold); font-size: 16px; }

.testimonial-quote {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.testimonial-handle {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta-section {
  text-align: center;
}

.cta-inner {
  background: var(--text);
  border-radius: 28px;
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}

.cta-blob-1 {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,105,139,0.25) 0%, transparent 70%);
  top: -80px;
  left: -80px;
  pointer-events: none;
}

.cta-blob-2 {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,90,0.2) 0%, transparent 70%);
  bottom: -80px;
  right: -40px;
  pointer-events: none;
}

.cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 20px;
}

.cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #F7EBDF;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 17px;
  font-weight: 400;
  color: rgba(250,246,240,0.6);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-store-light {
  background: rgba(250,246,240,0.1);
  border: 1.5px solid rgba(250,246,240,0.2);
  color: #F7EBDF;
}

.btn-store-light:hover {
  background: rgba(250,246,240,0.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.cta-note {
  font-size: 13px;
  font-weight: 600;
  color: rgba(250,246,240,0.35);
  letter-spacing: 0.3px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 48px 40px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 48px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-sec);
  line-height: 1.6;
  max-width: 240px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sec);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1160px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.footer-studio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-studio:hover { color: var(--text-sec); }

/* ── REVEAL ANIMATION ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── SERIES TRACKING ─────────────────────────────────────── */
.series-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.series-showcase-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Auto-rotating device preview cycling through all 30 built-in themes --
   shared between the main landing page's Themes section and the Pro
   page's, so both stay visually identical without duplicating CSS. */
.theme-rotator {
  max-width: 260px;
  margin: 40px auto 0;
  text-align: center;
}
.theme-rotator-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1206 / 2622;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
  background: var(--surface);
}
.theme-rotator-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}
.theme-rotator-name {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* ── NOTE PHOTOS ─────────────────────────────────────────── */
.notes-callouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.notes-callout .feature-icon { margin-bottom: 16px; }
.notes-callout .feature-title { margin-bottom: 8px; }

/* Three real device captures side by side, left-to-right matching the
   Snap → Read → Search callouts above them. Raw portrait simulator
   screenshots (status bar and all), not a pre-composited graphic like
   theme-fan.jpg, so each gets its own rounded frame + shadow rather than
   one shared wrapper. */
.notes-screens-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
}
.notes-screen-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.pro-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #FBF3E4;
  border: 1px solid var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--rose-dark);
  margin-bottom: 16px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
a.pro-pill:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid      { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .notes-callouts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }

  /* Horizontal swipeable row instead of vertical stacking -- three full
     screenshots stacked top-to-bottom made this section disproportionately
     long on mobile compared to everything around it. Matches the same
     scroll-snap pattern .screenshots-scroll already uses. */
  .notes-screens-row {
    justify-content: flex-start;
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 20px 8px;
    margin: 0 -20px;
  }
  .notes-screens-row::-webkit-scrollbar { display: none; }
  .notes-screen-img {
    width: 240px;
    max-width: 240px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .series-showcase   { grid-template-columns: 1fr; }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 20px 36px;
    gap: 48px;
    text-align: center;
  }

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

  .hero-actions { justify-content: center; }
  .hero-trust   { justify-content: center; }

  .hero-visual { order: -1; }

  .phone-stack { position: relative; }
  .phone-frame.phone-front { width: 180px; height: 360px; }
  .phone-frame.phone-back {
    display: block;
    position: absolute;
    right: -48px;
    bottom: 6px;
    transform: scale(0.52);
    transform-origin: bottom right;
    z-index: 2;
  }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-cell:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-cell:nth-last-child(-n+2) { border-bottom: none; }

  .section { padding: 48px 20px; }
  .screenshots-header { padding: 0 20px; }
  .screenshots-scroll { padding: 0 20px 24px; }


  .features-grid     { grid-template-columns: 1fr; }
  .how-grid          { grid-template-columns: 1fr; gap: 36px; }
  .how-connector     { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .notes-callouts    { grid-template-columns: 1fr; }

  .cta-inner { padding: 48px 24px; border-radius: 20px; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom { flex-direction: column; text-align: center; }
  footer { padding: 40px 20px 32px; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
