/* Pure marketing site. Colours and type mirror the app's src/ui/tokens.ts. */
:root {
  --green900: #0C5A2F;
  --green700: #12733D;
  --green500: #22C55E;
  --green300: #7CC79A;
  --green150: #DDF1E4;
  --green100: #EEF8F1;
  --pea: #86CF4C;
  --forest: #12241A;
  --ink: #101410;
  --ink-soft: #3F4741;
  --ink-muted: #5E655F;
  --line: #E4E7E2;
  --bg: #F6F8F4;
  --white: #FFFFFF;
  --paper: #FFFDF6;
  --alert: #B42318;
  --alert-tint: #FDEDEB;
  --alert-ink: #8A2A22;
  --display: 'Inter Tight', Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.section { padding: 64px 0; }

/* ---------- Nav ---------- */
.nav {
  /* Centred with left/right + auto margins, not a transform: a transformed fixed element with
     backdrop-filter flickers while scrolling. One constant look, no scroll-driven changes. */
  position: fixed; z-index: 50; top: 14px; left: 12px; right: 12px;
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 16px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(16, 20, 16, .07);
}
.brand { display: flex; align-items: center; gap: 10px; font: 800 22px/1 var(--display); letter-spacing: -.5px; color: var(--green900); }
.brand img { border-radius: 10px; }
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--green700); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--green700); color: var(--white);
  font: 600 16px/1 var(--body);
  box-shadow: 0 8px 18px rgba(18, 115, 61, .25);
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { background: var(--green900); transform: translateY(-1px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 140px 0 72px;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(134, 207, 76, .22), transparent 70%),
    radial-gradient(50% 60% at 10% 10%, var(--green100), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
h1 {
  margin-top: 0;
  font: 800 clamp(42px, 6vw, 72px)/1.02 var(--display);
  letter-spacing: -.035em;
  color: var(--green900);
}
.rotator { display: block; color: var(--green700); min-height: 1.04em; }
#rotword { display: inline-block; transition: opacity .35s var(--ease), filter .35s var(--ease), transform .35s var(--ease); }
#rotword.out { opacity: 0; filter: blur(8px); transform: translateY(12px); }
.lead { margin-top: 22px; max-width: 520px; font-size: 19px; color: var(--ink-soft); }

.go {
  display: inline-flex; align-items: center; gap: 10px; margin: 30px 0 0;
  padding: 14px 22px; border-radius: 999px; background: var(--green700); color: #fff;
  font: 600 16px/1.2 var(--body); box-shadow: 0 10px 24px rgba(12, 90, 47, .22);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.go::after { content: '\2193'; font-size: 17px; }
.go:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(12, 90, 47, .28); }


/* hero load-in */
.rise { animation: rise .8s var(--ease) both; animation-delay: calc(var(--d) * 90ms + 100ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Phone ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; animation: rise 1s var(--ease) .35s both; }
.phone {
  position: relative; width: 320px;
  padding: 12px; border-radius: 52px;
  background: #1A1F1B;
  box-shadow: 0 40px 80px rgba(12, 90, 47, .22), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
/* A real app screen (390 x 844, exported at 720 wide) inside the frame. */
.phone-screen { position: relative; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 40px; background: #F4F5F3; }
.phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ps-notch { position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #1A1F1B; }

.pip { position: absolute; z-index: 2; filter: drop-shadow(0 16px 20px rgba(12, 90, 47, .2)); }
.pip-a { width: 140px; left: -18px; bottom: 60px; animation: bob 4s ease-in-out infinite; }
.float-chip { position: absolute; z-index: 2; padding: 10px; border-radius: 20px; background: #fff; box-shadow: 0 12px 28px rgba(16, 20, 16, .1); }
.chip-a { right: 0; top: 70px; width: 72px; height: 72px; transform: rotate(8deg); }
.chip-b { right: 20px; bottom: 140px; width: 62px; height: 62px; transform: rotate(-10deg); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }

/* ---------- Headings ---------- */
.h2 { font: 800 clamp(32px, 4.4vw, 52px)/1.06 var(--display); letter-spacing: -.03em; color: var(--green900); }
.sub { margin-top: 14px; font-size: 19px; color: var(--ink-muted); }
.center.sub { max-width: 560px; margin-inline: auto; }

/* ---------- Problem cards ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { background: #fff; border-radius: 28px; padding: 28px; box-shadow: 0 4px 16px rgba(16, 20, 16, .04); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16, 20, 16, .08); }
.card h3, .tile h3 { margin-top: 18px; font: 700 22px/1.2 var(--display); letter-spacing: -.01em; }
.card p, .tile p { margin-top: 8px; color: var(--ink-muted); font-size: 16px; }

/* ---------- How it works ---------- */

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.tile { background: #fff; border-radius: 28px; padding: 28px; overflow: hidden; position: relative; transition: transform .3s var(--ease), box-shadow .3s; box-shadow: 0 4px 16px rgba(16, 20, 16, .04); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16, 20, 16, .08); }
.tile-wide { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tile-green { background: var(--green700); color: #fff; }
.tile-green p { color: rgba(255, 255, 255, .82); }
.tile-green h3 { margin-top: 0; font-size: 28px; }
.tile-wide h3 { margin-top: 0; font-size: 28px; }
.tile-cream { background: var(--paper); }
.tile-ico { width: 52px; height: 52px; }
.tile-art { width: 96px; height: 96px; margin: -6px 0 -8px -6px; }
.emoji-row { display: flex; flex-wrap: wrap; gap: 10px; }
.emoji-row img { width: 56px; height: 56px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .14); transition: transform .3s var(--ease); }
.emoji-row img:hover { transform: translateY(-4px) rotate(-6deg); }
.tile-pod { width: 260px; align-self: flex-end; margin: -10px -10px -14px 0; }

/* ---------- Dark ---------- */

/* ---------- FAQ ---------- */
.faq { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border-radius: 22px; padding: 0 24px; box-shadow: 0 4px 16px rgba(16, 20, 16, .03); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 32px 22px 0; position: relative;
  font: 700 19px/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--green700); border-bottom: 2px solid var(--green700);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; color: var(--ink-muted); }

/* ---------- CTA ---------- */
.cta {
  text-align: center; border-radius: 40px; padding: clamp(40px, 6vw, 80px) 24px;
  background: radial-gradient(70% 80% at 50% 0%, rgba(134, 207, 76, .3), transparent 70%), var(--green100);
}
.cta-pod { width: 300px; margin: 0 auto 24px; animation: bob 4.5s ease-in-out infinite; }

/* ---------- Footer ---------- */
.footer { padding: 24px 0 48px; color: var(--ink-muted); font-size: 15px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a:hover { color: var(--green700); }
.footer .brand { font-size: 18px; }
.disclaimer { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }

/* ---------- Scroll reveal (Olive-style blur in) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: var(--rd, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ---------- Simple pages (privacy, terms) ---------- */
.page { padding: 140px 0 64px; }
.page h1 { margin: 0 0 20px; font-size: clamp(36px, 5vw, 52px); }
.page p { margin-top: 14px; color: var(--ink-soft); }
.page a { color: var(--green700); text-decoration: underline; }
.page h2 { margin: 44px 0 0; font: 700 24px/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
.page ul, .page ol { margin: 14px 0 0; padding-left: 22px; color: var(--ink-soft); }
.page li { margin-top: 8px; }
.page b { color: var(--ink); font-weight: 600; }
.page .meta { font-size: 14px; color: var(--ink-muted); }
.page .lead-sm { font-size: 19px; color: var(--ink-soft); }
.page .faq { margin-top: 16px; }
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.page .contact {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 22px;
  background: #fff; text-decoration: none; box-shadow: 0 4px 16px rgba(16, 20, 16, .04);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.page .contact:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 20, 16, .08); }
.contact b { font: 700 17px/1.3 var(--display); }
.contact span { color: var(--green700); font-weight: 600; font-size: 15px; }
.join { text-align: center; padding-top: 20px; }
.join img { border-radius: 24px; box-shadow: 0 16px 36px rgba(12, 90, 47, .2); }
.join h1 { margin-top: 28px; }
@media (max-width: 720px) { .contacts { grid-template-columns: 1fr; } }

/* ---------- Screens strip ---------- */
.shots { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.shots figure { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.phone-sm { width: 100%; max-width: 268px; padding: 9px; border-radius: 42px; box-shadow: 0 28px 56px rgba(12, 90, 47, .18); }
.phone-sm .phone-screen { border-radius: 33px; }
.phone-sm .ps-notch { top: 9px; width: 74px; height: 21px; margin-left: -37px; }
.shots figcaption { margin-top: 20px; max-width: 260px; color: var(--ink-soft); font-size: 16px; }
.shots figcaption b { display: block; margin-bottom: 4px; font: 700 19px/1.25 var(--display); color: var(--ink); }
.shots-note { margin-top: 28px; font-size: 13px; color: var(--ink-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding-top: 116px; }
  .section { padding: 44px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile-pod { width: 200px; }
  .phone { width: 290px; }
  .pip-a { width: 104px; left: -6px; }
  .chip-a { right: -4px; width: 60px; height: 60px; }
  .chip-b { right: -2px; width: 52px; height: 52px; }
  .lead, .sub { font-size: 17px; }
  .cta-pod { width: 220px; }
  .shots {
    display: flex; gap: 18px; margin: 32px -16px 0; padding: 0 16px 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots figure { flex: 0 0 74%; scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}
