/* The app's design tokens, from apps/web/src/styles.css. */
:root {
  color-scheme: light;
  --accent-light: #dbf27a;
  --accent-dark: #d2ec67;
  --bg: #e3e8e4;
  --card: #f7f9f7;
  --raised: #ffffff;
  --ink: #131513;
  --muted: #6a716b;
  --line: #d3dad5;
  --lime: var(--accent-light);
  --lime-ink: #151a04;
  --rail: #131513;
  --rail-ink: #f2f4f2;
  --e-bg: #131513;
  --e-fg: #ffffff;
  --a-bg: var(--raised);
  --a-fg: var(--ink);
  --b-bg: #ebefec;
  --b-fg: #131513;
  --off: #d9dfdb;
  --hatch: repeating-linear-gradient(135deg, color-mix(in srgb, var(--off) 50%, transparent) 0 2px, transparent 2px 11px);
  --urgent: #c2410c;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: 'Manrope Variable', 'Manrope', 'Avenir Next', 'Helvetica Neue', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0e100e;
    --card: #171a17;
    --raised: #1f231f;
    --ink: #eef1ee;
    --muted: #8d958e;
    --line: #2a2f2a;
    --lime: var(--accent-dark);
    --rail: #050605;
    --rail-ink: #eef1ee;
    --e-bg: #eef1ee;
    --e-fg: #0e100e;
    --b-bg: #262b26;
    --b-fg: #eef1ee;
    --off: #1c201c;
    --hatch: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.085) 0 2px, transparent 2px 11px);
    --urgent: #fb923c;
  }
}
/*
 * Home Base public site: the app's own design system. The tokens (colours in light and dark,
 * radii, the font stack) are read from apps/web/src/styles.css at build time and come first;
 * the components below copy the app's (.shell.solo, .top/.headline, .panel, .btn, .seg,
 * .callout-line, .notice-text, .fineprint), with the same sizes in rem (1rem = 17px, as in the app).
 */

@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/manrope-latin.a30ddcd349.woff2) format('woff2-variations'), url(/assets/manrope-latin.a30ddcd349.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;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  /* 1rem = 17px, the iOS default body size, as in the app. */
  font-size: 106.25%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}
/* iPhone and iPad: text follows the system text size, as in the app. */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html {
    font: -apple-system-body;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 0.8529rem/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
img,
svg {
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 8px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  left: 12px;
}
.icon {
  flex: none;
}

/* ---- The app's one-column screen (.shell.solo) ---- */
.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(20px, 6vh, 56px) clamp(16px, 2.5vw, 28px) 40px;
}

/* ---- Header: the wordmark, the tagline, the language switch ---- */
.top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: start;
  margin-bottom: 18px;
}
.headline {
  font-size: clamp(2.2353rem, 4.6vw, 3.2941rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
/* The large wordmark (homepage) takes the whole width: the language switch goes above it. */
.top:not(.compact) {
  grid-template-columns: minmax(0, 1fr);
}
.top:not(.compact) .lang {
  order: -1;
  justify-self: end;
}
.top.compact {
  align-items: center;
}
.top.compact .headline {
  font-size: 1.5294rem;
  border-radius: 8px;
}
.names {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.top.compact .names {
  gap: 7px;
}
.bolt-pill {
  display: inline-grid;
  place-items: center;
  width: 1.2em;
  height: 0.78em;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
}
.bolt-pill .icon {
  width: 0.5em;
  height: 0.5em;
  fill: currentColor;
}
.today-line {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
}

/* The app's segmented control, as links. */
.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.seg > * {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.7353rem;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.seg .on {
  background: var(--ink);
  color: var(--bg);
}
.seg a:hover {
  background: var(--b-bg);
}

/* ---- Cards ---- */
.stack {
  display: grid;
  gap: 18px;
}
.stack > * {
  animation: rise 0.5s var(--ease) both;
}
/* Movement only: content stays visible even where animations are paused. */
@keyframes rise {
  from {
    transform: translateY(10px);
  }
}
.panel {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 18px 20px 20px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.panel-head h1,
.panel-head h2 {
  font-size: 1.1765rem;
}
.panel-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  display: grid;
  place-items: center;
}
/* The app's icon (apps/web/public/icon.svg), the size of a card's icon. */
.app-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
}
.lead {
  text-wrap: pretty;
  font-size: 0.9412rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin-bottom: 14px;
}
.callout-line {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--raised);
  font-weight: 700;
  font-size: 0.8235rem;
  margin-bottom: 12px;
}
.fineprint {
  font-size: 0.7059rem;
  color: var(--muted);
  margin-top: 12px;
}
.sub-title {
  font-size: 1.0588rem;
  margin: 18px 0 8px;
}

/* ---- Buttons ---- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.7941rem;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.18s, color 0.18s;
}
.btn:active {
  transform: scale(0.97);
}
.btn.pri {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.home-card .callout-line {
  margin-bottom: 0;
}
.home-card .actions {
  margin-top: 14px;
}

/* ---- The short privacy notice (the app's sheet) ---- */
.notice-text {
  display: grid;
  gap: 10px;
  font-size: 0.8235rem;
  line-height: 1.5;
}

/* ---- Text from docs/site/ in a card ---- */
.prose > :first-child:not(.panel-head) {
  margin-top: 0;
}
.prose h2 {
  font-size: 1.0588rem;
  margin: 22px 0 8px;
  scroll-margin-top: 16px;
}
.prose .panel-head + h2,
.prose .panel-head + .updated + h2 {
  margin-top: 4px;
}
.prose h3 {
  font-size: 0.9412rem;
  margin: 18px 0 6px;
  scroll-margin-top: 16px;
}
.prose h4 {
  font-size: 0.8824rem;
  margin: 14px 0 4px;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 10px;
  font-size: 0.8235rem;
  line-height: 1.5;
}
.prose ul,
.prose ol {
  padding-left: 1.2em;
}
.prose ul {
  list-style: disc;
}
.prose li + li {
  margin-top: 6px;
}
.prose li > ul,
.prose li > ol {
  margin: 6px 0 0;
}
.prose li::marker {
  color: var(--muted);
}
.prose code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--raised);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.prose .updated {
  color: var(--muted);
  font-size: 0.7353rem;
  font-weight: 600;
}
.prose blockquote {
  margin: 14px 0;
  padding: 12px 14px 2px;
  border-radius: var(--r-sm);
  background: var(--raised);
}
.table-wrap {
  margin: 12px 0 14px;
  overflow-x: auto;
  border-radius: var(--r-sm);
  background: var(--raised);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7647rem;
  line-height: 1.45;
}
th {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.6765rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}
td {
  padding: 9px 12px;
  vertical-align: top;
}
tr + tr td {
  border-top: 1px solid var(--line);
}
.toc {
  margin: 12px 0 16px;
}
.toc details {
  border-radius: var(--r-sm);
  background: var(--raised);
}
.toc summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.6765rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  list-style: none;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary::after {
  content: '+';
  margin-left: auto;
  color: var(--ink);
  font-size: 1.1765rem;
  font-weight: 600;
  line-height: 1;
}
.toc details[open] summary::after {
  content: '−';
}
.toc ol {
  margin: 0;
  padding: 0 12px 12px 30px;
  font-size: 0.7941rem;
}
.toc ol ol {
  padding: 4px 0 0 16px;
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 22px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.7353rem;
  font-weight: 600;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-bottom: 6px;
}
.site-footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.site-footer ul a:hover {
  text-decoration: underline;
}
.site-footer p + p {
  margin-top: 4px;
}

/* ---- Phones (the app's breakpoint) ---- */
@media (max-width: 760px) {
  body {
    font-size: 0.8235rem;
  }
  .shell {
    padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
  }
  .top {
    margin-bottom: 14px;
  }
  .headline {
    font-size: 2.2353rem;
  }
}

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

@media print {
  html,
  body {
    background: #fff;
    color: #000;
  }
  .skip,
  .lang,
  .toc,
  .site-footer nav,
  .actions {
    display: none;
  }
  .panel {
    padding: 0;
    background: none;
  }
}
