/* ClearMint site — Sprig tokens (design system VVtWvZKhqQgPGyJahKrf1i, tokens.json) */
:root {
  --bg-page: #f7faf8;
  --bg-card: #ffffff;
  --bg-accent-soft: #eaf3ef;
  --bg-accent-tint: #d8f1e8;
  --bg-accent: #176b5b;
  --bg-warning-soft: #fff0d5;
  --text-primary: #102f31;
  --text-secondary: #466260;
  --text-muted: #5b6e6d;
  --text-accent: #176b5b;
  --text-on-accent: #ffffff;
  --text-warning: #8a5a00;
  --text-success: #21613a;
  --border-default: #dbe6e2;
  --border-control: #7a8c8a;
  --icon-default: #5b6e6d;
  --chart-1: #2ebc97;
  --chart-4: #dbe6e2;
  --sans: "DM Sans", system-ui, sans-serif;
  --figures: "Manrope", "DM Sans", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #0b1a1b;
    --bg-card: #13282a;
    --bg-accent-soft: #10302a;
    --bg-accent-tint: #17463b;
    --bg-accent: #2ebc97;
    --bg-warning-soft: #3a2c10;
    --text-primary: #e8f1ee;
    --text-secondary: #a9bdb8;
    --text-muted: #849c97;
    --text-accent: #4fd1ae;
    --text-on-accent: #102f31;
    --text-warning: #f5c77e;
    --text-success: #7fd4a0;
    --border-default: #26413f;
    --border-control: #6a827e;
    --icon-default: #849c97;
    --chart-4: #3a5754;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 23px;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

a { color: var(--text-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--text-accent); outline-offset: 2px; border-radius: 4px; }

/* Header */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--text-primary); font-weight: 700; font-size: 18px; }
.wordmark:hover { text-decoration: none; }
.wordmark img { width: 28px; height: 28px; border-radius: 7px; display: block; }
nav.site { display: flex; gap: 24px; }
nav.site a { color: var(--text-secondary); font-weight: 600; font-size: 14px; line-height: 20px; }

/* Type */
h1 { font-size: 44px; line-height: 50px; letter-spacing: -0.9px; font-weight: 700; margin: 0 0 16px; }
h2 { font-size: 28px; line-height: 34px; letter-spacing: -0.3px; font-weight: 700; margin: 0 0 8px; }
.lede { color: var(--text-secondary); font-size: 16px; margin: 0 0 24px; max-width: 46ch; }
.overline {
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-accent);
}
.amount { font-family: var(--figures); font-variant-numeric: tabular-nums; font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; border: 0; cursor: pointer;
}
.btn:hover { text-decoration: none; opacity: .85; }
.btn-primary { background: var(--bg-accent); color: var(--text-on-accent); }
.btn-secondary { background: var(--bg-accent-soft); color: var(--text-accent); }

.tag {
  display: inline-block; background: var(--bg-accent-tint); color: var(--text-accent);
  border-radius: 999px; padding: 4px 12px;
  font-size: 14px; line-height: 20px; font-weight: 600; margin-bottom: 16px;
}

/* Hero */
.hero { display: flex; align-items: center; gap: 48px; padding: 48px 0 64px; }
.hero-copy { flex: 1 1 380px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.hero-card {
  flex: 0 1 380px; background: var(--bg-card); border-radius: 20px; padding: 20px;
}
.ring-box { position: relative; width: 220px; margin: 16px auto 8px; }
.ring-box svg { display: block; }
.ring-arc {
  stroke-dasharray: 647.2;
  stroke-dashoffset: calc(647.2 * 0.39);
}
@keyframes draw { from { stroke-dashoffset: 647.2; } }
.ring-arc { animation: draw 1.1s ease-out; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring-arc { animation: none; }
}
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.ring-center .big {
  font-family: var(--figures); font-variant-numeric: tabular-nums;
  font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -0.5px;
}
.ring-center .sub { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.ring-caption { text-align: center; font-size: 14px; line-height: 20px; color: var(--text-secondary); margin: 0 0 16px; }

.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-default); }
.initial {
  width: 40px; height: 40px; border-radius: 999px; flex: none;
  background: var(--bg-accent-tint); color: var(--text-accent);
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.row .who { flex: 1; min-width: 0; }
.row .who .name { font-weight: 600; }
.row .who .when { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.row .amount { font-size: 16px; }
.in { color: var(--text-success); }

/* Sections */
section { padding: 32px 0; }
.steps { display: flex; gap: 24px; counter-reset: step; padding: 0; margin: 24px 0 0; list-style: none; }
.steps li {
  flex: 1; background: var(--bg-card); border-radius: 20px; padding: 20px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; margin-bottom: 12px;
  background: var(--bg-accent-tint); color: var(--text-accent);
  font-family: var(--figures); font-weight: 700;
}
.steps h3 { font-size: 18px; line-height: 24px; font-weight: 600; margin: 0 0 8px; }
.steps p { color: var(--text-secondary); margin: 0; }

.nots {
  background: var(--bg-accent-soft); border-radius: 20px; padding: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 24px;
}
.nots div strong { display: block; margin-bottom: 4px; }
.nots div span { color: var(--text-secondary); }

.sec-rows { margin-top: 16px; }
.sec-row { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border-default); align-items: flex-start; }
.sec-row:first-child { border-top: 0; }
.sec-row svg { flex: none; margin-top: 2px; }
.sec-row p { margin: 0; color: var(--text-secondary); }
.sec-row strong { color: var(--text-primary); display: block; }

/* Footer */
footer.site { border-top: 1px solid var(--border-default); margin-top: 48px; padding: 32px 0 48px; }
footer.site .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 24px; }
footer.site a { color: var(--text-secondary); font-weight: 600; font-size: 14px; }
footer.site .fine { color: var(--text-muted); font-size: 14px; line-height: 20px; margin-top: 16px; }

/* Legal pages */
article.legal { max-width: 760px; margin: 0 auto; padding: 24px 0 48px; }
article.legal h1 { font-size: 28px; line-height: 34px; letter-spacing: -0.3px; }
article.legal h2 { font-size: 20px; line-height: 26px; margin: 32px 0 8px; }
article.legal h3 { font-size: 18px; line-height: 24px; margin: 24px 0 8px; }
article.legal p, article.legal li { color: var(--text-secondary); }
article.legal li { margin: 6px 0; }
article.legal blockquote {
  margin: 16px 0; padding: 16px; border-radius: 12px;
  background: var(--bg-warning-soft); color: var(--text-warning);
}
article.legal blockquote p, article.legal blockquote li { color: inherit; }
article.legal table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 20px; }
article.legal th, article.legal td { border: 1px solid var(--border-default); padding: 8px; text-align: left; vertical-align: top; }
article.legal code { background: var(--bg-accent-soft); border-radius: 4px; padding: 1px 5px; font-size: 14px; }

@media (max-width: 760px) {
  h1 { font-size: 32px; line-height: 38px; letter-spacing: -0.5px; }
  .hero { flex-direction: column; padding: 24px 0 40px; gap: 32px; }
  .hero-card { width: 100%; flex-basis: auto; }
  .steps { flex-direction: column; }
  .nots { grid-template-columns: 1fr; padding: 20px; }
  nav.site a:not(.keep) { display: none; }
}
