/*
 * The whole site's styles. Colours are tokens on :root, redefined for dark mode; the contrast
 * test (test/unit/contrast.test.mjs) checks every text and background pair named there.
 */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-tint: #edf2ff;
  --surface: #ffffff;
  --text: #121826;
  --muted: #4a5466;
  --border: #dde2ea;
  --control-border: #7b8496;
  --accent: #2252cc;
  --accent-hover: #1b44ad;
  --accent-deep: #1a3c99;
  --on-accent: #ffffff;
  --accent-soft: #e8eeff;
  --ok: #0d6e35;
  --ok-soft: #e3f4e9;
  --soon: #7a4f00;
  --soon-soft: #fdf1d8;
  --draft: #7a4f00;
  --draft-soft: #fdf1d8;
  --code-bg: #eef1f6;
  --live: #d92d2d;
  --stop: #c42424;
  --on-stop: #ffffff;
  --focus: #2252cc;
  --window-chrome: #f1f4f9;
  --inverse-bg: #0f1730;
  --inverse-text: #eef2fb;
  --inverse-muted: #b3bdd3;
  --inverse-accent: #a9bfff;
  --inverse-border: #2a3658;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 12px 32px rgb(16 24 40 / 10%);
  --shadow-lg: 0 2px 6px rgb(16 24 40 / 6%), 0 30px 60px -12px rgb(30 50 110 / 25%);
  --radius: 14px;
  --font: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display:
    'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: 'Cascadia Mono', Consolas, ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1117;
    --bg-alt: #131820;
    --bg-tint: #121a30;
    --surface: #181d27;
    --text: #e8ebf1;
    --muted: #a6afbe;
    --border: #2b3240;
    --control-border: #6b7487;
    --accent: #8fabff;
    --accent-hover: #b3c6ff;
    --accent-deep: #b3c6ff;
    --on-accent: #0a1022;
    --accent-soft: #1b2442;
    --ok: #6fdb98;
    --ok-soft: #133021;
    --soon: #f2c46d;
    --soon-soft: #2e2511;
    --draft: #f2c46d;
    --draft-soft: #2e2511;
    --code-bg: #0b0e14;
    --live: #ff6b6b;
    --stop: #ff8a8a;
    --on-stop: #1e0505;
    --focus: #8fabff;
    --window-chrome: #11151d;
    --inverse-bg: #182037;
    --inverse-text: #e8ebf1;
    --inverse-muted: #aeb8cc;
    --inverse-accent: #a9bfff;
    --inverse-border: #2d3a5c;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 35%);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 40%), 0 30px 60px -12px rgb(0 0 0 / 60%);
  }
}

/* Base */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.2rem;
}

p,
ul,
ol,
dl,
pre,
table,
figure {
  margin: 0 0 1rem;
}

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

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

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

main:focus {
  outline: none;
}

[id] {
  scroll-margin-top: 5.5rem;
}

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

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--code-bg);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

pre {
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.55;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  white-space: pre;
}

pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--on-accent);
}

.container {
  width: min(100% - 2rem, 75rem);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2rem, 46rem);
}

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

.center {
  text-align: center;
}

/* Header: name on the left, links in the middle, Download on the right. Sticky. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'brand nav cta';
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-block: 0.7rem;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  flex: none;
}

.brand-mark-tile {
  fill: var(--accent);
}

.brand-mark-bubble {
  fill: var(--on-accent);
}

.brand-mark-wave {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.site-nav {
  grid-area: nav;
  justify-self: center;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 550;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--accent-soft);
}

.header-cta {
  grid-area: cta;
}

/* Phones and small tablets: name and Download on one line, the links under them. */
@media (max-width: 52rem) {
  /* Two rows would take too much of a phone's screen to keep in view. */
  .site-header {
    position: static;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'brand cta'
      'nav nav';
  }

  .site-nav {
    justify-self: stretch;
    margin-inline: -0.6rem;
  }

  .site-nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.97rem;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: 3rem 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin-bottom: 2rem;
}

.footer-brand {
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.footer-heading {
  font-size: 0.95rem;
  font-family: var(--font);
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}

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

.footer-nav li {
  margin-bottom: 0.2rem;
}

.footer-nav a {
  display: inline-block;
  padding-block: 0.2rem;
  color: var(--text);
  text-decoration: none;
}

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

.footer-nav a[aria-current='page'] {
  font-weight: 650;
}

.footer-note {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}

/* Buttons */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.3rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
}

.button-small {
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.97rem;
}

.button-large {
  min-height: 3.25rem;
  padding: 0.8rem 1.6rem;
  font-size: 1.05rem;
}

.button-icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgb(16 24 40 / 12%);
}

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

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--control-border);
}

.button-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--bg-alt);
}

/* On the coloured call-to-action band. */
.button-inverse {
  background: var(--on-accent);
  color: var(--accent-deep);
}

.button-inverse:hover {
  color: var(--accent-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--on-accent) 35%, transparent);
}

.button-ghost {
  color: var(--on-accent);
  border-color: var(--on-accent);
}

.button-ghost:hover {
  color: var(--on-accent);
  background: color-mix(in srgb, var(--on-accent) 12%, transparent);
}

.fine-print {
  color: var(--muted);
  font-size: 0.925rem;
}

/* Sections */

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

.section-tight {
  padding-block: 1.5rem 3rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.section-header .section-lead {
  margin-inline: auto;
}

.section-lead {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 44rem;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  color: var(--muted);
  max-width: 40rem;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-intro {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 1.5rem;
}

/* Home: hero */

.hero {
  padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(3rem, 2rem + 4vw, 5rem);
  background:
    radial-gradient(60rem 30rem at 85% 10%, var(--bg-tint), transparent 70%),
    linear-gradient(180deg, var(--bg-tint), var(--bg) 70%);
}

/* The coming-soon site's pages are short: the main block grows so the footer ends the window,
   and the coming-soon message sits in the middle of it. */
.single-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.single-page main {
  flex: 1;
  display: grid;
}

.coming-soon {
  display: grid;
  align-content: center;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.85rem 0.3rem 0.35rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 550;
}

.pill-tag {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero .lead {
  margin-bottom: 1.75rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-points li,
.check-list li {
  position: relative;
  padding-left: 1.6rem;
}

.hero-points li::before,
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--ok-soft);
}

.hero-points li::after,
.check-list li::after {
  content: '';
  position: absolute;
  left: 0.36rem;
  top: calc(0.32em + 0.22rem);
  width: 0.32rem;
  height: 0.55rem;
  border: solid var(--ok);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.hero-visual {
  margin: 0;
  min-width: 0;
}

.hero-visual figcaption,
.screenshot figcaption,
.guide-shot figcaption {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

/* Home: the illustrated app window */

.app-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 0.9rem;
}

.app-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.9rem;
  background: var(--window-chrome);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.app-titlebar-controls {
  display: flex;
  gap: 0.9rem;
}

.app-titlebar-controls span {
  width: 0.65rem;
  height: 0.65rem;
  border: 1.5px solid var(--control-border);
  border-radius: 2px;
}

.app-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  margin-right: auto;
}

.app-fake-button {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.app-fake-stop {
  background: var(--stop);
  border-color: var(--stop);
  color: var(--on-stop);
}

.app-body {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  background: var(--bg-alt);
}

@media (min-width: 36rem) {
  .app-body {
    grid-template-columns: 1.45fr 1fr;
  }
}

.app-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  min-width: 0;
}

.app-panel p {
  margin-bottom: 0.5rem;
}

.app-label {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.8rem;
}

.app-answer {
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 0.7rem 0.8rem 0.5rem;
}

.app-question {
  font-weight: 700;
  line-height: 1.35;
}

.app-answer-text {
  line-height: 1.5;
}

.app-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.app-meta .app-fake-button {
  color: var(--text);
}

.app-line {
  border-left: 3px solid var(--accent);
  padding-left: 0.6rem;
  line-height: 1.45;
  font-size: 0.85rem;
}

.app-line-you {
  border-left-color: var(--muted);
}

.app-who {
  display: block;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.78rem;
}

.app-line-you .app-who {
  color: var(--muted);
}

@media (max-width: 35.99rem) {
  .app-transcript {
    display: none;
  }
}

.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex: none;
}

.status-dot-live {
  background: var(--live);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 18%, transparent);
}

/* Home: works-with strip */

.works-with {
  border-block: 1px solid var(--border);
  padding-block: 1.25rem;
}

.works-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2rem;
}

.works-title {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.works-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.works-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.works-name {
  font-weight: 600;
}

/* Home: steps */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.step p,
.use-card p,
.fact p,
.faq-item p,
.feature-copy p {
  color: var(--muted);
}

.step p,
.use-card p,
.fact p {
  margin-bottom: 0;
}

/* Home: alternating feature rows */

.feature-row {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
}

@media (min-width: 56rem) {
  .feature-row {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }

  .feature-row-flip .feature-copy {
    order: 2;
  }
}

.feature-copy h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  letter-spacing: -0.015em;
}

.feature-copy p {
  font-size: 1.08rem;
}

.feature-visual {
  margin: 0;
  min-width: 0;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  margin-bottom: 0.55rem;
}

.answer-card,
.code-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem 1.2rem;
}

.answer-card-label,
.code-card-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.answer-card-question {
  font-weight: 650;
  font-size: 1.08rem;
}

.answer-card-answer {
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
}

.answer-card-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.code-card .code-sample {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.9rem;
}

.code-sample-note {
  font-family: var(--mono);
  font-size: 0.88rem;
  margin: 0;
}

.screenshot img {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Home: the privacy band (dark in both themes) */

.band {
  background: var(--inverse-bg);
  color: var(--inverse-text);
}

.band .eyebrow {
  color: var(--inverse-accent);
}

.band .section-lead,
.band p {
  color: var(--inverse-muted);
}

.band a {
  color: var(--inverse-accent);
}

.band :focus-visible {
  outline-color: var(--inverse-accent);
}

.band-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .band-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .band-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.band-grid li {
  border: 1px solid var(--inverse-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.band-grid h3 {
  font-size: 1.1rem;
}

.band-grid p {
  margin: 0;
}

.band-icon,
.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.band-icon {
  stroke: var(--inverse-accent);
  background: color-mix(in srgb, var(--inverse-accent) 14%, transparent);
}

.feature-icon {
  stroke: var(--accent);
  background: var(--accent-soft);
}

.band-link {
  text-align: center;
  margin: 2rem 0 0;
}

/* Home: uses, FAQ */

.use-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .use-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .use-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.use-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.use-card h3 {
  margin-bottom: 0.4rem;
}

.faq-grid {
  display: grid;
  gap: 0 3rem;
  max-width: 64rem;
  margin-inline: auto;
}

@media (min-width: 52rem) {
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.faq-item {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem 0.5rem;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.faq-item:target h3 {
  color: var(--accent);
}

/* Call-to-action band at the end of a page */

.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  text-align: center;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

.cta-band p {
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
}

.cta-band .cta-row {
  justify-content: center;
  margin: 0;
}

.cta-band :focus-visible {
  outline-color: var(--on-accent);
}

/* Notices: legal draft banners, draft notes, guide tips */

.notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  padding: 1.1rem 1.25rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.notice-draft {
  border-left-color: var(--draft);
  background: var(--draft-soft);
  margin-bottom: 2rem;
}

.notice-draft .notice-title {
  color: var(--draft);
}

.draft-note {
  border-left: 3px solid var(--draft);
  background: var(--draft-soft);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}

/* "Not available yet": the banner, and the passages about what isn't built, until it is */

.notice-pending {
  border-left-color: var(--draft);
  background: var(--draft-soft);
  margin: 1.5rem 0;
}

.notice-pending .notice-title {
  color: var(--draft);
}

.product-pending {
  outline: 2px dashed var(--draft);
  outline-offset: 4px;
}

/* Pricing */

.pack-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  max-width: 60rem;
  margin: 0 auto 2rem;
}

.pack {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.pack-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.pack-hours {
  font-size: 1.1rem;
  font-family: var(--font);
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}

.pack-price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.pack-rate {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.pack-note {
  margin: 0;
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 650;
  font-size: 0.9rem;
}

.fact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.fact h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

/* Download */

.file-facts {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.file-facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
}

.file-facts dt {
  color: var(--muted);
}

.file-facts dd {
  margin: 0;
  min-width: 0;
}

.hash {
  word-break: break-all;
}

.support-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

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

.support-table thead th {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.support-table tbody th {
  font-weight: 550;
}

.support-table tr:last-child > * {
  border-bottom: 0;
}

.status {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  white-space: nowrap;
}

.status-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.status-soon {
  background: var(--soon-soft);
  color: var(--soon);
}

.path-list,
.link-list {
  padding-left: 1.25rem;
}

.path-list li,
.numbered > li {
  margin-bottom: 0.4rem;
}

.numbered {
  padding-left: 1.4rem;
}

.numbered > li::marker {
  font-weight: 700;
  color: var(--accent);
}

.command {
  margin-bottom: 1rem;
}

/* Guide: a contents list beside the steps on wide screens */

.guide-layout {
  display: grid;
  gap: 2rem;
  padding-bottom: 4rem;
}

@media (min-width: 64rem) {
  .guide-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }

  .guide-toc {
    position: sticky;
    top: 5.5rem;
  }
}

.guide-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.guide-toc-title {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.3rem;
}

.guide-toc li {
  padding-block: 0.2rem;
}

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

.guide-toc a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.guide-content {
  min-width: 0;
  max-width: 50rem;
}

.guide-section + .guide-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.guide-section h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
}

.guide-section > h3 {
  margin-top: 1.75rem;
}

.guide-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: guide-step;
}

.guide-steps[start='5'] {
  counter-reset: guide-step 4;
}

.guide-steps[start='6'] {
  counter-reset: guide-step 5;
}

.guide-steps[start='10'] {
  counter-reset: guide-step 9;
}

.guide-steps > li {
  counter-increment: guide-step;
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 1.75rem;
}

.guide-steps > li::before {
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

/* A line joining the step numbers. */
.guide-steps > li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(1.125rem - 1px);
  top: 2.5rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--border);
}

.guide-steps h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  padding-top: 0.25rem;
}

.guide-shot {
  margin: 1rem 0 1.25rem;
  /* Above the line that joins the step numbers, which runs behind it on phones. */
  position: relative;
  z-index: 1;
}

/* Phones: a narrower step column, and screenshots that use the full width. */
@media (max-width: 40rem) {
  .guide-steps > li {
    padding-left: 2.75rem;
  }

  .guide-steps > li::before {
    width: 2rem;
    height: 2rem;
  }

  .guide-steps > li:not(:last-child)::after {
    left: calc(1rem - 1px);
  }

  .guide-steps .guide-shot {
    margin-left: -2.75rem;
  }
}

.guide-shot img {
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.guide-tip {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

/* A settings screenshot at its natural size, with what each setting does under it. */
.guide-split {
  margin-bottom: 2rem;
}

.guide-split .guide-shot {
  max-width: 40rem;
}

.guide-defs dt {
  font-weight: 700;
}

.guide-defs dd {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Legal pages */

.prose {
  padding-bottom: 3.5rem;
}

.prose h2 {
  font-size: 1.45rem;
  margin-top: 2.25rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose code {
  word-break: break-all;
}
