/* Home. One paper, one ink, one action. The desk is the picture. */
@import url("/css/face.css");

:root {
  --surface: #f2f5f3;
  --text: #1a2420;
  --text-muted: #3e4c45;
  --accent: #146c43;
  --accent-hover: #0f5434;
  --accent-pressed: #0c3f28;
  --on-accent: #f4f7f4;
  --focus: #1a2420;
  --line: rgba(26, 36, 32, 0.16);
  --display: "Commissioner", "Arial Narrow", sans-serif;
  --body: "Public Sans", "Segoe UI", sans-serif;
  --max: 1120px;
  --measure: 40rem;
  --gutter-m: 16px;
  --gutter-d: 48px;
  --desk: #0c1c16;
  --desk-card: #17352a;
  --desk-ink: #f3f6f4;
  --desk-quiet: #d7e3dc;
}

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

html {
  font-size: 16px;
}

body.home-page {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
}

a {
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 8px 16px;
  background: var(--text);
  color: var(--surface);
  font-size: 1.0625rem;
}

.skip-link:focus {
  left: var(--gutter-m);
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.home-hero,
.home-demos,
.home-who,
.home-how,
.home-pricing,
.home-close {
  width: 100%;
  margin: 0;
  padding: 32px var(--gutter-m);
}

.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 0;
  padding-bottom: 24px;
  background:
    linear-gradient(180deg, #e7eeea 0%, var(--surface) 28%);
}

.home-measure {
  max-width: var(--measure);
}

.home-pitch {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  max-width: 72rem;
  padding-top: 4.75rem;
}

.home-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px var(--gutter-m);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.home-wordmark {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.0625rem;
}

.home-nav a,
.home-footer a,
.home-link-secondary {
  color: var(--text);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.home-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
}

.home-nav a[href="/services.html"] {
  background: transparent;
}

.home-nav a[href="/contact.html"] {
  border: 1px solid var(--line);
  background: #ffffff;
}

.home-nav a:hover,
.home-footer a:hover,
.home-link-secondary:hover {
  text-decoration: underline;
}

.home-nav a[href="/contact.html"]:hover {
  border-color: var(--text);
  text-decoration: none;
}

.home-nav a:active,
.home-btn-primary:active {
  transform: translateY(1px);
}

.home-wordmark:focus-visible,
.home-nav a:focus-visible,
.home-footer a:focus-visible,
.home-desk-list a:focus-visible,
.home-link-secondary:focus-visible,
.home-btn-primary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.home-pitch h1 {
  order: 0;
  margin: 0;
  max-width: 16ch;
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
}

.home-close h2 {
  margin: 0 0 8px;
  max-width: 16ch;
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
}

.home-kicker {
  order: 1;
  margin: 20px 0 8px;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.home-morning {
  order: 2;
  margin: 0;
  padding: 8px;
  background: var(--desk);
  color: var(--desk-ink);
  border: 1px solid rgba(243, 246, 244, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(16, 36, 28, 0.14);
  animation: desk-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-morning:hover {
  transform: translateY(-2px);
}

.home-morning-label {
  margin: 4px 8px 8px;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--desk-quiet);
}

.home-morning ul {
  list-style: none;
  margin: 0;
  padding: 12px;
  background: var(--desk-card);
  border: 1px solid rgba(243, 246, 244, 0.1);
  border-radius: 8px;
}

.home-morning li {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 550;
  color: var(--desk-quiet);
}

.home-morning li:nth-child(1),
.home-morning li:nth-child(2) {
  position: relative;
  padding-left: 16px;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--desk-ink);
}

.home-morning li:nth-child(1)::before,
.home-morning li:nth-child(2)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--desk-ink);
}

.home-morning li:nth-child(4) {
  color: #b7e4cd;
  font-weight: 700;
}

.home-morning li:nth-child(6) {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--desk-quiet);
}

.home-morning li + li {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(243, 246, 244, 0.1);
}

.home-sub {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.home-who p,
.home-pricing p,
.home-close p,
.home-desk-list p {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text);
}

.home-who p:not(.home-sub) {
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.home-desk-list p,
.home-kicker,
.home-trade,
.home-sample,
.home-footer {
  color: var(--text-muted);
}

.home-hero .home-btn-primary,
.home-close .home-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-hero .home-btn-primary {
  order: 3;
  width: 100%;
  margin-top: 16px;
}

.home-btn-primary {
  min-height: 44px;
  padding: 12px 24px;
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid var(--accent);
  color: var(--on-accent);
  background: var(--accent);
  transition: background 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
  text-decoration: none;
}

.home-btn-primary:active {
  background: var(--accent-pressed);
  border-color: var(--accent-pressed);
  color: var(--on-accent);
}

.home-btn-primary:disabled {
  background: #c5cec8;
  border-color: #c5cec8;
  color: #3e4c45;
  cursor: not-allowed;
  transform: none;
}

.home-link-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: auto;
  padding: 8px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.home-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: var(--measure);
}

.home-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding: 0 0 0 24px;
  border: 0;
  background: transparent;
}

.home-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
}

.home-step:nth-child(3)::before {
  background: var(--accent);
}

.home-step p {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text);
}

.home-step .home-step-progress {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.home-step:nth-child(3) p:not(.home-step-progress) {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.home-demos .home-measure {
  max-width: 72rem;
}

.home-desk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.home-desk-list li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 36, 28, 0.06);
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-desk-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(16, 36, 28, 0.1);
}

.home-desk-list a {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.home-desk-list li:first-child {
  background: var(--desk);
  border-color: transparent;
  color: var(--desk-ink);
}

.home-desk-list li:first-child a {
  font-size: 2.25rem;
  color: var(--desk-ink);
}

.home-desk-list li:first-child .home-sample {
  color: #b7e4cd;
}

.home-desk-list a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.home-trade,
.home-sample {
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
}

.home-sample {
  margin-left: 8px;
}

.home-close {
  padding-top: 48px;
  padding-bottom: 64px;
}

.home-close .home-btn-primary {
  margin-top: 8px;
}

.home-who {
  padding-top: 48px;
}

.home-how {
  background: #e7eeea;
}

.home-footer {
  width: 100%;
  margin: 0;
  padding: 24px var(--gutter-m) 32px;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
}

.home-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.home-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  border-radius: 8px;
}

.home-footer a:hover {
  text-decoration: underline;
}

.home-footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@keyframes desk-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1280px) {
  .home-top,
  .home-footer {
    padding-inline: var(--gutter-d);
  }

  .home-hero,
  .home-demos,
  .home-who,
  .home-how,
  .home-pricing,
  .home-close {
    padding-inline: var(--gutter-d);
  }

  .home-pitch h1 {
    max-width: none;
    font-size: 3.25rem;
  }

  .home-morning ul {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr;
    column-gap: 32px;
    row-gap: 12px;
  }

  .home-morning li:nth-child(1),
  .home-morning li:nth-child(2) {
    grid-column: 1;
    font-size: 1.45rem;
  }

  .home-morning li:nth-child(1) { grid-row: 1; }
  .home-morning li:nth-child(2) { grid-row: 2; }
  .home-morning li:nth-child(3) { grid-column: 2; grid-row: 1; }
  .home-morning li:nth-child(4) { grid-column: 2; grid-row: 2; }
  .home-morning li:nth-child(5) { grid-column: 2; grid-row: 3; }
  .home-morning li:nth-child(6) { grid-column: 2; grid-row: 4; }

  .home-morning li + li {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .home-hero .home-btn-primary {
    width: auto;
    align-self: flex-start;
    min-width: 16rem;
    margin-top: 20px;
  }

  .home-close h2 {
    font-size: 3.25rem;
  }

  .home-desk-list {
    grid-template-columns: 1.4fr 1fr;
  }

  .home-desk-list li:first-child {
    grid-row: 1 / span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-btn-primary,
  .home-desk-list li,
  .home-nav a {
    transition: none;
  }

  .home-morning {
    animation: none;
  }

  .home-btn-primary:active,
  .home-nav a:active,
  .home-desk-list li:hover,
  .home-morning:hover {
    transform: none;
  }
}
