/* ===== Colors (change here to restyle the whole page) ===== */
:root {
  --sage: #5E7F5F;
  --sage-dark: #4A674B;
  --sage-soft: #E3EADF;
  --cream: #F5F3EC;
  --surface: #FFFFFF;
  --ink: #23291F;
  --muted: #5F675A;
  --line: #DEDBD0;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sage: #8FB08F;
    --sage-dark: #A7C4A7;
    --sage-soft: #2C3629;
    --cream: #171B15;
    --surface: #20251E;
    --ink: #EDEBE3;
    --muted: #A9AFA2;
    --line: #333A30;
  }
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--sage); }
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); text-align: center; }
h3 { font-size: 1.2rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
section { padding: 80px 0; }
.section-lead { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 520px; }
.fine { color: var(--muted); font-size: .9rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.3rem;
}
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }

/* ===== Hero ===== */
.hero { padding: 64px 0 80px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--sage); font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-phone { display: flex; justify-content: center; }

/* ===== Store buttons ===== */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.center-row { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--cream);
  padding: 10px 20px 10px 16px; border-radius: 14px;
  text-decoration: none; font-weight: 600; font-size: 1.05rem; line-height: 1.15;
  transition: transform .15s ease, opacity .15s ease;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn span { display: flex; flex-direction: column; }
.store-btn small { font-weight: 400; font-size: .72rem; opacity: .8; }
.store-btn.soon { opacity: .6; cursor: default; }
.store-btn.soon:hover { transform: none; }

/* ===== Phone frame ===== */
.phone {
  width: 100%; max-width: 280px;
  border-radius: 38px; padding: 10px;
  background: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(35, 41, 31, .45);
}
.phone img { border-radius: 30px; width: 100%; height: auto; }

/* ===== Two versions ===== */
.idea { background: var(--sage-soft); }
.versions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.version { text-align: center; }
.example { font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; color: var(--sage); margin: 0 0 6px; }
.version p { margin: 0; }
.version p:last-child { color: var(--muted); }
.step-pill {
  display: block; width: 72px; height: 26px; margin: 0 auto 16px;
  border-radius: 99px; border: 2px solid var(--sage);
}
.step-pill.full { background: var(--sage); }
.step-pill.half { background: linear-gradient(90deg, var(--sage) 50%, transparent 50%); }
.step-pill.rest { border-style: dashed; }

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage);
  display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 16px;
}

/* ===== Screenshots ===== */
.screens { padding-top: 0; }
.screen-row { display: flex; justify-content: center; gap: 28px; margin-top: 32px; }
.screen-row .phone { max-width: 240px; }

/* ===== Privacy ===== */
.privacy { padding-top: 0; }
.privacy-inner { text-align: center; background: var(--sage); border: none; color: #fff; padding: 56px 28px; }
.privacy-inner p { margin: 0 auto; max-width: 520px; font-size: 1.1rem; opacity: .92; }

/* ===== Pricing ===== */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto 24px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 600; }
.price { font-family: "Fraunces", Georgia, serif; font-size: 2.4rem; margin: 0; }
.price span { font-size: 1rem; color: var(--muted); font-family: "Inter", sans-serif; }
.price-alt { color: var(--muted); font-size: .95rem; margin: 4px 0 0; }
.plan-pro { border: 2px solid var(--sage); }
.pricing .fine { max-width: 640px; margin: 0 auto; }

/* ===== FAQ ===== */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--sage); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ===== Final + footer ===== */
.final { background: var(--sage-soft); }
.footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .9rem; }
.footer-inner p { margin: 0; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ===== Phone and tablet ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin: 0 auto; }
  .hero .store-buttons { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .versions { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .plans { grid-template-columns: 1fr; }
  .screen-row .phone:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .screen-row { gap: 14px; }
  .phone { padding: 7px; border-radius: 28px; }
  .phone img { border-radius: 22px; }
}

/* ===== Privacy, Terms, Contact pages ===== */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { text-align: left; font-size: 1.3rem; margin-top: 36px; }
.doc p { color: var(--ink); }
.doc .muted { color: var(--muted); margin-top: -8px; }
.email-box a {
  display: inline-block; background: var(--sage); color: #fff;
  padding: 12px 22px; border-radius: 14px; text-decoration: none; font-weight: 600;
}
