@font-face {
  font-family: "Gabarito";
  src: url("/fonts/gabarito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sheet: #f3f5f9;
  --paper: #ffffff;
  --rule: #c9d6f2;
  --rule-soft: #e1e8f7;
  --ink: #17191f;
  --ink-2: #474d61;
  --ink-3: #6a7186;
  --blue: #2f6feb;
  --dot-1: #bfd2fa;
  --dot-2: #85a9f3;
  --dot-3: #5287ee;
  --dot-4: #2f6feb;
  --yellow: #ffc94d;
  --yellow-deep: #f2b01e;
  --red: #e5484d;
  --sq: 24px;
  --lift: 0 1px 0 rgba(23, 25, 31, 0.06), 0 10px 22px -12px rgba(23, 25, 31, 0.45);
  --lift-sm: 0 1px 1px rgba(23, 25, 31, 0.16), 0 3px 6px -2px rgba(23, 25, 31, 0.28);
  --display: "Gabarito", ui-rounded, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--sheet);
  scrollbar-color: var(--dot-2) var(--sheet);
}

body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  /* The planner: a hairline grid of squares under everything. */
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: var(--sq) var(--sq);
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--blue);
}

::selection { background: var(--yellow); color: var(--ink); }

p, li { text-wrap: pretty; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a {
  color: var(--ink);
  text-decoration-color: var(--dot-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--blue); }

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- Top bar ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px 8px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 1.125rem/1 var(--display);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; }

.nav {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.9375rem;
}
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); }

/* ---------- Stickers ---------- */

.label {
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--lift);
  position: relative;
}

.dot {
  --c: var(--dot-4);
  display: inline-block;
  width: var(--d, 28px);
  height: var(--d, 28px);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 55%), var(--c);
  /* Kiss-cut white rim, then the lift off the sheet. */
  box-shadow: 0 0 0 2px #fff, var(--lift-sm);
  flex: none;
}
.dot[data-level="1"] { --c: var(--dot-1); }
.dot[data-level="2"] { --c: var(--dot-2); }
.dot[data-level="3"] { --c: var(--dot-3); }
.dot[data-level="4"] { --c: var(--dot-4); }

/* An empty die-cut where a dot used to be. */
.slot {
  display: inline-block;
  width: var(--d, 28px);
  height: var(--d, 28px);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--rule);
  background: rgba(255, 255, 255, 0.5);
}

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

.hero > :first-child { container-type: inline-size; }
.hero {
  display: grid;
  /* 520px: the brew command bar's full width, so the command is never clipped. */
  grid-template-columns: minmax(520px, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
  padding-block: 28px 72px;
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .stage { justify-self: start; }
}

.name-label {
  padding: 22px 30px 26px;
  transform: rotate(-1.4deg);
  width: fit-content;
  max-width: 100%;
}
.gnome-hat {
  position: absolute;
  width: 70px;
  height: auto;
  left: 22px;
  top: -36px;
  transform: rotate(-16deg);
  filter: drop-shadow(0 4px 4px rgba(122, 26, 26, 0.25));
  pointer-events: none;
}
.name-label h1 {
  margin: 0;
  font: 900 clamp(3.4rem, 8vw, 6rem)/0.88 var(--display);
  letter-spacing: -0.035em;
}
.name-label h1 .dinky { color: var(--blue); }
.name-label p {
  margin: 14px 0 0;
  /* One line: shrink with the column (label padding is 60px) rather than wrap. */
  font-size: min(1.125rem, calc((100cqi - 64px) / 24));
  white-space: nowrap;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: none;
}
@container (max-width: 400px) {
  .name-label p { font-size: 1.0625rem; white-space: normal; text-wrap: balance; }
}

.get {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
}
.get .or { width: 100%; font-size: 0.9375rem; color: var(--ink-2); }

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  background: var(--yellow);
  border-radius: 14px;
  padding: 10px 18px 11px;
  box-shadow: var(--lift);
  line-height: 1.15;
  transition: transform 160ms var(--ease);
}
.store:hover { transform: translateY(-2px) rotate(-1deg); }
.store b { font: 800 1.0625rem/1.1 var(--display); }
.store span { font-size: 0.8125rem; color: #4a3700; }

.brew {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  box-shadow: var(--lift);
  max-width: 100%;
  min-width: 0;
}
.brew code {
  min-width: 0;
  font: 500 0.875rem/1.3 var(--mono);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.brew code::selection { background: var(--yellow); color: var(--ink); }

p, li { text-wrap: pretty; }
.brew code .p { color: #8f97ad; user-select: none; }

.copy {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: #2b2f39;
  color: #fff;
  font: 700 0.8125rem/1 var(--display);
  padding: 9px 12px;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex: none;
}
.copy:hover { background: #3a3f4c; }
.copy svg { width: 14px; height: 14px; }
/* Wide enough for the longest label ("Press ⌘C"), so Copy → Copied never resizes it. */
.copy span { min-width: 4.5em; text-align: center; }
.copy.done { background: var(--yellow); color: var(--ink); }

/* The stage: a slice of a Mac desktop where the app gets used, frame by real frame. */
.stage {
  margin: 0;
  position: relative;
  aspect-ratio: 440 / 520;
  width: 100%;
  max-width: 500px;
  justify-self: end;
  border-radius: 22px;
  overflow: hidden;
  border: 1.5px solid var(--rule);
  background:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px) 0 0 / var(--sq) var(--sq),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px) 0 0 / var(--sq) var(--sq),
    linear-gradient(160deg, #cfdcfb 0%, #e8eefb 55%, #ffe7ad 100%);
}
.scene {
  --icon-x: 268px;
  position: absolute;
  left: 0;
  top: 0;
  width: 440px;
  height: 520px;
  transform-origin: 0 0;
  transform: scale(var(--s, 1));
}

.mb {
  /* Overhangs the scene on both sides so the bar always spans the frame. */
  position: absolute;
  inset: 0 -600px auto -600px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline: 616px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  font: 600 13px/1 var(--text);
  color: #1d1f24;
}
.mb .app { font-weight: 700; }
.mb .menu { font-weight: 500; }
.mb .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.mb svg { width: 18px; height: 18px; }
.mb .clock { font-weight: 500; font-variant-numeric: tabular-nums; }
.mb .dc {
  background: rgba(23, 25, 31, 0.13);
  width: 32px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.mb .dc img { width: 19px; height: 16px; display: block; }

.pop {
  position: absolute;
  top: 38px;
  left: 124px;
  width: 300px;
  filter: drop-shadow(0 18px 30px rgba(23, 25, 31, 0.28)) drop-shadow(0 2px 4px rgba(23, 25, 31, 0.12));
}
.pop::before {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  border-radius: 3px;
}
.pop img {
  display: block;
  width: 300px;
  height: auto;
  border-radius: 12px;
  background: #fff;
}
.pop .hover { position: absolute; inset: 0; }

.cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 30px;
  transform: translate(60px, 440px);
}


@media (prefers-reduced-motion: no-preference) {
  .mb .dc { animation: dc-on 9s var(--ease) infinite; }
  .pop { animation: pop 9s var(--ease) infinite; transform-origin: 150px 0; }
  .pop .hover { animation: hover-frame 9s linear infinite; }
  .cursor { animation: cursor 9s var(--ease) infinite; }
}

/* Open by default; hover a day, then click the icon closed and open again. */
@keyframes cursor {
  0%   { transform: translate(60px, 440px); }
  16%  { transform: translate(312px, 283px); }
  58%  { transform: translate(312px, 283px); }
  68%  { transform: translate(var(--icon-x), 12px); }
  70%  { transform: translate(var(--icon-x), 12px) scale(0.86); }
  72%  { transform: translate(var(--icon-x), 12px); }
  80%  { transform: translate(var(--icon-x), 12px); }
  82%  { transform: translate(var(--icon-x), 12px) scale(0.86); }
  84%  { transform: translate(var(--icon-x), 12px); }
  100% { transform: translate(60px, 440px); }
}
@keyframes dc-on {
  0%, 70%  { background: rgba(23, 25, 31, 0.13); }
  71%, 81% { background: transparent; }
  82%, 100% { background: rgba(23, 25, 31, 0.13); }
}
@keyframes pop {
  0%, 70%  { opacity: 1; transform: none; }
  73%, 82% { opacity: 0; transform: translateY(-6px) scale(0.97); }
  86%, 100% { opacity: 1; transform: none; }
}
@keyframes hover-frame {
  0%, 17%  { opacity: 0; }
  18%, 58% { opacity: 1; }
  59%, 100% { opacity: 0; }
}

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

.section { padding-block: 72px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.split .lede { margin-bottom: 0; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > .intro { order: 2; }
.promise { margin: 24px 0 0; color: var(--ink-2); font-size: 0.9375rem; max-width: 46ch; }
.split .legend { width: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 22px; gap: 16px 28px; padding: 20px 24px; }
.split .rules { margin-top: 24px; }
.section h2 {
  font: 900 clamp(2.25rem, 5vw, 3.5rem)/0.95 var(--display);
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-wrap: balance;
  max-width: 16ch;
}
.section .lede {
  font-size: 1.1875rem;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}

/* Dots key: the four stickers on their backing strip, each with its reading. */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 18px 30px 18px 20px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--rule);
}
.legend > div { display: flex; align-items: center; gap: 14px; }
.legend .dot {
  --d: 46px;
  display: grid;
  place-items: center;
  font: 700 1rem/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.legend .dot[data-level="4"] { color: #fff; }
.legend b { display: block; font: 800 1.25rem/1.05 var(--display); letter-spacing: -0.01em; }
.legend small { display: block; color: var(--ink-2); font-size: 0.875rem; margin-top: 2px; }

.rules {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 40px;
  max-width: 920px;
}
.rules li { color: var(--ink-2); padding-top: 12px; border-top: 1.5px solid var(--rule); }
.rules b { display: block; color: var(--ink); font-weight: 650; }
.rules li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rules li b { white-space: nowrap; }

.strips {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
}
.strips li:last-child { border-bottom: 0; }
.strips li {
  background: var(--paper);
  border-bottom: 1.5px solid var(--rule-soft);
  padding: 15px 22px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  align-items: baseline;
}
.strips b { font: 800 1.0625rem/1.2 var(--display); }
.strips span { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }

/* Small on purpose. */
.never {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.never li {
  background: var(--paper);
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  box-shadow: var(--lift);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font: 700 1.0625rem/1 var(--display);
}
.never li svg { width: 22px; height: 22px; flex: none; }

/* Price. */
.price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 920px;
}
.price > div { padding: 26px 28px 28px; }
.price > div:last-child { background: var(--yellow); }
.price .amt { font: 900 3.5rem/0.9 var(--display); letter-spacing: -0.03em; }
#price h2 { max-width: 22ch; }
.price h3 { font: 800 1.25rem/1.2 var(--display); margin: 12px 0 6px; }
.price p { margin: 0 0 16px; color: var(--ink-2); text-wrap: balance; }
.price h3, #price .lede { text-wrap: balance; }
.price > div:last-child p { color: #4a3700; }
.price .links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }

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

.foot {
  border-top: 1.5px solid var(--rule);
  padding-block: 28px 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.foot a { color: var(--ink-2); }

/* ---------- Read pages (privacy, support) ---------- */

.doc { padding-block: 32px 72px; display: grid; justify-items: center; }
.doc .label.title { display: inline-block; padding: 18px 26px 20px; transform: rotate(-1.2deg); margin-bottom: 36px; }
.doc .label.title h1 { margin: 0; font: 900 clamp(2.6rem, 6vw, 4rem)/0.95 var(--display); letter-spacing: -0.03em; }
.doc .label.title p { margin: 8px 0 0; color: var(--ink-2); }
.doc article {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 22px;
  padding: clamp(24px, 5vw, 56px);
  max-width: 820px;
}
.doc article > * { max-width: 68ch; }
.doc h2 { font: 800 1.5rem/1.2 var(--display); letter-spacing: -0.01em; margin: 40px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font: 700 1.125rem/1.3 var(--display); margin: 28px 0 6px; }
.doc p, .doc li { color: #2d3240; }
.doc ul { padding-left: 1.2em; }
.doc li::marker { color: var(--blue); }
.doc .big { font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.doc code { font: 500 0.9em var(--mono); background: var(--sheet); padding: 2px 6px; border-radius: 6px; }
.doc .contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  border-radius: 14px;
  padding: 12px 18px;
  font: 800 1.125rem/1 var(--display);
  text-decoration: none;
  box-shadow: var(--lift);
  margin: 4px 0 8px;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .legend { border-radius: 24px; }
  .strips li { grid-template-columns: 1fr; gap: 4px; }
  .rules, .price, .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > .intro { order: 0; }
  .rules li { white-space: normal; }
  .split { gap: 28px; }
  .stage { justify-self: stretch; max-width: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 16px 48px; }
}

@media (max-width: 560px) {
  .get, .brew { width: 100%; }
  .nav a:first-child { display: none; }
  .brew code { font-size: 0.8125rem; white-space: normal; }
  .section { padding-block: 52px; }
  .nav { gap: 4px 14px; font-size: 0.875rem; }
}

