/*
 * Bloomtack marketing site.
 * Tokens mirror the app's design system: warm paper, deep ink, one saffron accent,
 * Fraunces for display, IBM Plex Sans for text.
 */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-opsz.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-opsz-italic.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-wght.woff2') format('woff2-variations');
}

:root {
  color-scheme: light;
  --page: #faf7f2;
  --page-alt: #f3eee5;
  --card: #ffffff;
  --ink: #15302b;
  --text: #15302b;
  --text-muted: #5b6a65;
  --border: #e4ded4;
  --border-strong: #cfc6b8;
  --accent: #e8a33d;
  --on-accent: #15302b;
  --ring: #15302b;
  --band: #15302b;
  --on-band: #f4efe6;
  --on-band-muted: #b8c6c0;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-control: 6px;
  --radius-card: 10px;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --gutter: 16px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #101614;
    --page-alt: #141d1a;
    --card: #172320;
    --text: #eaf2ee;
    --text-muted: #a9b8b1;
    --border: #2a3a35;
    --border-strong: #3a4d47;
    --ring: #eaf2ee;
    --band: #0b100e;
    --on-band: #eaf2ee;
    --on-band-muted: #a9b8b1;
  }
}

@media (min-width: 640px) {
  :root {
    --gutter: 28px;
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}

.wordmark svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.wordmark .dot-center {
  fill: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a:not(.btn) {
  display: none;
  padding: 8px 10px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-control);
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

@media (min-width: 820px) {
  .site-nav {
    gap: 8px;
  }

  .site-nav a:not(.btn) {
    display: inline-block;
  }
}

/* ---------- Buttons and forms ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: inherit;
  font-weight: 550;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 150ms var(--ease-out),
    border-color 150ms var(--ease-out),
    transform 150ms var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-accent:hover {
  background: #dd9427;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: #0d211d;
}

@media (prefers-color-scheme: dark) {
  .btn-ink {
    background: var(--accent);
    color: var(--on-accent);
  }

  .btn-ink:hover {
    background: #dd9427;
  }
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.875rem;
}

.waitlist {
  max-width: 480px;
}

.waitlist label {
  display: block;
  font-weight: 550;
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.waitlist-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 480px) {
  .waitlist-row {
    flex-direction: row;
  }
}

.waitlist input[type='email'] {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.waitlist input[type='email']::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.waitlist input[type='email']:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
  border-color: var(--ring);
}

.waitlist input[aria-invalid='true'] {
  border-color: #b42318;
}

.form-note {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.form-status {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
}

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

.form-status[data-state='error'] {
  color: #b42318;
}

@media (prefers-color-scheme: dark) {
  .form-status[data-state='error'] {
    color: #f2948a;
  }

  .waitlist input[aria-invalid='true'] {
    border-color: #f2948a;
  }
}

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

.hero {
  padding-block: 40px 56px;
}

.hero-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 980px) {
  .hero {
    padding-block: 72px 88px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 64px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.375rem, 1.6rem + 3.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 450;
  max-width: 16ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero-lede {
  margin-top: 22px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero .waitlist {
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points svg {
  width: 14px;
  height: 14px;
  color: var(--text);
}

/* ---------- Hero demo: one post becomes pins ---------- */

.demo {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 0 rgb(21 48 43 / 0.04), 0 18px 40px -24px rgb(21 48 43 / 0.28);
}

@media (min-width: 640px) {
  .demo {
    padding: 22px;
  }
}

.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.demo-head strong {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}

.demo-post {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--page);
}

.demo-post-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 35%, #e6b86a 0 18%, transparent 19%),
    radial-gradient(circle at 70% 65%, #c98c3f 0 22%, transparent 23%),
    #7a4a2a;
}

.demo-post-title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 500;
}

.demo-post-meta {
  margin-top: 3px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.demo-arrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.demo-arrow::before,
.demo-arrow::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--border);
}

.demo-pins {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 640px) {
  .demo-pins {
    gap: 14px;
  }
}

.demo-pin-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.demo-pin-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.demo-pin-label b {
  font-weight: 600;
  color: var(--text);
}

.tag-lead {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: 0.02em;
}

/* Pins scale their type with their own width. */
.pin {
  container-type: inline-size;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.pin-in {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 9cqw;
}

.pin-url {
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 5.6cqw;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* Pin A: listicle */
.pin-a {
  background: #f6eedf;
  color: #3a2a20;
}

.pin-a .pin-kicker {
  align-self: flex-start;
  background: #b5562f;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 6.4cqw;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2cqw 4cqw;
  border-radius: 2cqw;
}

.pin-a .pin-title {
  margin-top: 5cqw;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5cqw;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.pin-a ol {
  margin: 6cqw 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2.4cqw;
  counter-reset: pin;
}

.pin-a li {
  counter-increment: pin;
  display: flex;
  align-items: center;
  gap: 3cqw;
  font-family: var(--font-sans);
  font-size: 6cqw;
  line-height: 1.2;
}

.pin-a li::before {
  content: counter(pin);
  flex: none;
  display: grid;
  place-items: center;
  width: 8.5cqw;
  height: 8.5cqw;
  border-radius: 50%;
  background: #3a2a20;
  color: #f6eedf;
  font-weight: 600;
  font-size: 5cqw;
}

/* Pin B: bold title over an illustrated loaf */
.pin-b {
  background: #3a2a20;
  color: #f6eedf;
}

.pin-b .pin-in {
  padding-top: 11cqw;
}

.pin-b .pin-kicker {
  font-family: var(--font-sans);
  font-size: 6cqw;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7c08a;
}

.pin-b .pin-title {
  margin-top: 4cqw;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15.5cqw;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.pin-b .pin-title i {
  font-style: italic;
  color: #e7c08a;
}

.loaf {
  position: relative;
  margin: 9cqw auto 0;
  width: 76cqw;
  height: 34cqw;
}

.loaf::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 38cqw 38cqw 5cqw 5cqw;
  background:
    repeating-linear-gradient(
      100deg,
      transparent 0 12cqw,
      rgb(58 42 32 / 0.35) 12cqw 13cqw
    ),
    #b5562f;
}

.loaf::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  top: 14%;
  height: 22%;
  border-radius: 50%;
  background: #d98a4e;
  opacity: 0.8;
}

.pin-b .pin-badge {
  position: absolute;
  right: 8cqw;
  bottom: 22cqw;
  width: 24cqw;
  height: 24cqw;
  border-radius: 50%;
  background: #e7c08a;
  color: #3a2a20;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 5cqw;
  line-height: 1.05;
  transform: rotate(-8deg);
}

/* Pin C: steps */
.pin-c {
  background: #e4e9d6;
  color: #26311a;
}

.pin-c .pin-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5cqw;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.pin-c .pin-sub {
  margin-top: 3cqw;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 7.4cqw;
  color: #5b6b3a;
}

.pin-c .steps {
  margin-top: 7cqw;
  display: grid;
  gap: 4cqw;
}

.pin-c .step {
  display: grid;
  grid-template-columns: 13cqw 1fr;
  gap: 3cqw;
  align-items: start;
  font-family: var(--font-sans);
  font-size: 5.6cqw;
  line-height: 1.25;
}

.pin-c .step b {
  display: block;
  font-family: var(--font-display);
  font-size: 11cqw;
  line-height: 0.9;
  font-weight: 500;
  color: #8a9a5b;
}

.demo-schedule {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
}

.demo-schedule-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.demo-schedule-head b {
  color: var(--text);
  font-weight: 600;
}

.timeline {
  position: relative;
  height: 44px;
  margin-top: 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--border);
}

.timeline li {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline li::before {
  content: '';
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ink) 0 27%, var(--accent) 30%);
  box-shadow: 0 0 0 3px var(--card);
}

.timeline ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Hide every other time label on narrow screens to avoid collisions. */
@media (max-width: 479px) {
  .timeline li:nth-child(even) span {
    visibility: hidden;
  }
}

.t1 { left: 11%; }
.t2 { left: 27%; }
.t3 { left: 43%; }
.t4 { left: 57%; }
.t5 { left: 79%; }
.t6 { left: 94%; }

.demo-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.demo-note {
  margin-top: 10px;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

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

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

@media (min-width: 980px) {
  .section {
    padding-block: 96px;
  }
}

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

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
  max-width: 44rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  line-height: 1.1;
}

.section-head p {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Who it's for */
.audience {
  display: grid;
  gap: 32px;
}

@media (min-width: 860px) {
  .audience {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }
}

.audience .section-head {
  margin-bottom: 0;
}

.audience-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.audience-list li {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .audience-list li {
    grid-template-columns: 13rem 1fr;
    gap: 24px;
  }
}

.audience-list h3 {
  font-size: 1.125rem;
  line-height: 1.35;
}

.audience-list p {
  color: var(--text-muted);
}

.niches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.niches li {
  padding: 5px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  font-size: 0.8125rem;
  color: var(--text);
  background: var(--card);
}

/* How it works */
.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}

@media (prefers-color-scheme: dark) {
  .steps-list {
    border-top-color: var(--border-strong);
  }
}

.steps-list > li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 4px 16px;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 900px) {
  .steps-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--border);
  }

  .steps-list > li {
    grid-template-columns: 1fr;
    padding: 28px 32px 8px 0;
    border-bottom: 0;
  }

  .steps-list > li + li {
    padding-left: 32px;
    border-left: 1px solid var(--border);
  }
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 400;
  color: var(--text);
  grid-row: span 3;
}

@media (min-width: 900px) {
  .step-num {
    grid-row: auto;
    margin-bottom: 18px;
  }
}

.steps-list h3 {
  font-size: 1.375rem;
}

.steps-list p {
  color: var(--text-muted);
  margin-top: 6px;
}

.step-detail {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.step-detail li {
  font-size: 0.75rem;
  font-weight: 550;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--page-alt);
  border: 1px solid var(--border);
}

.section-alt .step-detail li {
  background: var(--card);
}

/* Features */
.features {
  display: grid;
  gap: 40px;
}

@media (min-width: 980px) {
  .features {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 72px;
  }

  .features .section-head {
    position: sticky;
    top: 110px;
    align-self: start;
  }
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  border-top: 1px solid var(--border);
}

@media (min-width: 700px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

.feature-list > li {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--border);
}

.feature-list h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1875rem;
}

.feature-list h3 svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--text);
}

.feature-list p {
  margin-top: 8px;
  color: var(--text-muted);
}

.feature-wide {
  grid-column: 1 / -1;
}

/* A/B test example */
.abtest {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.abtest-row {
  display: grid;
  grid-template-columns: 4.75rem 1fr 3.25rem;
  gap: 12px;
  align-items: center;
  font-size: 0.8125rem;
}

.abtest-row .bar {
  height: 10px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.abtest-row .bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--text-muted);
}

.abtest-row.win .bar span {
  background: var(--accent);
}

.abtest-row .val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}

.w-a { width: 58%; }
.w-b { width: 86%; }
.w-c { width: 47%; }

.abtest-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Trust band */
.band {
  background: var(--band);
  color: var(--on-band);
  border-top: 0;
}

.band .kicker,
.band .section-head p {
  color: var(--on-band-muted);
}

.trust {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .trust {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
  }
}

.trust .section-head {
  margin-bottom: 0;
}

.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.trust-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.trust-list li:first-child {
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.trust-list svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--accent);
}

.trust-list strong {
  display: block;
  font-weight: 600;
}

.trust-list span {
  color: var(--on-band-muted);
}

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

/* FAQ */
.faq {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .faq {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 72px;
  }
}

.faq .section-head {
  margin-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--border);
}

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

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.35;
}

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

.faq-list summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 150ms var(--ease-out);
}

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

.faq-list .answer {
  padding: 0 0 20px;
  color: var(--text-muted);
  max-width: 42rem;
}

.faq-list .answer p + p {
  margin-top: 10px;
}

/* Closing CTA */
.cta {
  display: grid;
  gap: 28px;
  padding: 36px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

@media (min-width: 900px) {
  .cta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
    padding: 56px;
  }
}

.cta h2 {
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  line-height: 1.08;
}

.cta p.lede {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

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

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding-block: 40px 48px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }
}

.footer-grid h2 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.footer-grid a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.footer-about p {
  margin-top: 12px;
  max-width: 22rem;
}

.footer-legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  font-size: 0.8125rem;
}

address {
  font-style: normal;
}

/* ---------- Legal pages ---------- */

.legal {
  padding-block: 48px 24px;
}

@media (min-width: 980px) {
  .legal {
    padding-block: 72px 24px;
  }
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

@media (min-width: 1020px) {
  .legal-grid {
    grid-template-columns: 15rem minmax(0, 46rem);
    gap: 72px;
  }
}

.legal-head {
  grid-column: 1 / -1;
}

.legal-head h1 {
  font-size: clamp(2.125rem, 1.6rem + 2vw, 3rem);
  line-height: 1.05;
}

.legal-meta {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.toc {
  font-size: 0.875rem;
}

@media (min-width: 1020px) {
  .toc {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow: auto;
  }
}

.toc h2 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  padding: 0 0 0 1.4em;
  display: grid;
  gap: 6px;
  color: var(--text-muted);
}

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

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

@media (max-width: 1019px) {
  .toc {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--card);
  }
}

.prose {
  font-size: 1rem;
  line-height: 1.7;
}

.prose > * + * {
  margin-top: 1em;
}

.prose h2 {
  margin-top: 2.4em;
  padding-top: 1.2em;
  border-top: 1px solid var(--border);
  font-size: 1.625rem;
  line-height: 1.2;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: 1.1875rem;
  line-height: 1.3;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.7em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose strong {
  font-weight: 600;
}

.summary-box {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  background: var(--card);
}

.summary-box h2 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-size: 1.1875rem;
}

.summary-box ul {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9063rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.prose thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--page-alt);
}

.prose tbody tr:last-child th,
.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose tbody th {
  font-weight: 600;
  min-width: 8rem;
}

.prose .caps {
  text-transform: uppercase;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}


/* ---------- 404 ---------- */

.notfound {
  padding-block: 96px 48px;
  max-width: 36rem;
}

.notfound h1 {
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
}

.notfound p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.notfound .btn {
  margin-top: 28px;
}

/* Small screens: stack table rows into labeled blocks. */
@media (max-width: 639px) {
  .prose table,
  .prose tbody,
  .prose tr,
  .prose th,
  .prose td {
    display: block;
  }

  .prose thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .prose tbody tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }

  .prose tbody tr:last-child {
    border-bottom: 0;
  }

  .prose tbody th,
  .prose tbody td {
    padding: 0;
    border: 0;
    min-width: 0;
  }

  .prose tbody th {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 500;
  }

  .prose tbody td {
    margin-top: 8px;
  }

  .prose tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
}

/* Inline code and code blocks (robots.txt examples, user agent). */
.prose code {
  font-family: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.875em;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--page-alt);
}

.prose pre {
  margin-bottom: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.875rem;
}
