/* Tend — shared site theme. Mirrors the app: warm cream, sage, serif
   display over rounded body, soft cards, gentle motion. */

:root {
  --bg: #f7f2e9;
  --bg-deep: #f1eadd;
  --card: #fffdf8;
  --ink: #4a4036;
  --subtle: #8c8073;
  --sage: #a9bca1;
  --sage-deep: #6f8a68;
  --terracotta: #c07856;
  --rose: #d8a7a0;
  --butter: #e9c46a;
  --fog: #8a9ba8;
  --shadow: 0 10px 30px rgba(74, 64, 54, 0.08);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #211c17;
    --bg-deep: #1b1713;
    --card: #2b251f;
    --ink: #ede6dc;
    --subtle: #a89c8e;
    --sage: #8fa588;
    --sage-deep: #9bb393;
    --terracotta: #ce8b69;
    --rose: #b98a84;
    --butter: #d9b45c;
    --fog: #93a5b3;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: ui-serif, "New York", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.25;
}

a { color: var(--sage-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow);
}

nav .links { display: flex; gap: 22px; font-size: 0.95rem; }
nav .links a { color: var(--subtle); }
nav .links a:hover { color: var(--sage-deep); text-decoration: none; }

/* ── Hero ── */
header.hero {
  text-align: center;
  padding: 56px 0 30px;
}

.hero .icon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}

.hero h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }

.hero .tagline {
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--sage-deep);
  margin-top: 10px;
}

.hero p.lede {
  max-width: 34rem;
  margin: 18px auto 0;
  color: var(--subtle);
  font-size: 1.06rem;
}

.pill {
  display: inline-block;
  margin-top: 28px;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--sage-deep);
  color: var(--card);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow);
}
.pill:hover { text-decoration: none; opacity: 0.92; }
.pill.quiet {
  background: transparent;
  color: var(--sage-deep);
  border: 1.5px solid var(--sage);
  box-shadow: none;
}

.badge-note { margin-top: 12px; font-size: 0.85rem; color: var(--subtle); }

/* ── Sanctuary vignette ── */
.vignette {
  margin: 44px auto 8px;
  max-width: 560px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}
.vignette svg { width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .flame { animation: flicker 2.6s ease-in-out infinite; transform-origin: center 88%; }
  .zz { animation: drift 5.2s ease-in-out infinite; opacity: 0; }
  .zz.two { animation-delay: 2.6s; }
  .sunray { animation: breathe 9s ease-in-out infinite; }
  @keyframes flicker {
    0%, 100% { transform: scaleY(1) scaleX(1); }
    30% { transform: scaleY(1.12) scaleX(0.94); }
    60% { transform: scaleY(0.92) scaleX(1.06); }
  }
  @keyframes drift {
    0% { opacity: 0; transform: translate(0, 0); }
    25% { opacity: 0.75; }
    100% { opacity: 0; transform: translate(9px, -26px); }
  }
  @keyframes breathe {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.6; }
  }
}

/* ── Sections ── */
section { padding: 54px 0 10px; }

section > .wrap > h2 {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--subtle);
  max-width: 32rem;
  margin: 0 auto 34px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.card .glyph { line-height: 0; margin-bottom: 14px; color: var(--sage-deep); }
.card .glyph svg { width: 30px; height: 30px; }
.card:nth-child(3n+2) .glyph { color: var(--terracotta); }
.card:nth-child(3n) .glyph { color: var(--rose); }

.card h3 { font-size: 1.12rem; margin-bottom: 8px; }

.card p { color: var(--subtle); font-size: 0.95rem; }

/* ── Principle banner ── */
.principle {
  margin: 64px 0 10px;
  padding: 52px 24px;
  background: var(--bg-deep);
  text-align: center;
}

.principle blockquote {
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: clamp(1.35rem, 3.4vw, 1.8rem);
  color: var(--ink);
  max-width: 30rem;
  margin: 0 auto;
}

.principle .who { margin-top: 14px; color: var(--subtle); font-size: 0.9rem; }

/* ── Steps ── */
.steps { counter-reset: step; display: grid; gap: 14px; max-width: 620px; margin: 0 auto; }

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 1.3rem;
  color: var(--sage-deep);
  background: color-mix(in srgb, var(--sage) 22%, transparent);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
}

.step h3 { font-size: 1.05rem; }
.step p { color: var(--subtle); font-size: 0.93rem; }

/* ── Article pages (privacy, terms, support) ── */
article {
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 52px);
  margin: 26px 0 40px;
}

article h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin-bottom: 6px; }

article .effective { color: var(--subtle); font-size: 0.9rem; margin-bottom: 26px; }

article h2 {
  font-size: 1.25rem;
  margin: 30px 0 8px;
  color: var(--ink);
}

article p, article li { color: var(--subtle); font-size: 0.98rem; }

article ul { padding-left: 22px; margin: 8px 0; }
article li { margin: 5px 0; }

article strong { color: var(--ink); font-weight: 600; }

.answer-note {
  background: color-mix(in srgb, var(--sage) 14%, transparent);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0;
}
.answer-note p { color: var(--ink); }

/* ── FAQ ── */
details {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin-bottom: 12px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "+";
  font-family: ui-serif, Georgia, serif;
  font-size: 1.3rem;
  color: var(--sage-deep);
  transition: transform 0.25s ease;
}

details[open] summary::after { transform: rotate(45deg); }

details p { color: var(--subtle); padding-top: 10px; font-size: 0.95rem; }

/* ── Footer ── */
footer {
  margin-top: 70px;
  padding: 34px 0 44px;
  background: var(--bg-deep);
  text-align: center;
  color: var(--subtle);
  font-size: 0.9rem;
}

footer .links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }

footer .paw { margin-top: 10px; font-size: 0.85rem; }
