/* Basework site. System fonts only: the site loads nothing from any other server. */
:root {
  --bg: #FFFFFF;
  --tint: #F1F7F3;
  --ink: #12211A;
  --muted: #55665D;
  --line: #DCE6E0;
  --accent: #0BA36E;
  --accent-ink: #077A52;
  --ring-a: #0FBE7A;
  --ring-b: #4DF7A6;
  --track: rgba(11, 163, 110, 0.12);
  --link-hover: #087A52;
  --max: 1080px;
  --text: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1310;
    --tint: #121D18;
    --ink: #EAF2ED;
    --muted: #9DB0A5;
    --line: #22312A;
    --accent-ink: #3FD597;
    --track: rgba(77, 247, 166, 0.12);
    --link-hover: #8FE6B8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "kern";
}
/* Links (Lou, 9 Nov 2026): never underlined, semibold, deep green on hover and keyboard focus
   (light green in dark mode). The body prefix lifts the hover above section rules. */
a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
body a:hover, body a:focus-visible, body .site-nav a[aria-current="page"]:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 64px; padding-block: 10px; gap: 12px 16px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.site-nav { display: flex; gap: 20px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); }

/* Type */
h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 68px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34rem; margin-top: 20px; }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.status { display: inline-block; margin-top: 28px; padding: 8px 14px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.status strong { color: var(--accent-ink); font-weight: 650; }
@media (max-width: 820px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .ring-figure { order: -1; max-width: 230px; }
}

/* The protein ring: the one animated moment on the site */
.ring-figure { margin: 0 auto; width: 100%; max-width: 360px; }
.ring-figure svg { width: 100%; height: auto; overflow: visible; }
.ring-track { stroke: var(--track); }
.ring-fill { stroke: url(#ringGrad); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring-num { font-size: 42px; font-weight: 800; fill: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ring-unit { font-size: 15px; fill: var(--muted); }
.ring-figure figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .ring-fill { animation: fill 1.6s cubic-bezier(.2,.7,.2,1) .25s both; }
  @keyframes fill { from { stroke-dashoffset: var(--len); } }
}

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section.tinted { background: var(--tint); }
.section-head { max-width: var(--text); margin-bottom: 40px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }

.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.ways > div { border-top: 2px solid var(--accent); padding-top: 16px; }
.ways p { color: var(--muted); margin-top: 8px; font-size: 16px; }
@media (max-width: 820px) { .ways { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ways { grid-template-columns: 1fr; gap: 24px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.split p { color: var(--muted); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.nots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 64px; max-width: 54rem; }
.nots li { padding-left: 30px; position: relative; }
.nots li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border: 3px solid var(--accent); border-top-color: transparent; border-radius: 50%; transform: rotate(0deg); }
.nots strong { display: block; }
.nots span { color: var(--muted); font-size: 16px; }
@media (max-width: 680px) { .nots { grid-template-columns: 1fr; } }

.for-line { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; max-width: 44rem; margin: 0; }
.for-list { color: var(--muted); margin-top: 20px; max-width: var(--text); font-size: 18px; }

/* Long-form pages (privacy, support) */
.doc { max-width: var(--text); padding: 56px 0 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc .updated { color: var(--muted); margin-top: 12px; }
.doc h2 { font-size: 24px; margin: 44px 0 14px; }
.doc h3 { margin: 24px 0 8px; }
.doc ul { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin: 8px 0; }
.summary { background: var(--tint); border-left: 4px solid var(--accent); padding: 20px 22px; margin: 32px 0; border-radius: 0 10px 10px 0; }
.summary p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 8px 0 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 650; }
.table-scroll { overflow-x: auto; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 650; font-size: 18px; list-style-position: outside; }
details[open] summary { margin-bottom: 10px; }
details p { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }
