/* ── Design tokens ─────────────────────────────────────── */
:root {
  --paper:         #F6F5F1;
  --paper-sunken:  #F2F1EC;
  --ink:           #111110;
  --ink-soft:      #58554F;
  --muted:         #75716A;
  --subtle:        #BFBCB1;
  --border:        rgba(17, 17, 16, 0.10);
  --border-subtle: rgba(17, 17, 16, 0.06);
  --signal:        #3A4BFF;
  --delete:        #D9402D;
  --keep:          #3A9C5F;
  --fav:           #E8AE27;

  --radius-btn:    14px;
  --radius-phone:  44px;
  --radius-screen: 32px;
  --radius-card:   12px;

  --shadow-phone:  0 24px 64px rgba(17,17,16,0.18), 0 4px 8px rgba(17,17,16,0.08);
  --shadow-btn:    0 4px 16px rgba(17,17,16,0.18);

  --font-sans: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Fira Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Layout helpers ─────────────────────────────────────── */
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 640px) {
  .section-inner { padding: 0 24px; }
}

/* ── Screen-reader only utility ─────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Wordmark ───────────────────────────────────────────── */
.wordmark {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wordmark-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  margin-left: 2px;
}

/* ── Eyebrow ────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--center { text-align: center; }

/* ── Hero ───────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding-bottom: 80px;
}

.nav {
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .nav { padding: 20px 24px; }
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 48px 0;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 640px) {
  .hero-content { padding: 32px 24px 0; }
}

.hero-content .eyebrow { margin-bottom: 20px; }

.headline {
  font-weight: 500;
  font-size: 52px;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
}

@media (max-width: 960px) { .headline { font-size: 42px; } }
@media (max-width: 640px) { .headline { font-size: 32px; } }

.sub {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 440px;
  margin-bottom: 56px;
}

/* ── Email form ─────────────────────────────────────────── */
.email-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  margin-bottom: 12px;
}

.email-input {
  flex: 1;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 120ms;
}

.email-input::placeholder { color: var(--subtle); }
.email-input:focus { border-color: var(--signal); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 160ms, transform 100ms;
  margin-bottom: 20px;
}

.btn-primary:hover {
  box-shadow: var(--shadow-btn);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.trust-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.form-success {
  font-size: 14px;
  color: var(--keep);
  font-weight: 500;
  margin-top: 8px;
}

/* ── Scroll hint ────────────────────────────────────────── */
.hero-scroll-hint {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--border));
  margin: 32px auto 0;
}

/* ── Responsive: stack form on mobile ───────────────────── */
@media (max-width: 480px) {
  .email-form { flex-direction: column; }
  .btn-primary { width: 100%; }
}

/* ── How It Works section ───────────────────────────────── */
#how-it-works {
  background: var(--paper-sunken);
  border-top: 1px solid var(--border);
  padding: 80px 48px;
  text-align: center;
}

#how-it-works .eyebrow { margin-bottom: 56px; }

.phones-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.phone-caption {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}

/* ── iPhone frame ───────────────────────────────────────── */
.phone-frame {
  width: 220px;
  height: 440px;
  background: #1C1C1E;
  border-radius: var(--radius-phone);
  padding: 12px;
  box-shadow: var(--shadow-phone);
  position: relative;
  outline: 1px solid rgba(255,255,255,0.08);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-screen);
  overflow: hidden;
  position: relative;
  background: var(--paper-sunken);
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.gesture-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.gesture-arrow {
  font-size: 16px;
  line-height: 1;
}

.gesture-pill--delete {
  background: rgba(217, 64, 45, 0.10);
  color: var(--delete);
}

.gesture-pill--keep {
  background: rgba(58, 156, 95, 0.10);
  color: var(--keep);
}

.gesture-pill--fav {
  background: rgba(232, 174, 39, 0.12);
  color: #B07D10;
}

.how-note {
  margin-top: 48px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 640px) {
  #how-it-works { padding: 64px 24px; }
  .phones-row { gap: 48px; flex-direction: column; align-items: center; }
}

/* ── Mock screen: shared ────────────────────────────────── */
.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 10px 8px;
  font-size: 9px;
  color: var(--ink-soft);
}

.mock-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.mock-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.mock-meta {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mock-label {
  font-size: 9px;
  color: var(--signal);
}

/* ── Frame 1: Swipe screen ──────────────────────────────── */
.mock-swipe {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper-sunken);
}

.mock-card-zone {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-card {
  position: absolute;
  width: 142px;
  height: 200px;
  border-radius: 18px;
  background: #2C2A26;
  box-shadow: 0 8px 24px rgba(17,17,16,0.22);
}

.mock-card--back {
  transform: translateY(14px) scale(0.94);
  opacity: 0.7;
  z-index: 0;
}

.mock-card--top {
  transform: rotate(-8deg) translateX(-6px);
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #3D3530 0%, #2C2A26 100%);
}

.mock-card-overlay--delete {
  position: absolute;
  inset: 0;
  background: rgba(217, 64, 45, 0.42);
  border-radius: 18px;
}

.mock-card-badge {
  position: absolute;
  top: 14px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--delete);
  border: 1.5px solid var(--delete);
  border-radius: 5px;
  padding: 2px 4px;
  background: rgba(246,245,241,0.9);
  transform: rotate(8deg);
}

.mock-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 0 16px;
}

.mock-btn {
  border-radius: 50%;
  border: 1.5px solid;
  position: relative;
}

.mock-btn--delete {
  width: 34px;
  height: 34px;
  border-color: rgba(217,64,45,0.3);
  background: white;
}
.mock-btn--delete::before,
.mock-btn--delete::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--delete);
  border-radius: 1px;
}
.mock-btn--delete::before { transform: translate(-50%, -50%) rotate(45deg); }
.mock-btn--delete::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.mock-btn--fav {
  width: 40px;
  height: 40px;
  border-color: rgba(232,174,39,0.3);
  background: white;
}
.mock-btn--fav::before {
  content: '★';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--fav);
}

.mock-btn--keep {
  width: 34px;
  height: 34px;
  border-color: rgba(58,156,95,0.3);
  background: white;
}
.mock-btn--keep::before {
  content: '♥';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--keep);
}

/* ── Frame 2: Library picker ────────────────────────────── */
.mock-library {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper-sunken);
  padding-bottom: 8px;
}

.mock-wordmark {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}

.mock-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  margin-left: 2px;
}

.mock-hero-metric {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-eyebrow-small {
  font-family: var(--font-mono);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mock-big-number {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mock-album-list {
  flex: 1;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-album-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 8px;
  padding: 7px 8px;
  box-shadow: 0 1px 2px rgba(17,17,16,0.06);
}

.mock-album-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}
.mock-album-thumb--blue   { background: linear-gradient(135deg, #8DA1FF, #5F7AFF); }
.mock-album-thumb--green  { background: linear-gradient(135deg, #A8D4B6, #6BBF87); }
.mock-album-thumb--stone  { background: linear-gradient(135deg, #D2CFC4, #B5B0A3); }

.mock-album-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mock-album-name {
  font-size: 9px;
  font-weight: 500;
  color: var(--ink);
}

.mock-album-meta {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--muted);
}

/* ── Frame 3: Success screen ────────────────────────────── */
.phone-screen.mock-screen--success {
  background: linear-gradient(180deg, #EBF5EE 0%, #F2F1EC 65%);
}

.mock-success {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
}

.mock-check-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--keep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(58,156,95,0.28);
}

.mock-success-headline {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.mock-success-sub {
  font-size: 9px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.45;
}

.mock-stats-card {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 1px 4px rgba(17,17,16,0.08);
  margin-top: 4px;
}

.mock-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 10px;
}

.mock-stat-num {
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.mock-stat-label {
  font-family: var(--font-mono);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.mock-stat-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Trust section ──────────────────────────────────────── */
#trust {
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 80px 48px;
}

#trust .eyebrow { margin-bottom: 48px; }

.trust-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.trust-item {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(58, 75, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.trust-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  #trust { padding: 64px 24px; }
  .trust-grid { flex-direction: column; align-items: flex-start; }
  .trust-item { max-width: 100%; }
}

/* ── Footer ─────────────────────────────────────────────── */
#footer {
  background: var(--paper-sunken);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.btn-primary--footer {
  font-size: 15px;
  height: 48px;
  padding: 0 28px;
  margin-bottom: 0;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-link:hover { color: var(--ink); }

/* ── Tablet (640–959px) ─────────────────────────────────── */
@media (min-width: 641px) and (max-width: 959px) {
  .phones-row {
    gap: 24px;
  }
  .phone-frame {
    width: 190px;
    height: 380px;
  }
  .mock-topbar { padding-top: 32px; }
  .mock-big-number { font-size: 24px; }
  .mock-check-circle { width: 46px; height: 46px; }
}

.form-error {
  font-size: 14px;
  color: var(--delete);
  font-weight: 500;
  margin-top: 8px;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
