/* Marden site styles
   Black, white, and grays only (BRIEF.md Section 7). */

:root {
  --black: #000000;
  --ink: #111111;
  --gray-700: #3d3d3d;   /* body text on white: 11:1 */
  --gray-600: #555555;   /* muted text on white: 7.5:1 */
  --gray-400: #8a8a8a;   /* decorative only, never text */
  --gray-200: #d9d9d9;   /* borders */
  --gray-100: #f2f2f2;   /* section backgrounds */
  --white: #ffffff;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
  --gutter: 24px;
  --radius: 10px;
  --section-pad: clamp(64px, 10vw, 120px);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gray-600);
}

:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
  color: var(--white);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--gray-700);
  border-color: var(--gray-700);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--black);
}

.btn-outline:hover {
  background: var(--gray-100);
  border-color: var(--black);
  color: var(--black);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--black);
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.wordmark:hover {
  color: var(--black);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  font-weight: 600;
  text-decoration: none;
  color: var(--gray-700);
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--black);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-nav .btn {
  min-height: 42px;
  padding: 8px 18px;
}

/* On the waitlist page, the header button shows it's the current page with an outline. */
.site-nav .btn[aria-current="page"] {
  background: var(--white);
  color: var(--black);
  text-decoration: none;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }

  .site-nav li a:not(.btn) {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .site-nav li:last-child {
    padding-top: 16px;
  }

  .site-nav .btn {
    width: 100%;
    min-height: 48px;
  }
}

/* Sections */

.section {
  padding: var(--section-pad) 0;
}

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

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.lead {
  font-size: 1.1875rem;
  color: var(--gray-700);
}

.note {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.label {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero */

.hero {
  padding: clamp(72px, 12vw, 144px) 0 clamp(64px, 10vw, 112px);
  border-bottom: 1px solid var(--gray-200);
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 24px;
}

.hero .lead {
  max-width: 34em;
  margin-bottom: 36px;
  font-size: clamp(1.1875rem, 2.2vw, 1.375rem);
}

.hero .note {
  margin: 16px 0 0;
}

/* Hero with product preview */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-grid h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
}

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

/* Cards and steps */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
}

.card p {
  margin: 0;
  color: var(--gray-700);
}

.card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--black);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 8px 18px;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
}

/* Full-width buttons on phones so stacked buttons line up */
@media (max-width: 480px) {
  .hero .btn-row .btn,
  .cta .btn-row .btn,
  .page-404 .btn-row .btn,
  .split .btn,
  .demo-toolbar .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  padding-top: 24px;
  border-top: 3px solid var(--black);
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 16px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.steps p {
  margin: 0;
  color: var(--gray-700);
}

.steps + .note {
  margin: 40px 0 0;
}

@media (max-width: 820px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 40px;
  }
}

/* Demo preview */

.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.split .lead {
  margin-bottom: 32px;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.mini-demo {
  position: relative;
  margin: 0;
  padding: 28px;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 10px 10px 0 var(--black);
}

.mini-demo-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.mini-demo-top .note {
  margin: 0;
}

.mini-total {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

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

.bars li {
  display: grid;
  grid-template-columns: 6.5em 1fr 4.5em;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
}

.bar-label {
  font-weight: 600;
}

.bar-amount {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bar-track {
  height: 18px;
  border-radius: 4px;
  background: var(--gray-100);
  overflow: hidden;
}

.bar {
  display: block;
  height: 100%;
  border: 1.5px solid var(--black);
  border-radius: 4px;
}

/* Homepage preview bar widths (match the demo's sample month) */
.w-100 { width: 100%; }
.w-62 { width: 62%; }
.w-16 { width: 16%; }
.w-14 { width: 14%; }
.w-8 { width: 8%; }
.h-100 { height: 100%; }
.h-47 { height: 47%; }
.h-35 { height: 35%; }
.h-32 { height: 32%; }

.mini-demo-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
}

/* Categories are told apart by fill pattern, not color. */
.fill-solid { background: var(--black); }
.fill-dark { background: var(--gray-700); }
.fill-stripe { background: repeating-linear-gradient(45deg, var(--black) 0 3px, var(--white) 3px 7px); }
.fill-dots { background: radial-gradient(circle, var(--black) 1.5px, var(--white) 1.6px) 0 0 / 6px 6px; }
.fill-light { background: var(--gray-200); }

.insight {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  background: var(--gray-100);
  font-size: 0.9375rem;
}

.insight strong {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .mini-demo {
    padding: 20px;
    box-shadow: 6px 6px 0 var(--black);
  }

  .mini-demo-top {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 6px;
  }

  .bars li {
    grid-template-columns: 5.5em 1fr 4em;
    gap: 8px;
    font-size: 0.875rem;
  }
}

/* Who it's for, honest positioning */

.narrow {
  max-width: 760px;
}

.narrow p {
  font-size: 1.1875rem;
  color: var(--gray-700);
}

/* Final call to action */

.cta {
  text-align: center;
}

.cta .narrow {
  margin: 0 auto;
}

.cta .lead {
  margin-bottom: 32px;
}

.cta .btn-row {
  justify-content: center;
}

/* Footer */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 600;
}

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

.footer-meta {
  width: 100%;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.footer-meta p {
  margin: 0 0 4px;
}

.placeholder {
  padding: 1px 6px;
  border: 1px dashed var(--gray-600);
  border-radius: 4px;
}

/* Utilities */

[hidden] {
  display: none !important;
}

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

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

/* More fill patterns for the demo's seven categories */
.fill-lines { background: repeating-linear-gradient(0deg, var(--black) 0 2px, var(--white) 2px 5px); }
.fill-check { background: repeating-conic-gradient(var(--black) 0 25%, var(--white) 0 50%) 0 0 / 6px 6px; }

/* Page intro (inner pages) */

.page-intro {
  padding: clamp(56px, 9vw, 104px) 0 clamp(32px, 5vw, 48px);
}

.page-intro h1 {
  margin-bottom: 20px;
}

.page-intro .lead {
  max-width: 36em;
}

.demo-note {
  display: inline-block;
  margin: 8px 0 12px;
  padding: 12px 16px;
  border-left: 4px solid var(--black);
  background: var(--gray-100);
}

.page-intro .note {
  max-width: 40em;
  margin: 0;
}

/* Demo tracker */

.demo-section {
  padding-bottom: var(--section-pad);
}

.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

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

.panel {
  padding: clamp(20px, 3vw, 32px);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
}

.panel-title {
  margin: 0 0 20px;
  font-size: 1.375rem;
}

.panel-title:focus {
  outline: none;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-600);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

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

.field input:hover,
.field select:hover {
  border-color: var(--black);
}

.field input[aria-invalid="true"] {
  border: 2px solid var(--black);
  background: var(--gray-100);
}

.form-error {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 2px solid var(--black);
  border-radius: 8px;
  font-weight: 700;
}

.form-error::before {
  content: "! ";
}

.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.month-nav .panel-title {
  margin: 0;
  text-align: center;
}

.icon-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--gray-100);
}

.empty-state {
  padding: 40px 16px;
  border: 1.5px dashed var(--gray-600);
  border-radius: 8px;
  text-align: center;
}

.empty-state p {
  margin: 0 0 6px;
}

.empty-state p:first-child {
  font-weight: 700;
}

.empty-state .btn {
  margin-top: 16px;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.summary p {
  margin: 0;
}

.summary-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-600);
}

.summary-total {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.panel-results .insight {
  margin: 20px 0 6px;
}

.rules-note {
  margin: 0 0 24px;
  font-size: 0.8125rem;
}

.form-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.list-head .panel-title {
  margin: 0;
}

.link-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: none;
}

.demo-disclaimer {
  margin: 20px 0 0;
}

.chart-title {
  margin: 0 0 14px;
  font-size: 1rem;
}

.panel-results .bars {
  margin-bottom: 28px;
}

.panel-results .bars li {
  grid-template-columns: 6.5em 1fr 6.5em;
}

.panel-results .bar-amount {
  white-space: nowrap;
}

.bar-share {
  display: inline-block;
  min-width: 2.6em;
  font-weight: 500;
  color: var(--gray-600);
}

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

.trend li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.trend-amount {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.trend-col {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 120px;
  margin: 6px 0 8px;
  border-bottom: 2px solid var(--black);
}

.trend-bar {
  display: block;
  width: 100%;
  max-width: 56px;
  margin: 0 auto;
  border-radius: 4px 4px 0 0;
  background: var(--gray-700);
}

.trend-label {
  font-size: 0.8125rem;
  color: var(--gray-600);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .panel-results .bars li {
    grid-template-columns: 5.2em 1fr 6.8em;
  }

  .trend {
    gap: 4px;
  }

  .trend-amount,
  .trend-label {
    font-size: 0.6875rem;
  }

  .trend-mon {
    display: none;
  }
}

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

.purchase {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr) 9em 7em 4.5em;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--gray-200);
}

.p-date {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.p-desc {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.p-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
}

.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 1.5px solid var(--black);
  border-radius: 3px;
}

.p-amount {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.link-btn {
  justify-self: end;
  min-height: 36px;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--gray-600);
}

.list-empty {
  padding: 12px 0;
  border-top: 1px solid var(--gray-200);
}

@media (max-width: 640px) {
  .purchase {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "desc amount"
      "meta delete";
    gap: 2px 12px;
  }

  .p-desc { grid-area: desc; }
  .p-amount { grid-area: amount; }
  .link-btn { grid-area: delete; }

  .p-date,
  .p-cat {
    grid-area: meta;
  }

  .p-cat {
    padding-left: 4.2em;
  }
}

/* How It Works */

.section-tight {
  padding-top: clamp(32px, 5vw, 56px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-wrap {
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.compare {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}

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

.compare thead th {
  font-size: 1.0625rem;
  border-bottom: 2px solid var(--black);
}

.compare thead th:nth-child(2),
.compare tbody td:nth-of-type(1) {
  background: var(--gray-100);
  font-weight: 600;
}

.compare tbody th {
  width: 24%;
  color: var(--gray-700);
}

.th-sub {
  font-weight: 500;
  color: var(--gray-600);
}

@media (max-width: 700px) {
  .compare thead {
    display: none;
  }

  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
  }

  .compare tr {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
  }

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

  .compare th,
  .compare td {
    padding: 4px 0;
    border: 0;
  }

  .compare tbody th {
    width: 100%;
    margin-bottom: 4px;
    font-size: 1.0625rem;
    color: var(--black);
  }

  .compare tbody td:nth-of-type(1) {
    background: none;
  }

  .compare td::before {
    content: attr(data-label) ": ";
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gray-600);
  }
}

.faq {
  border-top: 2px solid var(--black);
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-size: 1.125rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border: 2px solid var(--black);
  border-radius: 50%;
  font-size: 1.125rem;
  line-height: 24px;
  text-align: center;
  transition: background-color 0.15s, color 0.15s;
}

.faq-item[open] summary::after {
  content: "\2212";
  background: var(--black);
  color: var(--white);
}

.faq-item p {
  margin: -4px 0 20px;
  padding-right: 44px;
  color: var(--gray-700);
}

/* Waitlist */

.waitlist-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

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

.field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-600);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.field textarea:hover {
  border-color: var(--black);
}

.field select[aria-invalid="true"] {
  border: 2px solid var(--black);
  background: var(--gray-100);
}

.optional {
  font-weight: 500;
  color: var(--gray-600);
}

.form-fine {
  margin: 14px 0 0;
  text-align: center;
}

.hp {
  display: none;
}

.thanks {
  padding: 24px 0;
  text-align: center;
}

.thanks:focus {
  outline: none;
}

.thanks h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.thanks p {
  margin: 0 0 8px;
  font-size: 1.125rem;
  color: var(--gray-700);
}

.perks h2 {
  font-size: 1.375rem;
}

.perks ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--black);
}

.perks li {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.perks li strong {
  display: block;
  color: var(--ink);
}

/* Privacy */

.prose h2 {
  margin-top: 40px;
  font-size: 1.375rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  font-size: 1.0625rem;
}

/* 404 */

.page-404 {
  min-height: 55vh;
}

.page-404 .lead {
  margin-bottom: 32px;
}

/* Hover effects (mouse and trackpad only; phones skip these) */

.card,
.steps li,
.mini-demo,
.bars li {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.steps li::before {
  display: inline-block;
  min-width: 1.35em;
  margin-left: -0.15em;
  padding: 0.08em 0.15em;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bars li {
  margin-left: -8px;
  margin-right: -8px;
  padding: 4px 8px;
  border-radius: 6px;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: var(--black);
    box-shadow: 6px 6px 0 var(--black);
  }

  .steps li:hover {
    transform: translateY(-4px);
    box-shadow: 0 -3px 0 var(--black);
  }

  .steps li:hover::before {
    background: var(--black);
    color: var(--white);
  }

  .faq-item summary:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .faq-item summary:hover::after {
    background: var(--gray-100);
  }

  .faq-item[open] summary:hover::after {
    background: var(--gray-700);
  }

  .mini-demo:hover {
    transform: translate(-4px, -4px);
    box-shadow: 14px 14px 0 var(--black);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .steps li,
  .mini-demo,
  .bars li {
    transition: none;
  }

  .card:hover,
  .steps li:hover,
  .mini-demo:hover {
    transform: none;
  }
}
