:root {
  --bg: #fbf6ef;
  --surface: #ffffff;
  --surface-tint: #e9efe6;
  --ink: #3b2a1c;
  --ink-muted: #6e6152;
  --sage-500: #5b8a6e;
  --sage-700: #3f6350;
  --sage-300: #9fcdb0;
  --orange-400: #d98a4c;
  --border: #e7ddcd;
  --shadow: 0 24px 60px -30px rgba(59, 42, 28, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #3b2a1c;
    --surface: #46331f;
    --surface-tint: #5a4530;
    --ink: #f5efe6;
    --ink-muted: #c9b9a8;
    --sage-500: #9fcdb0;
    --sage-700: #cfe8da;
    --sage-300: #3e5f4c;
    --orange-400: #efb27c;
    --border: #5a4530;
    --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  --bg: #3b2a1c;
  --surface: #46331f;
  --surface-tint: #5a4530;
  --ink: #f5efe6;
  --ink-muted: #c9b9a8;
  --sage-500: #9fcdb0;
  --sage-700: #cfe8da;
  --sage-300: #3e5f4c;
  --orange-400: #efb27c;
  --border: #5a4530;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--sage-700); }
a:hover { color: var(--sage-500); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 66ch; }

/* ---------- nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
header.site .wordmark { color: var(--ink); }
header.site nav.links a { color: var(--ink-muted); }
header.site nav.links a:hover { color: var(--sage-700); }
header.site .has-sub > button { color: var(--ink-muted); }
header.site .has-sub > button:hover,
header.site .has-sub.open > button { color: var(--sage-700); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sage-300), var(--sage-500) 60%, var(--orange-400));
  flex: none;
}

nav.links { display: flex; gap: 22px; font-size: 0.92rem; }
nav.links a { color: var(--ink-muted); text-decoration: none; }
nav.links a:hover { color: var(--sage-700); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 76px;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%;
  background: radial-gradient(circle at 32% 28%, var(--sage-300), var(--sage-500) 55%, var(--orange-400) 100%);
  opacity: 0.28;
  filter: blur(2px);
  animation: morph 14s ease-in-out infinite;
}
.blob.b1 { width: 520px; height: 520px; top: -180px; right: -160px; }
.blob.b2 { width: 340px; height: 340px; bottom: -140px; left: -120px; animation-delay: -6s; opacity: 0.18; }

@keyframes morph {
  0%, 100% { border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; transform: rotate(8deg) scale(1.04); }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-700);
  margin-bottom: 14px;
}

h1 {
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
  font-weight: 800;
}

.hero p.lead {
  font-size: 1.14rem;
  color: var(--ink-muted);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.play-badge { display: inline-block; transition: transform 0.15s ease, opacity 0.15s ease; }
.play-badge:hover { transform: translateY(-1px); opacity: 0.9; }
.play-badge img { display: block; width: 207px; max-width: 100%; height: auto; }

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
}
.badge-soon .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sage-500);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-700);
  color: #fdfdfa;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 11px 20px;
  border-radius: 10px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--sage-500); color: #16281e; transform: translateY(-1px); }

/* ---------- phone mock ---------- */
.phone-mock {
  position: relative;
  justify-self: center;
  width: min(260px, 100%);
  filter: drop-shadow(var(--shadow));
}
.phone-mock img {
  display: block;
  width: 100%;
  border-radius: 28px;
  border: 6px solid var(--surface);
  outline: 1px solid var(--border);
}
.phone-mock .ring {
  position: absolute;
  inset: -22px;
  border-radius: 44px;
  border: 1px dashed color-mix(in srgb, var(--sage-500) 40%, transparent);
  pointer-events: none;
}

/* ---------- sections ---------- */
section { padding: 76px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }

.section-head { max-width: 56ch; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 10px; }
h2 {
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-wrap: balance;
  font-weight: 800;
}
.section-head p { color: var(--ink-muted); margin: 0; }

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
}
.feature .mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--surface-tint);
  color: var(--sage-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.feature h3 { margin: 0 0 8px; font-size: 1.02rem; letter-spacing: -0.005em; }
.feature p { margin: 0; color: var(--ink-muted); font-size: 0.94rem; }

/* screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: end;
}
.shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
}
.shot img { width: 100%; border-radius: 10px; display: block; }
.shot figcaption {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  text-align: center;
}
.shot.wide { grid-column: span 1; }

/* privacy CTA card */
.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px clamp(20px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.privacy-card ul {
  margin: 0;
  padding-left: 1.2em;
  max-width: 46ch;
  color: var(--ink);
}
.privacy-card li { margin: 0.4em 0; }
.privacy-card .cta { flex: none; }

/* footer */
footer.site {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
footer.site .row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center;
}
footer.site a { color: var(--ink-muted); }
footer.site a:hover { color: var(--sage-500); }
.footer-brand { display: flex; align-items: center; }
.footer-brand a { display: inline-flex; transition: opacity 0.15s ease; }
.footer-brand a:hover { opacity: 0.8; }
.footer-logo { display: block; width: 320px; max-width: 100%; height: auto; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.footer-copy { color: var(--ink-muted); opacity: 0.75; font-size: 0.8rem; }

/* privacy policy page */
.legal-page { padding: 64px 0 96px; }
.legal-page h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.legal-page .updated { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.15rem; margin-top: 34px; }
.legal-page ul { padding-left: 1.2em; }
.legal-page li { margin: 0.5em 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; margin-bottom: 28px; text-decoration: none; color: var(--ink-muted); }
.back-link:hover { color: var(--sage-700); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-mock { order: -1; margin-bottom: 8px; width: min(220px, 60vw); }
  .shots { grid-template-columns: 1fr 1fr; }
  .shot.wide { grid-column: span 2; }
  .privacy-card { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 520px) {
  nav.links { display: none; }
  .shots { grid-template-columns: 1fr; }
  .shot.wide { grid-column: span 1; }
}

/* ---------- submenu ---------- */
.has-sub { position: relative; }
.has-sub > button {
  background: none; border: none; cursor: pointer;
  font: inherit; color: var(--ink-muted); padding: 0;
  display: inline-flex; align-items: center; gap: 4px;
}
.has-sub > button:hover, .has-sub.open > button { color: var(--sage-700); }
.has-sub .caret { font-size: 0.7em; transition: transform 0.15s ease; }
.has-sub.open .caret { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 8px;
  display: none;
  z-index: 30;
}
.has-sub.open .submenu { display: block; }
.submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
}
.submenu a:hover { background: var(--surface-tint); color: var(--sage-700); }
@media (max-width: 520px) {
  .submenu { position: static; transform: none; box-shadow: none; border: none; padding: 4px 0 0 0; display: block; }
  .has-sub .caret { display: none; }
  .has-sub > button { pointer-events: none; }
}
