/* The marketing landing of the root domain (decision D8, since 2026-10-11). The product's visual system:
   IBM Plex Sans and Plex Mono, red only for what is urgent, a dark slate as the accent (the app's
   sidebar), cards with a thin border. No build step: scripts/publish-marketing.sh uploads this folder. */

:root {
  --ink: #15212c;
  --ink-soft: #24333f;
  --paper: #f4f6f8;
  --surface: #ffffff;
  --slate: #586877;
  --line: #d6dce2;
  --urgent: #c8102e;
  --urgent-wash: #fbe9ec;
  --soon: #8a5a00;
  --soon-wash: #fbf1dc;
  --on-ink: #f4f6f8;
  --on-ink-soft: #b9c4ce;
  --focus: #1d5fbf;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --measure: 34rem;
  --radius-card: 6px;
  --radius-control: 4px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

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

.mono {
  font-family: var(--mono);
  font-feature-settings: "zero" 1;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--on-ink);
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

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

/* Buttons: the primary is the dark slate; red is kept for what is urgent. */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--ink);
  color: var(--on-ink);
}

.button-primary:hover {
  background: var(--ink-soft);
}

.button-quiet {
  border-color: var(--line);
  background: var(--surface);
}

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

.button-light {
  background: var(--on-ink);
  color: var(--ink);
}

.button-light:hover {
  background: #ffffff;
}

/* Header */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--ink);
}

/* Hero: the claim on the left, a sample of the firm's inbox on the right. */
.hero {
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.125rem, 5vw, 3.375rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  max-width: var(--measure);
  margin-top: 1.25rem;
  color: var(--slate);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.ledger {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}

.ledger-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.875rem 1.125rem;
  background: var(--ink);
  color: var(--on-ink);
}

.ledger-title {
  font-weight: 600;
}

.ledger-sync {
  color: var(--on-ink-soft);
  font-size: 0.8125rem;
}

.ledger table {
  width: 100%;
  border-collapse: collapse;
}

.ledger caption {
  padding: 0.75rem 1.125rem 0;
  color: var(--slate);
  font-size: 0.8125rem;
  text-align: left;
}

.ledger th {
  padding: 0.625rem 1.125rem;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
}

.ledger td {
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

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

/* The urgent row: a red rule on its left edge, the only red in the sample besides its tag. */
.ledger tr.is-urgent td:first-child {
  box-shadow: inset 3px 0 0 var(--urgent);
}

.company {
  display: block;
  font-weight: 500;
  line-height: 1.35;
}

.case {
  display: block;
  font-size: 0.9375rem;
}

.rut {
  display: block;
  margin-top: 0.125rem;
  color: var(--slate);
  font-size: 0.8125rem;
}

.due {
  font-size: 0.9375rem;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  padding: 0.0625rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--slate);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.tag-urgent {
  border-color: var(--urgent);
  background: var(--urgent-wash);
  color: var(--urgent);
  font-weight: 500;
}

.tag-soon {
  border-color: #e3c78a;
  background: var(--soon-wash);
  color: var(--soon);
}

/* The read-only promise, on the dark accent. */
.promise {
  background: var(--ink);
  color: var(--on-ink);
}

.promise p {
  padding: 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
}

/* Features */
.features,
.steps {
  padding: 4.5rem 0 0;
}

.features h2,
.steps h2,
.closing h2 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.card h3,
.step-list h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 600;
}

.card p,
.step-list p {
  max-width: var(--measure);
  margin-top: 0.5rem;
  color: var(--slate);
}

/* How it works: a real sequence, so it is numbered. */
.step-list {
  display: grid;
  gap: 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}

.step-number {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

/* Closing call to action */
.closing {
  margin-top: 4.5rem;
  padding: 3.5rem 0;
  background: var(--ink);
  color: var(--on-ink);
}

.closing-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.closing p {
  max-width: var(--measure);
  margin-top: 0.75rem;
  color: var(--on-ink-soft);
}

.closing a:focus-visible {
  outline-color: var(--on-ink);
}

/* Footer */
.foot {
  padding: 2rem 0 2.5rem;
  color: var(--slate);
  font-size: 0.9375rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.foot a {
  text-underline-offset: 3px;
}

@media (min-width: 48rem) {
  .wrap {
    padding: 0 2rem;
  }

  .hero {
    padding: 5rem 0 5.5rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .closing-row {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

/* Narrow phones: the table keeps its three columns but tightens. */
@media (max-width: 26rem) {
  .ledger td,
  .ledger th {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .ledger caption,
  .ledger-head {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
