/* Hallmark · genre: modern-minimal · tone: sober-operational · anchor: cool-blue-250 · macrostructure: Product-led ledger · demo: Workbench · theme: studied-DNA (source: private Mis Cuentas design.md) · design-system: design.md · nav: N9 · footer: Ft2 · contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57) */
/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 */
/* Self-critique: the interface deliberately reuses the personal app's compact controls, cool surfaces, blue accent and ledger grammar; marketing hierarchy is restrained so the product remains the visual proof. */

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

html {
  min-width: 20rem;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--color-ink);
  background-color: var(--color-paper);
  background-image:
    linear-gradient(var(--color-grid) var(--rule-thin), var(--color-grid-transparent) var(--rule-thin)),
    linear-gradient(90deg, var(--color-grid) var(--rule-thin), var(--color-grid-transparent) var(--rule-thin));
  background-size: 2rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: calc(var(--z-base) - 1);
  inset: 0;
  pointer-events: none;
  content: "";
  background: var(--color-paper);
  opacity: 0.86;
}

body > * {
  position: relative;
  z-index: var(--z-base);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

a {
  color: var(--color-accent-strong);
  text-decoration-thickness: var(--rule-thin);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: var(--rule-strong);
}

p,
h1,
h2,
h3,
figure,
ol,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: var(--text-display-s);
}

h2 {
  font-size: clamp(var(--text-xl), 5vw, var(--text-2xl));
}

h3 {
  font-size: var(--text-lg);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: var(--z-skip);
  top: var(--space-sm);
  left: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--color-accent-ink);
  background: var(--color-accent-strong);
  border-radius: var(--radius-sm);
  font-weight: 720;
  transform: translateY(calc(-100% - var(--space-xl)));
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: var(--rule-strong) solid var(--color-focus);
  outline-offset: var(--space-2xs);
}

.button--primary:focus-visible {
  outline-color: var(--color-paper-raised);
  box-shadow: 0 0 0 var(--space-2xs) var(--color-focus);
}

.shell {
  width: min(calc(100% - 2rem), 72rem);
  margin-inline: auto;
}

.nav-edge {
  position: sticky;
  z-index: var(--z-sticky);
  top: 0;
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-xs) max(var(--space-md), env(safe-area-inset-left));
  background: var(--color-paper-raised);
  border-bottom: var(--rule-thin) solid var(--color-rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-wordmark);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
}

.button {
  display: inline-flex;
  min-height: var(--control-height);
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: calc(var(--space-sm) - var(--rule-thin)) var(--space-md);
  border: var(--rule-thin) solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.button--primary {
  color: var(--color-accent-ink);
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
}

.button--secondary,
.button--quiet {
  color: var(--color-ink);
  background: var(--color-paper-raised);
}

.button--quiet {
  border-color: var(--color-rule);
}

.button:active {
  transform: translateY(var(--rule-thin));
}

.button:disabled {
  color: var(--color-muted);
  background: var(--color-paper-2);
  border-color: var(--color-rule);
  opacity: 0.78;
  transform: none;
}

.text-link {
  min-height: var(--control-height);
  padding: var(--space-xs) 0;
  color: var(--color-accent-strong);
  background: var(--color-transparent);
  border: 0;
  font-size: var(--text-sm);
  font-weight: 720;
  text-decoration: underline;
  text-decoration-thickness: var(--rule-thin);
  text-underline-offset: 0.25em;
  white-space: nowrap;
}

.prototype-note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 670;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.prototype-note::before {
  width: var(--space-xs);
  height: var(--space-xs);
  background: var(--color-accent);
  border-radius: var(--radius-xs);
  content: "";
}

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

.amount {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.amount--income {
  color: var(--color-income);
  font-weight: 690;
}

.amount--neutral {
  color: var(--color-transfer);
  font-weight: 690;
}

/* Landing */

.hero {
  display: grid;
  min-height: calc(100vh - 4rem);
  align-items: center;
  gap: var(--space-xl);
  padding-block: var(--space-xl) var(--space-2xl);
}

.hero__copy {
  max-width: 38rem;
}

.hero h1 {
  max-width: 9ch;
  margin-bottom: var(--space-lg);
  font-size: var(--text-display);
}

.hero__lede {
  max-width: 60ch;
  margin-bottom: var(--space-lg);
  color: var(--color-ink-2);
  font-size: clamp(var(--text-md), 3vw, var(--text-lg));
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
}

.hero__assurance {
  max-width: 34rem;
  margin: var(--space-md) 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.ledger-preview {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--color-paper-raised);
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-md);
  box-shadow: 0 var(--space-2xs) var(--space-md) var(--color-shadow-whisper);
}

.ledger-preview__heading,
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: var(--rule-thin) solid var(--color-rule);
}

.ledger-preview__heading {
  min-height: 3.25rem;
  color: var(--color-ink-2);
  background: var(--color-paper-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ledger-row {
  min-height: 4rem;
}

.ledger-row--transfer {
  background: var(--color-transfer-soft);
}

.ledger-preview figcaption {
  padding: var(--space-md);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

.fit-check,
.guided-tour,
.plans,
.honesty {
  margin-block: var(--space-xl);
  background: var(--color-paper-raised);
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-md);
}

.fit-check {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-lg);
}

.fit-check h2,
.section-heading h2,
.honesty h2 {
  margin-bottom: var(--space-sm);
}

.fit-check p,
.section-heading p,
.honesty p {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--color-ink-2);
}

.plain-list {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: var(--space-lg);
}

.plain-list li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: var(--space-sm);
  height: var(--rule-strong);
  background: var(--color-accent);
  content: "";
}

.guided-tour,
.plans {
  padding: var(--space-lg);
}

.section-heading {
  display: grid;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.tour-list {
  display: grid;
  margin: 0 0 var(--space-lg);
  padding: 0;
  border-top: var(--rule-thin) solid var(--color-rule);
  list-style: none;
}

.tour-list li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-md);
  min-height: 4rem;
  padding-block: var(--space-sm);
  border-bottom: var(--rule-thin) solid var(--color-rule);
}

.tour-list span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--color-accent-strong);
  background: var(--color-accent-soft);
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 730;
}

.sticky-cta {
  position: static;
  display: flex;
  width: min(calc(100% - 2rem), 50rem);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin: var(--space-xl) auto;
  padding: var(--space-sm);
  color: var(--color-ink);
  background: var(--color-paper-raised);
  border: var(--rule-thin) solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 var(--space-xs) var(--space-lg) var(--color-shadow-whisper);
  font-size: var(--text-sm);
  font-weight: 680;
}

.plan-table {
  display: grid;
  overflow: hidden;
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-md);
}

.plan {
  display: flex;
  min-height: 21rem;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-lg);
}

.plan + .plan {
  border-top: var(--rule-thin) solid var(--color-rule);
}

.plan--plus {
  background: var(--color-paper-2);
  box-shadow: inset 0 var(--rule-strong) var(--color-accent);
}

.plan h3 {
  margin-bottom: var(--space-sm);
}

.plan > p:not(.plan__price, .plan__annual, .plan__note) {
  color: var(--color-ink-2);
}

.plan__price {
  margin-bottom: var(--space-2xs);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 760;
  letter-spacing: -0.05em;
}

.plan__price span,
.plan__annual,
.plan__note {
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 520;
  letter-spacing: 0;
}

.plan .button {
  width: 100%;
  margin-top: auto;
}

.plan__note {
  width: 100%;
  margin: var(--space-xs) 0 0;
  text-align: center;
}

.honesty {
  margin-bottom: var(--space-3xl);
  padding: var(--space-lg);
  border-left: var(--rule-strong) solid var(--color-warning);
}

/* Demo workbench */

.demo-shell {
  width: min(calc(100% - 2rem), 72rem);
  min-height: calc(100vh - 4rem);
  margin-inline: auto;
  padding-block: var(--space-xl);
}

.demo-heading {
  display: grid;
  gap: var(--space-lg);
  align-items: end;
  margin-bottom: var(--space-lg);
}

.demo-heading h1 {
  max-width: 18ch;
  margin-bottom: 0;
}

.demo-progress-copy {
  margin: 0;
  color: var(--color-ink-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.demo-progress {
  height: var(--space-2xs);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  background: var(--color-paper-3);
  border-radius: var(--radius-round);
}

.demo-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}

.demo-step {
  min-height: 30rem;
  padding: var(--space-lg);
  background: var(--color-paper-raised);
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-md);
}

.demo-caption {
  max-width: 46rem;
  margin-bottom: var(--space-lg);
}

.demo-caption > p:first-child {
  margin-bottom: var(--space-xs);
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.demo-caption h2 {
  margin-bottom: var(--space-sm);
}

.demo-caption > p:last-child {
  margin-bottom: 0;
  color: var(--color-ink-2);
}

.table-hint {
  margin-bottom: var(--space-sm);
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.table-wrap {
  overflow-x: auto;
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  background: var(--color-paper-raised);
  font-size: var(--text-sm);
}

caption {
  padding: var(--space-sm) var(--space-md);
  color: var(--color-ink-2);
  background: var(--color-paper-2);
  border-bottom: var(--rule-thin) solid var(--color-rule);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 650;
  text-align: left;
  text-transform: uppercase;
}

th,
td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: var(--rule-thin) solid var(--color-rule);
  text-align: left;
}

th {
  color: var(--color-ink-2);
  background: var(--color-paper-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.category-board,
.summary-board {
  display: grid;
  gap: var(--space-sm);
}

.category-board article,
.summary-board article {
  display: grid;
  min-height: 9rem;
  align-content: start;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--color-surface-2);
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-md);
}

.category-board span,
.summary-board span {
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 650;
}

.category-board strong,
.summary-board strong {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
}

.category-board small,
.summary-board small {
  color: var(--color-muted);
}

.category-board article:nth-child(1) {
  border-left: var(--rule-strong) solid var(--color-expense);
}

.category-board article:nth-child(2) {
  border-left: var(--rule-strong) solid var(--color-warning);
}

.category-board article:nth-child(3) {
  border-left: var(--rule-strong) solid var(--color-transfer);
}

.transfer-proof {
  display: grid;
  max-width: 48rem;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-md);
  background: var(--color-transfer-soft);
  border: var(--rule-thin) solid var(--color-rule);
  border-left: var(--rule-strong) solid var(--color-transfer);
  border-radius: var(--radius-md);
}

.transfer-proof article {
  display: grid;
  gap: var(--space-xs);
  min-width: 0;
  padding: var(--space-md);
  background: var(--color-paper-raised);
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-sm);
}

.transfer-proof article span {
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

.transfer-proof article strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.transfer-proof__line {
  color: var(--color-transfer);
  font-family: var(--font-mono);
  font-weight: 800;
}

.transfer-proof > p {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin: 0;
  padding-top: var(--space-sm);
  border-top: var(--rule-thin) solid var(--color-rule);
}

.budget-meter {
  height: var(--space-xs);
  margin-top: var(--space-xs);
  overflow: hidden;
  background: var(--color-paper-3);
  border-radius: var(--radius-round);
}

.budget-meter span {
  display: block;
  width: 29%;
  height: 100%;
  background: var(--color-warning);
}

.demo-finish {
  display: grid;
  align-content: center;
  gap: var(--space-xl);
}

.demo-finish > div:first-child {
  max-width: 48rem;
}

.demo-finish h2 {
  margin-bottom: var(--space-md);
}

.demo-finish p:last-child {
  color: var(--color-ink-2);
}

.demo-finish__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.demo-controls {
  position: sticky;
  z-index: calc(var(--z-sticky) - 1);
  bottom: var(--space-sm);
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding: var(--space-sm);
  background: var(--color-paper-raised);
  border: var(--rule-thin) solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 var(--space-xs) var(--space-lg) var(--color-shadow-whisper);
}

/* Privacy, 404 and footer */

.policy {
  width: min(calc(100% - 2rem), 48rem);
  margin-block: var(--space-xl) var(--space-3xl);
  padding: var(--space-lg);
  background: var(--color-paper-raised);
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-md);
}

.policy > h1 {
  max-width: 14ch;
  margin-bottom: var(--space-md);
}

.policy__intro {
  max-width: 42rem;
  margin-bottom: var(--space-xl);
  color: var(--color-ink-2);
  font-size: var(--text-md);
}

.policy section {
  padding-block: var(--space-lg);
  border-top: var(--rule-thin) solid var(--color-rule);
}

.policy section h2 {
  margin-bottom: var(--space-sm);
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.policy section p:last-child {
  margin-bottom: 0;
}

.error-page {
  display: grid;
  min-height: calc(100vh - 8rem);
  place-items: center;
  padding: var(--space-xl) var(--space-md);
}

.error-panel {
  width: min(100%, 36rem);
  padding: var(--space-xl);
  text-align: center;
  background: var(--color-paper-raised);
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-md);
}

.error-code {
  margin-bottom: var(--space-sm);
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.error-panel h1 {
  margin-bottom: var(--space-md);
}

.error-panel p:not(.error-code) {
  margin-bottom: var(--space-lg);
  color: var(--color-ink-2);
}

.foot-mast {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-xl) max(var(--space-md), env(safe-area-inset-left));
  background: var(--color-paper-raised);
  border-top: var(--rule-thin) solid var(--color-rule);
}

.foot-mast > div {
  display: grid;
  gap: var(--space-sm);
}

.foot-mast p {
  margin-bottom: 0;
}

.foot-mast nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* Interest form */

.interest-dialog {
  width: min(calc(100% - 2rem), 38rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--color-ink);
  background: var(--color-paper-raised);
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-md);
  box-shadow: 0 var(--space-xl) var(--space-3xl) var(--color-shadow-modal);
}

.interest-dialog::backdrop {
  background: var(--color-overlay);
}

.interest-form {
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

.dialog-heading {
  position: sticky;
  z-index: var(--z-raised);
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-paper-raised);
  border-bottom: var(--rule-thin) solid var(--color-rule);
}

.dialog-heading h2 {
  margin-bottom: var(--space-xs);
  font-size: var(--text-xl);
}

.dialog-heading p {
  margin-bottom: 0;
  color: var(--color-ink-2);
}

.icon-button {
  display: grid;
  width: var(--control-height);
  min-width: var(--control-height);
  height: var(--control-height);
  place-items: center;
  padding: 0;
  color: var(--color-ink);
  background: var(--color-paper-2);
  border: var(--rule-thin) solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  line-height: 1;
}

.collection-disabled {
  margin: var(--space-lg) var(--space-lg) 0;
  padding: var(--space-md);
  color: var(--color-warning);
  background: var(--color-warning-soft);
  border: var(--rule-thin) solid var(--color-rule);
  border-radius: var(--radius-sm);
}

.collection-disabled p {
  margin: 0;
}

[data-form-fields] {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg);
}

[data-form-fields] > label:not(.check-row, .honeypot) {
  display: grid;
  gap: var(--space-xs);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 690;
}

[data-form-fields] > label span {
  color: var(--color-muted);
  font-weight: 520;
}

input,
select,
textarea {
  width: 100%;
  min-height: var(--control-height);
  padding: var(--space-sm);
  color: var(--color-ink);
  background: var(--color-paper-raised);
  border: var(--rule-thin) solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  outline: var(--rule-strong) solid var(--color-transparent);
  outline-offset: var(--rule-thin);
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-muted);
}

.check-row {
  display: grid;
  grid-template-columns: var(--space-lg) minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: start;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 520;
}

.check-row input {
  width: var(--space-lg);
  min-height: var(--space-lg);
  margin: 0.05rem 0 0;
  accent-color: var(--color-accent-strong);
}

.check-row span {
  color: inherit;
}

.honeypot {
  position: absolute;
  width: var(--rule-thin);
  height: var(--rule-thin);
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.button--submit {
  width: 100%;
}

.form-status {
  min-height: 1lh;
  margin: 0;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

.form-status[data-state="error"] {
  color: var(--color-danger);
}

.form-status[data-state="success"] {
  color: var(--color-success);
}

@media (hover: hover) and (pointer: fine) {
  .button--primary:hover {
    color: var(--color-accent-ink);
    background: var(--color-accent);
    border-color: var(--color-accent);
  }

  .button--secondary:hover,
  .button--quiet:hover,
  .icon-button:hover {
    color: var(--color-accent-strong);
    background: var(--color-accent-soft);
    border-color: var(--color-accent);
  }

  .text-link:hover {
    text-decoration-thickness: var(--rule-strong);
  }

  input:hover,
  select:hover,
  textarea:hover {
    border-color: var(--color-accent);
  }
}

input:active,
select:active,
textarea:active {
  border-color: var(--color-accent);
}

input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  color: var(--color-muted);
  background: var(--color-paper-2);
  border-color: var(--color-rule);
  opacity: 0.55;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
}

@media (min-width: 40rem) {
  .nav-edge {
    padding-inline: var(--space-lg);
  }

  .fit-check {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    padding: var(--space-xl);
  }

  .guided-tour,
  .plans,
  .honesty,
  .policy,
  .demo-step {
    padding: var(--space-xl);
  }

  .tour-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: var(--rule-thin) solid var(--color-rule);
    border-radius: var(--radius-md);
  }

  .tour-list li {
    padding: var(--space-md);
    border-bottom: 0;
  }

  .tour-list li:nth-child(odd) {
    border-right: var(--rule-thin) solid var(--color-rule);
  }

  .tour-list li:nth-child(-n + 2) {
    border-bottom: var(--rule-thin) solid var(--color-rule);
  }

  .plan-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan + .plan {
    border-top: 0;
    border-left: var(--rule-thin) solid var(--color-rule);
  }

  .demo-heading {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .category-board,
  .summary-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .demo-finish {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .demo-finish__actions {
    max-width: 18rem;
  }

  .demo-finish__actions .button {
    width: 100%;
  }

  .foot-mast {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding-inline: var(--space-xl);
  }
}

@media (min-width: 60rem) {
  .nav-edge {
    padding-inline: max(var(--space-xl), calc((100vw - 72rem) / 2));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(26rem, 0.85fr);
    gap: var(--space-2xl);
    padding-block: var(--space-2xl) var(--space-3xl);
  }

  .guided-tour {
    display: grid;
    grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
    gap: var(--space-xl);
    align-items: start;
  }

  .guided-tour .section-heading {
    position: sticky;
    top: 6rem;
    grid-row: span 2;
  }

  .guided-tour .button {
    justify-self: start;
  }

  .foot-mast {
    padding-inline: max(var(--space-xl), calc((100vw - 72rem) / 2));
  }
}

@media (max-width: 39.99rem) {
  .nav-edge .button {
    min-height: 2.5rem;
    padding-inline: var(--space-sm);
  }

  .hero {
    min-height: auto;
    padding-block: var(--space-xl);
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .sticky-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .sticky-cta .button {
    width: 100%;
  }

  .table-hint {
    display: none;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
    background: var(--color-transparent);
  }

  caption {
    border: var(--rule-thin) solid var(--color-rule);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  thead {
    position: absolute;
    width: var(--rule-thin);
    height: var(--rule-thin);
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  tbody {
    display: grid;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
  }

  tbody tr {
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-paper-raised);
    border: var(--rule-thin) solid var(--color-rule);
    border-radius: var(--radius-md);
  }

  tbody td {
    display: grid;
    grid-template-columns: minmax(6rem, 0.7fr) minmax(0, 1.3fr);
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    border-bottom: var(--rule-thin) solid var(--color-rule);
    text-align: right;
  }

  tbody td:last-child {
    border-bottom: 0;
  }

  tbody td::before {
    color: var(--color-muted);
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 650;
    text-align: left;
    text-transform: uppercase;
  }

  .transfer-proof {
    grid-template-columns: 1fr;
  }

  .transfer-proof__line {
    justify-self: center;
    transform: rotate(90deg);
  }

  .transfer-proof > p {
    grid-column: 1;
  }

  .demo-controls .button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
