/*
 * growthflow.link — the marketing site (ADR-009).
 *
 * Layout concept: one left-aligned column of quiet sections on the app's cool grey ground; the only
 * loud object is the hero's "split", an ad link forking into two of the merchant's own pages.
 * Faces are the app's own (apps/web): Bricolage Grotesque for display, Instrument Sans for text,
 * self-hosted from @fontsource-variable (OFL-1.1; see /fonts/LICENSE.txt). URLs are set in the
 * system monospace because they are literal strings people paste into ad managers.
 * The page loads no third-party resources: the Worker's CSP allows 'self' only.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/bricolage-grotesque-latin-opsz.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/instrument-sans-latin-wght.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;

  /* Color: the app's ground and ink; teal is branding.accentColor in growthflow.config.ts. */
  --paper: #eef0f3;
  --surface: #ffffff;
  --sunken: #e6e9ed;
  --ink: #15181d;
  --ink-2: #3d4550;
  --muted: #5b6470;
  --line: #d6dae0;
  --line-soft: #e3e6ea;
  --brand: #0f766e;
  --brand-strong: #0b5d57;
  --brand-soft: #d8ebe8;
  --on-brand: #ffffff;
  --variant-a: #3d4550;
  --variant-a-soft: #e3e6ea;
  --caution: #b26b00;
  --danger: #b42318;

  /* Type */
  --font-display: "Bricolage Grotesque", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-text:
    "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-url: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  --step-3: clamp(2rem, 1.45rem + 2.1vw, 3rem);
  --step-4: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);

  /* Space */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --radius: 14px;
  --radius-small: 8px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f1316;
    --surface: #161b1f;
    --sunken: #1c2227;
    --ink: #e8ecef;
    --ink-2: #c3cad1;
    --muted: #8f99a4;
    --line: #2c333a;
    --line-soft: #232a30;
    --brand: #35b5a7;
    --brand-strong: #63cbbf;
    --brand-soft: #14322f;
    --on-brand: #04201c;
    --variant-a: #aab3bd;
    --variant-a-soft: #262d33;
    --caution: #e3a44a;
    --danger: #f08a7e;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1316;
  --surface: #161b1f;
  --sunken: #1c2227;
  --ink: #e8ecef;
  --ink-2: #c3cad1;
  --muted: #8f99a4;
  --line: #2c333a;
  --line-soft: #232a30;
  --brand: #35b5a7;
  --brand-strong: #63cbbf;
  --brand-soft: #14322f;
  --on-brand: #04201c;
  --variant-a: #aab3bd;
  --variant-a-soft: #262d33;
  --caution: #e3a44a;
  --danger: #f08a7e;
}

/* Base ------------------------------------------------------------------------------------ */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--ink);
  text-wrap: balance;
}

h2 {
  font-size: var(--step-3);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--step-1);
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

a {
  color: inherit;
}

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

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

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.url {
  font-family: var(--font-url);
  font-size: 0.9em;
  letter-spacing: -0.01em;
}

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-small);
}

.skip-link:focus {
  top: calc(env(safe-area-inset-top, 0px) + 12px);
}

/* Controls -------------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: var(--on-brand);
  font: 600 var(--step-0) / 1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--brand-strong);
}

.button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: var(--step--1);
}

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

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

.fine-print {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.5;
}

.badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  font: 700 0.8125rem / 1 var(--font-text);
  font-variant-numeric: tabular-nums;
}

.badge-a {
  background: var(--variant-a-soft);
  color: var(--variant-a);
}

.badge-b {
  background: var(--brand-soft);
  color: var(--brand);
}

.example-note {
  color: var(--muted);
  font-size: var(--step--1);
}

/* Header ---------------------------------------------------------------------------------- */

.site-header {
  padding-block: 18px;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.1875rem / 1 var(--font-display);
  letter-spacing: -0.015em;
  text-decoration: none;
}

.mark {
  width: 28px;
  height: 28px;
  flex: none;
}

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

.mark-fork {
  fill: none;
  stroke: var(--on-brand);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: var(--step--1);
  font-weight: 500;
}

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

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

.header-row > .button {
  flex: none;
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .header-row > .button {
    margin-left: auto;
  }
}

/* Hero ------------------------------------------------------------------------------------ */

.hero {
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 7vw, 96px);
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.hero h1 {
  max-width: 13ch;
  font-size: var(--step-4);
  font-weight: 680;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-side {
  display: grid;
  gap: 24px;
  max-width: 34rem;
  padding-bottom: 0.4rem;
}

.lead {
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

@media (max-width: 860px) {
  .hero-copy {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

/* The split: an ad link, a fork drawn to scale with the two columns below, and the readout. */

.split {
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(20px, 3.4vw, 40px) clamp(12px, 3vw, 40px) 0;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.split-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 12px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 12px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

.split-link-label {
  color: var(--muted);
  font-size: var(--step--1);
}

.split-link .url {
  font-size: clamp(0.9375rem, 0.8rem + 0.7vw, 1.3125rem);
  font-weight: 600;
  min-width: 0;
}

.split-fork {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.fork-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.fork-line-a {
  stroke: var(--variant-a);
}

.fork-line-b {
  stroke: var(--brand);
}

.dot-a {
  fill: var(--variant-a);
}

.dot-b {
  fill: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
  .fork-dots {
    display: none;
  }

  html {
    scroll-behavior: auto;
  }
}

.split-variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.variant {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  justify-items: center;
  gap: 4px;
  padding: 14px clamp(4px, 2vw, 24px) 0;
  text-align: center;
  min-width: 0;
}

.variant-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--step--1);
}

.variant .url {
  max-width: 100%;
  margin-top: 6px;
  font-size: clamp(0.75rem, 0.66rem + 0.5vw, 1.0625rem);
  font-weight: 600;
  overflow-wrap: break-word;
}

.variant-kind {
  color: var(--muted);
  font-size: var(--step--1);
}

.variant-stats {
  align-self: end;
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 15rem;
  margin-top: 18px;
  font-size: var(--step--1);
}

.variant-stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
  text-align: left;
}

.variant-stats dt {
  color: var(--muted);
}

.variant-stats dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.variant-stats div:last-child dd {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.1;
}

.variant-a .variant-stats div:last-child dd {
  color: var(--variant-a);
}

.variant-b .variant-stats div:last-child dd {
  color: var(--brand);
}

.split-readout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin: clamp(24px, 3vw, 36px) calc(-1 * clamp(12px, 3vw, 40px)) 0;
  padding: 18px clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: var(--step--1);
}

.split-readout p:first-child {
  max-width: 62ch;
}

.caution-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--caution);
  vertical-align: 1px;
}

/* Sections -------------------------------------------------------------------------------- */

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

.section-head {
  display: grid;
  gap: 16px;
  max-width: 40rem;
}

.section-head p {
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.5;
}

/* How it works: a real sequence, so the steps are numbered. */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  align-content: start;
  gap: 10px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  color: var(--brand);
  font: 650 var(--step-3) / 1 var(--font-display);
  font-variant-numeric: tabular-nums;
}

.steps p {
  color: var(--ink-2);
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Tests you can run */
.tests-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.pairs {
  display: grid;
  padding: 0;
  list-style: none;
}

.pairs li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.pairs li:first-child {
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .tests-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .pairs li {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 10px;
  }
}

/* Attribution: the one tinted band, holding the full readout. */
.section-band {
  background: var(--sunken);
  border-top: 0;
}

.attribution-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.attribution-copy {
  display: grid;
  gap: 20px;
  max-width: 34rem;
}

.attribution-copy > p {
  color: var(--ink-2);
}

.attribution-copy h3 {
  margin-top: 8px;
}

.rule-list {
  display: grid;
  gap: 10px;
  padding-left: 1.2em;
  color: var(--ink-2);
}

.rule-list li::marker {
  color: var(--brand);
}

.readout {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: clamp(18px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.readout-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.readout-title {
  font: 650 var(--step-1) / 1.2 var(--font-display);
}

.table-scroll {
  overflow-x: auto;
  margin-inline: -4px;
  padding-inline: 4px;
}

.readout-table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.readout-table th,
.readout-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  white-space: nowrap;
}

.readout-table th:first-child {
  padding-left: 0;
  text-align: left;
}

.readout-table td:last-child {
  padding-right: 0;
  font-weight: 650;
}

.readout-table thead th {
  color: var(--muted);
  font-weight: 500;
}

.readout-table tbody th {
  font-weight: 600;
}

.variant-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.readout-table tbody tr:last-child td:last-child {
  color: var(--brand);
}

.readout-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.readout-facts div {
  display: grid;
  gap: 2px;
}

.readout-facts dt {
  color: var(--muted);
  font-size: var(--step--1);
}

.readout-facts dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.readout-facts .muted {
  font-weight: 400;
}

@media (max-width: 960px) {
  .attribution-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .readout-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Safety facts: a plain grid of short paragraphs under hairlines. */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  margin-top: clamp(40px, 5vw, 64px);
}

.facts div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.facts p {
  color: var(--ink-2);
}

@media (max-width: 960px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Hosting: two options side by side, split by a rule rather than boxed. */
.hosting {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
}

.hosting-option {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-right: clamp(20px, 4vw, 56px);
}

.hosting-option + .hosting-option {
  padding-right: 0;
  padding-left: clamp(20px, 4vw, 56px);
  border-left: 1px solid var(--line);
}

.hosting-option > p {
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .hosting {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hosting-option,
  .hosting-option + .hosting-option {
    padding: 0;
    border-left: 0;
  }

  .hosting-option + .hosting-option {
    padding-top: 40px;
    border-top: 1px solid var(--line);
  }
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* Apply ----------------------------------------------------------------------------------- */

.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.apply-copy {
  display: grid;
  gap: 18px;
  max-width: 32rem;
}

.apply-copy > p {
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.5;
}

.apply-copy h3 {
  margin-top: 12px;
}

.form-panel {
  min-width: 0;
  padding: clamp(20px, 3.4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.apply-form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  padding: 0;
  font-weight: 600;
  font-size: var(--step-0);
}

.optional {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 400;
  font-size: var(--step--1);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input::placeholder {
  color: var(--muted);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
  border-radius: var(--radius-small);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field-hint {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.45;
}

.field-error {
  color: var(--danger);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.45;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.field .choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--paper);
  font-weight: 500;
  cursor: pointer;
}

.field .choice:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.field .choice:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.choice input:focus-visible {
  outline: none;
}

.fieldset-invalid .choice {
  border-color: var(--danger);
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 4px;
}

.form-status {
  color: var(--danger);
  font-size: var(--step--1);
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.apply-done {
  display: grid;
  gap: 10px;
}

.apply-done h3 {
  font-size: var(--step-2);
}

.apply-done p {
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .apply-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* FAQ ------------------------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 6vw, 88px);
  align-items: start;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  font: 600 var(--step-1) / 1.3 var(--font-display);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq details p {
  max-width: 62ch;
  padding-bottom: 22px;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after,
  .button {
    transition: none;
  }
}

/* Footer ---------------------------------------------------------------------------------- */

.site-footer {
  padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-soft);
  font-size: var(--step--1);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}

.footer-row .wordmark {
  font-size: 1rem;
}

.footer-row .mark {
  width: 22px;
  height: 22px;
}

.footer-row > p:first-of-type {
  color: var(--ink-2);
}

.footer-row > .muted {
  margin-left: auto;
}

/* Not-found page -------------------------------------------------------------------------- */

.not-found {
  display: grid;
  gap: 20px;
  justify-items: start;
  padding-block: clamp(64px, 12vw, 160px);
}

.not-found h1 {
  font-size: var(--step-3);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.not-found p {
  color: var(--ink-2);
  font-size: var(--step-1);
}
