/* ════════════════════════════════════════════
   Design tokens
   ════════════════════════════════════════════ */
:root {
  --bg:           #F5F4F0;
  --bg-deep:      #ECEAE3;
  --surface:      #FFFFFF;

  --sage:         #4A7C59;
  --sage-soft:    #EBF2ED;
  --sage-ink:     #2D5C3C;

  --amber:        #B06A0A;
  --amber-soft:   #FDF3E0;

  --dusk:         #4D5FAE;
  --dusk-soft:    #ECEFFE;

  --ink-1:        #1A1917;
  --ink-2:        #4A4845;
  --ink-3:        #8A8784;

  --hairline:     #E5E3DE;
  --hairline-strong: #D5D3CE;

  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    26px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ════════════════════════════════════════════
   Buttons
   ════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: opacity .15s ease, transform .1s ease;
  border: none;
}

.btn:hover  { opacity: .82; transform: translateY(-1px); }
.btn:active { opacity: 1;   transform: translateY(0);    }

.btn-primary {
  background: var(--ink-1);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink-1);
  border: 1.5px solid var(--hairline-strong);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--ink-3);
}

.btn-nav {
  background: var(--surface);
  color: var(--ink-1);
  border: 1.5px solid var(--hairline);
  padding: 8px 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.btn-large {
  padding: 16px 30px;
  font-size: 17px;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

/* Official App Store badge */
.badge-link {
  display: inline-block;
  transition: opacity .15s ease, transform .1s ease;
}

.badge-link:hover  { opacity: .82; transform: translateY(-1px); }
.badge-link:active { opacity: 1;   transform: translateY(0);    }

.badge-link img        { display: block; height: 50px; width: auto; }
.badge-link--sm img    { height: 38px; }
.badge-link--lg img    { height: 60px; }

/* ════════════════════════════════════════════
   Scroll reveal animations
   ════════════════════════════════════════════ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

.hero-animate {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-animate--delayed {
  animation-delay: 0.18s;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ════════════════════════════════════════════
   Navigation
   ════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 240, .9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-icon  { width: 28px; height: 28px; flex-shrink: 0; border-radius: 7px; }
.logo-text  { font-size: 17px; font-weight: 700; letter-spacing: -.03em; }

.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink-1);
  background: var(--bg-deep);
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 7px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.nav-hamburger:hover { background: var(--bg-deep); }

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--ink-1);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

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

/* Push anchors down so the sticky nav doesn't cover the heading */
#features, #how-it-works, #showcase, #pricing {
  scroll-margin-top: 70px;
}

/* ════════════════════════════════════════════
   Hero
   ════════════════════════════════════════════ */
.hero {
  padding: 80px 0 96px;
  overflow: hidden;
}

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

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
  color: var(--ink-1);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-actions { margin-bottom: 14px; }

.hero-note {
  font-size: 13px;
  color: var(--ink-3);
}

/* Phone mockup */
.hero-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-shrink: 0;
}

.phone {
  width: 488px;
}

.phone-screenshot {
  width: 100%;
  display: block;
}

.phone-home-bar { display: none; }

/* ════════════════════════════════════════════
   Trust strip
   ════════════════════════════════════════════ */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 24px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.trust-item svg {
  width: 17px;
  height: 17px;
  color: var(--ink-3);
  flex-shrink: 0;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--hairline);
}

/* ════════════════════════════════════════════
   Section shared styles
   ════════════════════════════════════════════ */
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 17px;
  color: var(--ink-2);
  text-align: center;
  max-width: 500px;
  margin: 0 auto 56px;
  line-height: 1.6;
}

/* ════════════════════════════════════════════
   Features
   ════════════════════════════════════════════ */
.features {
  padding: 96px 0;
}

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

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .15s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.feature-icon svg  { width: 22px; height: 22px; }
.feature-icon--sage  { background: var(--sage-soft);  color: var(--sage);  }
.feature-icon--amber { background: var(--amber-soft); color: var(--amber); }
.feature-icon--dusk  { background: var(--dusk-soft);  color: var(--dusk);  }

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ════════════════════════════════════════════
   How it works
   ════════════════════════════════════════════ */
.how-it-works {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 32px;
}

.step:first-child { padding-left: 0; }
.step:last-child  { padding-right: 0; }

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-ink);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
}

.step-arrow {
  font-size: 20px;
  color: var(--ink-3);
  padding-top: 10px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   Pricing
   ════════════════════════════════════════════ */
.pricing {
  padding: 96px 0;
  background: var(--bg-deep);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.pricing-card--featured {
  border-color: var(--sage);
  box-shadow: 0 0 0 2px var(--sage), var(--shadow-md);
  padding-top: 44px;
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sage);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-badge--value { background: var(--amber); }

.plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 4px;
}

.price-amount {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--ink-1);
}

.price-period {
  font-size: 15px;
  color: var(--ink-3);
  font-weight: 500;
}

.price-sub-line {
  font-size: 13px;
  font-weight: 600;
  min-height: 20px;
  margin-bottom: 22px;
}

.price-trial  { color: var(--sage);  }
.price-saving { color: var(--amber); }

.price-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.price-features li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
}

.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 800;
  font-size: 12px;
  top: 2px;
}

.pricing-legal {
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 28px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ════════════════════════════════════════════
   Privacy promise
   ════════════════════════════════════════════ */
.privacy-promise {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}

.privacy-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 780px;
  margin: 0 auto;
}

.privacy-shield {
  width: 56px;
  height: 56px;
  color: var(--sage);
  flex-shrink: 0;
}

.privacy-shield svg { width: 100%; height: 100%; }

.privacy-copy h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}

.privacy-copy p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.privacy-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--sage);
  transition: opacity .15s;
}

.privacy-link:hover { opacity: .75; }

/* ════════════════════════════════════════════
   Showcase — sticky scroll section
   ════════════════════════════════════════════ */

/* The section is tall to create scroll range:
   100vh sticky window + 400vh scroll = 5 screenshots × 100vh each */
.showcase {
  position: relative;
  height: 600vh;
}

.showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}

.showcase-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
  width: 100%;
}

/* ── Copy side ── */
.showcase-copy-wrap {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.showcase-slides {
  position: relative;
  min-height: 240px;
}

.showcase-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.showcase-slide.is-active {
  opacity: 1;
  transform: none;
  position: relative;
  pointer-events: auto;
}

.showcase-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}

.showcase-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.showcase-body {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 440px;
}

/* Progress dots */
.showcase-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hairline-strong);
  transition: background 0.35s ease, transform 0.35s ease, width 0.35s ease;
}

.showcase-dot.is-active {
  background: var(--ink-1);
  width: 24px;
  border-radius: 4px;
}

/* ── Phone side ── */
.showcase-phone-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-phone-wrap .phone {
  width: min(488px, 44vh);
}

/* Images stack inside the phone frame; only active is visible */
.showcase-imgs {
  position: relative;
  width: 100%;
}

.showcase-img {
  width: 100%;
  display: block;
}

.showcase-img:not(.is-active) {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-img.is-active {
  position: relative;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ════════════════════════════════════════════
   Download CTA
   ════════════════════════════════════════════ */
.download-cta {
  padding: 100px 0;
  background: var(--ink-1);
  color: white;
}

.download-inner {
  text-align: center;
}

.download-inner h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.download-inner p {
  font-size: 17px;
  color: rgba(255,255,255,.5);
  margin-bottom: 40px;
}


/* ════════════════════════════════════════════
   Footer
   ════════════════════════════════════════════ */
.footer {
  padding: 44px 0;
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.footer-logo .logo-icon { width: 26px; height: 26px; border-radius: 6px; }

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .15s;
}

.footer-links a:hover { color: var(--ink-1); }

.footer-legal {
  font-size: 12px;
  color: var(--ink-3);
  max-width: 560px;
  line-height: 1.65;
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-3);
}

/* ════════════════════════════════════════════
   Responsive — tablet
   ════════════════════════════════════════════ */
@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy { order: 2; }
  .hero-phone-wrap { order: 1; }

  .hero-sub, .hero-copy h1 { max-width: 100%; }

  .hero-actions { justify-content: center; display: flex; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Show hamburger, turn nav-links into a slide-down dropdown */
  .nav-hamburger { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(245, 244, 240, .97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 16px 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.is-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-link {
    font-size: 16px;
    padding: 12px 12px;
  }

  .trust-item { padding: 0 16px; }
  .trust-divider { display: none; }

  .steps-grid { flex-direction: column; gap: 32px; }
  .step { padding: 0; }
  .step-arrow { display: none; }

  .privacy-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Showcase: stack phone on top, copy below */
  .showcase-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .showcase-copy-wrap { order: 2; align-items: center; }
  .showcase-phone-wrap { order: 1; }

  .showcase-slides { min-height: 200px; }

  .showcase-body { max-width: 100%; }

  .showcase-dots { justify-content: center; }

  /* Shrink the phone so both phone + text fit in 100vh */
  .showcase-phone-wrap .phone { width: 338px; }
}

/* ════════════════════════════════════════════
   Responsive — mobile
   ════════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero             { padding: 48px 0 64px; }
  .features         { padding: 72px 0; }
  .how-it-works     { padding: 72px 0; }
  .pricing          { padding: 72px 0; }
  .privacy-promise  { padding: 64px 0; }
  .download-cta     { padding: 72px 0; }

  /* Reduce gap between stacked phone and copy */
  .hero-inner { gap: 32px; }

  .features-grid { grid-template-columns: 1fr; }

  /* Hero phone: constrain to viewport width */
  .phone { width: min(260px, 72vw); }

  .trust-inner { gap: 8px; }
  .trust-item  { padding: 0 8px; font-size: 12px; }

  /* Showcase: phone + text must both fit in 100vh when stacked */
  .showcase-layout  { gap: 16px; }
  .showcase-phone-wrap .phone { width: min(180px, 48vw); }
  .showcase-heading { font-size: 1.5rem; }
  .showcase-body    { font-size: 14px; }
  .showcase-slides  { min-height: 130px; }
}
