/* nofone.app. Tokens come from the design canvas boards; the page follows the
   device's light or dark setting. System fonts only, nothing loaded from
   other sites. */

:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --card2: #f2f2f7;
  --ink: #000000;
  --body: #1c1c1e;
  --t2: #3a3a3c;
  --t3: #6c6c70;
  --line: #e5e5ea;
  --line2: #d1d1d6;
  --link: #0066d6;
  --linkh: #004fa8;
  --btn: #0066d6;
  --bar2: #aeaeb2;
  --act: #248a3d;
  --act-s: #248a3d1f;
  --sup: #9a7400;
  --sup-s: #9a74001f;
  --diet: #c25e00;
  --diet-s: #c25e001f;
  --ther: #0c8a84;
  --ther-s: #0c8a841f;
  --med: #c4473a;
  --med-s: #c4473a1f;
  --sym: #5e5ce6;
  --sym-s: #5e5ce61f;
  --sleep: #5856d6;
  --hrv: #0a7ea4;
  --hrv-s: #0a7ea41f;
  --heart: #d70f3c;
  --ruled: #c9342b;
  --track: #d1d1d6;
  --bubble: #0066d6;
  --sel: #0066d61a;
  /* Slightly darker hues for small text on light tints (AA contrast). */
  --act-t: #1d7232;
  --hrv-t: #0a7299;
  --diet-t: #b35600;
  --focus: #0a84ff;
  --font:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial,
    sans-serif;
  --rounded:
    ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --card2: #2c2c2e;
    --ink: #ffffff;
    --body: #f2f2f7;
    --t2: #d1d1d6;
    --t3: #98989d;
    --line: #38383a;
    --line2: #48484a;
    --link: #4da3ff;
    --linkh: #80bdff;
    --btn: #0066d6;
    --bar2: #636366;
    --act: #30d158;
    --act-s: #30d1582e;
    --sup: #ffd60a;
    --sup-s: #ffd60a2e;
    --diet: #ff9f0a;
    --diet-s: #ff9f0a2e;
    --ther: #66d4cf;
    --ther-s: #66d4cf2e;
    --med: #ff8a7a;
    --med-s: #ff8a7a2e;
    --sym: #8e8cff;
    --sym-s: #8e8cff2e;
    --sleep: #7d7aff;
    --hrv: #40c8e0;
    --hrv-s: #40c8e02e;
    --heart: #ff375f;
    --ruled: #ff6961;
    --track: #3a3a3c;
    --bubble: #0066d6;
    --sel: #4da3ff24;
    --act-t: #30d158;
    --hrv-t: #40c8e0;
    --diet-t: #ff9f0a;
  }
}

/* The docs sit on white in light mode. */
.docs-page {
  --bg: #ffffff;
  --card2: #f2f2f7;
}
@media (prefers-color-scheme: dark) {
  .docs-page {
    --bg: #000000;
    --card2: #1c1c1e;
  }
}

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

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a {
  color: var(--link);
}
a:hover {
  color: var(--linkh);
}
a:focus-visible,
button:focus-visible,
pre:focus-visible,
.table-wrap:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}
p {
  margin: 0;
}

.num {
  font-family: var(--rounded);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--card);
  color: var(--link);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  text-align: center;
}
.pill-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}
.pill-white,
.pill-white:hover {
  background: #ffffff;
  color: #22204a;
}
.pill-blue,
.pill-blue:hover {
  background: var(--btn);
  color: #ffffff;
}
.pill-blue:hover {
  background: #0058ba;
}

/* ---------- Header ---------- */

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px 28px;
  flex-wrap: wrap;
}
.nav-inner-wide {
  max-width: 1240px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  margin-right: auto;
}
.brand:hover {
  color: var(--ink);
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.nav-links a {
  color: var(--t2);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.nav-bar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.docs-page .nav-bar {
  background: var(--bg);
}
.nav-docs .brand {
  margin-right: 0;
}
.nav-section {
  font-size: 17px;
  color: var(--t3);
  margin-right: auto;
}

.nav-night {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  color: #ffffff;
}
.nav-night .nav-inner {
  padding-top: 20px;
  padding-bottom: 20px;
}
.nav-night .brand,
.nav-night .brand:hover {
  color: #ffffff;
}
.nav-night .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-night .nav-links a {
  color: #d9d8ee;
}
.nav-night .nav-links a:hover {
  color: #ffffff;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}
/* The hero has the same button right below, and the header has no room. */
@media (max-width: 359px) {
  .nav-night .pill {
    display: none;
  }
}
/* With docs and GitHub in the menu it needs more room. */
@media (max-width: 1040px) {
  .stage-2 .nav-links,
  .stage-3 .nav-links {
    display: none;
  }
  .docs-page .nav-links {
    display: flex;
  }
}
@media (max-width: 480px) {
  .docs-page .nav-links {
    display: none;
  }
}

/* ---------- Night band (homepage hero) ---------- */

.night {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #22204a 0%, #0e0d22 55%, #06060e 100%);
  color: #ffffff;
}
.night a:not(.pill) {
  color: #ffffff;
}
.night a:not(.pill):hover {
  color: #d9d8ee;
}
.constellation {
  position: absolute;
  right: -10%;
  top: -12%;
  width: min(1100px, 110vw);
  height: auto;
  opacity: 0.45;
  pointer-events: none;
}
@media (max-width: 560px) {
  /* On a phone the drawing sits behind the phone mock-up, below the text. */
  .constellation {
    top: auto;
    bottom: 180px;
    right: -20%;
    width: 140vw;
    opacity: 0.4;
  }
}
.c-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: cdraw 1.8s ease-out 0.2s forwards;
}
.c-gold {
  opacity: 0;
  animation: cglow 1.2s ease-out 1.7s forwards;
}
@keyframes cdraw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes cglow {
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .c-line {
    animation: none;
    stroke-dashoffset: 0;
  }
  .c-gold {
    animation: none;
    opacity: 1;
  }
}

.hero {
  position: relative;
  z-index: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 128px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 48px 64px;
}
.hero-text {
  position: relative;
  flex: 1 1 480px;
  min-width: 0;
  padding-bottom: 96px;
}
/* A soft dark pool behind the text, so no constellation line crosses it.
   It runs off the left edge and fades out to the right, top and bottom. */
.hero-text::before {
  content: "";
  position: absolute;
  top: -72px;
  bottom: 24px;
  left: -100vw;
  right: -96px;
  z-index: -1;
  background: linear-gradient(
    to right,
    rgba(16, 15, 38, 0.94) calc(100% - 160px),
    rgba(16, 15, 38, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 72px,
    #000 calc(100% - 48px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 72px,
    #000 calc(100% - 48px),
    transparent 100%
  );
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.hero-intro {
  margin-top: 28px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: #cfcee8;
  max-width: 34em;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.hero-actions .text-link {
  font-size: 17px;
  font-weight: 500;
  text-underline-offset: 4px;
}
.stage-line {
  margin-top: 20px;
  font-size: 14px;
  color: #a9a8c8;
}
@media (max-width: 560px) {
  .hero {
    padding-top: 104px;
  }
  .hero-text {
    padding-bottom: 8px;
    flex-basis: 100%;
  }
}

/* Phone mock-up with made-up demo data. Always drawn in dark mode. */
.phone {
  flex: 0 0 auto;
  margin: 0 auto;
  width: min(300px, 100%);
  height: 600px;
  border: 10px solid #2c2c2e;
  border-bottom: 0;
  border-radius: 52px 52px 0 0;
  background: #000000;
  overflow: hidden;
  color: #ffffff;
  position: relative;
  box-shadow: 0 0 0 1px #3a3a3c;
}
.phone-island {
  width: 92px;
  height: 26px;
  border-radius: 13px;
  background: #000;
  box-shadow: 0 0 0 1px #1c1c1e;
  margin: 10px auto 0;
}
.phone-screen {
  padding: 14px 16px 0;
}
.phone-date {
  font-size: 12px;
  color: #8e8e93;
}
.phone-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.phone-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.phone-metric {
  background: #1c1c1e;
  border-radius: 16px;
  padding: 11px;
}
.phone-metric-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
}
.phone-metric-value {
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 22px;
  margin-top: 6px;
}
.phone-metric-value small,
.watch small {
  font-size: 12px;
  color: #8e8e93;
  font-weight: 700;
}
.phone-metric-delta {
  font-size: 10.5px;
  margin-top: 2px;
}
.phone-h {
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 8px;
}
.phone-list {
  background: #1c1c1e;
  border-radius: 16px;
  padding: 2px 0;
  list-style: none;
  margin: 0;
}
.phone-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
}
.phone-list li + li {
  background-image: linear-gradient(#38383a, #38383a);
  background-size: calc(100% - 50px) 1px;
  background-position: right top;
  background-repeat: no-repeat;
}
.tile-sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.phone-entry {
  flex: 1;
  min-width: 0;
}
.phone-entry b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.phone-entry span,
.phone-time {
  font-size: 11px;
  color: #8e8e93;
}
.phone-fab {
  position: absolute;
  right: 16px;
  bottom: 74px;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: #0a84ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(10, 132, 255, 0.45);
}
.phone-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  background: #121214;
  border-top: 1px solid #2c2c2e;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 8px;
  font-size: 10px;
  color: #8e8e93;
}
.phone-tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.phone-tabs .on {
  color: #0a84ff;
}
/* Fixed in-app (dark) hues for the mock-ups. */
.d-sleep {
  color: #7d7aff;
}
.d-hrv {
  color: #40c8e0;
}
.d-heart {
  color: #ff375f;
}
.d-act {
  color: #30d158;
}
.d-diet {
  color: #ff9f0a;
}
.d-ther {
  color: #66d4cf;
}
.d-sup {
  color: #ffd60a;
}
.d-muted {
  color: #8e8e93;
}
.bg-d-act {
  background: #30d1582e;
}
.bg-d-diet {
  background: #ff9f0a2e;
}
.bg-d-ther {
  background: #66d4cf2e;
}
.bg-d-sup {
  background: #ffd60a2e;
}

/* ---------- Homepage sections ---------- */

.section-h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.section-lead {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--t2);
  max-width: 36em;
}
.mw-14 {
  max-width: 14ch;
}
.mw-16 {
  max-width: 16ch;
}
.mw-18 {
  max-width: 18ch;
}
.mw-30 {
  max-width: 30em;
}
.mw-34 {
  max-width: 34em;
}

.how {
  padding-top: 112px;
  padding-bottom: 40px;
  scroll-margin-top: 16px;
}
.steps {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 40px;
}
.steps > li {
  flex: 1 1 300px;
  min-width: 0;
}
.step-num {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line2);
}
.badge-num {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--rounded);
  flex: 0 0 auto;
}
.steps h3 {
  margin-top: 22px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.steps p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--t2);
}
.card {
  background: var(--card);
  border-radius: 18px;
}
.cat-grid {
  margin-top: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
  list-style: none;
}
.cat-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--t2);
}
.tile {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.c-act {
  color: var(--act);
}
.c-sup {
  color: var(--sup);
}
.c-diet {
  color: var(--diet);
}
.c-ther {
  color: var(--ther);
}
.c-med {
  color: var(--med);
}
.c-sym {
  color: var(--sym);
}
.c-sleep {
  color: var(--sleep);
}
.c-hrv {
  color: var(--hrv);
}
.c-heart {
  color: var(--heart);
}
.c-ruled {
  color: var(--ruled);
}
.c-link {
  color: var(--link);
}
.bg-act {
  background: var(--act-s);
}
.bg-sup {
  background: var(--sup-s);
}
.bg-diet {
  background: var(--diet-s);
}
.bg-ther {
  background: var(--ther-s);
}
.bg-med {
  background: var(--med-s);
}
.bg-sym {
  background: var(--sym-s);
}
.bg-hrv {
  background: var(--hrv-s);
}

.rows {
  margin: 24px 0 0;
  padding: 4px 0;
}
.rows > div {
  display: flex;
  align-items: baseline;
  padding: 13px 18px;
  gap: 12px;
}
.rows > div + div {
  background-image: linear-gradient(var(--line), var(--line));
  background-size: calc(100% - 18px) 1px;
  background-position: right top;
  background-repeat: no-repeat;
}
.rows dt {
  flex: 1;
  font-size: 15px;
  color: var(--t2);
}
.rows dd.c-act {
  color: var(--act-t);
}
.rows dd.c-diet {
  color: var(--diet-t);
}
.tag.c-hrv {
  color: var(--hrv-t);
}
.rows dd {
  margin: 0;
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 17px;
}

.chart-card {
  margin-top: 24px;
  padding: 18px;
}
.chart-title {
  font-size: 13px;
  color: var(--t3);
}
.chart {
  width: 100%;
  height: auto;
  margin-top: 10px;
}
.chart .band {
  fill: var(--hrv);
  opacity: 0.12;
}
.chart .line {
  fill: none;
  stroke: var(--hrv);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart .dots {
  fill: var(--ther);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--t2);
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.swatch-dot {
  width: 9px;
  height: 9px;
  border-radius: 5px;
  background: var(--ther);
}
.swatch-band {
  width: 14px;
  height: 9px;
  border-radius: 2px;
  background: var(--hrv);
  opacity: 0.3;
}

.split {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 72px;
  align-items: center;
}
.split-text {
  flex: 1 1 380px;
  min-width: 0;
}
.split-text .section-lead {
  max-width: 30em;
}
.status-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  color: var(--t2);
}
.status-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.status-list strong {
  color: var(--ink);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  flex: 0 0 auto;
}
.dot-sup {
  background: var(--sup);
}
.dot-hrv {
  background: var(--hrv);
}
.dot-act {
  background: var(--act);
}
.dot-ruled {
  background: var(--ruled);
}
.after-list {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--t2);
  max-width: 32em;
}

.insight {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
}
.insight-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.insight-head .tile {
  width: 42px;
  height: 42px;
}
.insight-name {
  flex: 1;
  min-width: 0;
}
.insight-name b {
  display: block;
  font-size: 17px;
  font-weight: 600;
}
.insight-name span {
  font-size: 13px;
  color: var(--t3);
}
.tag {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}
.insight-result {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: baseline;
}
.big-num {
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: -0.02em;
  color: var(--act);
}
.big-unit {
  font-size: 19px;
  font-weight: 600;
  color: var(--t3);
}
.insight-result p {
  font-size: 16px;
  line-height: 1.45;
  color: var(--t2);
  max-width: 16em;
}
.bars {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bars li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.bars .bar-label {
  width: 96px;
  color: var(--t2);
  flex: 0 0 auto;
}
.bars .bar-track {
  flex: 1;
  height: 14px;
  background: var(--card2);
  border-radius: 7px;
  min-width: 40px;
}
.bars .bar-fill {
  height: 14px;
  border-radius: 7px;
}
.bar-78 {
  width: 78%;
  background: var(--ther);
}
.bar-69 {
  width: 69%;
  background: var(--bar2);
}
.bars .bar-value {
  width: 52px;
  text-align: right;
  font-weight: 600;
  font-family: var(--rounded);
  flex: 0 0 auto;
}
.stages {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  font-size: 12px;
  color: var(--t3);
}
.stages li::before {
  content: "";
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--track);
  margin-bottom: 8px;
}
.stages .done::before {
  background: var(--sup);
}
.stages .now {
  color: var(--hrv);
  font-weight: 600;
}
.stages .now::before {
  background: var(--hrv);
}

.band-card {
  background: var(--card);
}
.chat {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bubble-me {
  align-self: flex-end;
  max-width: 80%;
  background: var(--bubble);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 20px 20px 6px 20px;
  font-size: 16px;
  line-height: 1.4;
}
.bubble-them {
  align-self: flex-start;
  max-width: 85%;
  background: var(--card2);
  padding: 12px 16px;
  border-radius: 20px 20px 20px 6px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
}
.draft {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px 0;
}
.draft-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.draft-row + .draft-row {
  background-image: linear-gradient(var(--line), var(--line));
  background-size: calc(100% - 62px) 1px;
  background-position: right top;
  background-repeat: no-repeat;
}
.draft-row .tile {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.draft-entry {
  flex: 1;
  min-width: 0;
}
.draft-entry b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.draft-entry span,
.draft-time {
  font-size: 13px;
  color: var(--t3);
}
.draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
}
.draft-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--card2);
  font-weight: 600;
  font-size: 15px;
  flex: 0 0 auto;
}
.draft-actions .primary {
  flex: 1 0 auto;
  background: var(--btn);
  color: #ffffff;
}
@media (max-width: 420px) {
  .draft-actions span {
    padding: 0 14px;
  }
}
.ticks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
}
.ticks li {
  display: flex;
  gap: 12px;
}
.ticks .icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--act);
}
.split-reverse {
  flex-wrap: wrap-reverse;
}

.privacy-section {
  padding-top: 112px;
  padding-bottom: 96px;
  scroll-margin-top: 16px;
}
.privacy-grid {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: center;
}
.diagram {
  flex: 1 1 460px;
  min-width: 0;
  background: var(--card);
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
}
.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 130px;
  text-align: center;
}
.diagram-node b {
  font-size: 15px;
}
.diagram-node span {
  font-size: 13px;
  color: var(--t3);
  margin-top: -6px;
}
.diagram-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.diagram-icon.server {
  background: linear-gradient(160deg, #22204a, #06060e);
  box-shadow: 0 0 0 1px var(--line);
  color: #ffffff;
}
.diagram-icon.agent {
  background: transparent;
  border: 1.5px dashed var(--t3);
}
.diagram-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--t3);
  width: 90px;
}
.diagram-break {
  flex-basis: 100%;
  height: 0;
}
.diagram-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--card2);
  font-size: 14px;
  color: var(--t2);
}
.diagram-note .icon {
  color: var(--t3);
}
@media (max-width: 560px) {
  /* Stacked: the arrows turn into short vertical links. */
  .diagram-link {
    width: 100%;
  }
  .diagram-link .link-arrow {
    display: none;
  }
  .diagram-link::before {
    content: "";
    height: 22px;
    border-left: 1.6px solid currentColor;
  }
  .diagram-link.dashed::before {
    border-left-style: dashed;
  }
}
.diagram-node.server-node {
  width: 140px;
}
.diagram-node.end-node {
  width: 120px;
}
.promises {
  flex: 1 1 380px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.promises li {
  display: flex;
  gap: 14px;
}
.promises .icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--act);
}
.promises h3 {
  font-size: 17px;
  font-weight: 600;
}
.promises p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--t2);
  margin-top: 4px;
}

.hosting {
  padding-top: 96px;
  padding-bottom: 96px;
}
.hosting .section-lead {
  max-width: 34em;
}
.options {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.option {
  flex: 1 1 320px;
  min-width: 0;
  background: var(--card2);
  border-radius: 20px;
  padding: 24px;
}
.option h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 19px;
}
.option p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--t2);
}
.tag-act {
  font-size: 13px;
  font-weight: 600;
  color: var(--act-t);
  background: var(--act-s);
  padding: 3px 9px;
  border-radius: 999px;
}
.chips {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  font-size: 15px;
  color: var(--body);
}
.more-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 17px;
  font-weight: 600;
}

.devices {
  padding-top: 96px;
  padding-bottom: 96px;
}
.devices-card {
  background: var(--card);
  border-radius: 24px;
  padding: 40px clamp(24px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  align-items: center;
}
.watch {
  flex: 0 0 auto;
  margin: 0 auto;
  width: 150px;
  height: 182px;
  border-radius: 44px;
  background: #2c2c2e;
  padding: 10px;
}
.watch-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: #000;
  color: #fff;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.watch-ex {
  font-size: 11px;
  color: #30d158;
  font-weight: 600;
}
.watch-reps {
  font-family: var(--rounded);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.watch-kg {
  font-family: var(--rounded);
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}
.watch .watch-kg small {
  font-size: 11px;
}
.watch-set {
  font-size: 11px;
  color: #8e8e93;
}
.devices-text {
  flex: 1 1 380px;
  min-width: 0;
}
.devices-text h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.devices-text p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--t2);
  max-width: 34em;
}

.closing {
  padding-top: 24px;
  padding-bottom: 112px;
  text-align: center;
}
.closing img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 0 auto;
}
.closing h2 {
  margin: 28px auto 0;
  max-width: 16ch;
}
.closing .section-lead {
  margin: 16px auto 0;
  max-width: 30em;
}
.closing-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 28px;
}
.closing-actions .text-link {
  font-size: 17px;
  font-weight: 600;
}
.release-line {
  margin-top: 18px;
  font-size: 14px;
  color: var(--t3);
}

/* ---------- Footers ---------- */

.footer {
  border-top: 1px solid var(--line2);
  font-size: 14px;
  color: var(--t3);
}
.footer a {
  color: var(--t2);
  text-decoration: none;
}
.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-big-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
}
.footer-about {
  flex: 1 1 260px;
  min-width: 0;
}
.footer-about p {
  margin-top: 14px;
  line-height: 1.5;
  max-width: 26em;
}
.footer-about .footer-brand {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
}
.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.footer-col {
  min-width: 140px;
}
.footer-col h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-legal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
.footer-legal p {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}
.footer-small-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.footer-note {
  margin-right: auto;
  line-height: 1.5;
}
.footer-small-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

/* ---------- Inner pages ---------- */

.page-head {
  padding-top: 72px;
}
.page-h1 {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.changelog-page .page-h1 {
  font-size: clamp(38px, 5vw, 60px);
}
.page-lead {
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--t2);
  max-width: 34em;
}
.page-date {
  margin-top: 12px;
  font-size: 15px;
  color: var(--t3);
}
.narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 112px;
}
.medium {
  max-width: 1000px;
  margin: 0 auto;
  padding: 72px 24px 112px;
}
.prose h2 {
  margin-top: 44px;
  font-size: 26px;
  letter-spacing: -0.015em;
}
.prose > p,
.prose > ul:not(.services) {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
}
.prose > ul {
  padding-left: 22px;
}
.prose > ul li + li {
  margin-top: 10px;
}

.short-card {
  margin-top: 36px;
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
}
.short-card h2 {
  font-size: 19px;
  margin: 0;
  letter-spacing: 0;
}
.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  display: flex;
  gap: 12px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
}
.check-list .icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--act);
}
.prose .short-card + h2 {
  margin-top: 52px;
}
.services {
  margin: 20px 0 0;
  padding: 4px 0 !important;
  list-style: none;
  background: var(--card);
  border-radius: 20px;
}
.services li {
  padding: 16px 22px;
  margin: 0 !important;
}
.services li + li {
  background-image: linear-gradient(var(--line), var(--line));
  background-size: calc(100% - 22px) 1px;
  background-position: right top;
  background-repeat: no-repeat;
}
.services h3 {
  font-size: 17px;
  font-weight: 600;
}
.services p {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--t2);
}

.release-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 112px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.release {
  background: var(--card);
  border-radius: 24px;
  padding: 32px clamp(20px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
}
.release-meta {
  flex: 0 0 180px;
}
.release-meta h2 {
  font-family: var(--rounded);
  font-size: 28px;
  letter-spacing: -0.01em;
}
.release-meta p {
  font-size: 14px;
  color: var(--t3);
  margin-top: 4px;
}
.release-meta .tag-act {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
}
.release-body {
  flex: 1 1 420px;
  min-width: 0;
}
.release-body ul {
  margin: 0;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
}
.release-body a {
  display: inline-block;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
}
.older {
  padding: 16px 4px 0;
  font-size: 15px;
  color: var(--t3);
}

.help-steps {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.help-step {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
}
.help-step.row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: center;
}
.help-step-text {
  flex: 1 1 360px;
  min-width: 0;
}
.help-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.help-step-head h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.help-step-text > p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--t2);
}
.help-chat {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.help-chat .bubble-me,
.help-chat .bubble-them {
  font-size: 15px;
  padding: 11px 15px;
}
.help-chat .bubble-me {
  max-width: 90%;
  border-radius: 18px 18px 6px 18px;
}
.help-chat .bubble-them {
  max-width: 95%;
  border-radius: 18px 18px 18px 6px;
}
.fixes {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
}
.fixes li {
  background: var(--card2);
  border-radius: 16px;
  padding: 18px;
}
.fixes h3 {
  font-size: 16px;
  font-weight: 600;
}
.fixes p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--t2);
}
.agent-box {
  margin-top: 16px;
  border: 1px solid var(--line2);
  border-radius: 24px;
  padding: 24px 28px;
}
.agent-box h2 {
  font-size: 19px;
}
.agent-box ul {
  margin: 12px 0 0;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--t2);
}
.help-footnote {
  margin-top: 32px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--t2);
}
.report-card {
  margin-top: 36px;
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
}
.report-card > div {
  flex: 1 1 320px;
  min-width: 0;
}
.report-card h2 {
  font-size: 19px;
  margin: 0;
  letter-spacing: 0;
}
.report-card p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--t2);
}
.prose .report-card + h2 {
  margin-top: 48px;
}

/* ---------- Docs ---------- */

.docs-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
}
.docs-nav {
  flex: 1 1 220px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 15px;
}
.docs-nav h2 {
  font-size: 15px;
  font-weight: 600;
  padding: 0 12px 8px;
}
.docs-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--t2);
  text-decoration: none;
  border-radius: 10px;
}
.docs-nav a:hover {
  color: var(--ink);
  background: var(--card2);
}
.docs-nav a[aria-current="page"] {
  background: var(--sel);
  color: var(--link);
  font-weight: 600;
}
/* On a phone the sidebar becomes a collapsed "All docs" menu at the top. */
.docs-menu {
  display: none;
}
@media (max-width: 760px) {
  .docs-nav {
    display: none;
  }
  .docs-menu {
    display: block;
    flex-basis: 100%;
    font-size: 15px;
  }
  .docs-layout {
    padding-top: 20px;
    gap: 24px;
  }
}
.docs-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--card2);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.docs-menu summary::-webkit-details-marker {
  display: none;
}
.docs-menu summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--t3);
  border-bottom: 2px solid var(--t3);
  transform: translateY(-2px) rotate(45deg);
}
.docs-menu details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.docs-menu summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.docs-menu-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 0 4px;
}
.docs-menu h2 {
  font-size: 15px;
  font-weight: 600;
  padding: 0 12px 6px;
}
.docs-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.docs-menu a {
  display: block;
  padding: 8px 12px;
  color: var(--t2);
  text-decoration: none;
  border-radius: 10px;
}
.docs-menu a[aria-current="page"] {
  background: var(--sel);
  color: var(--link);
  font-weight: 600;
}
.doc {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 720px;
}
.doc-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--t3);
}
.doc-top > span {
  margin-right: auto;
}
.copy-md {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--card2);
  color: var(--t2);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.copy-md:hover {
  color: var(--ink);
}
.doc h1 {
  margin-top: 8px;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.doc-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
}
.doc-body > .lead {
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--t2);
}
.doc-body h2 {
  margin-top: 44px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  scroll-margin-top: 16px;
}
.doc-body h3 {
  margin-top: 32px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  scroll-margin-top: 16px;
}
.doc-body h4,
.doc-body h5,
.doc-body h6 {
  margin: 24px 0 0;
  font-size: 17px;
  color: var(--ink);
}
.doc-body p,
.doc-body ul,
.doc-body ol,
.doc-body pre,
.doc-body blockquote,
.doc-body .table-wrap {
  margin: 14px 0 0;
}
.doc-body ul,
.doc-body ol {
  padding-left: 24px;
}
.doc-body li + li,
.doc-body li > ul,
.doc-body li > ol {
  margin-top: 8px;
}
.doc-body li > p:first-child {
  margin-top: 0;
}
.doc-body strong {
  color: var(--ink);
}
.doc-body code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--card2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.doc-body pre {
  background: var(--card2);
  border-radius: 14px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}
.doc-body pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  overflow-wrap: normal;
  white-space: pre;
}
.doc-body blockquote {
  background: var(--card2);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--t2);
}
.doc-body blockquote > :first-child {
  margin-top: 0;
}
.doc-body .table-wrap {
  overflow-x: auto;
}
.doc-body table {
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
  min-width: 100%;
}
.doc-body th,
.doc-body td {
  text-align: left;
  vertical-align: top;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.doc-body th {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--line2);
}
.doc-body .align-center {
  text-align: center;
}
.doc-body .align-right {
  text-align: right;
}
.doc-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.doc-foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}
.doc-foot p {
  color: var(--t3);
}
.doc-foot .next {
  font-weight: 600;
  text-decoration: none;
}

/* ---------- 404 ---------- */

.not-found {
  padding-top: 96px;
  padding-bottom: 112px;
}
.not-found p {
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--t2);
}
