/* Self-hosted so the page makes no third-party requests, in line with the privacy policy. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* The app's palette (frontend/src/components/theme.ts), with muted text darkened for contrast. */
:root {
  --bg: #FFFFFF;
  --surface: #F1F1F1;
  --border: #E6E6E6;
  --text: #111111;
  --muted: #666666;
  --gutter: clamp(1rem, 4vw, 3rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #262626;
    --surface: #2F2F2F;
    --border: #3F3F3F;
    --text: #F5F5F5;
    --muted: #B4B4B4;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
}
h1, h2, h3, p, ol, dl, dd, ul { margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 82rem; margin-inline: auto; padding-inline: var(--gutter); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; text-decoration: none; }
.brand svg { width: 1.9rem; height: auto; }

h1 {
  font-size: clamp(2.75rem, 9vw, 9rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1.75rem, 3vw, 2.5rem);
}
h1 span { display: block; }

.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 120ms;
}
.button:hover { opacity: 0.8; }

/* The staircase: the app's logo drawn large, with each step of the product standing on a tread.
   Sizes use container units so the text stays lined up with the drawing at any width. */
.copy p { max-width: 34ch; }
.copy .button { margin-top: 1.25rem; }
.copy .note { margin-top: 0.75rem; font-size: 1rem; color: var(--muted); }

.climb-line { display: none; }
.steps { list-style: none; }
.steps h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.steps p { margin-top: 0.4rem; color: var(--muted); max-width: 30ch; }

/* Narrow screens: the path runs straight down the page and ends at the logo's dot. */
@media (max-width: 999px) {
  .copy { margin-bottom: 2.5rem; }
  .steps { position: relative; padding-left: 2rem; padding-bottom: 3.5rem; display: grid; gap: 2rem; }
  .steps::before {
    content: "";
    position: absolute;
    left: 0.4rem;
    top: 0.3rem;
    bottom: 1rem;
    width: 0.5rem;
    background: currentColor;
    border-radius: 999px;
  }
  .steps::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: currentColor;
  }
}

@media (min-width: 1000px) {
  .climb { container-type: inline-size; position: relative; }
  .climb-line {
    display: block;
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: auto;
    overflow: visible;
    pointer-events: none;
  }
  .climb-line path {
    fill: none;
    stroke: currentColor;
    stroke-width: 16;
    stroke-linecap: round;
    animation: climb 1.3s cubic-bezier(0.6, 0, 0.2, 1);
  }
  .climb-line circle {
    fill: currentColor;
    transform-box: fill-box;
    transform-origin: center;
    animation: arrive 320ms 1.2s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  }
  .climb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 30.2cqw auto;
  }
  .copy { grid-column: 1; grid-row: 1; padding-right: 1.5rem; }
  .steps { display: contents; }
  .steps li { padding-top: 1.25rem; }
  .steps li:nth-child(1) { grid-column: 1; grid-row: 2; padding-right: 1.5rem; }
  .steps li:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; margin-top: 17.2cqw; padding-left: 1.5rem; padding-right: 1.5rem; }
  .steps li:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; margin-top: 4.2cqw; padding-left: 1.5rem; }
}
/* The dashes exist only during the animation, so the finished line is always a solid stroke. */
@keyframes climb {
  from { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
}
@keyframes arrive { from { transform: scale(0); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .climb-line path, .climb-line circle { animation: none; }
}

.details { padding-block: clamp(4rem, 9vw, 7.5rem); }
.details h2, .join h2, .privacy h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.details dl { display: grid; gap: 2rem; margin-top: 2.5rem; }
.details dt { font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.details dd { margin-top: 0.4rem; color: var(--muted); max-width: 44ch; }
@media (min-width: 900px) {
  .details .wrap { display: grid; grid-template-columns: 1fr 2fr; }
  .details dl { grid-template-columns: 1fr 1fr; gap: 3.5rem 3rem; margin-top: 0; }
}

.join { background: var(--text); color: var(--bg); padding-block: clamp(3.5rem, 8vw, 6rem); }
.join p { margin-top: 0.75rem; max-width: 48ch; }
.join .button { margin-top: 1.5rem; background: var(--bg); color: var(--text); }

.privacy { padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 8vw, 6rem); font-size: 1rem; }
.privacy h1 { padding-block: 0; }
.privacy-body { max-width: 46rem; }
.privacy .effective { margin-top: 0.75rem; color: var(--muted); }
.privacy h3 { margin-top: 2.5rem; font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.privacy p { margin-top: 0.85rem; }
.privacy ul { margin-top: 0.85rem; padding-left: 1.25rem; }
.privacy li + li { margin-top: 0.5rem; }
.table { margin-top: 1rem; overflow-x: auto; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.9375rem; }
th, td { padding: 0.65rem 1rem 0.65rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { font-weight: 700; }

footer { background: var(--surface); padding-block: 1.75rem; font-size: 0.9375rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
footer .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
