@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Spline Sans Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/spline-sans-mono-latin.woff2") format("woff2");
}

:root {
  --paper: #ffffff;
  --ground: #eef3f2;
  --ink: #142128;
  --ink-soft: #4a5a63;
  --rule: #cfdbd9;
  --teal: #0f6e6a;
  --teal-deep: #0a4f4c;
  --glow: #74d3c6;
  --stamp: #b4541c;
  --tag-bg: #dcefec;
  --tag-text: #0a4f4c;
  --sheet-shadow: 0 1px 1px rgb(20 33 40 / 8%), 0 18px 40px -12px rgb(20 33 40 / 28%);
  --measure: 34rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0d1719;
    --ink: #e4ecea;
    --ink-soft: #9fb1b0;
    --rule: #26393b;
    --teal: #4fb8ad;
    --teal-deep: #8ad8cd;
    --tag-bg: #173a39;
    --tag-text: #b6e9e1;
    --sheet-shadow: 0 18px 40px -12px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--paper);
  color: #142128;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

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

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.header-nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

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

.header-nav .signin {
  color: var(--ink);
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  background: var(--teal);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 150ms;
}

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

@media (prefers-color-scheme: dark) {
  .button {
    color: #0d1719;
  }
}

.text-link {
  font-weight: 500;
  color: var(--ink-soft);
  text-underline-offset: 0.2em;
}

/* Hero */

.hero {
  padding-block: 3rem 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 13ch;
}

.lede {
  margin-top: 1.5rem;
  max-width: var(--measure);
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* The scanned bill and what was filed from it */

.demo {
  position: relative;
  margin: 0;
  padding-right: 2rem;
}

.sheet {
  position: relative;
  overflow: hidden;
  background: #fdfdfb;
  color: #26323a;
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 1.75rem 1.75rem 2rem;
  border-radius: 3px;
  box-shadow: var(--sheet-shadow);
  transform: rotate(-2deg);
  max-width: 27rem;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #26323a;
}

.sheet-head strong {
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sheet-head span {
  font-size: 0.7rem;
  color: #5d6a72;
  text-align: right;
}

.sheet-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-block: 0.75rem 1.25rem;
  color: #5d6a72;
  font-size: 0.7rem;
}

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

.sheet-table td {
  padding: 0.3rem 0;
  border-bottom: 1px dashed #c9d0d3;
}

.sheet-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sheet-table .due td {
  border-bottom: 0;
  padding-top: 0.6rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: #142128;
}

.sheet-lines {
  display: grid;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.sheet-lines i {
  display: block;
  height: 0.4rem;
  border-radius: 2px;
  background: #e8ecee;
}

.sheet-lines i:nth-child(2) {
  width: 82%;
}

.sheet-lines i:nth-child(3) {
  width: 58%;
}

/* The scan line echoes the bar in the logo. */
.scanline {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3.5rem;
  background: linear-gradient(to bottom, rgb(116 211 198 / 0%), rgb(116 211 198 / 38%) 85%, #2f8f8a 85%, #2f8f8a 100%);
  transform: translateY(-4rem);
  animation: scan 2.2s cubic-bezier(0.45, 0, 0.3, 1) 0.5s 1 forwards;
  pointer-events: none;
}

@keyframes scan {
  0% { transform: translateY(-4rem); opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(22rem); opacity: 0; }
}

.filed {
  position: relative;
  margin: -3rem -2rem 0 auto;
  width: min(19rem, 78%);
  background: var(--paper);
  color: #142128;
  border-radius: 14px;
  border-top: 5px solid var(--teal);
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: 0 1px 2px rgb(20 33 40 / 10%), 0 24px 48px -16px rgb(20 33 40 / 35%);
  opacity: 0;
  transform: translateY(1rem);
  animation: filed 600ms cubic-bezier(0.2, 0.7, 0.2, 1) 2.5s 1 forwards;
}

@media (prefers-color-scheme: dark) {
  .filed {
    border-top-color: #2f8f8a;
  }
}

@keyframes filed {
  to { opacity: 1; transform: none; }
}

.filed-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: #0a4f4c;
}

.filed dl {
  margin: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.filed dl div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
}

.filed dt {
  color: #5d6a72;
}

.filed dd {
  margin: 0;
  font-weight: 500;
}

.tag {
  display: inline-block;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: #dcefec;
  color: #0a4f4c;
  font-size: 0.8rem;
  font-weight: 600;
}

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

  .scanline {
    display: none;
  }

  .filed {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* How it works: a real sequence, so it's numbered. */

.how {
  background: var(--paper);
  padding-block: 5rem;
  border-block: 1px solid var(--rule);
}

@media (prefers-color-scheme: dark) {
  .how {
    background: #111e20;
  }
}

.how h2,
.features h2,
.trust h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
}

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

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 3.25rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--paper);
  font-weight: 700;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.125rem;
  left: 3rem;
  right: -1.75rem;
  height: 2px;
  background: var(--rule);
}

.steps h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.steps p {
  color: var(--ink-soft);
  max-width: 30ch;
}

/* What you get */

.features {
  padding-block: 5.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: start;
}

.features h2 {
  position: sticky;
  top: 2rem;
}

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

.feature-list article {
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}

.feature-list h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.feature-list p {
  color: var(--ink-soft);
}

/* Privacy */

.trust {
  padding-block: 0 5.5rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 3rem;
}

.trust p {
  font-size: 1.25rem;
  line-height: 1.55;
  max-width: 38rem;
}

/* Early access */

.cta {
  background: var(--teal-deep);
  color: #ffffff;
  padding-block: 5rem;
}

@media (prefers-color-scheme: dark) {
  .cta {
    background: #0f4a47;
  }
}

.cta-inner {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.cta h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.025em;
  max-width: 18ch;
}

.cta p {
  max-width: var(--measure);
  color: rgb(255 255 255 / 82%);
  font-size: 1.15rem;
}

.button-light {
  margin-top: 0.75rem;
  background: #ffffff;
  color: #0a4f4c;
}

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

@media (prefers-color-scheme: dark) {
  .button-light {
    color: #0a4f4c;
  }
}

/* Footer */

.site-footer {
  padding-block: 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Text pages: privacy statement and not found */

.doc {
  padding-block: 2.5rem 5rem;
}

.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.doc-head {
  position: sticky;
  top: 2rem;
}

.doc h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.doc-date {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.doc-toc {
  display: grid;
  gap: 0.45rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
}

.doc-toc a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.doc-body {
  max-width: 40rem;
}

.doc-body > p:first-child {
  font-size: 1.2rem;
  line-height: 1.55;
}

.doc-body section {
  margin-top: 3rem;
  scroll-margin-top: 1.5rem;
}

.doc-body h2 {
  font-size: 1.6rem;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.doc-body h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.35rem;
}

.doc-body p + p {
  margin-top: 1rem;
}

.doc-body ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.doc-body li + li {
  margin-top: 0.5rem;
}

.doc-body ul + p {
  margin-top: 1rem;
}

.doc-body a {
  color: var(--teal);
  text-underline-offset: 0.2em;
}

.not-found {
  padding-block: 6rem;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.not-found h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

.not-found p {
  color: var(--ink-soft);
  max-width: 34rem;
}

.not-found .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

/* Narrow screens */

@media (max-width: 900px) {
  .hero-grid,
  .features-grid,
  .trust-grid,
  .doc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 3rem;
  }

  .features h2,
  .doc-head {
    position: static;
  }

  .doc-grid {
    gap: 1rem;
  }

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

  .steps li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 1rem;
  }

  .header-nav a:not(.signin) {
    display: none;
  }

  .hero {
    padding-block: 1.5rem 3.5rem;
  }

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

  .demo {
    padding-right: 0;
  }

  .sheet {
    font-size: 0.7rem;
    padding: 1.25rem;
  }

  .filed {
    width: 88%;
    margin-right: 0;
  }
}
