/* One stylesheet for every page. The look lives in the custom properties below;
   swap them to restyle the site without touching any HTML. */

:root {
  color-scheme: light dark;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-base: 1.0625rem;
  --text-small: 0.9375rem;
  --text-h1: clamp(2rem, 6vw, 3.25rem);
  --text-h2: clamp(1.375rem, 3.5vw, 1.75rem);
  --text-h3: 1.0625rem;
  --leading: 1.55;
  --leading-tight: 1.15;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --gutter: 1rem;
  --measure: 40rem;
  --page-width: 68rem;
  --radius: 0.5rem;
  --border-width: 1px;

  --color-bg: #ffffff;
  --color-surface: #f4f4f2;
  --color-text: #1b1b1b;
  --color-muted: #555555;
  --color-border: #d6d6d2;
  --color-link: #1a4fb8;
  --color-accent: #1b1b1b;
  --color-accent-text: #ffffff;
  --color-note-bg: #fff4cc;
  --color-note-text: #4a3b00;
  --color-placeholder-bg: #ffe0e0;
  --color-placeholder-text: #6b0000;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #161616;
    --color-surface: #222222;
    --color-text: #ececec;
    --color-muted: #b0b0b0;
    --color-border: #3a3a3a;
    --color-link: #8db4ff;
    --color-accent: #ececec;
    --color-accent-text: #161616;
    --color-note-bg: #3d3200;
    --color-note-text: #fff0b3;
    --color-placeholder-bg: #4a1414;
    --color-placeholder-text: #ffd6d6;
  }
}

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

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

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

h1,
h2,
h3 {
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
}

h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-2);
}

p,
ul,
ol,
dl,
table,
figure {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--color-link);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--color-link);
  outline-offset: 2px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

/* Page frame */

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
}

.skip-link:focus {
  top: var(--space-2);
}

.site-header,
.site-footer,
main {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.brand {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-small);
}

.site-footer {
  border-top: var(--border-width) solid var(--color-border);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
  font-size: var(--text-small);
  color: var(--color-muted);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
}

/* Landing page */

.hero {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-top: var(--space-5);
  padding-bottom: var(--space-7);
}

@media (min-width: 52rem) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.lede {
  font-size: 1.1875rem;
  max-width: var(--measure);
}

.button {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-accent-text);
  font-weight: 600;
  text-decoration: none;
}

.fine-print {
  font-size: var(--text-small);
  color: var(--color-muted);
}

/* The demo slot keeps its size before and after the recording arrives, so nothing shifts. */
.demo {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-4);
  color: var(--color-muted);
  font-size: var(--text-small);
  overflow: hidden;
}

.demo video,
.demo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

section {
  padding-top: var(--space-7);
}

section > p,
section > ul,
section > dl {
  max-width: var(--measure);
}

.steps {
  display: grid;
  gap: var(--space-5);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 46rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-weight: 700;
  font-size: var(--text-h2);
  margin-bottom: var(--space-2);
}

.compare {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 46rem) {
  .compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.compare > div {
  border-top: var(--border-width) solid var(--color-border);
  padding-top: var(--space-4);
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--text-small);
}

caption {
  text-align: left;
  color: var(--color-muted);
  padding-bottom: var(--space-2);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-bottom: var(--border-width) solid var(--color-border);
}

thead th {
  font-weight: 700;
}

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

.faq dt {
  font-weight: 700;
  margin-top: var(--space-4);
}

.faq dd {
  margin: var(--space-1) 0 0;
}

/* Prose pages: legal, back-to-work, 404 */

.prose {
  max-width: var(--measure);
  padding-top: var(--space-5);
}

.prose h2 {
  margin-top: var(--space-6);
}

.prose li {
  margin-bottom: var(--space-2);
}

/* Draft marker for the three legal pages. Delete this one rule to remove it everywhere. */
.legal::before {
  content: "Draft, not yet reviewed";
  display: block;
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--color-note-bg);
  color: var(--color-note-text);
  font-weight: 700;
}

/* Values the owner still has to supply. */
.placeholder {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0 var(--space-1);
  border-radius: 0.25rem;
  background: var(--color-placeholder-bg);
  color: var(--color-placeholder-text);
  overflow-wrap: anywhere;
}

/* The back-to-work page: small and calm. */
.aside-page {
  max-width: 32rem;
  padding-top: var(--space-8);
}
