/* =============================================
   Capillo Landing Page — style.css
   ============================================= */

:root {
  /* Backgrounds */
  --bg:           #FFF9F0;   /* Creamy Sand */
  --bg-alt:       #F9F7F5;   /* Cream 50 */
  --card:         #FFFFFF;

  /* Brand */
  --primary:      #2E7D6B;   /* Calm Teal/Green — buttons, CTAs */
  --primary-dark: #1A4D3E;   /* Deep Forest — dark surfaces */
  --teal:         #7DB8C4;   /* Lighter Teal */
  --teal-dark:    #5BA8B8;

  /* Accents */
  --gold:         #C9A961;   /* Warm Gold — highlights, em text */
  --sage:         #A3C9A8;   /* Sage — soft accents */

  /* Text */
  --text:         #2D5016;   /* Deep Forest Green — headings */
  --text-body:    #4A4A4A;   /* Warm Dark Gray — body */
  --text-muted:   #8D6E63;   /* Warm Brown/Gray — secondary */

  /* Borders & Shadows */
  --border:       #E5E7EB;

  --white:        #FFFFFF;

  --font-head: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(46,125,107,.10);
  --shadow-lg: 0 12px 48px rgba(46,125,107,.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   NAV
   ============================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,249,240,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -.5px;
  text-decoration: none;
}

.logo span { color: var(--gold); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
}

.sep-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 4px;
  position: relative;
  top: -1px;
}

/* ── Waitlist form ── */
.waitlist-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-body);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}
.waitlist-form input[type="email"]:focus { border-color: var(--primary); }
.waitlist-form input[type="email"]::placeholder { color: var(--text-muted); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,125,107,.30);
}

.form-note {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── App Store CTAs ── */
.app-store-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.store-soon-note {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity .3s;
}
.store-soon-note.visible { opacity: 1; }

.cta-stores { margin-top: 32px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: .95rem;
  font-weight: 600;
  transition: background .2s, transform .15s;
}
.store-btn:hover { background: var(--primary); transform: translateY(-2px); }
.store-btn svg { flex-shrink: 0; }

/* ── Hero visual ── */
.hero-visual {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: 24px;
  perspective: 800px;
}

.phone-mockup {
  width: 180px;
  height: 320px;
  background: #FDFAF6;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform .4s ease;
  position: relative;
  overflow: hidden;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 55%);
  border-radius: inherit;
  z-index: 3;
  pointer-events: none;
}
.phone-mockup:hover { transform: rotateY(0deg) rotateX(0deg); }

.phone-mockup.center {
  width: 200px;
  height: 360px;
  transform: rotateY(0deg) rotateX(2deg) translateY(-16px);
  box-shadow: 0 24px 64px rgba(26,77,62,.30);
  z-index: 1;
}
.phone-mockup.center:hover { transform: rotateY(0deg) rotateX(0deg) translateY(-16px); }

/* =============================================
   PHONE MOCKUP — APP SCREEN CONTENT
   ============================================= */
.ap {
  position: absolute;
  inset: 0;
  background: #FDFAF6;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 7.5px;
  color: #2a2a2a;
  overflow: hidden;
  z-index: 1;
}

.ap-notch {
  width: 30%;
  height: 4px;
  background: #111;
  border-radius: 0 0 3px 3px;
  align-self: center;
  margin: 2px auto 5px;
  flex-shrink: 0;
}

.ap-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 11px 5px;
  border-bottom: 1px solid #EDEBE6;
  flex-shrink: 0;
}
.ap-bar-title { font-size: 7px; font-weight: 700; letter-spacing: .06em; color: #3a3a3a; }
.ap-bar-x { font-size: 9px; color: #AAAAAA; }

.ap-scroller {
  flex: 1;
  overflow: hidden;
  padding: 7px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ap-card {
  background: #fff;
  border-radius: 8px;
  padding: 8px 9px;
  border: 1px solid #ECEAE5;
}

.ap-product-name { font-size: 9.5px; font-weight: 700; color: #111; line-height: 1.3; margin-bottom: 5px; }

.ap-chip {
  display: inline-block;
  font-size: 6px; font-weight: 700; letter-spacing: .04em;
  background: #FFF3DC; color: #8B6A1F;
  padding: 2px 7px; border-radius: 20px;
}

.ap-label { font-size: 6.5px; font-weight: 700; letter-spacing: .05em; color: #9A7965; margin-bottom: 5px; text-align: center; }
.ap-label.gold { color: #C9A961; text-align: left; }

.ap-match {
  background: #C7DCC7; color: #2E7D6B;
  font-size: 8px; font-weight: 700; letter-spacing: .03em;
  text-align: center; padding: 6px 8px; border-radius: 20px;
}

.ap-small { font-size: 7px; color: #666; line-height: 1.5; }

/* Shelf report */
.ap-score-title { font-size: 10px; font-weight: 700; color: #111; text-align: center; }
.ap-score-sub { font-size: 6px; font-weight: 700; letter-spacing: .07em; color: #9A7965; text-align: center; margin-bottom: 4px; }

.ap-score-box {
  background: #fff; border: 1px solid #ECEAE5; border-radius: 10px;
  text-align: center; padding: 8px 0 5px; margin: 0 16px;
}
.ap-score-n { font-size: 26px; font-weight: 700; color: #D94F4F; font-family: Georgia, serif; line-height: 1; }
.ap-score-d { font-size: 11px; color: #777; }

.ap-action-pill {
  background: #FFDFDF; color: #C0392B;
  font-size: 6.5px; font-weight: 700; text-align: center;
  padding: 3px 10px; border-radius: 20px;
  align-self: center; margin: 0 auto;
}

.ap-peh { background: #EEF5F3; border-radius: 8px; padding: 7px 8px; }
.ap-peh-labels {
  display: flex; justify-content: space-between;
  font-size: 6px; font-weight: 700; letter-spacing: .04em; color: #2E7D6B;
  margin-bottom: 4px;
}
.ap-bar-track { height: 7px; background: #D8ECE8; border-radius: 4px; margin-bottom: 3px; overflow: hidden; }
.ap-peh-nums { display: flex; justify-content: space-around; margin-top: 4px; text-align: center; }
.ap-pval { font-size: 6.5px; color: #3a3a3a; line-height: 1.3; }
.ap-pval b { font-size: 9px; }
.c-red { color: #C0392B; font-weight: 700; }
.c-ok  { color: #2E7D6B; font-weight: 700; }

/* Routine */
.ap-routine-h { font-size: 11px; font-weight: 700; color: #111; font-family: Georgia, serif; margin-bottom: 2px; }
.ap-routine-meta { font-size: 6.5px; color: #9A7965; margin-bottom: 3px; }
.ap-progress { font-size: 6px; color: #9A7965; text-align: right; margin-bottom: 2px; }

.ap-step { display: flex; gap: 6px; padding: 5px 0; border-bottom: 1px solid #F0EDE8; }
.ap-step-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #BBBBBB; flex-shrink: 0; margin-top: 1px; }
.ap-step-body { flex: 1; }
.ap-step-name { font-size: 7.5px; font-weight: 600; color: #2E7D6B; margin-bottom: 2px; }
.ap-step-desc { font-size: 6.5px; color: #666; line-height: 1.4; margin-bottom: 3px; }
.ap-timer {
  display: inline-block; font-size: 6px; color: #8B6A1F;
  background: #FFF3DC; padding: 2px 6px; border-radius: 10px;
  border: 1px solid #E5D4A0;
}

/* Shared bottom elements */
.ap-btn-dark {
  background: #1A4D3E; color: #fff;
  text-align: center; padding: 10px 8px;
  font-size: 8px; font-weight: 700; flex-shrink: 0;
}

.ap-tabbar {
  display: flex; border-top: 1px solid #EDEBE6; background: #fff;
  padding: 5px 20px; flex-shrink: 0; justify-content: space-around;
}
.ap-tab { font-size: 7px; color: #AAA; text-align: center; line-height: 1.3; }
.ap-tab.on { color: #2E7D6B; }

/* =============================================
   FEATURES
   ============================================= */
.features {
  padding: 96px 0;
  background: var(--bg-alt);
}

.section-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text);
  max-width: 600px;
  margin: 0 auto 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.65;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how {
  padding: 96px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px 32px;
  margin-top: 56px;
}

.step { text-align: center; }

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 10px;
}

.step p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =============================================
   BOTTOM CTA
   ============================================= */
.cta-section {
  padding: 96px 0;
  background: var(--primary-dark);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--white);
  max-width: 560px;
  margin: 0 auto 16px;
}

.cta-section p {
  color: rgba(255,255,255,.6);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.cta-section .waitlist-form input[type="email"] {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: var(--white);
}
.cta-section .waitlist-form input[type="email"]::placeholder { color: rgba(255,255,255,.4); }
.cta-section .waitlist-form input[type="email"]:focus { border-color: var(--gold); }
.cta-section .form-note { color: rgba(255,255,255,.4); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
}
.footer-logo span { color: var(--gold); }

.footer-copy {
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

/* =============================================
   SUCCESS STATE
   ============================================= */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}
.form-success .check {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  padding: 16px 32px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 999;
  font-size: .88rem;
  line-height: 1.5;
  box-shadow: 0 -4px 24px rgba(0,0,0,.15);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn-decline {
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: .88rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.cookie-btn-decline:hover { border-color: rgba(255,255,255,.5); color: white; }

.cookie-btn-accept {
  background: var(--gold);
  color: var(--primary-dark);
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}
.cookie-btn-accept:hover { opacity: .88; }

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .hero { padding: 64px 0 56px; }
  .features, .how, .cta-section { padding: 64px 0; }

  .waitlist-form { flex-direction: column; align-items: stretch; }
  .waitlist-form input[type="email"],
  .btn-primary { width: 100%; text-align: center; }

  .hero-visual { gap: 10px; }
  .phone-mockup { width: 110px; height: 210px; border-radius: 20px; }
  .phone-mockup .ap { font-size: 5.5px; }
  .phone-mockup.center { width: 125px; height: 235px; }
  .ap-score-n { font-size: 20px; }
  .ap-routine-h { font-size: 9px; }

  .footer-inner { flex-direction: column; text-align: center; }
}
