:root {
  --page: #F4F7F5;
  --surface: #FFFFFF;
  --ink: #15211C;
  --muted: #56655E;
  --line: #D8E2DC;
  --green: #17694D;
  --pine: #0A3C2B;
  --ember: #E8912D;
  --track: #E3EBE6;
  --focus: #17694D;
  --radius: 18px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0E1813;
    --surface: #16231C;
    --ink: #EAF2ED;
    --muted: #A2B3AA;
    --line: #26372E;
    --green: #43C08F;
    --pine: #0A3C2B;
    --ember: #F2A94A;
    --track: #22342A;
    --focus: #43C08F;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrap { width: min(100% - 40px, 760px); margin-inline: auto; }

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--rounded); font-weight: 700; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Headings */
h1, h2, h3 { font-family: var(--rounded); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 16px; font-weight: 800; }
h2 { font-size: 26px; margin: 48px 0 12px; font-weight: 700; }
h3 { font-size: 19px; margin: 28px 0 6px; font-weight: 700; }
p { margin: 0 0 14px; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.small { font-size: 14px; color: var(--muted); }

/* Home hero */
.hero { padding: 40px 0 24px; }
.hero-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 10px 30px rgba(10, 60, 43, 0.25); margin-bottom: 28px; }
.store-note { display: inline-block; margin-top: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--muted); }

/* The level track: the one bold element */
.track-card { margin: 44px 0 8px; padding: 28px 24px 22px; background: var(--pine); color: #EAF2ED; border-radius: 26px; }
.track-card h2 { margin: 0 0 6px; color: #FFFFFF; font-size: 24px; }
.track-card p { color: #BFD6CB; margin-bottom: 44px; max-width: 36em; }
.track { position: relative; display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.track span { height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.14); }
.track span.on { background: #43C08F; }
.track-labels { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin-top: 10px; font-family: var(--rounded); font-weight: 600; font-size: 15px; color: #BFD6CB; text-align: center; }
.target { position: absolute; top: -12px; bottom: -12px; width: 3px; border-radius: 2px; background: var(--ember); left: calc((100% - 48px) * 5.5 / 9 + 28.5px); }
.target::after { content: "Your target"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 600; color: #F2A94A; }
.track-key { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: #BFD6CB; }
.track-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }

/* Plain feature list */
.facts { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--line); }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
.facts strong { font-family: var(--rounded); }
.facts span { color: var(--muted); }
@media (max-width: 560px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }

/* Legal and support pages */
.doc { padding: 24px 0 8px; }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc ul { padding-left: 20px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--rounded); font-size: 22px; line-height: 1; color: var(--green); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 2px; color: var(--muted); }

/* Contact form */
.form-card { margin-top: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
textarea { min-height: 160px; resize: vertical; }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button {
  font: inherit;
  font-weight: 700;
  font-family: var(--rounded);
  color: #FFFFFF;
  background: var(--green);
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
}
@media (prefers-color-scheme: dark) { button { color: #0E1813; } }
button:hover { filter: brightness(1.08); }

/* Footer */
.site-footer { margin-top: 72px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .track span.on { animation: fill 0.9s ease-out both; }
  .track span.on:nth-child(2) { animation-delay: 0.08s; }
  .track span.on:nth-child(3) { animation-delay: 0.16s; }
  .track span.on:nth-child(4) { animation-delay: 0.24s; }
}
@keyframes fill { from { background: rgba(255, 255, 255, 0.14); } to { background: #43C08F; } }

/* App Store button and What's new page (1.1) */
.store-btn { display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; text-decoration: none; }
.store-btn:hover { filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .store-btn { color: #062417; } }
.update { padding: 18px 0; border-bottom: 1px solid var(--line); }
.update h2 { margin: 0; }
.update .updated { margin: 2px 0 8px; }
.update ul { margin: 0; padding-left: 20px; }
.update li { margin: 4px 0; }
