/* RepSave Landing Page — Dark theme */

/* ── Tokens ────────────────────────────────────── */
:root {
  --bg:         #0A0F1E;   /* page background — deep navy */
  --surface:    #111827;   /* card / panel surfaces */
  --surface-2:  #1a2333;   /* elevated surfaces */
  --border:     rgba(255,255,255,0.07);
  --border-lt:  rgba(255,255,255,0.10);
  --text:       #F1F5F9;   /* primary text */
  --text-muted: #94A3B8;   /* muted text */
  --text-dim:   #64748B;   /* dimmer text */
  --blue:       #2563EB;
  --blue-lt:    #93C5FD;
  --blue-dk:    #1D4ED8;
  --blue-bg:    rgba(37,99,235,0.08);
  --white:      #FFFFFF;
  --ink:        #080C14;
  --radius:     12px;
  --radius-sm:  8px;
}

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

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout helpers ─────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

img { max-width: 100%; height: auto; }

.app-nav-inner,
.header-inner {
  min-width: 0;
}

/* ── Header ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,15,30,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 36px;
  max-width: 1100px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 39px !important;
  width: auto !important;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.header-nav a:hover { color: var(--blue-lt); }

.btn-cta-pill {
  padding: 9px 24px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  transition: background 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn-cta-pill:hover {
  background: var(--blue-dk);
  box-shadow: 0 6px 20px rgba(37,99,235,0.55);
}

/* ── App nav ────────────────────────────────────── */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.app-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 36px;
  max-width: 1100px;
  margin: 0 auto;
}

.app-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.app-nav-logo-img {
  height: 39px !important;
  width: auto !important;
  display: block;
}

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.app-nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.app-nav-links a:hover { color: var(--blue-lt); }
.app-nav-links a.active { color: var(--blue-lt); }

.app-nav-signout {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  font-family: inherit;
  transition: color 0.15s;
}

.app-nav-signout:hover { color: var(--text-muted); }

.btn-primary {
  display: inline-block;
  padding: 10px 22px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover { background: var(--blue-dk); }
.btn-primary:active { transform: scale(0.98); }

/* ── Hero ───────────────────────────────────────── */
.hero {
  padding: 140px 0 120px;
  text-align: center;
  background: var(--ink);
  color: var(--text);
  position: relative;
  overflow: visible;
}

.hero-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 14px;
  max-width: 440px;
}

.hero-cta-wrap .btn-primary {
  padding: 14px 32px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
  transition: background 0.15s, box-shadow 0.15s;
}

.hero-cta-wrap .btn-primary:hover {
  background: var(--blue-dk);
  box-shadow: 0 6px 28px rgba(37,99,235,0.55);
}

.hero-cta-wrap .btn-ghost {
  color: rgba(241,245,249,0.5);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.hero-cta-wrap .btn-ghost:hover {
  color: rgba(241,245,249,0.85);
}

.hero-headline {
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 28px;
}

.hero > .container > img,
.hero > .container > a > img {
  height: 288px !important;
  width: 288px !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.hero-sub {
  font-size: 1.25rem;
  color: rgba(241,245,249,0.6);
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 1.7;
}

.hero-note {
  font-size: 0.82rem;
  color: rgba(241,245,249,0.35);
}

/* ── Waitlist form (universal) ──────────────────── */
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 14px;
  justify-content: center;
}

.waitlist-form input {
  flex: 1;
  padding: 13px 18px;
  border: 1.5px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  font-size: 0.975rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.waitlist-form input::placeholder { color: rgba(255,255,255,0.3); }

.waitlist-form input:focus {
  border-color: var(--blue-lt);
  background: rgba(255,255,255,0.10);
}

.waitlist-form button {
  padding: 13px 26px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.975rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  white-space: nowrap;
}

.waitlist-form button:hover {
  background: var(--blue-dk);
  box-shadow: 0 4px 20px rgba(37,99,235,0.5);
}
.waitlist-form button:active { transform: scale(0.98); }

/* ── Section label ──────────────────────────────── */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 40px;
  text-align: center;
}

/* ── How it works ───────────────────────────────── */
.how-it-works {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

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

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

.step {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.step:hover {
  border-color: rgba(37,99,235,0.3);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Features ──────────────────────────────────── */
.features {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

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

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

.feature-card:hover {
  border-color: rgba(37,99,235,0.4);
  box-shadow: 0 4px 32px rgba(37,99,235,0.15);
  transform: translateY(-2px);
}

.feature-icon {
  color: var(--blue);
  margin-bottom: 18px;
  display: flex;
  background: var(--blue-bg);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 10px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Pricing section ────────────────────────────── */
#pricing {
  padding: 88px 0;
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--border);
}

#pricing h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.1;
}

#pricing > div > p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}

#pricing .price-card {
  flex: 1;
  min-width: 240px;
  max-width: 300px;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: left;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#pricing .price-card.popular {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 12px 40px rgba(37,99,235,0.2);
}

#pricing .price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

#pricing .price-tier {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

#pricing .price-tier.annual { color: var(--blue-lt); }
#pricing .price-tier.monthly { color: var(--text-muted); }

#pricing .price-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}

#pricing .price-sub {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

#pricing ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#pricing ul li {
  font-size: .875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

#pricing ul li span { color: #10B981; font-weight: 700; }

#pricing .price-cta {
  display: block;
  padding: 13px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}

#pricing .price-cta.primary {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

#pricing .price-cta.primary:hover {
  box-shadow: 0 6px 24px rgba(37,99,235,0.5);
}

#pricing .price-cta.ghost {
  background: transparent;
  border: 1.5px solid var(--border-lt);
  color: var(--text-muted);
}

#pricing .price-cta.ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}

#pricing .price-fine-print {
  font-size: .78rem;
  color: var(--text-dim);
  margin-top: 24px;
}

/* ── CTA section ────────────────────────────────── */
.cta-section {
  padding: 96px 0;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 14px;
}

.cta-section > .container > p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 44px;
}

.cta-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.cta-btn-primary {
  padding: 13px 28px;
  background: linear-gradient(135deg, #1D4ED8, #3B82F6);
  color: #fff;
  border-radius: 100px;
  font-size: 0.975rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(37,99,235,0.5);
  transition: background 0.15s, box-shadow 0.15s;
}

.cta-btn-primary:hover {
  background: linear-gradient(135deg, #1a40c4, #2563EB);
  box-shadow: 0 10px 40px rgba(37,99,235,0.65);
}

.cta-btn-ghost {
  color: rgba(241,245,249,0.5);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.cta-btn-ghost:hover {
  color: rgba(241,245,249,0.85);
}

.cta-fine-print {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0;
}

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  padding: 28px 0;
  text-align: center;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-sep { color: rgba(255,255,255,0.1); margin: 0 8px; }
.footer-brand ~ span { color: rgba(255,255,255,0.25); font-size: 0.85rem; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 700px) {
  .header-nav a:not(.btn-cta-pill) { display: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero { padding: 72px 0 64px; }
  .hero > .container > img,
  .hero > .container > a > img {
    height: 140px !important;
    width: 140px !important;
  }
  .hero-headline { margin-bottom: 16px; }
  .hero-sub { font-size: 1.05rem; margin-bottom: 32px; line-height: 1.55; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form button { width: 100%; }
  .cta-section h2 { font-size: 1.9rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero > .container > img,
  .hero > .container > a > img {
    height: 108px !important;
    width: 108px !important;
  }
  .hero-headline { margin-bottom: 14px; }
  .hero-sub { font-size: 0.98rem; margin-bottom: 26px; }
}

/* ── Platform strip ──────────────────────────────── */
.platform-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.platform-pill svg { flex-shrink: 0; }

/* ── Small screen fixes ─────────────────────────── */
@media (max-width: 420px) {
  .header-inner { padding: 0 16px; }

  .steps-grid, .features-grid { gap: 14px; }
  .step, .feature-card { padding: 22px 18px; }
  .cta-section h2 { font-size: 1.6rem; }
  .site-footer .container { font-size: 0.8rem; }
}

@media (max-width: 600px) {
  .app-nav-inner { padding: 0 16px; }
  .main-container { padding-left: 18px; padding-right: 18px; }
  .app-nav-links > a:not(.btn-primary) { display: none; }
  .app-nav-signout { display: none; }
}

@media (max-width: 380px) {
  .main-container { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 375px) {
  .app-nav-logo-img { max-width: 120px; }
  .app-nav-inner { padding: 0 12px; }
  .main-container { padding-left: 12px; padding-right: 12px; }
}

/* Prevent horizontal scroll */
html, body { overflow-x: hidden; }

/* ── Reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Utility: waitlist form messages ───────────── */
.waitlist-form button { position: relative; }
.waitlist-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.waitlist-msg { font-size: 0.875rem; margin-top: 8px; min-height: 20px; }
.waitlist-msg.success { color: #10B981; }
.waitlist-msg.error   { color: #F87171; }

/* ── Product demo section ───────────────────────── */
.product-demo {
  padding: 88px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

#demo .container { max-width: 1000px; margin: 0 auto; padding: 0 32px; }

/* ── Header dark scroll behavior ────────────────── */
.site-header {
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* ── Bottom tab bar (mobile-only, replaces hamburger menu) ──────────────── */
.bottom-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  align-items: flex-end;
  justify-content: space-around;
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
}

.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 72px;
  color: #6B7280;
  text-decoration: none;
  font-size: 0.66rem;
  font-weight: 600;
  padding-top: 4px;
}

.bottom-tab.active { color: #2563EB; }
.bottom-tab.active svg { stroke: #2563EB; }

.bottom-tab-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #2563EB;
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
  margin-top: -26px;
  cursor: pointer;
  flex-shrink: 0;
}

.bottom-tab-add:active { transform: scale(0.96); }

.add-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,0.45);
  z-index: 95;
  align-items: flex-end;
  justify-content: center;
}

.add-sheet-backdrop.open { display: flex; }

.add-sheet {
  background: #FFFFFF;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.add-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 100px;
  background: #E5E7EB;
  margin: 4px auto 14px;
}

.add-sheet-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 12px;
}

.add-sheet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s;
}

.add-sheet-option:hover { background: #F5F6F8; }

.add-sheet-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EFF6FF;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.add-sheet-option-title { font-weight: 600; font-size: 0.92rem; color: #0F172A; }
.add-sheet-option-desc { font-size: 0.78rem; color: #6B7280; margin-top: 1px; }

.add-sheet-cancel {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #F5F6F8;
  color: #374151;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 600px) {
  .bottom-tab-bar { display: flex; }
}