@import url('palette.css');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img, video {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

/* === Typography === */
h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--text-primary);
  line-height: 1.25;
}

.section-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--clay-rose);
  margin-bottom: 10px;
}

/* === Layout === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: 80px 0;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 28px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
}

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

.btn-ghost {
  background: transparent;
  color: var(--light-on-dark);
  border: 1px solid rgba(245, 232, 224, 0.25);
}

.btn-ghost:hover {
  background: rgba(245, 232, 224, 0.1);
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.nav--scrolled {
  background: var(--warm-charcoal);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

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

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

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-logo-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--light-on-dark);
}

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

.nav-link {
  font-size: 14px;
  color: var(--accent-on-dark);
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 13px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--light-on-dark);
  border-radius: 1px;
}

/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--warm-charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--light-on-dark);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.mobile-menu-link {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 24px;
  color: var(--light-on-dark);
}

.mobile-menu-link:hover {
  text-decoration: underline;
}

.mobile-menu-cta {
  margin-top: 8px;
  padding: 16px 36px;
  font-size: 16px;
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--warm-charcoal);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hero-overlay-top) 0%, var(--hero-overlay-bottom) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 0 20px;
}

.hero-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  margin-bottom: 16px;
}

.hero-headline {
  font-size: 42px;
  color: var(--light-on-dark);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--accent-on-dark);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 12px;
  color: var(--accent-on-dark);
  opacity: 0.5;
  animation: gentle-bounce 2s ease-in-out infinite;
}

@keyframes gentle-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* === Story === */
.story {
  background: var(--warm-white);
}

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

.story-headline {
  font-size: 28px;
  margin-bottom: 16px;
}

.story-body {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
}

.story-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.story-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.story-timeline-photo {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.story-timeline-arrow {
  color: var(--terracotta);
  font-size: 18px;
  flex-shrink: 0;
}

.story-timeline-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* === How It Works === */
.how-it-works {
  background: var(--blush-cream);
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.steps {
  display: flex;
  gap: 24px;
  align-items: stretch;
  justify-content: center;
}

.step-card {
  background: var(--pale-rose);
  border-radius: 16px;
  padding: 28px;
  flex: 1;
  text-align: center;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  flex-shrink: 0;
}

.section-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.step-icon {
  margin: 0 auto 16px;
}

.step-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  color: var(--terracotta);
  font-size: 24px;
  align-self: center;
  flex-shrink: 0;
}

/* === Crop Example === */
.crop-example {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.crop-example-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.crop-example-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(58, 47, 47, 0.12);
}

.crop-example-arrow {
  color: var(--terracotta);
  font-size: 28px;
  flex-shrink: 0;
}

.crop-example-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.crop-example-caption {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* === App Preview === */
.app-preview {
  background: var(--warm-white);
}

.phones {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.phone-item {
  text-align: center;
}

.phone-frame {
  width: 180px;
  background: #1A1A1A;
  border-radius: 28px;
  padding: 8px;
  position: relative;
  box-shadow: 0 12px 40px rgba(58, 47, 47, 0.2);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 14px;
  background: #1A1A1A;
  border-radius: 10px;
  z-index: 2;
}

.phone-screen {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}

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

.phone-caption-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 14px;
}

.phone-caption-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  max-width: 180px;
  margin-left: auto;
  margin-right: auto;
}

/* === Features === */
.features {
  background: var(--blush-cream);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.feature-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--pale-rose);
  border-radius: 20px;
  padding: 32px;
}

.feature-card--reverse {
  flex-direction: row-reverse;
}

.feature-icon {
  flex-shrink: 0;
}

.feature-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Final CTA === */
.final-cta {
  background: var(--warm-charcoal);
  text-align: center;
}

.final-cta-inner {
  max-width: 500px;
  margin: 0 auto;
}

.final-cta-headline {
  color: var(--light-on-dark);
  font-size: 30px;
  margin-bottom: 16px;
}

.final-cta-body {
  color: var(--accent-on-dark);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.final-cta-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 24px;
}

.store-badge {
  display: inline-block;
  text-decoration: none;
}

.store-badge:hover {
  text-decoration: none;
  opacity: 0.9;
}

.store-badge img {
  height: 48px;
  width: auto;
}

.final-cta-footnote {
  font-size: 12px;
  color: var(--text-muted);
}

/* === Footer === */
.footer {
  background: var(--espresso);
  padding: 40px 0;
}

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

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

.footer-logo:hover {
  text-decoration: none;
}

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

.footer-logo-text {
  color: var(--accent-on-dark);
  font-size: 14px;
  font-weight: 600;
}

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

.footer-link {
  color: var(--text-muted);
  font-size: 12px;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 11px;
}

/* === Tablet (768-1024px) === */
@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .phones {
    gap: 16px;
  }

  .phone-frame {
    width: 150px;
  }

  .feature-card,
  .feature-card--reverse {
    flex-direction: column;
    text-align: center;
  }
}

/* === Mobile (<768px) === */
@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }

  section {
    padding: 56px 0;
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .hero-headline {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Story timeline */
  .story-timeline {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    justify-content: flex-start;
  }

  .story-timeline-item {
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  /* Steps */
  .steps {
    flex-direction: column;
    gap: 16px;
  }

  .step-arrow,
  .crop-example-arrow {
    transform: rotate(90deg);
  }

  .crop-example {
    flex-direction: column;
    gap: 12px;
  }

  .crop-example-img {
    width: 150px;
    height: 150px;
  }

  /* Phones */
  .phones {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 12px;
  }

  .phone-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  /* Features */
  .feature-card,
  .feature-card--reverse {
    flex-direction: column;
    text-align: center;
  }

  /* Final CTA */
  .final-cta-badges {
    flex-direction: column;
    align-items: center;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
