/* =========================================
   PairCalm Landing Page — Styles
   ========================================= */

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

:root {
  --sage:    #5c8f7a;
  --sage-dk: #3d6b58;
  --sage-lt: #8ab8a5;
  --sage-bg: #eef5f2;
  --warm:    #f5ede4;
  --warm-dk: #e8d8c8;
  --text:    #1a1a2e;
  --muted:   #6b7280;
  --white:   #ffffff;
  --radius:  18px;
  --shadow:  0 4px 24px rgba(0,0,0,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

em {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  color: var(--sage);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: 'Inter', sans-serif;
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-primary { background: var(--sage); color: var(--white); }
.btn-primary:hover { background: var(--sage-dk); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--sage); border: 2px solid var(--sage); }
.btn-ghost:hover { background: var(--sage-bg); }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { font-size: 1.4rem; }
.logo-text { font-size: 1.2rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--warm) 0%, var(--sage-bg) 100%);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(92,143,122,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.badge {
  display: inline-block;
  background: var(--sage);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.hero-title {
  margin-bottom: 22px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- PROBLEM ---- */
.problem {
  padding: 90px 0;
  text-align: center;
  background: var(--white);
}
.problem h2 { max-width: 580px; margin: 0 auto 48px; }
.problem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  text-align: left;
}
.problem-card {
  background: var(--warm);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.problem-icon { font-size: 2rem; }
.problem-card p { font-size: 1rem; font-style: italic; line-height: 1.5; }

/* ---- 3 PILLARS ---- */
.pillars {
  padding: 90px 0;
  background: var(--sage-bg);
  text-align: center;
}
.pillars h2 { margin-bottom: 48px; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  text-align: left;
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.pillar-card:hover { transform: translateY(-4px); }
.pillar-card--warm { background: var(--warm); }
.pillar-card--dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d3561 100%);
  color: var(--white);
}
.pillar-card--dark h3 { color: var(--white); }
.pillar-card--dark p { color: rgba(255,255,255,0.85); }
.pillar-card--dark .pillar-features li { color: rgba(255,255,255,0.7); }
.pillar-card--dark .pillar-features li::before { background: rgba(255,255,255,0.4); }

.pillar-icon { font-size: 2.4rem; margin-bottom: 18px; }
.pillar-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.pillar-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 20px; }

.pillar-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar-features li {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sage-dk);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pillar-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

/* ---- PRODUCT PREVIEW ---- */
.preview {
  padding: 90px 0;
  background: var(--white);
  text-align: center;
}
.preview-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 420px;
  margin: 0 auto 52px;
}
/* ── Screenshots ── */
.screens-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.screens-row--second {
  justify-content: center;
  margin-bottom: 0;
}
.phone-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.phone-frame__inner {
  background: #111;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
  width: 190px;
  border: 2px solid #2a2a2a;
}
.phone-frame--tall .phone-frame__inner {
  width: 220px;
}
.phone-frame__inner img {
  width: 100%;
  border-radius: 28px;
  display: block;
}
.phone-caption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

/* ---- HOW IT WORKS ---- */
.how {
  padding: 90px 0;
  background: var(--sage-bg);
  text-align: center;
}
.how h2 { margin-bottom: 48px; }
.steps {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--warm-dk);
}
.step { display: flex; gap: 24px; padding: 24px 0; position: relative; }
.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.step-content { padding-top: 10px; }
.step-content h4 { margin-bottom: 4px; font-size: 1rem; }
.step-content p { color: var(--muted); font-size: 0.92rem; }

/* ---- WHY LOVE ---- */
.why-love {
  padding: 80px 0;
  background: var(--sage-bg);
}
.why-love-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.why-love-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.why-check {
  font-size: 1.1rem;
  color: var(--sage-dk);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-love-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 6px;
}
.why-love-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ---- WAITLIST ---- */
.waitlist {
  padding: 110px 0;
  background: linear-gradient(160deg, var(--warm) 0%, var(--sage-bg) 100%);
  text-align: center;
}
.waitlist h2 { margin-bottom: 14px; }
.waitlist > .container > p {
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 36px;
  font-size: 1rem;
}
.waitlist-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.waitlist-input {
  padding: 12px 22px;
  border: 2px solid rgba(92,143,122,0.3);
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  width: 290px;
  background: var(--white);
  transition: border-color 0.2s;
}
.waitlist-input:focus { border-color: var(--sage); }
.waitlist-platform {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sage-dk);
  margin-bottom: 28px !important;
  margin-top: -8px;
}
.waitlist-note { font-size: 0.8rem; color: var(--muted); }
.waitlist-success { text-align: center; padding: 12px 0; margin-top: 16px; }
.success-icon     { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.success-title    { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.success-body     { font-size: 0.95rem; color: var(--muted); max-width: 340px; margin: 0 auto; line-height: 1.6; }

/* ---- FOOTER ---- */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 52px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer .logo-text { color: var(--white); }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,255,0.45); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-top: 4px; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero { padding: 80px 0 60px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .problem-cards { grid-template-columns: 1fr; }
  .why-love-grid { grid-template-columns: 1fr; gap: 16px; }
  .screens-row { gap: 12px; }
  .phone-frame__inner { width: 150px !important; }
  .phone-frame--tall .phone-frame__inner { width: 170px !important; }
  .steps::before { left: 23px; }
}
