/* Honest Minutes: the app's own palette (Shared/Colors.xcassets), light and dark, system type, hairline rules. */
@font-face {
  font-family: DM;
  src: url(/assets/fonts/dm-sans.woff2);
  font-display: swap;
  font-weight: 100 900;
}

:root {
  --paper: #f7f3ea;
  --ink: #221f1b;
  --accent: #35557d;
  --rule: #e4ddcf;
  --cell: #fffdf8;
  --muted: rgb(34 31 27 / 0.7);
  --faint: rgb(34 31 27 / 0.52);
  --track: rgb(53 85 125 / 0.16);
  --on-accent: #f7f3ea;
  --coral: #ff8a5b;
  --coral-deep: #e8513d;
  --sans: -apple-system, BlinkMacSystemFont, DM, system-ui, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, DM, system-ui, sans-serif;
  --serif: ui-serif, "New York", Charter, Georgia, "Times New Roman", serif;
  --page: min(1120px, 100% - 32px);
  color-scheme: light;
}
:root[data-scheme="dark"] {
  --paper: #000;
  --ink: #ece7dc;
  --accent: #8faed6;
  --rule: #262626;
  --cell: #141414;
  --muted: rgb(236 231 220 / 0.7);
  --faint: rgb(236 231 220 / 0.52);
  --track: rgb(143 174 214 / 0.18);
  --on-accent: #000;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme="light"]) {
    --paper: #000;
    --ink: #ece7dc;
    --accent: #8faed6;
    --rule: #262626;
    --cell: #141414;
    --muted: rgb(236 231 220 / 0.7);
    --faint: rgb(236 231 220 / 0.52);
    --track: rgb(143 174 214 / 0.18);
    --on-accent: #000;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  overflow-x: clip;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s, color 0.4s;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--on-accent);
}
.skip:focus {
  left: 8px;
}

/* Header */
.hm-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px max(16px, (100% - 1120px) / 2);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 0.5px solid var(--rule);
}
.hm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.hm-logo img {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgb(232 81 61 / 0.35);
}
.hm-head nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}
.hm-head nav a {
  color: var(--muted);
  text-decoration: none;
}
.hm-head nav a:hover {
  color: var(--ink);
}
.hm-cta,
.hm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 99px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, background-color 0.4s;
}
.hm-cta {
  min-height: 36px;
  padding: 0 16px;
  font-size: 15px;
}
.hm-button:hover,
.hm-cta:hover {
  transform: translateY(-1px);
}
.hm-button.quiet {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.hm-button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 15px;
}
.hm-button:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}
.hm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

/* Shared bits */
.hm-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* A tiny progress ring that fills a little more with every section down the page. */
.hm-dot {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--track) 0);
  -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));
}
section {
  width: var(--page);
  margin: 0 auto;
  padding: 96px 0 0;
}
.hm-head2 {
  max-width: 680px;
  margin-bottom: 36px;
}
.hm-head2 h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
}
.hm-head2 p:not(.hm-kicker) {
  margin: 16px 0 0;
  color: var(--muted);
}
.hm-ring {
  display: block;
  transform: rotate(-90deg);
  overflow: visible;
}
.hm-ring circle,
.hm-halo circle {
  fill: none;
  stroke-width: 4;
}
.hm-ring .track,
.hm-halo .track {
  stroke: var(--track);
}
.hm-ring .arc,
.hm-halo .arc {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 0.3s ease-out, opacity 0.4s ease-in-out;
}
.hm-ring.met .arc {
  transition-duration: 0.8s;
}
.hm-streak {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font: 500 15px/1 var(--rounded);
  font-variant-numeric: tabular-nums;
}
.hm-streak.on {
  color: var(--accent);
}
.hm-streak svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linejoin: round;
}

/* Today header (hero sample and demo) */
.hm-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hm-bar .hm-ring {
  flex: none;
  width: 46px;
  height: 46px;
}
.hm-counter {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hm-counter b {
  font: 600 44px/1 var(--rounded);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.hm-counter small,
.hm-meta small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.hm-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-left: auto;
  text-align: right;
}

/* Hero */
.hm-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  min-height: min(calc(100svh - 58px), 860px);
  padding: 56px 0 64px;
}
.hm-hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.hm-lede {
  max-width: 470px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}
.hm-hero-stage {
  position: relative;
  display: grid;
  place-items: center;
}
.hm-halo {
  position: absolute;
  width: min(118%, 600px);
  aspect-ratio: 1;
  transform: rotate(-90deg);
  pointer-events: none;
}
.hm-halo circle {
  stroke-width: 1.4;
}
.hm-hero-page {
  position: relative;
  display: block;
  width: min(100%, 430px);
  padding: 22px 22px 26px;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  box-shadow:
    0 0 0 0.5px var(--rule),
    0 30px 60px -24px rgb(34 31 27 / 0.28),
    0 8px 20px -10px rgb(34 31 27 / 0.18);
  text-align: left;
  cursor: text;
  transition: transform 0.2s;
}
.hm-hero-page:active {
  transform: scale(0.99);
}
.hm-hero-page .hm-bar {
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--rule);
}
.hm-hero-page .hm-counter b {
  font-size: 40px;
}
.hm-hero-text {
  display: block;
  height: 13.5em;
  overflow: hidden;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  mask-image: linear-gradient(#000 80%, transparent);
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
}
.hm-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.hm-hero-page.nudge .hm-ring {
  animation: nudge 0.4s ease-out;
}
@keyframes nudge {
  40% {
    transform: rotate(-90deg) scale(1.12);
  }
}
.hm-hint {
  position: relative;
  padding: 0 8px;
  background: var(--paper);
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Numbers */
.hm-numbers {
  padding: 0;
}
.hm-numbers dl {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
}
.hm-numbers div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 18px 24px 0;
}
.hm-numbers div + div {
  padding-left: 18px;
  border-left: 0.5px solid var(--rule);
}
.hm-numbers dd {
  margin: 0;
  font: 600 38px/1 var(--rounded);
  letter-spacing: -0.02em;
}
.hm-numbers dt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

/* Grouped lists, like the app's Settings */
.hm-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.hm-group h3 {
  margin: 0 0 8px 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.hm-group :is(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 22px;
  background: var(--cell);
  box-shadow: 0 0 0 0.5px var(--rule);
}
.hm-group li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 15px 18px 15px 52px;
}
.hm-group li + li {
  border-top: 0.5px solid var(--rule);
}
.hm-group li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  -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));
}
.hm-group.no li::before {
  background: var(--faint);
}
.hm-group.no li::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 27px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--faint);
  transform: rotate(-45deg);
}
.hm-group.pro li::before {
  background: linear-gradient(var(--coral), var(--coral-deep));
}
.hm-group b {
  font-weight: 600;
}
.hm-group span {
  color: var(--muted);
  font-size: 15px;
}
.hm-note {
  max-width: 760px;
  margin: 40px 0 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--accent);
}
.hm-note p {
  margin: 0;
  font: italic 400 22px/1.45 var(--serif);
}
.hm-note cite {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

/* Demo */
.hm-try-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
  gap: 28px;
  align-items: start;
}
.hm-steps {
  position: sticky;
  top: 84px;
}
.hm-steps li.done::before {
  -webkit-mask: none;
  mask: none;
}
.hm-steps li.done::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 22px;
  width: 5px;
  height: 10px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.hm-steps li.done b {
  color: var(--accent);
}
.hm-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 10px;
}
.hm-seg {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: var(--track);
}
.hm-seg span {
  padding: 0 10px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.hm-seg button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-size: 14px;
}
.hm-seg button[aria-pressed="true"] {
  background: var(--cell);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.14);
  font-weight: 600;
}
.hm-settings-note {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}
.hm-app {
  max-width: 760px;
  padding: 20px 24px 18px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow:
    0 0 0 0.5px var(--rule),
    0 30px 60px -30px rgb(34 31 27 / 0.3);
}
.hm-app .hm-bar {
  padding-bottom: 6px;
}
.hm-notice {
  min-height: 1.5em;
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 14px;
  cursor: default;
}
.hm-app textarea {
  display: block;
  width: 100%;
  min-height: 260px;
  padding: 14px 0 20px;
  border: 0;
  border-top: 0.5px solid var(--rule);
  border-radius: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  color: var(--ink);
  caret-color: var(--accent);
  font: 400 19px/1.6 var(--sans);
}
.hm-app textarea::placeholder {
  color: var(--muted);
}
.hm-app textarea:focus-visible {
  box-shadow: inset 0 2px 0 -0.5px var(--accent);
}
.hm-app[data-font="serif"] textarea {
  font-family: var(--serif);
}
.hm-app[data-size="small"] textarea {
  font-size: 16px;
}
.hm-app[data-size="large"] textarea {
  font-size: 23px;
}
.hm-meter {
  padding-top: 12px;
  border-top: 0.5px solid var(--rule);
}
.hm-meter canvas {
  display: block;
  width: 100%;
  height: 44px;
}
.hm-meter p {
  display: flex;
  gap: 16px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.hm-meter i {
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}
.hm-meter i.counted {
  width: 14px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
}
.hm-meter i.key {
  width: 1.5px;
  height: 12px;
  background: var(--ink);
  opacity: 0.6;
}
.hm-meter .ends {
  margin-left: auto;
}
.hm-app-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 16px;
}
.hm-app-foot small {
  color: var(--muted);
  font-size: 13px;
}
.hm-win {
  display: flex;
  gap: 20px;
  max-width: 760px;
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--cell);
  box-shadow: 0 0 0 0.5px var(--rule);
  animation: rise 0.5s ease-out;
}
.hm-win .hm-ring {
  flex: none;
  width: 52px;
  height: 52px;
}
.hm-win h3 {
  font-size: 24px;
}
.hm-win p {
  margin: 8px 0 0;
  color: var(--muted);
}
.hm-win .hm-actions {
  margin-top: 14px;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.hm-private {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* History */
.hm-hist {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.hm-card {
  padding: 22px;
  border-radius: 26px;
  background: var(--cell);
  box-shadow: 0 0 0 0.5px var(--rule);
}
.hm-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.hm-cal-head h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}
.hm-cal-head button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
}
.hm-cal-head button:disabled {
  color: var(--faint);
  cursor: default;
}
.hm-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 6px;
  text-align: center;
}
.hm-cal-grid .wd {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.hm-day {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: 400 15px/1 var(--rounded);
  font-variant-numeric: tabular-nums;
}
button.hm-day {
  cursor: pointer;
}
.hm-day > span {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  max-width: 100%;
  border-radius: 50%;
}
.hm-day svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hm-day svg circle {
  stroke-width: 2.5;
}
.hm-day.partial {
  color: var(--ink);
}
.hm-day.met > span {
  background: var(--accent);
  color: var(--on-accent);
}
.hm-day.future {
  color: var(--muted);
}
.hm-day.today {
  color: var(--accent);
  font-weight: 700;
}
.hm-day.today.met {
  color: var(--on-accent);
}
.hm-day::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
.hm-day.today::after {
  background: var(--accent);
}
.hm-day.just > span {
  animation: fill 0.8s ease-out;
}
@keyframes fill {
  from {
    transform: scale(0.6);
  }
}
.hm-day[aria-pressed="true"] > span {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--accent);
}
.hm-reader {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 0.5px solid var(--rule);
}
.hm-reader h4 {
  font: 600 20px/1.2 var(--serif);
}
.hm-reader .sum {
  margin: 6px 0 10px;
  color: var(--muted);
  font: 400 14px var(--rounded);
}
.hm-reader .sum b {
  margin-left: 10px;
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 500;
}
.hm-reader p:last-child {
  margin: 0;
}
.hm-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 24px;
  padding-bottom: 22px;
  border-bottom: 0.5px solid var(--rule);
}
.hm-totals div {
  display: flex;
  flex-direction: column-reverse;
}
.hm-totals dd {
  margin: 0;
  font: 600 26px/1.15 var(--rounded);
  font-variant-numeric: tabular-nums;
}
.hm-totals dt {
  color: var(--muted);
  font-size: 13px;
}
.hm-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hm-chart-head h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}
.hm-chart-head span {
  color: var(--muted);
  font-size: 12px;
}
.hm-chart-head span i {
  display: inline-block;
  width: 16px;
  margin-right: 6px;
  vertical-align: middle;
  border-top: 1px dashed var(--faint);
}
.hm-chart {
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-rows: 190px auto;
}
.hm-chart .y {
  position: relative;
  color: var(--muted);
  font: 400 11px/1 var(--rounded);
}
.hm-chart .y span {
  position: absolute;
  left: 0;
  transform: translateY(50%);
}
.hm-chart .plot {
  position: relative;
  border-bottom: 0.5px solid var(--rule);
  background: repeating-linear-gradient(to top, var(--rule) 0 0.5px, transparent 0.5px 25%);
}
.hm-chart .bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.hm-chart .bars i {
  flex: 1;
  min-width: 0;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  opacity: 0.35;
  transition: height 0.3s ease-out;
}
.hm-chart .bars i.met {
  opacity: 1;
}
.hm-chart .goal {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed var(--faint);
}
.hm-chart .x {
  position: relative;
  grid-column: 2;
  height: 20px;
  color: var(--muted);
  font: 400 11px/20px var(--rounded);
}
.hm-chart .x span {
  position: absolute;
  white-space: nowrap;
}

/* Widgets */
.hm-screens {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
}
.hm-home,
.hm-lock {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 28px;
}
.hm-home {
  display: grid;
  grid-template-columns: 158px 158px;
  grid-template-areas: "s i" "m m";
  gap: 22px;
  align-content: center;
  background: linear-gradient(160deg, var(--coral), var(--coral-deep));
}
.hm-w {
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgb(80 20 10 / 0.45);
}
.hm-w.small {
  grid-area: s;
  display: flex;
  flex-direction: column;
  width: 158px;
  height: 158px;
  padding: 16px;
}
.hm-w.small .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}
.hm-w.small .hm-ring {
  width: 22px;
  height: 22px;
}
.hm-w.small .hm-ring circle {
  stroke-width: 5;
}
.hm-w b {
  font: 600 52px/1 var(--rounded);
  font-variant-numeric: tabular-nums;
}
.hm-w small {
  color: var(--muted);
  font: 400 13px var(--rounded);
}
.hm-w.medium {
  grid-area: m;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 338px;
  height: 158px;
  padding: 16px;
}
.hm-w.medium .dial {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 126px;
  height: 126px;
}
.hm-w.medium .dial .hm-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hm-w.medium .dial span {
  display: flex;
  flex-direction: column;
  padding-left: 4px;
}
.hm-w.medium b {
  font-size: 38px;
}
.hm-w.medium .side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
}
.hm-w.medium .side {
  min-width: 0;
}
.hm-w.medium .side small {
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hm-w.medium strong {
  font: 600 20px/1.15 var(--rounded);
}
.hm-w.medium strong.met {
  color: var(--accent);
}
.hm-w.medium .hm-streak {
  margin-top: auto;
}
.hm-appicon {
  grid-area: i;
  align-self: center;
  justify-self: center;
  margin: 0;
  text-align: center;
}
.hm-appicon img {
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 6px 16px -6px rgb(80 20 10 / 0.5);
}
.hm-appicon figcaption {
  margin-top: 6px;
  padding: 1px 8px;
  border-radius: 99px;
  background: rgb(0 0 0 / 0.4); /* keeps white text at 4.5:1 or more on the whole coral gradient */
  color: #fff;
  font-size: 12px;
}
.hm-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 80% at 50% 0%, #2b3a52, #0e1117 70%);
  color: #fff;
  text-align: center;
}
.hm-lock p {
  margin: 0;
}
.hm-lock-date {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.85;
}
.hm-lock-time {
  font: 700 84px/1 var(--rounded);
  letter-spacing: -0.02em;
}
.hm-lock-inline {
  order: -1;
  margin-bottom: 2px !important;
  font: 500 14px var(--rounded);
  opacity: 0.85;
}
.hm-lock-inline svg,
.hm-lock .hm-streak svg {
  width: 12px;
  height: 12px;
  vertical-align: -1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.hm-lock-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.hm-gauge,
.hm-rect {
  border-radius: 18px;
  background: rgb(255 255 255 / 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hm-gauge {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
}
.hm-gauge .hm-ring {
  position: absolute;
  inset: 6px;
}
.hm-gauge .hm-ring circle {
  stroke-width: 4.5;
}
.hm-lock .hm-ring .track {
  stroke: rgb(255 255 255 / 0.25);
}
.hm-lock .hm-ring .arc {
  stroke: #fff;
}
.hm-gauge b {
  font: 600 20px var(--rounded);
}
.hm-rect {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 170px;
  padding: 10px 12px;
  text-align: left;
}
.hm-rect b {
  font: 600 16px var(--rounded);
}
.hm-rect .bar {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.25);
}
.hm-rect .bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: #fff;
  transition: width 0.3s;
}
.hm-rect > span {
  display: flex;
  justify-content: space-between;
  font: 400 12px var(--rounded);
}
.hm-lock .hm-streak {
  color: #fff;
  font-size: 12px;
}

/* Screenshots */
.hm-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  scrollbar-width: thin;
}
.hm-strip figure {
  flex: none;
  width: min(250px, 62vw);
  margin: 0;
  scroll-snap-align: start;
}
.hm-strip img {
  border-radius: 26px;
  box-shadow: 0 0 0 0.5px var(--rule), 0 18px 40px -22px rgb(34 31 27 / 0.4);
}
.hm-strip figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* Pro and privacy */
.hm-private-card {
  max-width: 760px;
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--accent);
  color: var(--on-accent);
}
.hm-private-card h3 {
  font-size: 20px;
}
.hm-private-card p {
  margin: 8px 0 0;
  opacity: 0.9;
}

/* Game Center */
.hm-badges {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.hm-badges img {
  width: min(160px, 100%);
  margin: 0 auto;
  clip-path: circle(41%);
}
.hm-badges span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
:root[data-scheme="dark"] .hm-badges img {
  filter: brightness(0.92);
}

/* Final */
.hm-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 96px;
  text-align: center;
}
.hm-final-icon {
  border-radius: 27px;
  box-shadow: 0 18px 40px -16px rgb(232 81 61 / 0.6);
}
.hm-final h2 {
  max-width: 720px;
  margin: 28px 0 20px;
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 700;
}
.hm-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.hm-chips li {
  padding: 5px 12px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--muted);
  font-size: 14px;
}
.hm-legal {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.made-by {
  padding: 18px 16px;
  border-top: 0.5px solid var(--rule);
  text-align: center;
  font-size: 14px;
}
.made-by a {
  color: var(--muted);
  text-decoration: none;
}
.made-by a:hover b {
  color: var(--accent);
}

/* Scroll reveal (added by writer.js only when motion is welcome). */
.will-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.will-reveal.shown {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hm-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 40px;
    padding-top: 40px;
  }
  .hm-hist,
  .hm-screens,
  .hm-ledger,
  .hm-try-grid {
    grid-template-columns: 1fr;
  }
  .hm-steps {
    position: static;
  }
  .hm-numbers dl {
    grid-template-columns: repeat(3, 1fr);
  }
  .hm-numbers div:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }
  .hm-numbers div:nth-child(n + 4) {
    border-top: 0.5px solid var(--rule);
  }
}
@media (max-width: 720px) {
  .hm-head nav {
    display: none;
  }
  .hm-cta {
    margin-left: auto;
  }
  section {
    padding-top: 72px;
  }
  .hm-numbers dl {
    grid-template-columns: 1fr 1fr;
  }
  .hm-numbers div:nth-child(n) {
    padding: 20px 12px 18px 0;
    border-left: 0;
  }
  .hm-numbers div:nth-child(even) {
    padding-left: 14px;
    border-left: 0.5px solid var(--rule);
  }
  .hm-numbers div:nth-child(n + 3) {
    border-top: 0.5px solid var(--rule);
  }
  .hm-numbers div:last-child {
    grid-column: 1 / -1;
  }
  .hm-numbers dd {
    font-size: 30px;
  }
  .hm-hero-page {
    padding: 18px 16px 20px;
  }
  .hm-counter b,
  .hm-hero-page .hm-counter b {
    font-size: 36px;
  }
  .hm-app {
    padding: 16px 16px 14px;
    border-radius: 22px;
  }
  .hm-app textarea {
    min-height: 220px;
  }
  .hm-card {
    padding: 16px 12px;
  }
  .hm-day > span {
    width: 36px;
    height: 36px;
  }
  .hm-home,
  .hm-lock {
    padding: 20px;
    border-radius: 28px;
  }
  .hm-home {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .hm-w.small {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  .hm-w.medium {
    max-width: none;
    gap: 14px;
    height: auto;
  }
  .hm-w.medium .dial {
    width: 108px;
    height: 108px;
  }
  .hm-w.medium b {
    font-size: 32px;
  }
  .hm-lock-time {
    font-size: 68px;
  }
  .hm-badges {
    grid-template-columns: repeat(3, 1fr);
  }
  .hm-win {
    flex-direction: column;
    gap: 12px;
  }
  .hm-meter .ends {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
