/* ============================================================
   Morot — landing page styles
   Warm, organic, market-fresh. Cream canvas, deep green type,
   carrot-coral accents. Display + body: Nunito (matches app).
   ============================================================ */

:root {
  --cream: #faf8f2;
  --cream-bright: #fffdf8;
  --green: #22a45d;
  --green-dark: #18854a;
  --green-deep: #115c36;
  --green-soft: #e3f4ea;
  --coral: #ff7a59;
  --coral-deep: #f05e3a;
  --coral-soft: #ffede7;
  --amber: #ffb340;
  --amber-soft: #fff4e0;
  --berry-soft: #f1ecfc;
  --sky-soft: #e7f2fc;
  --ink: #20262e;
  --ink-2: #6b7280;
  --ink-3: #9ca3af;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 50px -20px rgba(17, 92, 54, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(32, 38, 46, 0.12);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: "Nunito", "Helvetica Neue", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--green); color: var(--cream-bright); }

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

a { color: var(--green-dark); }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ============ nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 164, 93, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand img { width: 38px; height: 38px; }

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

.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--green-dark); }

.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(34, 164, 93, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(34, 164, 93, 0.6);
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============ hero ============ */
.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 110px) clamp(64px, 9vw, 110px);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -160px;
  right: -140px;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(circle, rgba(34, 164, 93, 0.14), transparent 65%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; padding-bottom: 8px; }
  .hero .store-row { justify-content: center; }
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

h1 .accent {
  color: var(--green);
  position: relative;
  display: inline-block;
  white-space: nowrap;
  overflow: clip;
  vertical-align: bottom;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

h1 .swap {
  display: inline-block;
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

h1 .swap-out {
  opacity: 0;
  transform: translateY(-0.45em);
}

h1 .swap-pre {
  transition: none;
  opacity: 0;
  transform: translateY(0.45em);
}

.swap-ruler {
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* hand-drawn underline */
h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 18' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 50 5, 120 4, 197 9' fill='none' stroke='%23ffb340' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: 34px;
  font-weight: 600;
}

.store-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.appstore-badge img { height: 54px; width: auto; }

.appstore-badge {
  transition: transform 0.2s;
  display: inline-block;
}

.appstore-badge:hover { transform: translateY(-2px) scale(1.02); }

.play-soon {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding-inline: 20px;
  border-radius: 10px;
  border: 1.5px solid rgba(32, 38, 46, 0.2);
  color: var(--ink-2);
  font-weight: 800;
  font-size: 0.9rem;
}

.hero-note {
  margin-top: 18px;
  margin-bottom: 40px;
  font-size: 0.9rem;
  color: var(--ink-3);
  font-weight: 600;
}

/* --- staggered entrance --- */
.rise {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.18s; }
.rise-3 { animation-delay: 0.31s; }
.rise-4 { animation-delay: 0.44s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
}

/* ============ hero phone — real app screenshot ============ */
.phone-stage {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(330px, 84vw);
  background: var(--ink);
  border-radius: 46px;
  padding: 11px;
  box-shadow: 0 40px 90px -30px rgba(17, 92, 54, 0.4);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 36px;
}

.hero-note { margin-bottom: 0; }

/* ============ sections ============ */
section { padding-block: clamp(56px, 8vw, 100px); }

.section-head {
  max-width: 620px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 1.08rem;
}

.kicker {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral-deep);
  margin-bottom: 10px;
}

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--cream-bright);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(34, 164, 93, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.feature .icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature .icon img { width: 30px; height: 30px; }

.feature:nth-child(1) .icon { background: var(--green-soft); }
.feature:nth-child(2) .icon { background: var(--coral-soft); }
.feature:nth-child(3) .icon { background: var(--amber-soft); }
.feature:nth-child(4) .icon { background: var(--berry-soft); }

.feature h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature p { color: var(--ink-2); font-weight: 600; font-size: 0.98rem; }

/* ============ in-app showcase (green block) ============ */
.how { background: var(--green-deep); color: var(--cream-bright); border-radius: clamp(24px, 4vw, 44px); }

.how .wrap { padding-block: clamp(56px, 7vw, 90px); }

.how h2 { color: #fff; }
.how .section-head p { color: rgba(255, 253, 248, 0.75); }
.how .kicker { color: var(--amber); }

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

.shot { margin: 0; }

.shot img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.5);
}

.shot:nth-child(2) { transform: translateY(26px); }

.shot figcaption {
  margin-top: 18px;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  color: rgba(255, 253, 248, 0.9);
}

@media (max-width: 760px) {
  .shots {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin-inline: -24px;
    padding-inline: 24px;
    -webkit-overflow-scrolling: touch;
  }
  .shot {
    flex: 0 0 72%;
    scroll-snap-align: center;
  }
  .shot:nth-child(2) { transform: none; }
}

/* ============ final CTA ============ */
.cta-final { text-align: center; position: relative; }

.cta-final .carrot {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
}

.cta-final .store-row { justify-content: center; margin-top: 30px; }

/* ============ footer ============ */
footer {
  border-top: 1px solid rgba(34, 164, 93, 0.1);
  padding-block: 34px;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-3);
  font-weight: 600;
}

.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

.foot-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 700;
}

.foot-links a:hover { color: var(--green-dark); }

/* ============ scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ legal pages ============ */
.legal {
  max-width: 720px;
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 80px);
}

.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 6px; }

.legal .updated { color: var(--ink-3); font-weight: 700; font-size: 0.92rem; margin-bottom: 40px; }

.legal h2 {
  font-size: 1.35rem;
  margin: 38px 0 12px;
}

.legal h3 { font-size: 1.05rem; font-weight: 900; margin: 24px 0 8px; }

.legal p, .legal li { color: var(--ink-2); font-weight: 600; }

.legal ul, .legal ol { padding-left: 24px; margin-block: 10px; }

.legal li { margin-bottom: 6px; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 16px;
  font-size: 0.92rem;
}

.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(34, 164, 93, 0.12);
  color: var(--ink-2);
  font-weight: 600;
}

.legal th { color: var(--ink); font-weight: 900; background: var(--green-soft); }

.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 28px;
}
