/* Therapy Log — shared site styles (home, support, privacy). */
:root {
  --ink: #1A1A2E;
  --accent: #8F2BE0;
  --dim: #5C5C70;
  --rule: #E8E6EF;
  --bg: #FFFFFF;
  --panel: #F6F5FA;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F1EFF8;
    --accent: #B77CF2;
    --dim: #A9A6BC;
    --rule: #2E2E48;
    --bg: #14141F;
    --panel: #1E1E30;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 16px; }
strong { font-weight: 700; }
.dim { color: var(--dim); }

/* Layout */
.wrap { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.wide { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
header.site { padding: 20px 0; }
header.site .wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.3px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 7px; display: block; }
nav.site { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
nav.site a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { padding: 40px 0 8px; }
.hero img.icon { width: 88px; height: 88px; border-radius: 20px; display: block; margin-bottom: 24px; }
.hero h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.1; font-weight: 800; margin: 0 0 14px; letter-spacing: -0.5px; text-wrap: balance; }
.hero .tagline { font-size: clamp(18px, 2.6vw, 21px); color: var(--dim); margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px;
}
a.pill:hover { text-decoration: none; opacity: 0.88; }
.meta { font-size: 14px; color: var(--dim); }

/* Screenshot rail */
.shots {
  display: flex; gap: 16px; overflow-x: auto; padding: 36px 24px 28px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  max-width: 1280px; margin: 0 auto;
}
.shots img {
  flex: 0 0 auto; width: min(64vw, 264px); height: auto; aspect-ratio: 660 / 1434;
  border-radius: 20px; scroll-snap-align: center; display: block;
  box-shadow: 0 1px 0 var(--rule);
}

/* Sections */
h2 {
  font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--dim); margin: 44px 0 14px; padding-top: 26px; border-top: 1px solid var(--rule);
}
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.features li { background: var(--panel); border-radius: 16px; padding: 20px 22px; }
.features h3 { font-size: 17px; margin: 0 0 6px; }
.features p { margin: 0; color: var(--dim); font-size: 15.5px; }
.callout { background: var(--panel); border-radius: 16px; padding: 22px 24px; }
.callout p:last-child { margin-bottom: 0; }

/* Article pages (support, privacy) */
article { padding: 24px 0 8px; }
article h1 { font-size: 30px; font-weight: 800; margin: 8px 0 6px; letter-spacing: -0.3px; }
article .updated { color: var(--dim); font-size: 14px; margin-bottom: 28px; }
article li { margin: 0 0 8px; }
article ul, article ol { padding-left: 22px; margin: 0 0 16px; }

/* FAQ */
details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--dim); font-weight: 400; flex-shrink: 0; }
details[open] summary::after { content: "–"; }
details > *:not(summary) { margin-top: 10px; }
details p:last-child, details ul:last-child, details ol:last-child { margin-bottom: 0; }

footer.site { margin-top: 56px; padding: 24px 0 48px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--dim); }
footer.site p { margin: 0 0 8px; }

.pill-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--rule); font-weight: 600; font-size: 14px;
  cursor: pointer; font-family: inherit;
}
.pill-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.qr-drawer {
  display: none; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 18px; padding: 16px 20px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--rule); max-width: 520px;
}
.qr-drawer.open { display: flex; }
.qr-drawer img {
  width: 112px; height: 112px; border-radius: 12px; background: #fff; padding: 6px; flex-shrink: 0;
}
.qr-drawer p { margin: 0; font-size: 14px; color: var(--dim); line-height: 1.45; }
.qr-drawer strong { color: var(--ink); display: block; font-size: 15px; margin-bottom: 4px; }
