/* Shared by the home page and the FAQ page. */

:root {
  --bg: #f7faf5;
  --surface: #ffffff;
  --text: #1d2620;
  --muted: #5f6b63;
  --line: #e3e9e1;
  --green: #4cc764;
  --green-soft: #c4ebc9;
  --dark: #333b36;
  --wood: #c99a62;
  --string: #a8977f;
  --radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121513;
    --surface: #1c211d;
    --text: #e8ede9;
    --muted: #9aa69e;
    --line: #2b322d;
    --green-soft: #2f5236;
    --string: #6f6455;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }

a { color: inherit; }

/* ---------- Back link ---------- */

.top { width: 100%; max-width: 720px; margin: 0 auto; padding: 20px 20px 0; }
.back { color: var(--muted); font-size: 15px; text-decoration: none; }
.back:hover { color: var(--text); }

/* ---------- Logo ---------- */

/* The app icon, rebuilt: its gradient, sampled from micgrw.png, under a glassy rim, with
   the sprout from icons/LOGO/logo_light.pdf on top. The sprout is its own layer so that it
   alone can scale on hover. */
.logo {
  position: relative;
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: 30px;
  background: linear-gradient(180deg, #cbf6bb 0%, #bdeeac 50%, #aee19c 100%);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.85),
    inset 0 -2px 4px rgba(70, 120, 55, 0.18),
    0 1px 2px rgba(40, 80, 30, 0.12),
    0 12px 32px rgba(60, 120, 60, 0.2);
}

/* The liquid glass rim: a thin ring, bright at the top left and bottom right where light
   would catch the edge of a glass tile, and faint along the sides. */
.logo::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: inherit;
  background: linear-gradient(140deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.35) 22%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.3) 78%,
    rgba(255, 255, 255, 0.8) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* A soft sheen across the top of the glass. */
.logo::after {
  content: "";
  position: absolute;
  inset: 3px 3px 50% 3px;
  border-radius: 27px 27px 60% 60% / 27px 27px 30% 30%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.logo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  /* The PDF's page puts the sprout about 3.5% lower than the app icon does. */
  transform: translateY(-3.5%);
  filter: drop-shadow(0 2px 2px rgba(40, 80, 30, 0.18));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover img { transform: translateY(-3.5%) scale(1.08); }

/* ---------- Hero ---------- */

.hero { text-align: center; padding: 56px 0 8px; }
.hero h1 { margin: 18px 0 0; font-size: 44px; letter-spacing: -0.02em; line-height: 1.1; }
.hero p { margin: 4px 0 0; font-size: 18px; color: var(--muted); }

/* ---------- Store badges ---------- */

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px 0 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid #3a3a3a;
  transition: transform 0.15s ease;
}

.badge:hover { transform: translateY(-1px); }
.badge svg { flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.badge small { font-size: 11px; opacity: 0.85; }
.badge strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

.beta {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Text pages ---------- */

/* The support and privacy pages: a centered title, then plain sections of text. */
.doc h1 { margin: 32px 0 6px; font-size: 36px; letter-spacing: -0.02em; text-align: center; }
.doc .lede { margin: 0 0 32px; text-align: center; color: var(--muted); font-size: 17px; }
.doc h2 { margin: 36px 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.doc p, .doc ul { margin: 0 0 12px; color: var(--muted); }
.doc ul { padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--text); text-decoration-color: var(--green); text-underline-offset: 3px; }
.doc a:hover { color: var(--green); }

/* A raised panel, the same surface as the plan on the home page. */
.card {
  margin: 0 0 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.card h2 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 72px;
  padding: 28px 20px 32px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.footer-links { display: flex; justify-content: center; gap: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

.social { display: flex; justify-content: center; gap: 18px; margin: 18px 0 14px; }
.social a { display: inline-flex; color: var(--muted); transition: color 0.15s ease; }
.social a:hover { color: var(--text); }
.social svg { width: 20px; height: 20px; }

.credit { margin: 0; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
