/* Bramble — marketing site. Design system mirrors the app:
   cream paper, sage, deep forest, golden accents; Fraunces display,
   Nunito body, Caveat handwriting. */

:root {
  --bg: #F4F1E6;
  --card: #FDFBF5;
  --ink: #2F4A2F;
  --ink-soft: #7A7464;
  --sage: #E7EBD9;
  --sage-deep: #C8D098;
  --forest: #2F4A2F;
  --forest-deep: #243B26;
  --golden: #F8C048;
  --golden-deep: #A8842C;
  --blush: #F2DEDA;
  --hairline: rgba(47, 74, 47, 0.12);
  --shadow: 0 20px 60px rgba(47, 74, 47, 0.16);
  --shadow-soft: 0 8px 28px rgba(47, 74, 47, 0.10);
  --radius: 28px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", -apple-system, sans-serif;
  --font-hand: "Caveat", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- the scroll-drawn walking path ---------- */
#trail-path-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.trail-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #A8842C;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.trail-dot.on { opacity: 0.55; transform: scale(1); }
#walker {
  position: absolute;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  background: var(--card);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 6px 20px rgba(47, 74, 47, 0.25);
  border: 2px solid var(--golden);
  z-index: 1;
  transition: opacity 0.4s var(--ease);
}

main, header.site-nav, footer { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.site-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1060px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 20px;
  background: rgba(253, 251, 245, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 999px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  z-index: 50;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-nav.tucked { transform: translateX(-50%) translateY(-120%); }
.site-nav img.logo { height: 34px; width: auto; }
.site-nav nav { display: flex; gap: 26px; font-weight: 700; font-size: 14.5px; }
.site-nav nav a { opacity: 0.85; transition: opacity 0.25s; }
.site-nav nav a:hover { opacity: 1; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--forest);
  color: var(--card);
  font-weight: 800;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(47, 74, 47, 0.3);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 34px rgba(47, 74, 47, 0.35); }
.btn.gold { background: var(--golden); color: var(--forest); box-shadow: 0 8px 24px rgba(248, 192, 72, 0.45); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--hairline); box-shadow: none; }
.site-nav .btn { padding: 10px 20px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 140px 28px 80px;
}
.kicker {
  font-family: var(--font-hand);
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--golden-deep);
  transform: rotate(-1.5deg);
  display: inline-block;
}
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.5px;
  margin: 14px 0 22px;
}
h1 .gold { color: var(--golden-deep); font-style: italic; }
.hero p.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13px; color: var(--ink-soft); margin-top: 16px; }

.phone {
  position: relative;
  justify-self: center;
  width: min(360px, 78vw);
  transform: rotate(2.5deg);
  animation: phoneFloat 7s ease-in-out infinite;
  will-change: transform;
}
.phone img {
  width: 100%;
  filter: drop-shadow(0 26px 50px rgba(47, 74, 47, 0.28));
}
@keyframes phoneFloat {
  0%, 100% { transform: rotate(2.5deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-14px); }
}

/* decorative bits */
.deco { position: absolute; pointer-events: none; user-select: none; }

/* ---------- sections ---------- */
section { position: relative; padding: 110px 28px; }
.wrap { max-width: 1080px; margin: 0 auto; }
.section-kicker {
  font-family: var(--font-hand);
  color: var(--golden-deep);
  font-size: 26px;
  display: block;
  transform: rotate(-1deg);
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  margin: 10px 0 18px;
}
.sub { color: var(--ink-soft); font-size: 17px; max-width: 560px; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.feature.flip .feature-copy { order: 2; }
.feature .phone { width: min(330px, 70vw); animation: none; }
.feature ul { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.feature li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.feature li .dot {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sage);
  display: grid; place-items: center;
  font-size: 17px;
}
.feature li b { display: block; }
.feature li span { color: var(--ink-soft); font-size: 14.5px; }

/* small features grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 50px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(47, 74, 47, 0.05);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .emoji { font-size: 30px; }
.card h3 { font-family: var(--font-display); font-size: 20px; margin: 12px 0 6px; }
.card p { color: var(--ink-soft); font-size: 14.5px; }

/* privacy band */
.band {
  background: var(--forest);
  color: var(--card);
  border-radius: 40px;
  padding: clamp(50px, 7vw, 90px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.band h2 { color: var(--card); }
.band .sub { color: #C9D2BF; margin: 0 auto; }
.band .pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.band .pill {
  background: rgba(253, 251, 245, 0.12);
  border: 1px solid rgba(253, 251, 245, 0.22);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

/* pricing */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 720px; margin: 50px auto 0; }
.price {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  border: 1.5px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.price.hot { border: 2.5px solid var(--forest); }
.price .tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  background: var(--golden); color: var(--forest);
  font-weight: 800; font-size: 12.5px; padding: 6px 16px; border-radius: 999px;
}
.price .amount { font-family: var(--font-display); font-size: 46px; font-weight: 700; }
.price .per { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.price ul { list-style: none; text-align: left; display: grid; gap: 9px; font-size: 14.5px; margin: 18px 0 8px; }
.price li::before { content: "✓  "; color: var(--golden-deep); font-weight: 800; }
.trial-note { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 22px; }

/* FAQ */
.faq { max-width: 720px; margin: 40px auto 0; display: grid; gap: 12px; }
details {
  background: var(--card);
  border-radius: 20px;
  padding: 20px 26px;
  border: 1px solid var(--hairline);
}
summary { font-weight: 800; cursor: pointer; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: "+"; font-family: var(--font-display); font-size: 24px; color: var(--golden-deep); transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }

/* footer */
footer {
  background: var(--forest-deep);
  color: #C9D2BF;
  margin-top: 110px;
  padding: 70px 28px 40px;
  border-radius: 48px 48px 0 0;
}
footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer .hand { font-family: var(--font-hand); font-size: 26px; color: var(--golden); }
footer nav { display: grid; gap: 8px; font-size: 14.5px; }
footer nav a:hover { color: var(--card); }
footer .legal { font-size: 12px; opacity: 0.7; margin-top: 44px; text-align: center; width: 100%; }

/* ---------- legal pages ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 160px 28px 90px; }
.legal-page h1 { font-size: clamp(34px, 4.5vw, 48px); }
.legal-page .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 40px; }
.legal-page h2 { font-size: 22px; margin: 36px 0 10px; }
.legal-page p { color: #4A5440; font-size: 15.5px; margin-bottom: 14px; }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.from-left { transform: translateX(-44px); }
.reveal.from-right { transform: translateX(44px); }
.reveal.zoom { transform: scale(0.92); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.18s; }
.reveal.d3 { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  #walker { display: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
  .hero p.lede { margin: 0 auto 30px; }
  .hero-ctas { justify-content: center; }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .feature .phone { margin: 0 auto; }
  .site-nav nav { display: none; }
  #trail-path-wrap { display: none; }
  #walker { display: none; }
}
