/* =====================================================
   RemindFlow — style.css
   Fonts: DM Serif Display (headlines) + DM Sans (body)
===================================================== */

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

:root {
  --bg:         #0a0f1a;
  --bg-2:       #0d1420;
  --bg-3:       #111827;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);
  --teal:       #1cc7ae;
  --teal-dim:   rgba(28,199,174,0.12);
  --blue-dim:   rgba(59,130,246,0.12);
  --amber-dim:  rgba(250,204,21,0.10);
  --purple-dim: rgba(99,102,241,0.12);
  --text-1:     #f0f2f5;
  --text-2:     rgba(255,255,255,0.55);
  --text-3:     rgba(255,255,255,0.28);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  padding-top: 64px;
  min-width: 320px;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Shared typography ────────────────────────────── */
h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; letter-spacing: -0.5px; }

h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.08; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
h3 { font-size: 18px; line-height: 1.3; font-family: 'DM Sans', sans-serif; font-weight: 500; }

em { font-style: italic; color: var(--teal); }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  display: block;
}

.section-sub {
  font-size: 16px;
  color: var(--text-2);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
  margin-top: 12px;
  margin-bottom: 0;
}

/* Scroll fade-in */
.feat-card, .stat-block, .ease-cell, .price-card, .founder-card, .problem-inner {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.feat-card.visible, .stat-block.visible, .ease-cell.visible,
.price-card.visible, .founder-card.visible, .problem-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HEADER ───────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10,15,26,0.88);
  border-bottom: 1px solid var(--border);
  z-index: 999;
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text-1);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.nav-logo-img {
  height: 28px;
  width: auto;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
  transition: color 0.2s;
}

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

.nav-login {
  background: var(--teal-dim) !important;
  border: 1px solid rgba(28,199,174,0.25) !important;
  color: var(--teal) !important;
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 500 !important;
  transition: background 0.2s, border-color 0.2s !important;
}

.nav-login:hover {
  background: rgba(28,199,174,0.2) !important;
  border-color: rgba(28,199,174,0.4) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
}

.eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--text-3);
}

.hero h1 { margin-bottom: 22px; }

.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

.btn-main {
  background: var(--teal);
  color: #0a0f1a;
  border: none;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-main:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
  background: none;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.25); color: var(--text-1); }

.hero-trust {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 64px;
}

/* Hero mockup */
.hero-mockup {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  text-align: left;
}

.mock-invoice, .mock-reminders, .mock-trust {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.mock-inv-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-inv-id { font-size: 13px; font-weight: 600; letter-spacing: 0.3px; }
.mock-status { font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.s-sent { background: var(--teal-dim); color: var(--teal); }
.s-opened { background: var(--blue-dim); color: #60a5fa; }
.s-paid { background: rgba(34,197,94,0.12); color: #4ade80; }
.mock-client { font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.mock-amount { font-size: 24px; font-weight: 600; letter-spacing: -1px; margin-bottom: 14px; }
.mock-bar { height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; }
.mock-bar-fill { height: 100%; width: 0%; background: var(--teal); border-radius: 2px; }
.mock-footer { display: flex; justify-content: space-between; margin-top: 12px; }
.mock-date { font-size: 11px; color: var(--text-3); }
.mock-action { font-size: 11px; color: var(--teal); font-weight: 500; }

.mock-section-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }

.mock-r-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: rgba(255,255,255,0.03); border-radius: 8px; margin-bottom: 6px; }
.mock-r-item:last-child { margin-bottom: 0; }
.mock-r-stage { font-size: 12px; color: var(--text-2); }
.mock-r-badge { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 999px; }
.rb-done { background: var(--teal-dim); color: var(--teal); }
.rb-next { background: rgba(250,204,21,0.12); color: #fbbf24; }
.rb-auto { background: rgba(99,102,241,0.12); color: #818cf8; }

.mock-t-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mock-t-row:last-child { margin-bottom: 0; }
.mock-t-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.av-a { background: var(--teal-dim); color: var(--teal); }
.av-b { background: var(--blue-dim); color: #60a5fa; }
.av-c { background: rgba(250,204,21,0.12); color: #fbbf24; }
.mock-t-name { font-size: 13px; color: var(--text-2); flex: 1; }
.mock-t-grade { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.grade-a { background: var(--teal-dim); color: var(--teal); }
.grade-b { background: var(--blue-dim); color: #60a5fa; }
.grade-c { background: rgba(250,204,21,0.12); color: #fbbf24; }

/* ── WORKFLOW ─────────────────────────────────────── */
.workflow {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s ease, opacity 0.4s ease, padding 0.4s ease;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.workflow.open {
  max-height: 600px;
  opacity: 1;
  padding: 72px 0;
}

.workflow h2 { text-align: center; margin-bottom: 48px; }

.workflow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.wf-step {
  text-align: center;
  padding: 20px 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 160px;
}

.wf-num { font-size: 11px; font-weight: 600; color: var(--teal); letter-spacing: 1px; margin-bottom: 6px; }
.wf-text { font-size: 14px; color: var(--text-2); font-weight: 400; }
.wf-arrow { font-size: 18px; color: var(--border-2); }
.workflow-note { text-align: center; margin-top: 36px; font-size: 15px; color: var(--text-2); font-weight: 300; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── PROBLEM ──────────────────────────────────────── */
.problem { padding: 100px 0; border-bottom: 1px solid var(--border); }

.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.problem-left h2 { margin-bottom: 20px; }
.problem-left p { font-size: 16px; color: var(--text-2); font-weight: 300; line-height: 1.75; margin-bottom: 14px; }
.problem-left p:last-child { margin-bottom: 0; }

.problem-stats { display: flex; flex-direction: column; gap: 2px; }

.stat-block {
  padding: 28px 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-unit { font-size: 24px; letter-spacing: -1px; }
.stat-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; font-weight: 300; }

/* ── FEATURES ─────────────────────────────────────── */
.features { padding: 100px 0; border-bottom: 1px solid var(--border); }
.features h2 { margin-bottom: 10px; }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 56px;
}

.feat-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.25s, opacity 0.5s ease, transform 0.5s ease;
}

.feat-card:hover { border-color: var(--border-2); }

.feat-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: rgba(28,199,174,0.04);
  border-color: rgba(28,199,174,0.2);
}

.feat-card--featured:hover { border-color: rgba(28,199,174,0.35); }

.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 18px;
}

.fi-teal { background: var(--teal-dim); }
.fi-blue { background: var(--blue-dim); }
.fi-amber { background: var(--amber-dim); }
.fi-purple { background: var(--purple-dim); }

.feat-card h3 { margin-bottom: 10px; color: var(--text-1); }
.feat-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; font-weight: 300; }

/* Mini mockup inside featured card */
.feat-mini-mockup {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.fmm-label { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.fmm-name { font-size: 16px; font-weight: 500; color: var(--text-1); margin-bottom: 4px; }
.fmm-email { font-size: 12px; color: var(--text-3); margin-bottom: 16px; }

.fmm-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.fmm-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
}

.fmm-tag.teal { background: var(--teal-dim); color: var(--teal); }
.fmm-tag.blue { background: var(--blue-dim); color: #60a5fa; }
.fmm-tag.gray { background: rgba(255,255,255,0.06); color: var(--text-2); }

/* ── EASE STRIP ───────────────────────────────────── */
.ease-strip {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.ease-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ease-cell {
  padding: 24px 32px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  min-width: 160px;
}

.ease-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.ease-value {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: -0.3px;
}

.ease-value.teal { color: var(--teal); }
.ease-arrow { font-size: 20px; color: var(--border-2); }

/* ── PRICING ──────────────────────────────────────── */
.pricing { padding: 100px 0; border-bottom: 1px solid var(--border); }
.pricing h2 { margin-bottom: 10px; }

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

.price-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.price-card--featured {
  border-color: rgba(28,199,174,0.35);
  background: rgba(28,199,174,0.04);
}

.price-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: var(--teal-dim);
  color: var(--teal);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.price-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
}

.price-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: -1.5px;
  line-height: 1;
}

.price-amount.small { font-size: 30px; }

.price-period {
  font-size: 13px;
  color: var(--text-3);
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 24px;
  margin-top: 4px;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.price-features li {
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 300;
}

.pf-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-dim);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.price-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-2);
  background: none;
  color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.price-btn:hover:not(:disabled) { background: rgba(255,255,255,0.05); color: var(--text-1); }
.price-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.price-btn--featured {
  background: var(--teal);
  border-color: var(--teal);
  color: #0a0f1a;
  font-weight: 600;
}

.price-btn--featured:hover { opacity: 0.88; }

.pricing-divider {
  text-align: center;
  margin: 36px 0;
  color: var(--text-3);
  font-size: 13px;
  position: relative;
}

.pricing-divider::before, .pricing-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--border);
}

.pricing-divider::before { left: 0; }
.pricing-divider::after { right: 0; }

.price-connector {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.price-connector-left h3 { font-size: 16px; font-weight: 500; color: var(--text-1); margin-bottom: 6px; font-family: 'DM Sans', sans-serif; }
.price-connector-left p { font-size: 14px; color: var(--text-2); font-weight: 300; }
.price-connector-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }

/* ── FOUNDER ──────────────────────────────────────── */
.founder { padding: 100px 0; border-bottom: 1px solid var(--border); }

.founder-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px;
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--bg-3);
}

.founder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 1px solid rgba(28,199,174,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  color: var(--teal);
  flex-shrink: 0;
}

.founder-name { font-size: 16px; font-weight: 500; color: var(--text-1); margin-bottom: 2px; }
.founder-role { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }

.founder-quote {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
  letter-spacing: -0.3px;
  border: none;
}

/* ── FOOTER ───────────────────────────────────────── */
.footer {
  padding: 32px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-3);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-2); }
.footer-copy { font-size: 13px; color: var(--text-3); }