/* Watchtower marketing site.
 *
 * The palette is the app's own (app/lib/theme/watchtower_theme.dart), so the
 * page and the product read as one thing. Tokens are declared for dark first
 * because the app's default theme is dark, then re-pointed for light.
 *
 * No web fonts, no CDN, no framework: the site is served from the project's own
 * Pages artifact, and a privacy-forward app should not have a third party in
 * the critical path of its own homepage.
 */

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

:root {
  color-scheme: dark light;

  --bg: #0b1020;
  --bg-deep: #070b16;
  --surface: #11182a;
  --surface-raised: #19243a;
  --surface-highest: #202d46;
  --border: #2a3852;
  --border-soft: #22304a;

  --accent: #65a9ff;
  --accent-strong: #2f80ed;
  --healthy: #43d6a4;
  --warning: #ffc857;
  --critical: #ff6b7a;

  --ink: #f4f7fc;
  --ink-muted: #aab7cb;
  --ink-faint: #7c8aa3;

  --accent-ink: #0b1020;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  --glow: 0 0 0 1px rgb(101 169 255 / 0.28), 0 18px 50px -20px rgb(47 128 237 / 0.55);

  --radius: 14px;
  --radius-lg: 20px;
  --container: 72rem;
  --header-h: 4rem;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f5f7fb;
  --bg-deep: #eef2f9;
  --surface: #ffffff;
  --surface-raised: #f2f6fc;
  --surface-highest: #e6edf7;
  --border: #d9e1ed;
  --border-soft: #e4ebf4;

  --accent: #2f80ed;
  --accent-strong: #1c66cc;
  --healthy: #0f9d76;
  --warning: #b3730a;
  --critical: #d33a4c;

  --ink: #162033;
  --ink-muted: #5d6a7e;
  --ink-faint: #7b8798;

  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgb(22 32 51 / 0.06), 0 12px 28px -14px rgb(22 32 51 / 0.18);
  --glow: 0 0 0 1px rgb(47 128 237 / 0.22), 0 18px 44px -22px rgb(47 128 237 / 0.4);
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

::selection {
  background: color-mix(in srgb, var(--accent) 32%, transparent);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0.5rem;
}

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

/* ---------------------------------------------------------------- layout -- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section + .section {
  border-top: 1px solid var(--border-soft);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__eyebrow {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section__title {
  font-size: clamp(1.65rem, 3.6vw, 2.3rem);
}

.section__lede {
  margin-top: 0.85rem;
  color: var(--ink-muted);
  font-size: 1.06rem;
}

/* ---------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header[data-stuck="true"] {
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  flex: none;
}

.brand__mark svg {
  width: 1.25rem;
  height: 1.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.site-nav a {
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  background: var(--surface-raised);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

/* On a phone the section links cannot fit beside the brand, the toggle and the
 * CTA without overflowing, and they are redundant on a single scrolling page.
 * Drop them rather than let the header push the controls off-screen. */
@media (max-width: 56rem) {
  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }
}

.icon-button {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.icon-button:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.icon-button svg {
  width: 1.1rem;
  height: 1.1rem;
}

.icon-button .icon-sun {
  display: none;
}

:root[data-theme="light"] .icon-button .icon-sun {
  display: block;
}

:root[data-theme="light"] .icon-button .icon-moon {
  display: none;
}

/* The toggle only works once site.js has resolved a theme, so hide it in the
 * no-JS case rather than shipping a button that does nothing. */
.theme-toggle {
  display: none;
}

.js .theme-toggle {
  display: grid;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font: 600 0.95rem/1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}

:root[data-theme="light"] .button--primary {
  background: var(--accent-strong);
}

.button--primary:hover {
  box-shadow: var(--glow);
}

.button--ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--accent);
  background: var(--surface-raised);
}

.button svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem);
}

/* A quiet grid + glow, echoing the app's dense, instrument-panel feel. */
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 130%;
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 34%, #000 20%, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -18rem;
  left: 50%;
  width: 60rem;
  height: 36rem;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 20%, transparent) 0%,
    transparent 62%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

@media (max-width: 60rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero__title {
  margin-top: 1.25rem;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  letter-spacing: -0.035em;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--healthy));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin-top: 1.1rem;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}

.hero__actions {
  margin-top: 1.9rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__meta svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--healthy);
  flex: none;
}

/* The caveat under the hero actions. Deliberately quieter than the lede: it is
 * a limit, not a pitch, and it exists so nobody installs the browser build
 * expecting background monitoring it cannot do. */
.hero__note {
  max-width: 34rem;
  margin-top: 1.4rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--border);
  color: var(--ink-faint);
  font-size: 0.85rem;
  line-height: 1.6;
}

.hero__note strong {
  color: var(--ink-muted);
  font-weight: 600;
}

/* Announcement pill above the title. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pill:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.pill__tag {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------ phone mock -- */

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  perspective: 1400px;
}

.phone {
  position: relative;
  width: clamp(200px, 48%, 290px);
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--bg-deep);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.phone--back {
  transform: rotate(-5deg) translateY(1.5rem);
  opacity: 0.92;
}

.phone--front {
  transform: rotate(3.5deg) translateY(-0.75rem);
  z-index: 1;
}

.phones:hover .phone--back {
  transform: rotate(-2.5deg) translateY(1rem);
}

.phones:hover .phone--front {
  transform: rotate(1.5deg) translateY(-1.25rem);
}

.phone__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}

.phone__bar i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--border);
}

.phone__bar i:first-child {
  background: var(--critical);
}

.phone__bar i:nth-child(2) {
  background: var(--warning);
}

.phone__bar i:nth-child(3) {
  background: var(--healthy);
}

.phone__url {
  margin-left: 0.4rem;
  color: var(--ink-faint);
  font: 500 0.6rem/1 var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone img {
  width: 100%;
  height: auto;
}

/* ----------------------------------------------------------------- cards -- */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: var(--surface-raised);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.9rem;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  flex: none;
}

.card__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.card__title {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.card__body {
  margin-top: 0.45rem;
  color: var(--ink-muted);
  font-size: 0.925rem;
}

.card__body code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--surface-highest);
  color: var(--ink);
}

.card__note {
  margin-top: 0.7rem;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

/* The one capability most monitors do not have. */
.card--feature {
  border-color: color-mix(in srgb, var(--healthy) 40%, var(--border));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--healthy) 8%, var(--surface)),
    var(--surface) 60%
  );
}

.card--feature .card__icon {
  background: color-mix(in srgb, var(--healthy) 15%, transparent);
  color: var(--healthy);
}

/* ---------------------------------------------------------- split feature -- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 62rem) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.checklist {
  display: grid;
  gap: 0.85rem;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.checklist svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.22rem;
  color: var(--healthy);
}

.checklist strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* -------------------------------------------------------------- terminal -- */

/* A decorative, honest sample of what a report actually contains. */
.terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-deep);
  box-shadow: var(--shadow);
  font-family: var(--mono);
}

/* The report sample is a fixed-width table, so on a phone it scrolls sideways.
 * This fade is the affordance that says so; without it the text just looks
 * truncated mid-word. */
.terminal::after {
  content: "";
  position: absolute;
  top: 3.05rem;
  right: 0;
  bottom: 0;
  width: 3rem;
  background: linear-gradient(90deg, transparent, var(--bg-deep) 78%);
  pointer-events: none;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
}

.terminal__bar i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--border);
}

.terminal__bar i:first-child {
  background: var(--critical);
}

.terminal__bar i:nth-child(2) {
  background: var(--warning);
}

.terminal__bar i:nth-child(3) {
  background: var(--healthy);
}

.terminal__body {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  color: var(--ink-muted);
  font-size: 0.8rem;
  line-height: 1.8;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (max-width: 40rem) {
  .terminal__body {
    font-size: 0.68rem;
  }
}

.terminal__body .k {
  color: var(--ink-faint);
}

.terminal__body .ok {
  color: var(--healthy);
}

.terminal__body .hi {
  color: var(--accent);
}

.terminal__body .warn {
  color: var(--warning);
}

/* ----------------------------------------------------------- screenshots -- */

/* Six screenshots: a 3x2 block on a wide screen, which is the only count that
 * fills evenly — a 4+2 split reads as a mistake. 21rem is the floor that keeps
 * it at three columns inside the 72rem container, and still collapses to two
 * and then one on narrower screens. */
.shots {
  display: grid;
  gap: 1.75rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
}

.shot {
  margin: 0;
}

.shot__frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-deep);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.shot:hover .shot__frame {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

.shot__frame img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  margin-top: 0.7rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-align: center;
}

.shot figcaption b {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------ stats -- */

.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.stat__value {
  color: var(--accent);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat__label {
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* -------------------------------------------------------------- channels -- */

.channels {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.channel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.channel__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.channel__name {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.channel__state {
  margin-left: auto;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.channel__state[data-state="live"] {
  background: color-mix(in srgb, var(--healthy) 16%, transparent);
  color: var(--healthy);
}

.channel__state[data-state="soon"] {
  background: color-mix(in srgb, var(--warning) 18%, transparent);
  color: var(--warning);
}

.channel p {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.channel__meta {
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--ink-faint);
  font-size: 0.8rem;
}

/* ------------------------------------------------------------------- faq -- */

.faq {
  max-width: 52rem;
  margin-inline: auto;
  display: grid;
  gap: 0.6rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq details[open] {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  margin-left: auto;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg) translate(-0.1rem, -0.1rem);
  transition: transform 0.2s ease;
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-0.2rem, -0.2rem);
}

.faq__body {
  padding: 0 1.15rem 1.15rem;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.faq__body p + p {
  margin-top: 0.7rem;
}

.faq__body a {
  word-break: break-word;
}

/* ------------------------------------------------------------------ cta --- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 12%, var(--surface)),
    var(--surface) 55%
  );
  text-align: center;
}

.cta__title {
  font-size: clamp(1.4rem, 3.4vw, 1.95rem);
}

.cta__lede {
  max-width: 38rem;
  margin: 0.8rem auto 0;
  color: var(--ink-muted);
}

.cta .button-row {
  justify-content: center;
  margin-top: 1.6rem;
}

/* ---------------------------------------------------------------- footer -- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  color: var(--ink-faint);
  font-size: 0.88rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
}

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

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

.site-footer__note {
  max-width: 34rem;
  margin-top: 0.9rem;
  font-size: 0.82rem;
}

/* ------------------------------------------------------------------ prose -- */

/* Shared by the privacy policy page and 404. */
.prose {
  max-width: 46rem;
  margin-inline: auto;
}

.prose h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
}

.prose h2 {
  margin-top: 2.75rem;
  padding-top: 0.5rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.1rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-top: 0.9rem;
  color: var(--ink-muted);
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.prose a {
  word-break: break-word;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--warning);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: color-mix(in srgb, var(--warning) 8%, var(--surface));
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.prose blockquote p + p {
  margin-top: 0.6rem;
}

.prose blockquote strong {
  color: var(--warning);
}

.prose code {
  padding: 0.12em 0.38em;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--ink);
}

.prose table {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.prose td {
  color: var(--ink-muted);
}

.prose hr {
  height: 1px;
  margin: 2.5rem 0 0;
  border: 0;
  background: var(--border);
}

.prose__meta {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.prose__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.prose__back:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------ reveal fx --- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
