/* Solid Ground: the one stylesheet.
   Evolve+ tokens, the app's exact values (docs/design-direction.md).
   Dark first; light follows the system. No toggle, no gradients on surfaces,
   no decorative motion. All styles live here because the CSP blocks inline styles. */

:root {
  color-scheme: dark;
  --ground: #0D1520;
  --panel: #15202E;
  --border: #243246;
  --raised: #1B2838;
  --ink: #EEF1F5;
  --mute: #8A98AB;
  --copper: #D08A5B;
  --on-copper: #1A0F08;
  --sea: #5FBFA8;
  --corn: #7FA6E8;
  --lav: #B99BE0;
  --shadow: 0 18px 40px rgba(0, 0, 0, .35);
  --glow-copper: rgba(208, 138, 91, .12);
  --glow-corn: rgba(127, 166, 232, .12);
  --sea-tint: rgba(95, 191, 168, .16);
  --ring-glow: drop-shadow(0 0 6px rgba(238, 241, 245, .2));

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --content: 1200px;
  --prose: 700px;
  --gutter: 20px;
  --radius: 20px;
  --radius-raised: 16px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ground: #F4F5F7;
    --panel: #FFFFFF;
    --border: #E1E4E9;
    --raised: #F1F3F6;
    --ink: #0D1520;
    --mute: #5F6B7D;
    --copper: #A85D34; /* site only: #B0643A is 4.4:1 with white; this is 4.9:1 */
    --on-copper: #FFFFFF;
    --sea: #1E8A72;
    --corn: #3A66C4;
    --lav: #7A55B3;
    --shadow: 0 12px 30px rgba(13, 21, 32, .08);
    --glow-copper: rgba(168, 93, 52, .09);
    --glow-corn: rgba(58, 102, 196, .09);
    --sea-tint: rgba(30, 138, 114, .12);
    --ring-glow: drop-shadow(0 2px 4px rgba(13, 21, 32, .12));
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;

}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol { margin: 0; }

a { color: inherit; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose-col {
  max-width: calc(var(--prose) + 2 * var(--gutter));
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

.hero-title {
  font-size: clamp(44px, 4.5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.headline {
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.middle {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lead {
  font-size: 17px;
  color: var(--mute);
  max-width: 560px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

.caption, .note {
  font-size: 13px;
  color: var(--mute);
}

.body-mute { color: var(--mute); }

.stack > * + * { margin-top: 14px; }

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 5; }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mark { width: 28px; height: 28px; flex: none; }
.mark-bar { fill: var(--ink); }
.mark-top { fill: var(--copper); }

.nav-list {
  display: flex;
  gap: 4px 24px;
  list-style: none;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover { border-bottom-color: var(--mute); }

/* Current position: the copper bar marks it; the text stays ink for contrast. */
.nav-list a[aria-current] { border-bottom-color: var(--copper); }

.nav-wide { display: none; }

.menu { position: relative; }

.menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }

.menu[open] summary { background: var(--raised); }

.menu .nav-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  flex-direction: column;
  min-width: 200px;
  padding: 8px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 760px) {
  .nav-wide { display: block; }
  .menu { display: none; }
}

/* ---------- Hero light ---------- */

.lit { position: relative; isolation: isolate; }

.lit::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -10%;
  top: -260px;
  width: 760px;
  height: 760px;
  max-width: 120vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-copper), transparent 60%);
  pointer-events: none;
}

.lit--corn::before {
  background: radial-gradient(closest-side, var(--glow-corn), transparent 60%);
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--copper);
  color: var(--on-copper);
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }

.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: var(--mute);
  text-decoration: none;
}
.back:hover { text-decoration: underline; }

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 24px;
}

/* ---------- Surfaces ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.panel--main { box-shadow: var(--shadow); }

.raised {
  background: var(--raised);
  border-radius: var(--radius-raised);
  padding: 16px 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--mute);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.chip--sea { background: var(--sea-tint); color: var(--ink); }
.chip--sea::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sea);
}

/* ---------- Sections ---------- */

.section { padding-block: 56px; }
.section--tight { padding-block: 32px; }

.page-head { padding-top: 24px; padding-bottom: 24px; }
.page-head .lead { margin-top: 12px; }

/* Home hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-block: 32px 56px;
}
.hero-text { flex: 1 1 380px; }
.hero-text .lead { margin-top: 16px; }
.hero-text .btn { margin-top: 28px; }
.hero-text .caption { margin-top: 12px; }
.hero-screen { flex: 0 1 300px; display: flex; justify-content: center; margin-inline: auto; }

@media (min-width: 760px) {
  .hero { padding-block: 64px 80px; }
  .hero-screen { margin-inline: 0; }
}

/* Home cards */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card .more { margin-top: auto; }

.figure {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.figure-num {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}

.figure-word {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.figure-unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--mute);
  line-height: 1.3;
}

/* How it decides */
.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  padding: 0;
  margin-top: 24px;
  counter-reset: step;
}

.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 600;
  color: var(--mute);
}
.steps li:last-child { grid-column: 1 / -1; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--mute); font-size: 14px; }

.decides .note { margin-top: 20px; }

/* Centre blocks */
.centre { text-align: center; }
.centre .lead { margin-inline: auto; }
.centre .btn { margin-top: 20px; }
.centre .caption { margin-top: 10px; }

/* Rows: text beside screenshots */
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-block: 40px;
}
.row--rev { flex-direction: row-reverse; }

.row-text { flex: 1 1 380px; }
.row-text .headline { margin-top: 6px; }
.row-text p:not(.eyebrow):not(.headline) { margin-top: 14px; color: var(--mute); }
.row-text .more { margin-top: 10px; }

.row-screens {
  flex: 0 1 420px;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-inline: auto;
}

.screen { display: block; flex: none; }
.screen img {
  width: 280px;
  height: 580px;
  object-fit: cover;
  border-radius: 32px;
  border: 1px solid var(--border);
  background: var(--raised);
  box-shadow: var(--shadow);
}

.row-screens .screen + .screen { display: none; }

@media (min-width: 1100px) {
  .row-screens { flex: 0 0 auto; margin-inline: 0; }
  .row-screens .screen + .screen { display: block; }
}

@media (max-width: 359px) {
  .screen img { width: 240px; height: 497px; }
}

/* Rings */
.rings { width: 128px; height: 128px; margin-top: 18px; flex: none; }
.ring-small { width: 48px; height: 48px; flex: none; }
.ring-track { fill: none; stroke: var(--raised); stroke-width: 8; }
.ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  filter: var(--ring-glow);
  /* start at 12 o'clock, run clockwise */
  transform: rotate(-90deg);
  transform-origin: center;
  transform-box: fill-box;
}
.ring-ink { stroke: var(--ink); }
.ring-sea { stroke: var(--sea); }
.ring-corn { stroke: var(--corn); }
.ring-lav { stroke: var(--lav); }

/* Trend sketch on Progress */
.trend { width: 100%; max-width: 360px; height: auto; margin-top: 18px; }
.trend-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.trend-dot { fill: var(--mute); }

.figure + p { margin-top: 14px; }

/* "What it never does" and similar lists */
.never { list-style: none; padding: 0; margin-top: 16px; }
.never li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.never li:first-child { border-top: 1px solid var(--border); }

.honest .middle { font-size: 18px; }
.honest p:not(.middle) { margin-top: 8px; color: var(--mute); }

.end { padding-block: 56px 72px; }
.end .link-row { margin-top: 12px; }

/* Download, Support */
.cols {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.panel .middle + p { margin-top: 10px; color: var(--mute); }
.panel .btn { margin-top: 20px; }

.title-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.plain-block { padding-inline: 4px; }
.title-chip + p { margin-top: 10px; }
.plain-block p { margin-top: 10px; color: var(--mute); }
.plain-block strong, .panel strong { color: var(--ink); }

/* Legal pages */
.review-banner {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--raised);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.legal h1 { margin-top: 24px; }
.legal .updated { margin-top: 6px; }
.legal h2 {
  margin-top: 36px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.legal p, .legal ul { margin-top: 10px; color: var(--mute); }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--ink); }

.legal-terms p strong:first-child { display: inline; }

/* Simple pages (Shop, get, 404, About) */
.simple { padding-block: 48px 96px; }
.simple .lead { margin-top: 16px; }
.simple p + p { margin-top: 14px; }
.simple .middle { margin-top: 20px; font-size: 20px; }
.simple .body-mute { margin-top: 14px; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 40px;
  padding-block: 32px 40px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer .nav-list { flex-wrap: wrap; gap: 0 20px; }
.site-footer .nav-list a { font-size: 14px; }
.site-footer .caption { margin-top: 12px; }
.site-footer .caption + .caption { margin-top: 8px; }

/* ---------- Print and motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Narrow centred text blocks inside the content column */
.prose-block { max-width: 720px; margin-inline: auto; }
.prose-block .headline + p, .prose-block .eyebrow + .headline { margin-top: 12px; }
.prose-block .eyebrow + .headline { margin-top: 6px; }

/* The hero light may spill past the screen edge; clip it sideways only. */
main { overflow-x: clip; }

/* How it decides: three across on wide screens, the fourth step full width */
.steps { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.end .headline + .body-mute { margin-top: 10px; }
