/* Components. Each block is one component; /styleguide (dev only) renders every one of them. */

/* ---- buttons --------------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-border: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: 0 var(--space-5);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-2);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--text-md);
  font-weight: 650;
  font-stretch: 92%;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-1) linear, color var(--dur-1) linear, border-color var(--dur-1) linear,
    transform var(--dur-1) var(--ease-out);
}

.btn:hover {
  --btn-bg: #2a2a27;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* The one yellow button: used once per view, for the action the page exists for. */
.btn--accent {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-border: var(--ink);
}

.btn--accent:hover {
  --btn-bg: #f2d900;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--rule-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--surface);
  --btn-border: var(--ink);
}

.btn--danger {
  --btn-bg: var(--danger);
  --btn-fg: #fff;
  --btn-border: var(--danger);
}

.btn--danger:hover {
  --btn-bg: #9a1c12;
}

/* 36px visual height, 44px hit area. */
.btn--sm {
  position: relative;
  min-height: 36px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
}

.btn--sm::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}

.btn--lg {
  min-height: 56px;
  padding: 0 var(--space-6);
  font-size: var(--text-lg);
}

.btn--block {
  width: 100%;
}

.on-dark .btn--ghost {
  --btn-fg: var(--night-text);
  --btn-border: var(--night-rule);
}

.on-dark .btn--ghost:hover {
  --btn-bg: var(--night-3);
  --btn-border: var(--night-muted);
}

.btn .spinner {
  display: none;
}

.btn[aria-busy="true"] .spinner {
  display: inline-block;
}

.spinner {
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2s;
  }
}

/* A text-styled button for inline actions. */
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  min-height: var(--tap);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--rule-strong);
  font-weight: 600;
}

.link-btn:hover {
  text-decoration-color: currentColor;
}

/* ---- form fields ----------------------------------------------------------------------------- */

.field {
  display: grid;
  gap: var(--space-2);
}

.field + .field {
  margin-top: var(--space-4);
}

.label {
  font-size: var(--text-sm);
  font-weight: 650;
}

.label .optional {
  font-weight: 400;
  color: var(--ink-3);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0 var(--space-4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem; /* 16px: iOS zooms into anything smaller */
  transition: border-color var(--dur-1) linear, box-shadow var(--dur-1) linear;
}

.textarea {
  padding: var(--space-3) var(--space-4);
  min-height: 7rem;
  resize: vertical;
  line-height: var(--leading-text);
}

.select {
  appearance: none;
  padding-right: var(--space-7);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink-2);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px var(--accent);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

.hint {
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.error-text {
  font-size: var(--text-sm);
  color: var(--danger);
  font-weight: 600;
}

.error-text:empty {
  display: none;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: var(--tap);
  padding-block: var(--space-2);
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ink);
  flex: none;
}

/* A one-line form: input and button share a row, wrap on narrow screens. */
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.inline-form .input {
  flex: 1 1 15rem;
  min-height: 52px;
}

.inline-form .btn {
  flex: 0 0 auto;
  min-height: 52px;
}

@media (max-width: 480px) {
  .inline-form .btn {
    flex: 1 1 100%;
  }
}

/* The waitlist form (partials/waitlist_form.html). */
.waitlist .label {
  display: block;
  margin-bottom: var(--space-2);
}

.waitlist--full .field + .field {
  margin-top: var(--space-5);
}

.waitlist__submit {
  margin-top: var(--space-6);
}

.waitlist__submit .btn {
  width: 100%;
}

.waitlist__turnstile {
  margin-top: var(--space-4);
}

.waitlist .error-text {
  margin-top: var(--space-3);
}

/* Honeypot: off-screen, out of the tab order, hidden from assistive tech. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Read-only value with a copy button (referral links, API keys). */
.copy-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ink);
  border-radius: var(--radius-2);
  background: var(--surface);
  overflow: hidden;
}

.copy-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 var(--space-4);
  min-height: 52px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.copy-field input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -4px;
}

.copy-field .btn {
  border-radius: 0;
  border-width: 0 0 0 1px;
  min-height: 52px;
}

/* ---- cards ----------------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-3);
  padding: var(--space-5);
}

.card--flat {
  background: transparent;
}

.card--dark {
  background: var(--night);
  border-color: var(--night);
  color: var(--night-text);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  font-stretch: var(--stretch-heading);
}

/* ---- badges ---------------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.18em 0.55em;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-1);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.4;
  white-space: nowrap;
}

.badge--accent {
  background: var(--accent);
  border-color: var(--ink);
  color: var(--accent-ink);
}

.badge--ok {
  background: var(--ok-wash);
  border-color: var(--ok);
  color: var(--ok);
}

.badge--danger {
  background: var(--danger-wash);
  border-color: var(--danger);
  color: var(--danger);
}

.badge--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* A live-status dot inside a badge. */
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---- tabs ------------------------------------------------------------------------------------ */

.tabs__list {
  display: flex;
  gap: var(--space-1);
  border-bottom: var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs__list::-webkit-scrollbar {
  display: none;
}

.tabs__tab {
  position: relative;
  min-height: var(--tap);
  padding: 0 var(--space-4);
  border: 0;
  background: none;
  color: var(--ink-3);
  font-weight: 650;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.tabs__tab:hover {
  color: var(--ink);
}

.tabs__tab[aria-selected="true"] {
  color: var(--ink);
}

.tabs__tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: -1px;
  height: 3px;
  background: var(--ink);
}

.tabs__tab:focus-visible {
  outline-offset: -3px;
}

.tabs__panel {
  padding-top: var(--space-5);
}

.tabs__panel[hidden] {
  display: none;
}

.on-dark .tabs__list {
  border-bottom-color: var(--night-rule);
}

.on-dark .tabs__tab {
  color: var(--night-muted);
}

.on-dark .tabs__tab[aria-selected="true"],
.on-dark .tabs__tab:hover {
  color: var(--night-text);
}

.on-dark .tabs__tab[aria-selected="true"]::after {
  background: var(--accent);
}

/* ---- code ------------------------------------------------------------------------------------ */

.code {
  position: relative;
  margin: 0;
  background: var(--night);
  color: var(--night-text);
  border-radius: var(--radius-3);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.code pre {
  margin: 0;
  padding: var(--space-5);
  overflow-x: auto;
  tab-size: 2;
}

.code code {
  font-size: inherit;
}

.code .c-key {
  color: #ffe500;
}

.code .c-str {
  color: #d8d8cf;
}

.code .c-dim {
  color: var(--night-muted);
}

/* Copy buttons sit on the dark code bar wherever the code block is, not only in .on-dark sections. */
.code .btn--ghost {
  --btn-fg: var(--night-text);
  --btn-border: var(--night-rule);
}

.code .btn--ghost:hover {
  --btn-bg: var(--night-3);
  --btn-border: var(--night-muted);
}

.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-5);
  border-bottom: 1px solid var(--night-rule);
  color: var(--night-muted);
  font-size: var(--text-xs);
}

/* ---- table ----------------------------------------------------------------------------------- */

.table-wrap {
  position: relative; /* visually-hidden cells stay inside the scroll box, not the page */
  overflow-x: auto;
  border: var(--border);
  border-radius: var(--radius-3);
  background: var(--surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table th,
.table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: var(--border);
  vertical-align: top;
}

.table th {
  font-weight: 650;
  color: var(--ink-2);
  background: var(--paper);
  white-space: nowrap;
}

.table tbody tr:last-child > * {
  border-bottom: 0;
}

.table tbody th {
  background: transparent;
  color: var(--ink);
  white-space: normal;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table td.num {
  font-family: var(--font-mono);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .table th,
  .table td {
    padding: var(--space-3);
  }

  .table thead th {
    white-space: normal;
  }
}

/* ---- FAQ / disclosure ------------------------------------------------------------------------ */

.disclosure {
  border-top: var(--border);
}

.disclosure:last-child {
  border-bottom: var(--border);
}

.disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
  padding-block: var(--space-4);
  cursor: pointer;
  list-style: none;
  font-size: var(--text-lg);
  font-weight: 650;
  font-stretch: 92%;
}

.disclosure summary::-webkit-details-marker {
  display: none;
}

.disclosure summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--dur-2) var(--ease-out);
}

.disclosure[open] summary::after {
  content: "\2212";
}

.disclosure summary:focus-visible {
  outline-offset: 2px;
}

.disclosure__body {
  padding-bottom: var(--space-5);
  max-width: var(--measure);
  color: var(--ink-2);
}

.disclosure__body > * + * {
  margin-top: 0.8em;
}

/* ---- toasts ---------------------------------------------------------------------------------- */

.toasts {
  position: fixed;
  z-index: var(--z-toast);
  left: 50%;
  bottom: var(--space-5);
  transform: translateX(-50%);
  display: grid;
  gap: var(--space-2);
  width: min(26rem, calc(100vw - 2 * var(--space-4)));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-2);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-2);
  font-size: var(--text-sm);
  font-weight: 550;
  pointer-events: auto;
  animation: toast-in var(--dur-3) var(--ease-out);
}

.toast::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.toast--error::before {
  background: #ff8a7a;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---- modal (native <dialog>) ------------------------------------------------------------------ */

.modal {
  width: min(32rem, calc(100vw - 2 * var(--space-4)));
  max-height: calc(100vh - 2 * var(--space-6));
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius-3);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-3);
}

.modal::backdrop {
  background: rgba(17, 17, 17, 0.55);
}

.modal[open] {
  animation: modal-in var(--dur-3) var(--ease-out);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
  border-bottom: var(--border);
}

.modal__title {
  font-size: var(--text-lg);
  font-weight: 700;
  font-stretch: var(--stretch-heading);
}

.modal__body {
  padding: var(--space-5);
}

.modal__foot {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-top: var(--border);
  background: var(--paper);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  border-radius: var(--radius-2);
  background: transparent;
  color: inherit;
}

.icon-btn:hover {
  background: var(--surface-sunk);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ---- empty states ---------------------------------------------------------------------------- */

.empty {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-6);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius-3);
  max-width: 40rem;
}

.empty__title {
  font-size: var(--text-xl);
  font-weight: 750;
  font-stretch: var(--stretch-heading);
}

.empty p {
  color: var(--ink-2);
  max-width: 34rem;
}

/* ---- skeletons ------------------------------------------------------------------------------- */

.skeleton {
  display: block;
  border-radius: var(--radius-1);
  background: var(--surface-sunk);
  position: relative;
  overflow: hidden;
  min-height: 1em;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: shimmer 1.4s infinite;
}

.skeleton--text {
  height: 0.9em;
  margin-block: 0.35em;
}

.skeleton--title {
  height: 1.6em;
  width: 60%;
}

.skeleton--clip {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-3);
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after {
    animation: none;
    display: none;
  }
}

/* ---- notices (inline status) ----------------------------------------------------------------- */

.notice {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--ink);
  background: var(--surface);
  font-size: var(--text-sm);
}

.notice--error {
  border-left-color: var(--danger);
  background: var(--danger-wash);
  color: #7a1810;
}

.notice--ok {
  border-left-color: var(--ok);
  background: var(--ok-wash);
  color: #14492a;
}

.notice[hidden] {
  display: none;
}

/* Clearly marked text a lawyer must replace before launch. */
.review-note {
  display: block;
  padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--danger);
  border-radius: var(--radius-2);
  background: var(--danger-wash);
  color: #7a1810;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.5;
}

/* ---- price model (partials/price_model.html: landing and /pricing) ------------------------- */

.price-tables {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  max-width: 52rem;
  margin-top: var(--space-7);
}

.price-table h3 {
  margin-bottom: var(--space-3);
}

.price-table h3 .muted {
  font-weight: 400;
  margin-left: var(--space-2);
}

.price-table__foot {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.table__note {
  display: block;
  font-weight: 400;
  color: var(--ink-3);
  font-size: var(--text-xs);
  margin-top: 2px;
}

.price-pending {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 2px solid var(--ink);
  max-width: 44rem;
}

.price-pending__title {
  font-size: var(--text-xl);
  font-weight: 750;
  font-stretch: var(--stretch-heading);
}

/* Worked examples of the rounding rule. */
.receipt {
  width: 100%;
  max-width: 44rem;
  margin-top: var(--space-7);
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.receipt caption {
  text-align: left;
  font-weight: 650;
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--ink);
}

.receipt th,
.receipt td {
  padding: var(--space-3) 0;
  border-bottom: var(--border);
  text-align: left;
  font-weight: 400;
}

.receipt thead th {
  color: var(--ink-3);
  font-size: var(--text-xs);
}

.receipt .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding-left: var(--space-5);
}

.receipt td.num {
  font-family: var(--font-mono);
}

.receipt strong {
  font-weight: 500;
  background: var(--accent);
  padding: 0.1em 0.35em;
}

/* ---- site header ----------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) linear;
}

.site-header[data-scrolled="true"] {
  border-bottom-color: var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  font-size: 1.375rem;
  font-weight: 850;
  font-stretch: 68%;
  letter-spacing: -0.005em;
  text-decoration: none;
}

.wordmark svg {
  width: 18px;
  height: 28px;
  flex: none;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-2);
}

.site-nav__links a:hover {
  background: var(--surface-sunk);
}

.site-nav .btn {
  margin-left: var(--space-3);
}

.menu-btn {
  display: none;
}

@media (max-width: 860px) {
  .menu-btn {
    display: inline-grid;
    order: 3;
  }

  .site-nav .btn {
    margin-left: 0;
  }

  .site-nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-2) var(--gutter) var(--space-5);
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
  }

  .site-nav__links a {
    min-height: 52px;
    font-size: var(--text-lg);
    border-bottom: var(--border);
    border-radius: 0;
    padding: 0;
  }

  .site-header[data-menu="open"] .site-nav__links {
    display: flex;
  }
}

@media (max-width: 440px) {
  .site-header__inner {
    gap: var(--space-2);
  }

  .wordmark {
    font-size: 1.125rem;
  }

  .site-nav .btn {
    padding: 0 var(--space-3);
  }

  .menu-btn {
    margin-right: calc(-1 * var(--space-2));
  }
}

/* ---- site footer ----------------------------------------------------------------------------- */

.site-footer {
  background: var(--night);
  color: var(--night-text);
  padding-block: var(--space-8) var(--space-6);
  margin-top: auto;
}

.site-footer a {
  text-decoration-color: var(--night-rule);
}

.site-footer a:hover {
  text-decoration-color: currentColor;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--night-rule);
}

.site-footer__brand {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 5rem);
  font-weight: 850;
  font-stretch: 66%;
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.site-footer__tagline {
  margin-top: var(--space-4);
  color: var(--night-muted);
  max-width: 24rem;
}

.site-footer h2 {
  font-size: var(--text-sm);
  font-stretch: 100%;
  font-weight: 650;
  color: var(--night-muted);
  margin-bottom: var(--space-3);
}

.site-footer ul a,
.site-footer ul button {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

.site-footer ul button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--night-rule);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  color: var(--night-muted);
  font-size: var(--text-sm);
}

@media (max-width: 720px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__top > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---- consent banner (static site: GA4 and Clarity wait for a choice) --------------------------- */

/* Bottom right: on desktop it sits over the demo, never over the waitlist form. */
.consent {
  position: fixed;
  z-index: var(--z-overlay);
  right: var(--space-4);
  bottom: var(--space-4);
  width: min(26rem, calc(100vw - 2 * var(--space-4)));
  padding: var(--space-5);
  border: 1px solid var(--ink);
  border-radius: var(--radius-3);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  font-size: var(--text-sm);
}

.consent[hidden] {
  display: none;
}

.consent__title {
  font-size: var(--text-md);
  font-weight: 700;
  font-stretch: var(--stretch-heading);
}

.consent__text {
  margin-top: var(--space-2);
  color: var(--ink-2);
}

/* Reject and Accept look the same on purpose: saying no must be as easy as saying yes. */
.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
