@font-face {
  font-family: 'Fredoka';
  src: url('assets/Fredoka.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* One fixed look: the deep eucalyptus green. Only the phone demo has light/dark. */
  --brand: #2F6B4F;
  --brand-ink: #8CC7A1;
  --clay: #C2410C;
  --clay-hover: #A8380A;
  --bg: #0F1512;
  --surface: #18201B;
  --tint: #16231C;
  --text: #F3EFE7;
  --muted: #A9B4AD;
  --line: rgba(243, 239, 231, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --display: 'Fredoka', ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); }
h1, h2, h3 { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }
.narrow { max-width: 760px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.top-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 9px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--text); letter-spacing: -0.01em; }
.wordmark span { color: var(--brand-ink); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav { display: none; } .top-inner .btn-small { margin-left: auto; } }


/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--clay); color: #fff; text-decoration: none; font-weight: 600;
  border-radius: 999px; padding: 12px 22px; transition: background 0.15s;
}
.btn:hover { background: var(--clay-hover); }
.btn-small { padding: 8px 16px; font-size: 15px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stores.center { justify-content: center; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 156px; padding: 9px 18px 10px; border-radius: 14px;
  background: #111; color: #fff; text-decoration: none; line-height: 1.15;
  transition: transform 0.15s;
}
.store:hover { transform: translateY(-2px); }
.store small { font-size: 12px; opacity: 0.8; }
.store strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.store.soon { background: transparent; color: var(--text); border: 1.5px dashed var(--line); border-color: color-mix(in srgb, var(--text) 30%, transparent); cursor: default; }
.store.soon:hover { transform: none; }
.store:not(.soon) { background: #fff; color: #111; }

/* Type */
.eyebrow { margin: 0 0 14px; color: var(--brand-ink); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; }
.display { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 7vw, 84px); line-height: 1; letter-spacing: -0.02em; }
.display span { color: var(--brand-ink); }
.display.small { font-size: clamp(36px, 5vw, 56px); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin: 22px 0 0; max-width: 34em; }
.lede strong { color: var(--clay); }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.title { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.015em; text-align: center; }
.sub { color: var(--muted); font-size: 18px; text-align: center; max-width: 36em; margin: 14px auto 0; }
.sub.left { text-align: left; margin-left: 0; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.hero-art { position: relative; justify-self: center; width: min(340px, 78vw); }
.phone {
  position: relative; border-radius: 46px; padding: 10px; background: #111;
  box-shadow: 0 0 0 1.5px rgba(243, 239, 231, 0.14), var(--shadow), 0 40px 80px -20px rgba(47, 107, 79, 0.45);
  transform: rotate(1.5deg);
  animation: float 7s ease-in-out infinite;
}

/* Coco in the hero: three layers so tilt, intro/idle and hops never fight over transform. */
/* Coco stands just off the phone's left edge so the demo stays tappable. */
.coco-pal { position: absolute; width: 42%; left: -40%; bottom: 7%; z-index: 2; }
.coco-btn {
  appearance: none; border: 0; background: none; padding: 0; margin: 0; cursor: pointer;
  display: block; width: 100%; transform-origin: 50% 95%; transition: transform 0.35s ease-out;
}
.coco-btn:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 4px; border-radius: 24px; }
.coco-anim { display: block; transform-origin: 50% 100%; animation: coco-enter 0.8s 0.25s cubic-bezier(0.2, 1.3, 0.4, 1) both, wave 1.1s 1.15s ease-in-out, bob 3.4s 2.4s ease-in-out infinite; }
.coco-anim img { width: 100%; transform-origin: 50% 100%; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.18)); }
.hop { animation: hop 0.55s cubic-bezier(0.3, 0.7, 0.4, 1); }
.wiggle { animation: wave 0.9s ease-in-out; }

.bubble {
  position: absolute; bottom: 96%; left: 12%; width: max-content; max-width: 230px; min-height: 44px;
  background: var(--surface); color: var(--text); border-radius: 18px 18px 18px 4px;
  padding: 11px 15px; font-size: 15px; font-weight: 500; line-height: 1.35; text-align: left;
  box-shadow: var(--shadow); transform-origin: 0 100%; pointer-events: none;
  opacity: 0; transform: scale(0.6); transition: opacity 0.4s, transform 0.4s;
}
.bubble.show { opacity: 1; transform: none; transition: opacity 0.2s, transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1); }
.bubble.pop { animation: bubble-pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1); }
.typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

/* "Try it" mood chips */
.try { margin-top: 26px; }
.try-label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.moods { display: flex; flex-wrap: wrap; gap: 8px; }
.mood {
  appearance: none; cursor: pointer; font: 600 15px/1 var(--body); color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.mood:hover { transform: translateY(-2px); border-color: var(--brand-ink); }
.mood:active { transform: scale(0.96); }
.mood:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.mood[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.try-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-copy .stores, .moods { justify-content: center; }
  .hero-art { margin-top: 40px; }
  .coco-pal { left: -36%; width: 40%; }
  .bubble { max-width: 200px; font-size: 14px; }
}
@media (max-width: 480px) {
  .hero-art { width: 64vw; margin-left: 22vw; }
  .coco-pal { left: -36%; width: 38%; bottom: 10%; }
  .bubble { max-width: 170px; font-size: 13.5px; padding: 9px 12px; left: 4%; }
}

@keyframes float { 0%, 100% { transform: rotate(1.5deg) translateY(0); } 50% { transform: rotate(0.8deg) translateY(-8px); } }
@keyframes coco-enter { 0% { transform: translate(30%, 30%) scale(0.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-9deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hop { 0%, 100% { transform: none; } 30% { transform: translateY(-16%) scale(1.03, 0.98); } 60% { transform: translateY(0) scale(1.06, 0.92); } 80% { transform: scale(0.98, 1.03); } }
@keyframes bubble-pop { 0% { transform: scale(0.85); } 100% { transform: none; } }
@keyframes dot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes pop-in { 0% { transform: scale(0.85) rotate(-4deg); opacity: 0.4; } 60% { transform: scale(1.06) rotate(2deg); opacity: 1; } 100% { transform: none; } }

/* Scroll reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.in .num { animation: pop-in 0.6s calc(var(--d, 0s) + 0.2s) both; }
.coco-stage img.pop, .final-coco.pop { animation: pop-in 0.5s ease-out; }
.final-coco.wiggle { animation: wave 1.1s ease-in-out; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 48px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); }
.card:hover .icon { animation: hop 0.55s; }
.card .icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
  background: var(--tint); color: var(--brand-ink); font-size: 22px; margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.steps-section { background: var(--tint); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps li { text-align: center; }
.num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand); color: #fff; font-family: var(--display); font-weight: 700; font-size: 24px; margin-bottom: 16px;
}
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { margin: 0 auto; color: var(--muted); max-width: 22em; }

/* Coco */
.coco-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.coco-grid .title { text-align: left; }
.coco-stage {
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 68%);
  display: grid; place-items: center; padding: 12px;
}
.coco-stage img { width: min(340px, 70vw); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.18)); }
.outfits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 28px; }
.outfit {
  appearance: none; border: 2px solid transparent; background: var(--surface); border-radius: 16px;
  padding: 8px 6px 8px; cursor: pointer; color: var(--muted); font: 600 13px/1.2 var(--body);
  box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s;
}
.outfit:hover { transform: translateY(-2px); }
.outfit:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.outfit[aria-pressed='true'] { border-color: var(--brand-ink); color: var(--text); }
.outfit img { width: 100%; max-width: 72px; margin: 0 auto 4px; }
@media (max-width: 800px) {
  .coco-grid { grid-template-columns: 1fr; gap: 16px; }
  .coco-grid .title, .sub.left { text-align: center; margin-inline: auto; }
  .coco-stage img { width: min(240px, 60vw); }
}
@media (max-width: 420px) { .outfits { gap: 6px; } .outfit { font-size: 11px; padding: 6px 2px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; align-items: start; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.plan { position: relative; background: var(--surface); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); border: 1.5px solid var(--line); }
.plan-featured { border: 2px solid var(--brand-ink); }
.plan h3 { font-family: var(--display); font-size: 26px; font-weight: 700; }
.tag {
  position: absolute; top: -13px; left: 28px; margin: 0;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.price { font-size: 30px; font-weight: 700; margin: 8px 0 0; letter-spacing: -0.02em; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: 16px; }
.plan li::before { content: '✓'; position: absolute; left: 2px; color: var(--brand-ink); font-weight: 700; }
.note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.passes { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.passes th, .passes td { padding: 9px 0; border-top: 1px solid var(--line); }
.passes th { text-align: left; font-weight: 500; color: var(--muted); }
.passes td { text-align: right; font-weight: 600; }

/* FAQ */
details { background: var(--surface); border-radius: 16px; margin-top: 12px; box-shadow: var(--shadow); }
details:first-of-type { margin-top: 40px; }
summary { cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 18px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--brand-ink); font-weight: 400; }
details[open] summary::after { content: '–'; }
details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* Final CTA */
.final { background: var(--brand); color: #fff; text-align: center; }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-coco { width: 180px; margin-bottom: 8px; transform-origin: 50% 100%; cursor: pointer; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.25)); }
.final .lede { color: rgba(255, 255, 255, 0.85); }
.final .store:not(.soon) { background: #111; color: #fff; }
.final .store.soon { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.final { background: #1F4D38; }

/* Footer */
.foot { padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot .wordmark { font-size: 20px; }
