:root {
  color-scheme: light;
  --paper: #f7f6fa;
  --surface: #ffffff;
  --ink: #1c1925;
  --muted: #575262;
  --line: #e3dfea;
  --accent: #5c3fba;
  --accent-ink: #432791;
  --accent-soft: #eee8fc;
  --wide: 73rem;
  --gutter: clamp(1rem, 4vw, 2.75rem);
  --section-gap: clamp(3.5rem, 8vw, 7.5rem);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
main:focus { outline: none; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { overflow-wrap: break-word; }
svg { display: block; width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.container { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 4;
  inset: .5rem auto auto .5rem;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--surface);
  transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fbfaff;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.75rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -.035em;
  text-decoration: none;
}
.wordmark img { border-radius: 28%; flex-shrink: 0; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.site-header nav a, .site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 550;
  font-size: .93rem;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"], .site-footer nav a:hover {
  color: var(--accent-ink);
}
.site-header nav a[aria-current="page"] { font-weight: 720; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .6rem 1.12rem;
  text-align: center;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 670;
  line-height: 1.25;
  transition: background-color .18s ease, border-color .18s ease;
}
.button.small { min-height: 2.75rem; font-size: .9rem; padding-inline: .9rem; }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-ink); }
.button.secondary { background: var(--surface); border-color: var(--line); color: var(--accent-ink); }
.button.secondary:hover, .button.quiet:hover { background: var(--accent-soft); }
.button.quiet { color: var(--accent-ink); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem .85rem; }
.text-link, .feature a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 640;
}
.text-link svg, .feature a svg { width: 1rem; height: 1rem; }

.hero {
  display: grid;
  grid-template-columns: 1fr .96fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 5rem) 0;
}
.hero-copy { min-width: 0; }
.eyebrow, .stage-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid #dcd3ef;
  border-radius: 999px;
  padding: .38rem .68rem;
  background: #f0eafa;
  color: var(--accent-ink);
  font-size: .71rem;
  font-weight: 750;
  letter-spacing: .085em;
}
.status-dot { width: .45rem; height: .45rem; border-radius: 50%; background: #6c50bc; flex: 0 0 auto; }
.hero h1, .page-hero h1, .donate-hero h1 {
  font-size: clamp(3.05rem, 7.3vw, 6.55rem);
  font-weight: 760;
  line-height: .99;
  letter-spacing: -.055em;
  word-spacing: .035em;
}
.hero h1 { margin-block: 1.15rem 1.2rem; }
.hero h1 span { color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(1.07rem, 2vw, 1.35rem); max-width: 43ch; }
.hero .actions, .page-hero .actions { margin-top: 1.55rem; }
.micro { color: var(--muted); font-size: .85rem; font-weight: 550; }
.hero .micro { margin-top: .95rem; }
.micro span { margin-inline: .2rem; }

.hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: clamp(31rem, 49vw, 39rem);
  padding: 3.15rem 1rem 2.05rem;
  border: 1px solid #e3d8f4;
  border-radius: clamp(1.6rem, 4vw, 2.75rem);
  background: radial-gradient(ellipse at 60% 32%, #f5efff 0%, #e8ddfa 53%, #d9caf3 100%);
}
.orbit {
  position: absolute;
  z-index: -1;
  width: 112%;
  aspect-ratio: 1;
  border: 1px solid #fff9;
  border-radius: 50%;
  box-shadow: 0 0 0 3rem #ffffff24, 0 0 0 6rem #ffffff1a;
  transform: translate(14%, 1%);
}
.stage-label { position: absolute; z-index: 1; top: 1rem; left: 1rem; background: #faf7ff; }
.stage-index {
  position: absolute;
  right: 1.35rem;
  bottom: .9rem;
  color: #594b72;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .12em;
}
.phone {
  width: clamp(12.25rem, 21vw, 15.25rem);
  border: 7px solid #211d2c;
  border-radius: 1.8rem;
  overflow: hidden;
  box-shadow: 0 1.8rem 3.7rem #3a216049, 0 .35rem .7rem #2b18333b;
  transform: rotate(-6deg);
}
.phone img { width: 100%; }

.section { margin-top: var(--section-gap); }
.kicker { color: var(--accent-ink); font-size: .75rem; font-weight: 760; letter-spacing: .13em; }
.section h2, .docs-content h2, .donate-card h2 {
  font-size: clamp(1.8rem, 4vw, 3.35rem);
  line-height: 1.09;
  letter-spacing: -.05em;
}
.section h2 { margin-block: .5rem .95rem; }
.section p:not(.kicker), .docs-content p, .docs-content li, .docs-content dd, .donate-card p { color: var(--muted); }
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.feature, .donate-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.55rem;
  padding: clamp(1.2rem, 2.8vw, 1.95rem);
}
.feature { display: flex; flex-direction: column; align-items: start; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: .85rem;
  margin-bottom: .9rem;
}
.feature h3 { font-size: 1.18rem; letter-spacing: -.025em; line-height: 1.2; }
.feature p { margin-block: .55rem 1rem; }
.feature a { margin-top: auto; font-size: .9rem; }

.showcase, .end-card {
  display: grid;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: clamp(1.4rem, 3.6vw, 2.4rem);
  padding: clamp(1.3rem, 5.5vw, 4.2rem);
}
.showcase { grid-template-columns: 1fr .75fr; background: #eee8f8; }
.showcase .button { margin-top: 1.2rem; }
.tester-image { max-width: 22rem; justify-self: center; overflow: hidden; border-radius: 1.45rem; box-shadow: 0 1rem 2.4rem #452c6924; }
.split { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(1rem, 6vw, 5.5rem); }
.split p + p, .split .text-link { margin-top: .9rem; }
.end-card { grid-template-columns: 1fr auto; background: var(--surface); }
.end-card h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
.last { margin-bottom: var(--section-gap); }

.page-hero { padding-block: clamp(2.4rem, 6vw, 5rem) clamp(1.8rem, 4vw, 3.5rem); }
.page-hero h1, .donate-hero h1 { font-size: clamp(2.75rem, 6vw, 5.2rem); margin-block: .7rem .95rem; }
.docs-layout {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: var(--section-gap);
}
.contents {
  display: grid;
  gap: .35rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}
.contents a { display: block; padding: .3rem 0; font-size: .9rem; }
.docs-content {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 1.4rem;
  padding: clamp(1.05rem, 4.5vw, 3rem);
}
.docs-content section { scroll-margin-top: 1rem; }
.docs-content section + section { margin-top: 2.4rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.docs-content h2 { font-size: clamp(1.5rem, 3.5vw, 2.45rem); margin-bottom: .75rem; }
.docs-content p + p, .docs-content .actions { margin-top: .7rem; }
.docs-content ol, .docs-content ul { padding-inline-start: 1.45rem; }
.docs-content li + li { margin-top: .45rem; }
.glossary dt { color: var(--ink); font-weight: 700; margin-top: .85rem; }
.glossary dd { margin: .2rem 0 0; }
.guide-appearance {
  display: grid;
  grid-template-columns: 1fr minmax(8rem, 12rem);
  gap: 1.25rem;
  align-items: center;
}
.guide-appearance img {
  width: 100%;
  border-radius: .9rem;
  border: 1px solid var(--line);
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; overflow-wrap: anywhere; }
pre, .block-code {
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: .75rem;
  background: var(--paper);
  color: var(--accent-ink);
  white-space: pre-wrap;
}
.block-code { display: block; margin-top: .6rem; }
details { margin-top: .85rem; }
summary { color: var(--accent-ink); cursor: pointer; font-weight: 650; }
details p { margin-top: .5rem; }

.donate-hero { display: grid; justify-items: center; text-align: center; padding-block: clamp(2rem, 5vw, 4rem) 2rem; }
.donate-hero .lead { max-width: 58ch; }
.donate-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 11rem;
  height: 10rem;
  margin-bottom: 1.5rem;
  isolation: isolate;
}
.donate-orbit { position: absolute; z-index: -1; width: 9rem; aspect-ratio: 1; border-radius: 50%; background: #e9defa; box-shadow: 0 0 0 .8rem #f0e9fa; }
.donate-art img { border-radius: 27%; transform: rotate(-8deg); box-shadow: 0 .85rem 1.6rem #3c276b30; }
.heart-badge { position: absolute; right: .7rem; bottom: .65rem; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid var(--line); color: var(--accent-ink); background: var(--surface); }
.donate-content { max-width: 53rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.donate-card h2 { font-size: 1.4rem; margin-bottom: .45rem; }
.donate-card .button { margin-top: 1rem; }
.donate-back { text-align: center; margin-block: 1.7rem var(--section-gap); }

.site-footer { border-top: 1px solid var(--line); background: #fbfaff; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding-block: 1.8rem; }
.site-footer p { color: var(--muted); font-size: .87rem; margin-top: .45rem; }
.footer-note { grid-column: 1 / -1; }

@media (max-width: 61rem) {
  .hero { grid-template-columns: 1fr .85fr; }
  .hero-stage { min-height: 31rem; }
  .phone { width: 12.25rem; }
  .stage-label { top: .7rem; left: .7rem; font-size: .62rem; }
}
@media (max-width: 46rem) {
  .hero, .features, .showcase, .split, .end-card, .docs-layout, .donate-content, .footer-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 2.2rem; gap: 1.8rem; }
  .hero-stage { min-height: 29rem; }
  .phone { width: min(66%, 12.25rem); transform: rotate(-5deg); }
  .showcase { justify-items: start; }
  .tester-image { width: min(100%, 20rem); }
  .end-card .button { justify-self: start; }
  .footer-note { grid-column: auto; }
  .guide-appearance { grid-template-columns: 1fr; }
  .guide-appearance img { max-width: 12rem; }
}
@media (max-width: 31rem) {
  .header-inner { flex-wrap: wrap; column-gap: .8rem; row-gap: 0; padding-block: .6rem .25rem; }
  .header-download { margin-left: auto; }
  .site-header nav { order: 3; width: 100%; gap: 0 1.35rem; }
  .site-footer nav { gap: 0 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
