/* Colour tokens track src/app/globals.css in the app repo. */
:root {
  --action: #2ca01c;
  --action-hover: #108000;
  --link: #0077c5;
  --ink: #393a3d;
  --ink-muted: #6b6c72;
  --line: #d4d7dc;
  --sunken: #f4f5f8;
  --tint: #eef7ec;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* The wordmark is Fraunces; headings echo it with whatever serif is installed. */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 8px 12px;
  background: #fff;
  border: 2px solid var(--link);
  border-radius: 4px;
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.lockup-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lockup-caption {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1;
}

.lockup img {
  display: block;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  background: var(--action);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.button:hover {
  background: var(--action-hover);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

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

/* Hero */

.hero {
  padding: 56px 0 88px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--action-hover);
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
}

.lede {
  margin-top: 20px;
  max-width: 34em;
  font-size: 19px;
  color: var(--ink-muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.cta-note {
  font-size: 14px;
  color: var(--ink-muted);
}

/* The sample rent roll beside the hero. Decorative, hidden from assistive tech. */

.ledger {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 48px -24px rgba(57, 58, 61, 0.28), 0 2px 6px rgba(57, 58, 61, 0.06);
  overflow: hidden;
  font-size: 15px;
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 20px;
  background: var(--sunken);
  border-bottom: 1px solid var(--line);
}

.ledger-head strong {
  font-family: var(--serif);
  font-size: 18px;
}

.ledger-head span {
  font-size: 13px;
  color: var(--ink-muted);
}

.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.ledger-row small {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
}

.ledger-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.pill {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--action-hover);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ledger-foot {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--ink-muted);
}

.ledger-foot b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Sections */

.section {
  padding: 80px 0;
}

.section-sunken {
  background: var(--sunken);
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  max-width: 20em;
}

.section-intro {
  margin-top: 12px;
  max-width: 38em;
  color: var(--ink-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.features h3,
.steps h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.features p,
.steps p {
  font-size: 16px;
  color: var(--ink-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--action);
  color: #fff;
  font-weight: 700;
}

.closing {
  text-align: center;
}

.closing h2,
.closing .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.closing .cta {
  justify-content: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 14px;
  color: var(--ink-muted);
}

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

.site-footer p + p {
  margin-top: 8px;
}

/* Legal and plain text pages */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 88px;
}

.doc h1 {
  font-size: clamp(32px, 4.4vw, 44px);
}

.doc-meta {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 15px;
}

.doc h2 {
  margin-top: 40px;
  font-size: 24px;
}

.doc h3 {
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 17px;
  letter-spacing: 0;
}

.doc p,
.doc ul {
  margin-top: 14px;
}

.doc ul {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc .caps {
  font-size: 15px;
}

@media (max-width: 860px) {
  .hero {
    padding: 32px 0 64px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 420px) {
  .site-header .button {
    display: none;
  }
}

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

  .button {
    transition: none;
  }
}
