@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&family=Inter:wght@400;500;600&display=swap');

* { box-sizing: border-box; }

:root {
  --paper: #fbfaf7;
  --ink: #2f3b33;
  --ink-soft: #5c6a60;
  --ink-faint: #9aa69e;
  --sage: #8fb59b;
  --sage-soft: #dfe9e0;
  --sage-wash: #eef3ee;
  --line: #e3e1d9;
  --gold: #e0a13d;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.landing {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

h1, h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

h1 em, h2 em {
  font-style: italic;
  font-weight: 600;
}

/* ---------- ENTRANCE ANIMATION ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  /* above-the-fold: animate immediately on load */
  .logo-mark, .hero h1, .cta-form, .cta-note {
    animation: fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  /* doodle-card already carries a static rotate transform, so fade with
     opacity only — animating transform here would overwrite the tilt */
  .doodle-card {
    animation: fade-in 0.5s ease both;
  }

  .hero h1 { animation-delay: 0.05s; }
  .cta-form { animation-delay: 0.1s; }
  .cta-note { animation-delay: 0.15s; }

  .doodle-card:nth-child(1) { animation-delay: 0.15s; }
  .doodle-card:nth-child(2) { animation-delay: 0.22s; }
  .doodle-card:nth-child(3) { animation-delay: 0.29s; }
  .doodle-card:nth-child(4) { animation-delay: 0.36s; }
  .doodle-card:nth-child(5) { animation-delay: 0.43s; }

  /* below-the-fold: hidden until scrolled into view, see reveal script */
  .features h2, .feature, .banner, .final-cta {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .feature:nth-child(2) { transition-delay: 0.06s; }
  .feature:nth-child(3) { transition-delay: 0.12s; }
  .feature:nth-child(4) { transition-delay: 0.18s; }

  .features h2.in-view, .feature.in-view, .banner.in-view, .final-cta.in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- HERO ---------- */
.hero {
  text-align: center;
}

.logo-mark {
  color: var(--sage);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 30px;
  margin: 0 auto 28px;
  max-width: 560px;
}

.cta-form {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
}

.cta-form input::placeholder { color: var(--ink-faint); }
.cta-form input:focus {
  outline: none;
  border-color: var(--sage);
}

.cta-form button {
  border: none;
  background: var(--sage);
  color: #fff;
  border-radius: 4px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-form button:hover {
  background: #7ba689;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -4px rgba(47,59,51,0.35);
}

.cta-form button:active { transform: translateY(0); box-shadow: none; }

.cta-note {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin: 12px 0 0;
}

/* ---------- DOODLE STRIP ---------- */
.doodle-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 64px 0 72px;
  flex-wrap: wrap;
}

.doodle-card {
  width: 110px;
  height: 110px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 14px;
  box-shadow: 3px 3px 0 rgba(47,59,51,0.12);
  transition: transform 0.2s ease;
}

.doodle-card:hover {
  transform: translateY(-4px) rotate(0deg) !important;
}

.doodle-card svg { width: 100%; height: 100%; }

.tilt-l { transform: rotate(-4deg); }
.tilt-r { transform: rotate(3deg); }
.raised { margin-top: -26px; }
.low { margin-top: 22px; }

/* ---------- FEATURES ---------- */
.features {
  text-align: center;
  padding: 24px 0 72px;
}

.features h2 {
  font-size: 24px;
  margin: 0 0 44px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: left;
}

.feature svg {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
}

.feature p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- BANNER ---------- */
.banner {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--sage-soft);
  border-radius: 8px;
  padding: 40px 44px;
  margin-bottom: 88px;
}

.banner-text { flex: 1; }

.banner h2 {
  font-size: 24px;
  margin: 0 0 10px;
}

.banner p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 40ch;
}

.banner-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}

.banner-cta .arrow { display: inline-block; transition: transform 0.2s ease; }
.banner-cta:hover { color: var(--sage); border-color: var(--sage); }
.banner-cta:hover .arrow { transform: translateX(4px); }

.banner-doodle {
  flex: 0 0 240px;
}

.banner-doodle svg { width: 100%; height: auto; }

.banner-doodle img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 16px;
  mix-blend-mode: multiply;
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  text-align: center;
  padding: 0 0 72px;
  background:
    radial-gradient(circle, var(--line) 1px, transparent 1px) 0 0/22px 22px;
}

.final-cta h2 {
  font-size: 26px;
  margin: 0 0 8px;
}

.final-cta p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 4px;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  background: #46554b;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -6px rgba(47,59,51,0.4);
}

.btn-primary:active { transform: translateY(0); box-shadow: none; }

/* ---------- FOOTER ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  font-size: 11.5px;
  color: var(--ink-faint);
}

.footer-note a {
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-note a:hover {
  color: var(--sage);
  border-color: var(--sage);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-brand svg { color: var(--sage); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .banner { flex-direction: column; text-align: center; padding: 32px 24px; }
  .banner p { margin-inline: auto; }
  .banner-doodle { flex-basis: auto; max-width: 220px; }
  .raised, .low { margin-top: 0; }
  .hero h1 { font-size: 24px; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
}
