/* Duefront pre-launch pages — mobile-first, tokens only, near-black on white, one cool accent. */
:root {
  --ink: #101418;
  --ink-soft: #3a424b;
  --muted: #626b76;
  --line: #dfe3e8;
  --line-soft: #eef1f4;
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --accent: #0b6e8f;
  --accent-ink: #ffffff;
  --accent-soft: #e6f2f7;
  --focus: #0b6e8f;
  --error: #8f1d1d;
  --radius: 8px;
  --gutter: 16px;
  --measure: 40rem;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

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

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

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* One section (the comparison table) needs more room than the reading measure. */
.wrap.wide {
  max-width: calc(56rem + 2 * var(--gutter));
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: none;
}

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

/* Hero */
.hero {
  padding-top: 8px;
  padding-bottom: 40px;
}

.kicker {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.875rem, 6.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.promise {
  margin: 0 0 16px;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}

.lede {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.mandatory {
  margin: 0 0 32px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
}

/* Form */
.join {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.join label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.join-row {
  display: grid;
  gap: 10px;
}

.join input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid #b6bdc5;
  border-radius: 6px;
}

.join input[type="email"]:focus {
  border-color: var(--accent);
}

.join input[aria-invalid="true"] {
  border-color: var(--error);
}

.join button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.join button:hover {
  filter: brightness(1.08);
}

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

/* Honeypot: off-screen for people, present for naive bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.form-status {
  margin: 0;
  min-height: 1.5em;
  font-size: 0.9375rem;
}

.form-status.is-success {
  color: var(--accent);
  font-weight: 500;
}

.form-status.is-info {
  color: var(--ink-soft);
  font-weight: 500;
}

.form-status.is-pending {
  color: var(--muted);
}

.form-status.is-error {
  color: var(--error);
  font-weight: 500;
}

/* Sections */
.block {
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
}

.body-text {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.asset-link {
  margin: 20px 0 0;
  padding: 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  color: var(--ink-soft);
}

.asset-link a {
  font-weight: 600;
}

/* The loop */
.loop {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.loop li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  color: var(--ink-soft);
}

.loop strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

/* Illustrative comparison */
.example {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.example-label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.example-title {
  margin: 0 0 14px;
  font-weight: 600;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.metrics div {
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.metrics dt {
  font-size: 0.75rem;
  color: var(--muted);
}

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

.metrics .move {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.delta {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.delta li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.delta li > span:nth-child(2) {
  grid-column: 1;
  justify-self: start;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.delta li > span:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-variant-numeric: tabular-nums;
}

.move {
  color: var(--ink);
  font-weight: 500;
}

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

.example-note {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Points and segments */
.points,
.who {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.points li {
  padding-left: 16px;
  border-left: 3px solid var(--accent-soft);
  color: var(--ink-soft);
}

.points strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.who li {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
}

.who li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.who strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* Article / long-form pages */
.page-head {
  padding-top: 8px;
  padding-bottom: 8px;
}

.page-head h1 {
  font-size: clamp(1.625rem, 5vw, 2.25rem);
  margin-bottom: 12px;
}

.page-head .promise {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.prose {
  max-width: 38rem;
}

.prose h2 {
  margin-top: 32px;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose p {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 6px;
}

.prose li strong {
  color: var(--ink);
}

.prose .lead {
  font-size: 1.0625rem;
  color: var(--ink);
}

/* Checklist table */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 20px;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare caption {
  caption-side: top;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--muted);
  padding-bottom: 6px;
}

.compare th,
.compare td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.compare thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
}

.compare tbody th {
  color: var(--ink);
  font-weight: 600;
}

/* Numbered reconciliation steps */
.steps {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 16px 34px;
  border-left: 1px solid var(--line);
  margin-left: 11px;
  color: var(--ink-soft);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -12px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.steps li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.steps strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

/* Blog */
.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}

.post-list li {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.post-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.post-date {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.post-list h2 {
  margin: 0 0 6px;
  font-size: 1.1875rem;
}

.post-list h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-list h2 a:hover {
  text-decoration: underline;
}

.post-list p {
  margin: 0;
  color: var(--ink-soft);
}

.byline {
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 24px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
}

.site-footer .mandatory {
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.footer-line {
  margin: 0 0 4px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.footer-copy {
  margin-top: 8px;
  color: var(--muted);
}

/* Wider screens */
@media (max-width: 639.98px) {
  /* The comparison table becomes six stacked rows with their column labels. */
  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

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

  .compare tr {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .compare tbody tr:first-child {
    padding-top: 4px;
    border-top: 0;
  }

  .compare th[scope="row"] {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .compare td {
    padding: 0 0 8px;
    border: 0;
  }

  .compare td:last-child {
    padding-bottom: 0;
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

@media (min-width: 640px) {
  .join-row {
    grid-template-columns: 1fr auto;
  }

  .join button {
    width: auto;
  }

  .delta li {
    grid-template-columns: 1fr 10rem 6rem;
    align-items: baseline;
  }

  .delta li > span:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .delta li > span:last-child {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .site-header {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .hero {
    padding-top: 16px;
    padding-bottom: 56px;
  }

  .block {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .example {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
