/* upbeep.app: one stylesheet. The only font is Inter, served from this site
   (assets/fonts, SIL Open Font License). No external requests. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-variable-latin.woff2") format("woff2-variations"), url("/assets/fonts/inter-variable-latin.woff2") format("woff2");
  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;
}

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-soft: #f6f7f6;
  --surface: #ffffff;
  --surface-2: #f2f4f3;
  --fg: #0d1312;
  --fg-2: #48514f;
  --fg-3: #6b7572;
  --line: #e3e7e5;
  --line-strong: #d0d6d4;
  --accent: #0e8f6c;
  --accent-strong: #0a7257;
  --accent-soft: #e4f4ee;
  /* The UpBeep mark, "Loop": one darker emerald on a light page, since the
     app icon's mint head would vanish on white (the app does the same). */
  --mark-run: #0e8f6c;
  --mark-step: #0e8f6c;
  --mark-head: #0e8f6c;
  --button: #0d1312;
  --on-button: #ffffff;
  --warn-soft: #fdf6e3;
  --warn-line: #ecd9a4;
  --shadow-sm: 0 1px 2px rgb(13 19 18 / 0.05);
  --shadow: 0 1px 2px rgb(13 19 18 / 0.04), 0 8px 24px -8px rgb(13 19 18 / 0.1);

  --font: "Inter Variable", Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;

  /* 8px spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --s8: 128px;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --wrap: 1120px;
  --measure: 64ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f10;
    --bg-soft: #0e1516;
    --surface: #111a1b;
    --surface-2: #162021;
    --fg: #ecf1ef;
    --fg-2: #b0bbb8;
    --fg-3: #87938f;
    --line: #1f2a2b;
    --line-strong: #2b3839;
    --accent: #2fa37e;
    --accent-strong: #5fcaa3;
    --accent-soft: #0f2a21;
    --mark-run: #1fb487;
    --mark-step: #4fe0ae;
    --mark-head: #9ff5d6;
    --button: #ecf1ef;
    --on-button: #0a0f10;
    --warn-soft: #231e10;
    --warn-line: #4d4020;
    --shadow-sm: none;
    --shadow: 0 0 0 1px rgb(255 255 255 / 0.02), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  }
}

/* ------------------------------------------------------------------- base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: "cv05", "cv11", "ss03";
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0 0 var(--s2);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: -0.032em;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

p,
ul,
ol,
dl,
table,
pre {
  margin: 0 0 var(--s2);
}

p {
  text-wrap: pretty;
}

code,
kbd,
.hash {
  font-family: var(--mono);
  font-size: 0.875em;
}

code {
  padding: 0.1em 0.38em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.08em 0.45em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.8125em;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

pre {
  padding: var(--s2) 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow-x: auto;
  font: 0.8125rem/1.65 var(--mono);
}

pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 1em;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: var(--s1) var(--s2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--fg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--s3);
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 var(--s2);
  }
}

.muted {
  color: var(--fg-2);
}

.small {
  color: var(--fg-3);
  font-size: 0.875rem;
}

.eyebrow {
  margin: 0 0 var(--s2);
  color: var(--accent-strong);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.button:hover {
  border-color: var(--fg-3);
}

.button.primary {
  border-color: var(--button);
  background: var(--button);
  color: var(--on-button);
}

.button.primary:hover {
  opacity: 0.9;
}

.button .arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.button:hover .arrow {
  transform: translateX(2px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 var(--s2);
}

/* ------------------------------------------------------ header and footer */

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--s3);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--fg);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand svg {
  width: 26px;
  height: 26px;
}

/* The mark's emeralds follow the ground (--mark-* above); its track is the
   app icon's groove, drawn black at the icon's own strength in the markup. */
.mark-run {
  stroke: var(--mark-run);
}

.mark-step {
  stroke: var(--mark-step);
}

.mark-head {
  fill: var(--mark-head);
}

.site-nav ul {
  display: flex;
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--fg-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--fg);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--button);
  color: var(--on-button);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-cta:hover {
  opacity: 0.9;
}

@media (max-width: 760px) {
  .site-header .wrap {
    padding-top: 12px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-top: 12px;
    border-top: 1px solid var(--line);
  }

  .site-nav ul {
    justify-content: space-between;
    gap: var(--s2);
    padding: 12px 0;
  }

  .site-nav a {
    font-size: 0.875rem;
  }

  .site-nav a[aria-current="page"] {
    text-underline-offset: 6px;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--fg-2);
  font-size: 0.9375rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s4);
  padding-top: var(--s6);
  padding-bottom: var(--s5);
}

.footer-top .brand {
  margin-bottom: 12px;
  color: var(--fg);
}

.footer-top p {
  max-width: 28ch;
  margin: 0;
}

.footer-title {
  margin: 0 0 12px;
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 600;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: var(--s1);
}

.site-footer a {
  color: var(--fg-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.footer-base {
  padding-bottom: var(--s4);
  color: var(--fg-3);
  font-size: 0.875rem;
}

.footer-base p {
  margin: 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--s4) var(--s3);
    padding-top: var(--s5);
  }

  .footer-top > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------- inner pages */

.page-head {
  padding: var(--s7) 0 var(--s5);
}

.page-head h1 {
  margin-bottom: 12px;
}

.page-head .lede {
  max-width: 40em;
  margin: 0;
  color: var(--fg-2);
  font-size: 1.1875rem;
}

.page-head .small {
  margin: var(--s2) 0 0;
}

@media (max-width: 640px) {
  .page-head {
    padding: var(--s5) 0 var(--s4);
  }
}

.content {
  padding-bottom: var(--s7);
}

.block {
  margin-top: var(--s6);
}

.block:first-child {
  margin-top: 0;
}

.block > h2 {
  margin-bottom: 12px;
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  letter-spacing: -0.025em;
}

.block > h2 + p,
.block > .intro {
  max-width: var(--measure);
  color: var(--fg-2);
}

.block > h3 {
  margin-top: var(--s4);
}

.prose {
  max-width: var(--measure);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 6px;
}

.two-col {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--s5);
}

.two-col > * {
  min-width: 0;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

.toc {
  position: sticky;
  top: var(--s3);
  align-self: start;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.toc li + li {
  margin-top: 10px;
}

.toc a {
  color: var(--fg-2);
  text-decoration: none;
}

.toc a:hover {
  color: var(--fg);
}

@media (max-width: 860px) {
  .toc {
    display: none;
  }
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  margin: 0 0 var(--s2);
  padding: 0;
  list-style: none;
}

.cards.two {
  grid-template-columns: repeat(2, 1fr);
}

/* The Buy page hides its plans until it knows the office (site/assets/buy.js). */
.cards[hidden] {
  display: none;
}

.card {
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.card p,
.card ul {
  margin: 0;
  color: var(--fg-2);
  font-size: 0.9375rem;
}

.card ul {
  padding-left: 1.1em;
}

.card li + li {
  margin-top: 6px;
}

.card .label {
  display: block;
  margin-bottom: 6px;
  color: var(--fg-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card .value {
  display: block;
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Pricing: the price itself, large, then its one-line terms */
.card .price {
  margin: 0 0 6px;
  color: var(--fg);
  font-size: 1rem;
}

.card .price strong {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-head .h-price {
  margin: -6px 0 0;
  color: var(--fg-2);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* A page that is not in effect yet (the Terms and Refund drafts, SITE-02) */
.draft-note {
  margin: 0 0 var(--s3);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  background: var(--warn-soft);
  color: var(--fg);
}

.draft-note strong {
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 860px) {
  .cards,
  .cards.two {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 860px) {
  .cards.glance {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Numbered install steps on inner pages */
.stepper {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.stepper > li {
  position: relative;
  padding: 0 0 var(--s3) 52px;
  counter-increment: step;
}

.stepper > li::before {
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9375rem;
  font-weight: 700;
  content: counter(step);
}

.stepper > li::after {
  position: absolute;
  top: 36px;
  bottom: 4px;
  left: 15px;
  width: 2px;
  background: var(--line);
  content: "";
}

.stepper > li:last-child::after {
  display: none;
}

.stepper h3 {
  margin: 0 0 4px;
  font-size: 1.0625rem;
}

.stepper p {
  margin: 0;
  color: var(--fg-2);
}

/* Tables */
.table-scroll {
  margin: 0 0 var(--s2);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 14px var(--s2);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tr:last-child > th,
tr:last-child > td {
  border-bottom: 0;
}

thead th {
  background: var(--surface-2);
  color: var(--fg-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody th {
  width: 30%;
  color: var(--fg);
  font-weight: 600;
}

td {
  color: var(--fg-2);
}

@media (max-width: 640px) {
  .stack-table tr,
  .stack-table th,
  .stack-table td {
    display: block;
    width: auto;
  }

  .stack-table th {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .stack-table td {
    padding-top: 4px;
  }
}

/* Callouts */
.note {
  display: flex;
  gap: var(--s2);
  max-width: 760px;
  padding: 20px var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.note.warn {
  border-color: var(--warn-line);
  background: var(--warn-soft);
}

.note svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--fg-2);
}

.note h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.note p {
  margin: 0;
  color: var(--fg-2);
  font-size: 0.9375rem;
}

.note p + p {
  margin-top: var(--s1);
}

/* The release box on /download/ (written by scripts/build-site.mjs). */
.release {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--s3) var(--s4);
  max-width: 760px;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.release-icon {
  width: 56px;
  height: 56px;
  padding: 12px;
  border-radius: 14px;
  background: #063e45;
}

.release h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.release p {
  margin: 0;
  color: var(--fg-2);
}

.release .actions,
.release dl {
  grid-column: 1 / -1;
  margin: 0;
}

.release .channel {
  display: inline-block;
  margin: 0 0 var(--s1);
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8125rem;
  font-weight: 600;
}

.release dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.release dt {
  color: var(--fg-3);
}

.release dd {
  margin: 0;
  min-width: 0;
}

.hash {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.copy {
  margin-left: var(--s1);
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .release {
    grid-template-columns: 1fr;
    padding: var(--s3);
  }

  .release dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .release dd + dt {
    margin-top: 10px;
  }

  .release .button {
    width: 100%;
  }
}

/* Release notes list */
.notes-list {
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes-list > li {
  margin: 0 0 var(--s2);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.notes-list h2 {
  margin: 0 0 4px;
  font-size: 1.375rem;
}

.notes-list ul {
  padding-left: 1.2em;
}

.empty {
  max-width: 760px;
  padding: var(--s5) var(--s4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--fg-2);
  text-align: center;
}

.empty p {
  margin: 0;
}

/* Support */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  max-width: 880px;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.contact p {
  margin: 0;
  color: var(--fg-2);
}

.fixes {
  max-width: 880px;
  border-top: 1px solid var(--line);
}

.fixes details {
  border-bottom: 1px solid var(--line);
}

.fixes summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.fixes summary::-webkit-details-marker {
  display: none;
}

.fixes summary::after {
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--fg-3);
  border-bottom: 2px solid var(--fg-3);
  transform: rotate(45deg) translateY(-3px);
  content: "";
}

.fixes details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.fixes .answer {
  max-width: var(--measure);
  padding-bottom: 20px;
  color: var(--fg-2);
}

.fixes .answer ul {
  margin: 0;
  padding-left: 1.2em;
}

.fixes .answer li + li {
  margin-top: 6px;
}

.fixes .answer p {
  margin: 0;
}

/* 404 */
.lost {
  padding: var(--s8) 0;
  text-align: center;
}

.lost .mark-big {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--s4);
}

.lost p {
  color: var(--fg-2);
}

.lost .actions {
  justify-content: center;
}

.content.narrow {
  max-width: 880px;
}

.notes-list > li > :last-child,
.card > :last-child {
  margin-bottom: 0;
}
