/* Cress download site. Tokens come straight from the Cress Brand Identity v1.
   Stone does the calm work; Sage is the brand; Clay is spent only on streaks
   and milestones; Ink carries text and the store register. */

:root {
  --stone:      #EDEAE1;
  --stone-2:    #E3DFD3;
  --paper:      #F6F4EE;
  --ink:        #262922;
  --ink-soft:   #575C4F;
  --sage:       #7C8B6E;
  --sage-mark:  #708267;
  --sage-deep:  #4E5A44;
  --sage-light: #A3B093;
  --clay:       #B8734E;
  --clay-ink:   #86482A;
  --clay-tint:  #EFDCCF;

  --sc-canvas:     var(--stone);
  --sc-surface:    var(--paper);
  --sc-ink:        var(--ink);
  --sc-ink-soft:   var(--ink-soft);
  --sc-accent:     var(--sage-deep);
  --sc-accent-ink: var(--paper);

  --sc-font-display: "Outfit", system-ui, sans-serif;
  --sc-font-text:    "Public Sans", system-ui, sans-serif;
  --sc-font-mono:    "Space Grotesk", system-ui, sans-serif;
  --font-data:       "Space Grotesk", system-ui, sans-serif;

  --sc-shadow-color: 80 20% 18%;
  --bar-h: 64px;
}

html { scroll-padding-top: var(--bar-h); }
body { background: var(--stone); }

/* ---------------------------------------------------------------- type -- */
.sc-display { font-weight: 600; }
.h-hero {
  font-family: var(--sc-font-display);
  font-weight: 600;
  font-size: clamp(3rem, 1.6rem + 4.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin: 0;
}
.h-section {
  font-family: var(--sc-font-display);
  font-weight: 600;
  font-size: var(--sc-t-2xl);
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
  margin: 0;
}
.h-data { font-family: var(--font-data); font-weight: 600; letter-spacing: -0.03em; }
.tag {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-data);
  font-size: var(--sc-t-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 0.3em 0.7em;
  border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
  border-radius: var(--sc-r-sm);
  white-space: nowrap;
}
.tag svg { width: 1em; height: 1em; }

/* ------------------------------------------------------------- buttons -- */
.btn {
  --bg: var(--sage-deep); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 1.25rem;
  font-family: var(--sc-font-text); font-weight: 600; font-size: var(--sc-t-sm);
  color: var(--fg); background: var(--bg);
  border: 1px solid transparent; border-radius: var(--sc-r-md);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 0 color-mix(in oklab, white 18%, transparent) inset, 0 6px 16px -8px hsl(var(--sc-shadow-color) / 0.55);
  transition: background-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --bg: #424D39; }
  .btn--ghost:hover { --bg: color-mix(in oklab, var(--ink) 6%, transparent); }
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: color-mix(in oklab, var(--ink) 22%, transparent);
  box-shadow: none;
}
.btn--lg { min-height: 56px; padding: 0 1.6rem; font-size: var(--sc-t-base); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; cursor: not-allowed; }

.link {
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--ink) 35%, transparent);
  text-underline-offset: 0.25em;
  transition: text-decoration-color 160ms var(--sc-ease-out);
}
.link:hover { text-decoration-color: var(--ink); }

/* ------------------------------------------------------------ site bar -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  height: var(--bar-h);
  display: flex; align-items: center; gap: var(--sc-5);
  padding-inline: var(--sc-gutter);
  background: color-mix(in oklab, var(--stone) 90%, transparent);
  border-bottom: 1px solid transparent;
  transition: background-color 240ms var(--sc-ease-out), border-color 240ms var(--sc-ease-out), color 240ms var(--sc-ease-out);
  color: var(--ink);
}
.bar.is-scrolled { border-bottom-color: color-mix(in oklab, var(--ink) 10%, transparent); }
.bar__brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: inherit; margin-right: auto; }
.bar__brand img { width: 30px; height: 30px; }
.bar__brand span { font-family: var(--sc-font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.03em; }
.bar__mark-light { display: none; }
.switch {
  display: flex; padding: 3px; gap: 2px;
  border-radius: var(--sc-r-md);
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}
.switch a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 0.9rem;
  border-radius: 9px; font-size: var(--sc-t-sm); font-weight: 500;
  text-decoration: none; color: var(--ink-soft);
  transition: background-color 180ms var(--sc-ease-out), color 180ms var(--sc-ease-out);
}
.switch a:hover { color: var(--ink); }
.switch a[aria-current="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--sc-e1); }
.bar .btn { min-height: 42px; }

/* Store register: the bar re-inks when the dark ground is under it. */
.bar.on-ink {
  background: color-mix(in oklab, var(--ink) 92%, transparent);
  color: var(--stone);
  border-bottom-color: color-mix(in oklab, var(--stone) 10%, transparent);
}
.bar.on-ink .bar__mark-dark { display: none; }
.bar.on-ink .bar__mark-light { display: block; }
.bar.on-ink .switch { background: color-mix(in oklab, var(--stone) 8%, transparent); }
.bar.on-ink .switch a { color: #B9BDAE; }
.bar.on-ink .switch a:hover { color: var(--stone); }
.bar.on-ink .switch a[aria-current="true"] { background: #3A3F34; color: var(--stone); box-shadow: none; }
.bar.on-ink .btn { --bg: var(--sage-light); --fg: var(--ink); }
@media (max-width: 760px) { .switch { display: none; } }

/* ---------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  padding-top: calc(var(--bar-h) + var(--sc-6));
  padding-bottom: var(--sc-7);
  overflow: clip;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--sc-7); align-items: center;
}
.hero__copy { max-width: 36rem; }
.hero__copy .sc-lede { margin-top: var(--sc-5); max-width: 32ch; color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-3); margin-top: var(--sc-6); }
.hero__meta { margin-top: var(--sc-4); font-size: var(--sc-t-xs); color: var(--ink-soft); display: flex; gap: var(--sc-4); flex-wrap: wrap; }
.hero__meta span { display: inline-flex; align-items: center; gap: 0.4em; }
.hero__meta svg { width: 1.1em; height: 1.1em; color: var(--sage-deep); }

.scene { position: relative; height: min(680px, calc(100svh - var(--bar-h) - 3rem)); min-height: 520px; }
.scene > * { position: absolute; will-change: transform; }
.scene__back {
  width: 118%; left: -6%; top: 2%;
  color: var(--stone-2);
}
.scene__back svg { width: 100%; height: auto; }
.scene__phone { left: 50%; top: 50%; translate: -50% -50%; --pw: min(290px, calc((100svh - var(--bar-h) - 5rem) * 0.46)); }
.scene__toast { left: -2%; top: 58%; width: min(300px, 70%); }
.scene__chip { right: 0; top: 16%; }
.scene__shadow {
  left: 50%; bottom: 3%; width: 58%; height: 32px; translate: -50% 0;
  background: radial-gradient(closest-side, hsl(80 20% 18% / 0.28), transparent);
  filter: blur(6px);
}

.toast {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--sc-edge), 0 1px 2px hsl(var(--sc-shadow-color) / 0.14), 0 14px 32px -12px hsl(var(--sc-shadow-color) / 0.45);
  font-size: 0.86rem; line-height: 1.4; color: var(--ink);
}
.toast__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--stone); display: grid; place-items: center; }
.toast__icon img { width: 24px; height: 24px; }
.toast small { display: block; font-size: 0.72rem; color: var(--ink-soft); margin-bottom: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.85rem; border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--sc-edge), 0 10px 24px -12px hsl(var(--sc-shadow-color) / 0.45);
  font-size: 0.8rem; font-weight: 600;
}
.chip svg { width: 16px; height: 16px; color: var(--sage-deep); }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--sc-6); }
  .h-hero { font-size: clamp(2.6rem, 1.4rem + 6vw, 3.6rem); }
  .scene { height: 560px; min-height: 0; max-width: 460px; width: 100%; margin-inline: auto; }
  .scene__phone { --pw: 250px; }
  .scene__toast { left: 0; top: auto; bottom: 10%; width: min(270px, 78%); }
  .scene__chip { right: 0; top: 8%; }
}

/* ------------------------------------------------------------- tension -- */
.tension { padding-block: calc(var(--sc-section) * 1.1) var(--sc-section); }
.tension__q {
  font-family: var(--sc-font-display); font-weight: 500;
  font-size: var(--sc-t-3xl); line-height: 1.02; letter-spacing: -0.035em;
  margin: 0; max-width: 17ch; text-wrap: balance;
}
.tension__q + .tension__q { margin-top: var(--sc-3); color: color-mix(in oklab, var(--ink) 55%, var(--stone)); }
.tension__body { margin-top: var(--sc-7); max-width: 44ch; font-size: var(--sc-t-lg); line-height: 1.5; color: var(--ink-soft); }
.tension__body strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------ the day (peak) -- */
.day__stage {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center; gap: var(--sc-7);
  padding: calc(var(--bar-h) + var(--sc-4)) var(--sc-gutter) var(--sc-5);
  max-width: var(--sc-maxw); margin-inline: auto;
}
.day__copy .h-section { max-width: 13ch; }
.day__copy > p { margin-top: var(--sc-4); color: var(--ink-soft); max-width: 36ch; }
.steps { list-style: none; margin: var(--sc-6) 0 0; padding: 0; border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); }
.steps li {
  display: grid; grid-template-columns: 4.2rem 1fr 22px; gap: var(--sc-3); align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  color: color-mix(in oklab, var(--ink) 48%, var(--stone));
  transition: color 240ms var(--sc-ease-out);
}
.steps time { font-family: var(--font-data); font-size: var(--sc-t-sm); font-variant-numeric: tabular-nums; }
.steps .tick { width: 20px; height: 20px; align-self: center; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; transition: background-color 240ms var(--sc-ease-out), border-color 240ms var(--sc-ease-out); }
.steps .tick svg { width: 12px; height: 12px; opacity: 0; color: var(--paper); transition: opacity 200ms var(--sc-ease-out); }
.steps li.is-active { color: var(--ink); }
.steps .s-short { display: none; }
.steps li.is-done { color: var(--ink); }
.steps li.is-done .tick { background: var(--sage-deep); border-color: var(--sage-deep); }
.steps li.is-done .tick svg { opacity: 1; }
.day__note { margin-top: var(--sc-4); font-size: var(--sc-t-xs); color: var(--ink-soft); }

.day__visual { position: relative; display: grid; place-items: center; height: min(700px, calc(100svh - var(--bar-h) - 2.5rem)); }
.day__paw { position: absolute; width: min(500px, 64%); left: -4%; top: 50%; translate: 0 -54%; }
.day__phone { position: relative; --pw: min(300px, calc((100svh - var(--bar-h) - 4rem) * 0.46)); translate: 34% 0; }
.day__toast { position: absolute; left: 2%; bottom: 8%; width: min(320px, 60%); opacity: 0; transform: translateY(10px) scale(0.97); transition: opacity 320ms var(--sc-ease-out), transform 320ms var(--sc-ease-out); }
.day__toast.is-on { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .day__stage { grid-template-columns: 1fr; gap: var(--sc-4); align-content: start; padding-top: calc(var(--bar-h) + var(--sc-3)); }
  .day__copy > p, .day__note { display: none; }
  .day__copy .h-section { font-size: 1.9rem; max-width: none; }
  .steps { margin-top: var(--sc-3); display: grid; grid-template-columns: repeat(4, 1fr); border: 0; gap: 6px; }
  .steps li { grid-template-columns: 1fr; gap: 2px; padding: 0.5rem 0.45rem; border: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); border-radius: 10px; font-size: 0.78rem; line-height: 1.25; }
  .steps .tick, .steps .s-long { display: none; }
  .steps .s-short { display: block; font-weight: 600; }
  .steps li.is-done { background: var(--paper); border-color: transparent; }
  .day__visual { height: auto; flex: 1; }
  .day__paw { width: 118%; left: 50%; translate: -50% -50%; opacity: 0.55; }
  .day__phone { --pw: min(236px, calc((100svh - 260px) * 0.46)); translate: 0 0; }
  .day__toast { display: none; }
}

/* ------------------------------------------------------------ features -- */
.features__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sc-8); align-items: start; }
.features__head { position: sticky; top: calc(var(--bar-h) + var(--sc-6)); }
.features__head p { margin-top: var(--sc-4); color: var(--ink-soft); max-width: 34ch; }
.flist { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); }
.flist li {
  display: grid; grid-template-columns: 44px minmax(0, 12rem) minmax(0, 1fr); gap: var(--sc-5); align-items: start;
  padding: var(--sc-5) 0;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
}
.flist .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; color: var(--sage-deep); box-shadow: var(--sc-edge), var(--sc-e1); }
.flist .ico svg { width: 20px; height: 20px; }
.flist .ico--clay { color: var(--clay-ink); background: var(--clay-tint); }
.flist h3 { margin: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; padding-top: 0.55rem; }
.flist p { margin: 0; color: var(--ink-soft); padding-top: 0.55rem; max-width: 46ch; }
@media (max-width: 900px) {
  .features__grid { grid-template-columns: 1fr; gap: var(--sc-6); }
  .features__head { position: static; }
  .flist li { grid-template-columns: 44px 1fr; gap: var(--sc-2) var(--sc-4); }
  .flist p { grid-column: 2; padding-top: 0; }
}

/* ------------------------------------------------------------- screens -- */
.screens__stage { display: flex; align-items: center; }
.rail { width: max-content; align-items: center; gap: clamp(2rem, 4vw, 4.5rem); padding: calc(var(--bar-h) + var(--sc-4)) var(--sc-gutter) var(--sc-4); }
.rail__lead { width: min(24rem, 78vw); flex: none; }
.rail__lead p { margin-top: var(--sc-4); color: var(--ink-soft); }
.rail__lead .tag { margin-top: var(--sc-5); }
.shot { flex: none; margin: 0; --pw: min(270px, calc((100svh - var(--bar-h) - 11rem) * 0.46)); }
.shot figcaption { margin-top: var(--sc-4); width: var(--pw); }
.shot figcaption strong { display: block; font-family: var(--sc-font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.shot figcaption span { display: block; margin-top: 2px; font-size: var(--sc-t-sm); color: var(--ink-soft); line-height: 1.45; }
.shot:nth-child(odd) { translate: 0 -2.5rem; }
@media (max-width: 860px) { .shot:nth-child(odd) { translate: 0 0; } .shot { --pw: min(240px, calc((100svh - var(--bar-h) - 10rem) * 0.46)); } }

/* ------------------------------------------------------ paw (signature) -- */
.paw svg { display: block; width: 100%; height: auto; overflow: visible; }
.paw .p-base { fill: var(--paw-empty, #E6E3DA); }
.paw .p-fill { fill: var(--paw-fill, var(--sage-mark)); transition: transform 240ms var(--sc-ease-out); }
.paw .p-line { fill: none; stroke: var(--paw-line, transparent); stroke-width: 3; }
.day__paw { --paw-empty: var(--stone-2); --paw-line: color-mix(in oklab, var(--sage) 45%, transparent); --paw-fill: var(--sage-mark); }
.scene__back .paw { --paw-empty: var(--stone-2); --paw-fill: var(--stone-2); }


/* ------------------------------------------------------ stores (ink) -- */
.stores {
  --sc-ink: var(--stone); --sc-ink-soft: #B6BAAB; --sc-accent: var(--sage-light); --sc-accent-ink: var(--ink);
  background: var(--ink); color: var(--stone);
  padding-block: calc(var(--sc-section) * 0.9) var(--sc-section);
  line-height: 1.66; letter-spacing: 0.002em;
}
.stores ::selection { background: var(--sage-light); color: var(--ink); }
.stores :focus-visible { outline-color: var(--sage-light); }
.stores__head { max-width: 46rem; margin-inline: auto; text-align: center; }
.stores__head .h-data { font-size: var(--sc-t-2xl); line-height: 1.04; margin: 0; text-wrap: balance; }
.stores__head p { margin: var(--sc-5) auto 0; color: #B6BAAB; max-width: 52ch; }
.stores__eyebrow { font-family: var(--font-data); font-size: var(--sc-t-sm); color: var(--sage-light); font-weight: 500; margin-bottom: var(--sc-4); }
.points { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sc-3) var(--sc-6); margin: var(--sc-6) 0 0; padding: 0; list-style: none; font-size: var(--sc-t-sm); color: #D6D8CE; }
.points li { display: inline-flex; gap: 0.5em; align-items: center; }
.points svg { width: 1.1em; height: 1.1em; color: var(--sage-light); }

.dash {
  margin-top: var(--sc-8);
  background: #2E322A;
  border-radius: var(--sc-r-lg);
  box-shadow: inset 0 1px 0 #3F4439, 0 30px 60px -30px rgba(0,0,0,0.6);
  overflow: hidden;
  font-size: 0.92rem;
}
.dash__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-3) var(--sc-5); padding: 1rem 1.4rem; border-bottom: 1px solid #3B4036; }
.dash__store { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.dash__store img { width: 30px; height: 30px; }
.dash__store strong { font-family: var(--font-data); font-weight: 600; letter-spacing: -0.01em; display: block; line-height: 1.2; }
.dash__store span { font-size: 0.8rem; color: #A9AE9D; }
.dash .tag { color: #C3C7B8; border-color: #4A4F43; }
.dash__main { padding: 1.4rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.dash__main > * { min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #3B4036; border-radius: 14px; overflow: hidden; }
.stat { background: #2A2E26; padding: 1.1rem 1.2rem; }
.stat span { font-size: 0.8rem; color: #A9AE9D; display: flex; align-items: center; gap: 0.45em; }
.stat span svg { width: 1.05em; height: 1.05em; }
.stat b { display: block; font-family: var(--font-data); font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; margin-top: 0.3rem; font-variant-numeric: tabular-nums; }
.stat small { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: #A9AE9D; }
.stat--warn b { color: #E0A583; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 36px; margin-top: 0.6rem; }
.bars i { flex: 1; background: #56604B; border-radius: 3px 3px 1px 1px; min-height: 4px; }
.bars i:last-child { background: var(--sage-light); }
.summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.2rem; padding: 1rem 1.2rem; border-radius: 14px; background: #353A30; }
.summary p { margin: 0; flex: 1 1 22rem; font-family: var(--font-data); font-size: 1.02rem; letter-spacing: -0.01em; color: var(--stone); }
.summary p small { display: block; font-family: var(--sc-font-text); font-size: 0.8rem; color: #A9AE9D; letter-spacing: 0; margin-bottom: 2px; }
.stores .btn { --bg: var(--sage-light); --fg: var(--ink); box-shadow: none; min-height: 44px; }
@media (hover: hover) and (pointer: fine) { .stores .btn:hover { --bg: #B4C0A5; } }
.stores .btn[disabled] { --bg: #4A5042; --fg: #C9CCBF; opacity: 1; }
.filters { display: flex; gap: 4px; padding: 3px; background: #2A2E26; border-radius: 11px; width: fit-content; max-width: 100%; overflow-x: auto; }
.filters button { all: unset; cursor: pointer; padding: 0.45rem 0.8rem; border-radius: 8px; font-size: 0.84rem; color: #B6BAAB; white-space: nowrap; transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out); }
.filters button:hover { color: var(--stone); }
.filters button[aria-pressed="true"] { background: #454B3E; color: var(--stone); }
.filters button:focus-visible { outline: 2px solid var(--sage-light); outline-offset: 1px; }
.filters b { font-family: var(--font-data); font-weight: 500; margin-left: 0.35em; color: #A9AE9D; }
.tablewrap { border: 1px solid #3B4036; border-radius: 14px; overflow: hidden; }
.ctable { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ctable th { text-align: left; font-weight: 500; font-size: 0.78rem; color: #A9AE9D; padding: 0.7rem 1rem; background: #2A2E26; border-bottom: 1px solid #3B4036; }
.ctable td { padding: 0.72rem 1rem; border-bottom: 1px solid #373C32; color: #E4E2DA; }
.ctable tr:last-child td { border-bottom: 0; }
.ctable td.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.ctable .pet { color: #A9AE9D; }
.pill { display: inline-flex; align-items: center; gap: 0.35em; font-size: 0.78rem; font-weight: 500; padding: 0.18em 0.6em; border-radius: 6px; white-space: nowrap; }
.pill--reg { background: #3C4535; color: #C8D2BA; }
.pill--back { background: #3A4A3E; color: #BFE0C6; }
.pill--lapsed { background: #4A3A30; color: #EDBC9E; }
.pill--sent { background: #3E4238; color: #D6D8CE; }
.dash__foot { padding: 0 1.4rem 1.2rem; font-size: 0.8rem; color: #A9AE9D; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .ctable, .ctable tbody { display: block; }
  .ctable thead { display: none; }
  .ctable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 0.7rem 0.9rem; border-bottom: 1px solid #373C32; gap: 2px 0.8rem; }
  .ctable tr:last-child { border-bottom: 0; }
  .ctable td { padding: 0; border: 0; }
  .ctable td:nth-child(3), .ctable td:nth-child(4) { font-size: 0.8rem; color: #A9AE9D; }
  .ctable td:nth-child(5) { grid-row: 1; grid-column: 2; }
  .ctable td.hide-sm { display: none; }
}

/* ------------------------------------------------------------ download -- */
.get { padding-block: var(--sc-section) var(--sc-8); }
.get__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--sc-8); align-items: start; }
.get__copy > p { margin-top: var(--sc-4); color: var(--ink-soft); max-width: 44ch; }
.get__btn { margin-top: var(--sc-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-3) var(--sc-5); }
.get__meta { font-family: var(--font-data); font-size: var(--sc-t-sm); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.get__meta:empty { display: none; }
.install { list-style: none; margin: var(--sc-7) 0 0; padding: 0; counter-reset: s; display: grid; gap: var(--sc-4); max-width: 38rem; }
.install li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: var(--sc-3); align-items: baseline; }
.install li::before { content: counter(s); font-family: var(--font-data); font-weight: 600; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--sage-deep); font-size: 0.85rem; box-shadow: var(--sc-edge), var(--sc-e1); }
.install strong { font-weight: 600; }
.install span { color: var(--ink-soft); }
.checksum { margin-top: var(--sc-5); font-size: var(--sc-t-xs); color: var(--ink-soft); max-width: 38rem; }
.checksum code { font-family: var(--font-data); word-break: break-all; color: var(--ink); }

.qr {
  background: var(--paper); border-radius: var(--sc-r-lg); padding: var(--sc-6);
  box-shadow: var(--sc-edge), var(--sc-e2);
  display: grid; justify-items: start; gap: var(--sc-4);
}
.qr__code { width: 172px; height: 172px; padding: 10px; background: #fff; border-radius: 14px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px #E6E3DA; }
.qr__code svg, .qr__code img { width: 100%; height: 100%; }
.qr h3 { margin: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.qr p { margin: 0; color: var(--ink-soft); font-size: var(--sc-t-sm); }
.qr__link { font-family: var(--font-data); font-size: var(--sc-t-xs); color: var(--sage-deep); word-break: break-all; text-decoration: underline; text-underline-offset: 0.2em; }
.qr__link[hidden] { display: none; }
.qr__sep { width: 100%; height: 1px; background: color-mix(in oklab, var(--ink) 10%, transparent); margin-block: var(--sc-2); }
.qr__row { display: flex; gap: var(--sc-3); align-items: flex-start; font-size: var(--sc-t-sm); color: var(--ink-soft); }
.qr__row svg { width: 1.2em; height: 1.2em; color: var(--sage-deep); flex: none; margin-top: 0.2em; }
@media (max-width: 900px) { .get__grid { grid-template-columns: 1fr; gap: var(--sc-7); } .qr--desk { display: none; } }

/* The close holds: the finished mark and the promise. */
.close { padding-block: var(--sc-8) var(--sc-7); border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent); }
.close__inner { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sc-6); align-items: center; }
.close__inner img { width: clamp(84px, 9vw, 128px); height: auto; }
.close__line { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-xl); letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.close__line span { display: block; font-size: var(--sc-t-base); font-weight: 400; letter-spacing: -0.005em; color: var(--ink-soft); margin-top: var(--sc-2); font-family: var(--sc-font-text); }
.foot { margin-top: var(--sc-7); display: flex; flex-wrap: wrap; gap: var(--sc-3) var(--sc-6); font-size: var(--sc-t-xs); color: var(--ink-soft); }
.foot nav { display: flex; gap: var(--sc-5); flex-wrap: wrap; margin-left: auto; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 700px) { .close__inner { grid-template-columns: auto 1fr; } .close__inner .btn { grid-column: 1 / -1; justify-self: start; } .foot nav { margin-left: 0; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--sc-4); top: -60px; z-index: 90; background: var(--ink); color: var(--stone); padding: 0.6rem 1rem; border-radius: var(--sc-r-md); }
.skip:focus { top: var(--sc-3); }
