/* Layout: a week sheet. A faint seven-column day grid runs behind the hero, whose
   centrepiece is a large "left to today's goal" readout driven by a live Log time demo. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  src: url('fonts/martian-mono-latin-ext-wdth-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  src: url('fonts/martian-mono-latin-wdth-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colour: cool sheet paper, ink, the logo's blue, and two reserved goal states. */
  --paper: #f3f5f8;
  --band: #e9edf3;
  --sheet: #ffffff;
  --ink: #111722;
  --muted: #566173;
  --rule: #d8dee8;
  --grid: rgba(24, 104, 219, 0.06);
  --track: #e3e8ef;
  --brand: #1868db;
  --brand-soft: #d9e6fb;
  --on-brand: #ffffff;
  --met: #17794a;
  --met-soft: #d6efe2;
  --short: #985a00;
  --short-soft: #fbead0;
  --shadow: 0 1px 2px rgba(17, 23, 34, 0.06), 0 12px 32px rgba(17, 23, 34, 0.08);

  /* Type: expanded Archivo for display, Archivo for reading, Martian Mono for time. */
  --display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0d1219;
    --band: #121923;
    --sheet: #161e2a;
    --ink: #e7ecf3;
    --muted: #9aa6b7;
    --rule: #263142;
    --grid: rgba(108, 162, 255, 0.07);
    --track: #243041;
    --brand: #6ca2ff;
    --brand-soft: #1c2f4f;
    --on-brand: #0b1220;
    --met: #4cc38a;
    --met-soft: #173829;
    --short: #f0b455;
    --short-soft: #3a2a12;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #0d1219;
  --band: #121923;
  --sheet: #161e2a;
  --ink: #e7ecf3;
  --muted: #9aa6b7;
  --rule: #263142;
  --grid: rgba(108, 162, 255, 0.07);
  --track: #243041;
  --brand: #6ca2ff;
  --brand-soft: #1c2f4f;
  --on-brand: #0b1220;
  --met: #4cc38a;
  --met-soft: #173829;
  --short: #f0b455;
  --short-soft: #3a2a12;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] {
  display: none !important;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--brand);
}
code,
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
code {
  font-size: 0.84em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--ink);
}
h1,
h2,
h3 {
  font-family: var(--display);
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h3 {
  font-size: clamp(21px, 2vw, 25px);
  font-weight: 750;
  font-stretch: 108%;
  line-height: 1.2;
}
p {
  margin: 0;
  max-width: 62ch;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow {
  max-width: 780px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.small {
  font-size: 14px;
  color: var(--muted);
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 8px 12px;
  background: var(--brand);
  color: var(--on-brand);
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 650;
  font-stretch: 105%;
  text-decoration: none;
  border: 1.5px solid var(--brand);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 30%, transparent);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover {
  border-color: var(--brand);
  box-shadow: none;
}
.btn--small {
  padding: 8px 14px;
  font-size: 15px;
}
.badge {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px dashed var(--brand);
  color: var(--brand);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-row--center {
  justify-content: center;
}

/* Header */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 120%;
  font-size: 19px;
}
.top__nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.top__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.top__nav a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  background-image: repeating-linear-gradient(
    to right,
    var(--grid) 0 1px,
    transparent 1px calc(100% / 7)
  );
  border-bottom: 1px solid var(--rule);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(36px, 6vw, 80px);
}
.hero__copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.lede {
  font-size: 19px;
  color: var(--muted);
}
.readout {
  display: grid;
  gap: 8px;
  padding-block: 4px 6px;
}
.readout__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.readout__value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(56px, 9.5vw, 116px);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 0.95;
  letter-spacing: -0.04em;
  word-spacing: -0.4em;
  color: var(--ink);
  transition: color 0.4s ease;
}
.readout[data-state='met'] .readout__value {
  color: var(--met);
}
.readout__meter {
  height: 12px;
  border-radius: 6px;
  background: var(--track);
  overflow: hidden;
}
.readout__meter span {
  display: block;
  height: 100%;
  width: var(--fill, 50%);
  background: var(--brand);
  border-radius: 6px;
  transition:
    width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    background 0.4s ease;
}
.readout[data-state='met'] .readout__meter span {
  background: var(--met);
}
.readout__scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.hero__demo {
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 10px;
}
.hero__demo figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

/* Demo shells: a browser-like window around app UI recreated in HTML */
.demo {
  position: relative;
  min-width: 0;
}
.window {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--band);
}
.window__dots {
  display: inline-flex;
  gap: 6px;
}
.window__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rule);
}
.window__url {
  min-width: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pause {
  font: 600 12px/1 var(--mono);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}
.pause:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.pause--floating {
  justify-self: end;
}

.dialog {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  font-size: 13.5px;
  line-height: 1.4;
}
.dialog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--display);
  font-size: 17px;
}
.issue-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--band);
  font-family: var(--body);
  font-size: 12.5px;
  color: var(--muted);
  min-width: 0;
}
.issue-chip b {
  color: var(--brand);
  font-family: var(--mono);
  font-size: 11.5px;
}
.goal {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.goal__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}
.goal__row--quiet {
  font-weight: 400;
  color: var(--muted);
}
.goal__preview {
  font-size: 13px;
  color: var(--muted);
  min-height: 1.4em;
}
.goal__preview b {
  color: var(--ink);
}
.goal__preview[data-state='met'] b {
  color: var(--met);
}
.meter {
  display: flex;
  height: 8px;
  border-radius: 4px;
  background: var(--track);
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.meter__logged {
  background: var(--brand);
  width: var(--logged, 0%) !important;
}
.meter__preview {
  width: var(--preview, 0%) !important;
  background: repeating-linear-gradient(
    -45deg,
    var(--brand) 0 3px,
    color-mix(in srgb, var(--brand) 45%, transparent) 3px 6px
  );
  opacity: 0.75;
}
.meter[data-state='met'] .meter__logged,
.meter[data-state='met'] .meter__preview {
  background: var(--met);
  opacity: 1;
}
.field {
  display: grid;
  gap: 6px;
}
.field--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field--split > div {
  display: grid;
  gap: 6px;
}
.field__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.input {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  background: var(--sheet);
  white-space: nowrap;
  overflow: hidden;
}
.input--area {
  min-height: 52px;
  align-items: flex-start;
  white-space: normal;
}
.input[data-focus] {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.input__hint {
  color: var(--muted);
  opacity: 0.8;
}
.caret {
  display: none;
  width: 1.5px;
  height: 1.1em;
  margin-left: 1px;
  background: var(--brand);
  animation: blink 1s steps(1) infinite;
}
.input[data-focus] .caret {
  display: inline-block;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}
.chip--fill {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--rule));
}
.chip[data-press],
.btn-ui[data-press] {
  transform: scale(0.94);
  background: var(--brand-soft);
}
.dialog__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}
.estimate {
  font-size: 12.5px;
  color: var(--muted);
}
.estimate b {
  color: var(--ink);
  font-weight: 500;
}
.btn-ui {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 6px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 650;
  font-size: 13px;
  transition: transform 0.15s ease;
}
.btn-ui--quiet {
  background: var(--band);
  color: var(--ink);
}
.btn-ui[data-press] {
  background: var(--brand);
  filter: brightness(0.9);
}
.toast {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
  font-size: 13px;
  animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.toast__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--met);
  color: var(--sheet);
  font-size: 12px;
  font-weight: 800;
}
@keyframes rise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* Facts strip */
.facts {
  border-bottom: 1px solid var(--rule);
  background: var(--sheet);
}
.facts__list {
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-block: 0;
}
.facts__list li {
  display: grid;
  gap: 2px;
  padding: 22px 24px 22px 0;
  font-size: 15px;
  color: var(--muted);
}
.facts__list li + li {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}
.facts__list b {
  color: var(--ink);
  font-family: var(--display);
  font-stretch: 110%;
  font-size: 16px;
}

/* Sections */
.section {
  padding-block: clamp(56px, 8vw, 104px);
}
.section--band {
  background: var(--band);
  border-block: 1px solid var(--rule);
}
.section__head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section__head > p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.feature + .feature {
  margin-top: clamp(56px, 8vw, 96px);
}
.feature--flip .feature__copy {
  order: 2;
}
.feature__copy {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.feature__copy > p {
  color: var(--muted);
}
.feature__copy b {
  color: var(--ink);
}
.feature__media {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.feature__media img,
.shots img {
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 15.5px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* Issue panel + timer demo */
.panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 13.5px;
}
.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-size: 16px;
}
.panel__head .mono {
  font-size: 11.5px;
  color: var(--muted);
}
.timer {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--rule));
  background: color-mix(in srgb, var(--brand-soft) 45%, var(--sheet));
}
.timer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand);
}
.live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s ease-in-out infinite;
}
.live[data-state='done'] {
  color: var(--met);
}
.live[data-state='done']::before {
  animation: none;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
.timer__clock {
  font-size: clamp(34px, 4.4vw, 46px);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.03em;
  line-height: 1;
}
.timer__note {
  font-size: 12.5px;
  color: var(--muted);
}
.timer__note b {
  color: var(--met);
}
.timer__actions {
  display: flex;
  gap: 8px;
}

/* Timesheet demo */
.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.sheet__grid {
  display: grid;
  grid-template-columns: minmax(170px, 2.6fr) repeat(7, minmax(52px, 1fr));
  min-width: 560px;
  font-size: 12.5px;
}
.sheet__grid > span {
  padding: 9px 8px;
  border-bottom: 1px solid var(--rule);
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  white-space: nowrap;
}
.sheet__grid > .sheet__issue {
  text-align: left;
  font-family: var(--body);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet__issue b {
  color: var(--brand);
  font-family: var(--mono);
  font-size: 11px;
  margin-right: 4px;
}
.sheet__grid > .sheet__day {
  font-family: var(--body);
  font-weight: 650;
  color: var(--muted);
  background: var(--band);
}
.sheet__day i {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  min-height: 1.3em;
}
.sheet__day[data-state='met'] i {
  color: var(--met);
}
.sheet__day[data-state='short'] i {
  color: var(--short);
}
.sheet__off {
  color: var(--muted);
  opacity: 0.5;
}
.sheet__cell[data-new] {
  animation: pop 0.45s ease;
}
.sheet__cell[data-fix] {
  background: var(--met-soft);
  color: var(--met);
  font-weight: 700;
}
.sheet__total {
  font-weight: 700;
  background: var(--paper);
  border-bottom: 0 !important;
}
.sheet__grid > .sheet__total.sheet__issue {
  font-family: var(--body);
}
@keyframes pop {
  from {
    background: var(--brand-soft);
    transform: scale(0.9);
  }
}

/* Month demo */
.month {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.month__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-size: 17px;
}
.month__head .mono {
  font-size: 12px;
  color: var(--muted);
}
.month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.month__dow {
  font-family: var(--mono);
  font-size: 10px;
  text-align: center;
  color: var(--muted);
}
.month__day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 100%;
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.month__day .ring {
  position: absolute;
  inset: 8%;
}
.ring {
  display: inline-block;
  border-radius: 50%;
  background: conic-gradient(var(--ring, var(--brand)) calc(var(--p, 0) * 1%), var(--track) 0);
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 4px),
    #000 calc(100% - 3.5px)
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
}
.ring--met {
  --ring: var(--met);
  --p: 100;
}
.ring--short {
  --ring: var(--short);
  --p: 70;
}
.ring--off {
  --p: 0;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend .ring {
  width: 14px;
  height: 14px;
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 calc(100% - 2.5px)
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}

/* How it works */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.split > div {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.split p:not(.eyebrow) {
  color: var(--muted);
}
.steps {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  position: relative;
  min-height: 30px;
  padding: 3px 0 0 46px;
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.steps b {
  color: var(--ink);
}
.flow {
  display: grid;
  gap: 10px;
}
.flow__box {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--sheet);
  border: 1px solid var(--rule);
}
.flow__box b {
  font-family: var(--display);
  font-stretch: 112%;
  font-size: 18px;
}
.flow__box span {
  font-size: 14px;
  color: var(--muted);
}
.flow__box--brand {
  background: var(--brand);
  border-color: var(--brand);
}
.flow__box--brand b,
.flow__box--brand span {
  color: var(--on-brand);
}
.flow__arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.flow__arrow::before {
  content: '';
  width: 2px;
  height: 26px;
  background: linear-gradient(var(--brand), var(--brand)) center / 2px 100% no-repeat;
}
.flow__targets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.flow__targets li {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed var(--rule);
  font-size: 14px;
  background: var(--sheet);
}
.jql {
  margin: 8px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
.jql code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.jql__k {
  color: color-mix(in srgb, var(--brand) 70%, var(--paper));
}

/* Screens */
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.shots figure {
  margin: 0;
  display: grid;
  gap: 10px;
}
.shots figcaption {
  font-size: 14px;
  color: var(--muted);
}

/* Admin specs */
.specs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.specs > div {
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--rule);
}
.specs > div:not(:nth-child(3n + 1)) {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}
.specs dt {
  font-family: var(--display);
  font-weight: 750;
  font-stretch: 110%;
  font-size: 17px;
  margin-bottom: 6px;
}
.specs dd {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* Security */
.scopes {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.scopes li {
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--muted);
}
.scopes code {
  justify-self: start;
}

/* Get */
.get {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
}
.get p {
  color: var(--muted);
  font-size: 18px;
}

/* FAQ */
#faq h2 {
  margin-bottom: 24px;
}
details {
  border-bottom: 1px solid var(--rule);
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 106%;
  font-size: 18px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--brand);
  font-size: 20px;
  line-height: 1;
}
details[open] summary::after {
  content: '−';
}
details p {
  padding-bottom: 18px;
  color: var(--muted);
}

/* Footer */
.foot {
  border-top: 1px solid var(--rule);
  padding-block: 32px 40px;
}
.foot__inner {
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}

/* Narrow screens */
@media (max-width: 900px) {
  .hero__inner,
  .feature,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature--flip .feature__copy {
    order: 0;
  }
  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .specs > div:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }
  .specs > div:nth-child(2n) {
    padding-left: 24px;
    border-left: 1px solid var(--rule);
  }
}
@media (max-width: 640px) {
  .top__nav {
    display: none;
  }
  .top__inner .btn--small {
    margin-left: auto;
  }
  .facts__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .facts__list li,
  .facts__list li + li {
    padding: 14px 0;
    border-left: 0;
  }
  .facts__list li + li {
    border-top: 1px solid var(--rule);
  }
  .shots,
  .specs {
    grid-template-columns: minmax(0, 1fr);
  }
  .specs > div:nth-child(2n) {
    padding-left: 0;
    border-left: 0;
  }
  .scopes li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .toast {
    left: 10px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
