:root {
  --paper: #e8edf1;
  --sheet: #f7f9fb;
  --ink: #101826;
  --muted: #566274;
  --rule: #c3ccd6;
  --cobalt: #2443e8;
  --cobalt-deep: #1a32b8;
  --canary: #f4e07a;
  --canary-line: #c9b44a;
  --pink: #f2c6cf;
  --stamp: #c8322b;

  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --typed: "Courier Prime", "Courier New", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--sheet);
  padding: 10px 14px;
  z-index: 50;
}

.skip-link:focus {
  top: 12px;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 600 1.05rem/1 var(--display);
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

#site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--muted);
}

#site-nav a:hover,
#site-nav a[aria-current="page"] {
  color: var(--ink);
}

#site-nav .nav-cta {
  margin-left: 8px;
  background: var(--ink);
  color: var(--sheet);
}

#site-nav .nav-cta:hover {
  background: var(--cobalt);
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--rule);
  background: var(--sheet);
  border-radius: 999px;
  padding: 8px 16px;
  font: 500 0.9rem var(--body);
  color: var(--ink);
}

/* Shared */

main > section {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter) 0;
}

.kicker {
  font: 700 0.85rem/1.4 var(--typed);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px 48px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
}

.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1;
}

.section-head p {
  color: var(--muted);
  max-width: 48ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}

.btn-primary {
  background: var(--cobalt);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cobalt-deep);
}

.btn-quiet {
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn-quiet:hover {
  background: var(--ink);
  color: var(--sheet);
}

/* Hero */

.hero {
  padding-top: clamp(48px, 8vw, 104px) !important;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(3.2rem, 11.5vw, 9.6rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: clamp(32px, 4vw, 48px);
}

.lede {
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  font: 400 0.95rem var(--typed);
  color: var(--muted);
}

.stack li + li::before {
  content: "/";
  margin: 0 14px;
  color: var(--rule);
}

/* Services */

.service-list {
  margin: 0;
}

.service-list > div {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 8px 48px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.2s ease;
}

.service-list > div:hover {
  padding-left: 12px;
}

.service-list dt {
  font: 700 clamp(1.35rem, 2.4vw, 1.9rem)/1.1 var(--display);
  letter-spacing: -0.02em;
}

.service-list dd {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
}

/* Rate card */

.rate-card {
  width: 100%;
  border-collapse: collapse;
}

.rate-card thead th {
  padding: 14px 16px 10px;
  text-align: left;
  font: 700 0.78rem var(--typed);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}

.rate-card tbody tr {
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.15s;
}

.rate-card tbody tr:hover {
  background: var(--sheet);
}

.rate-card tbody th,
.rate-card td {
  padding: 22px 16px;
  vertical-align: middle;
  text-align: left;
}

.rate-card tbody th {
  font: 700 1.2rem/1.2 var(--display);
  width: 26%;
}

.rate-card td {
  color: var(--muted);
}

.rate-card .num {
  text-align: right;
  white-space: nowrap;
}

.rate-card td.num {
  font: 700 1.5rem/1 var(--typed);
  color: var(--ink);
}

.rate-card td.num small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.rate-card td:last-child {
  width: 1%;
  text-align: right;
}

.pick {
  white-space: nowrap;
  border: 0;
  background: none;
  padding: 10px 0 10px 12px;
  font: 600 0.95rem var(--body);
  color: var(--cobalt);
  cursor: pointer;
}

.pick::after {
  content: " →";
}

.pick:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Process */

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

.steps-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps li {
  counter-increment: step;
  padding: 28px 24px 0 0;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font: 700 0.95rem var(--typed);
}

.steps h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}

.steps p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 34ch;
}

/* Apply + work order */

.apply {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(32px, 6vw, 88px);
  align-items: start;
  padding-bottom: clamp(72px, 9vw, 120px) !important;
}

.apply-copy {
  position: sticky;
  top: 112px;
}

.apply-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
}

.apply-copy p {
  margin-top: 20px;
  max-width: 40ch;
  color: var(--muted);
}

.apply-copy .fee {
  padding: 14px 16px;
  border-left: 3px solid var(--stamp);
  background: var(--sheet);
  color: var(--ink);
}

.work-order {
  position: relative;
  padding: 28px clamp(20px, 3.4vw, 40px) 32px;
  background-color: var(--canary);
  background-image: radial-gradient(rgba(16, 24, 38, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  box-shadow:
    8px 8px 0 -1px var(--pink),
    8px 8px 0 0 rgba(16, 24, 38, 0.12),
    0 24px 40px -24px rgba(16, 24, 38, 0.45);
  transform: rotate(0.6deg);
  font-family: var(--typed);
  overflow: clip;
}

.work-order::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  border-top: 2px dashed var(--canary-line);
}

.wo-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0 14px;
  border-bottom: 2px solid var(--ink);
}

.wo-title {
  font: 700 1.4rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.wo-no {
  font-size: 0.85rem;
  color: #5d5420;
}

.line {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 12px;
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--canary-line);
}

.line > span,
.line > label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a4318;
}

.line.block {
  grid-template-columns: 1fr;
}

.line input,
.line select,
.line textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.1rem/1.5 var(--typed);
  padding: 2px 0;
  appearance: none;
}

.line select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 24px;
}

.line textarea {
  resize: vertical;
  min-height: 9rem;
  background-image: linear-gradient(transparent calc(1.65rem - 1px), rgba(201, 180, 74, 0.7) 1px);
  background-size: 100% 1.65rem;
  line-height: 1.65rem;
}

.line input:focus,
.line select:focus,
.line textarea:focus {
  outline: none;
}

.line:focus-within {
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);
}

.line:focus-within > span,
.line:focus-within > label {
  color: var(--cobalt-deep);
}

.line ::placeholder {
  color: #8c8150;
}

.line [aria-invalid="true"] {
  text-decoration: underline wavy var(--stamp);
  text-underline-offset: 4px;
}

.captcha {
  grid-template-columns: 8.5rem auto auto minmax(0, 1fr);
  align-items: center;
}

.captcha-q {
  font-size: 1.1rem;
  white-space: nowrap;
}

.captcha input {
  width: 4.5ch;
  min-width: 4.5ch;
  text-align: center;
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
}

.link-btn {
  justify-self: end;
  border: 0;
  background: none;
  padding: 6px 0;
  font: 700 0.85rem var(--typed);
  color: var(--cobalt-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.form-status {
  min-height: 1.5em;
  margin: 18px 0 14px;
  font-size: 0.95rem;
}

.form-status[data-tone="error"] {
  color: var(--stamp);
  font-weight: 700;
}

.form-status[data-tone="ok"] {
  color: var(--ink);
  font-weight: 700;
}

.submit {
  width: 100%;
  border-radius: 6px;
  font-family: var(--display);
  font-size: 1.1rem;
}

.submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.stamp {
  position: absolute;
  right: 28px;
  bottom: 96px;
  padding: 8px 18px;
  border: 4px solid var(--stamp);
  border-radius: 8px;
  color: var(--stamp);
  font: 700 2rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: rotate(-12deg) scale(1.8);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.work-order.is-sent .stamp {
  animation: stamp 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

@keyframes stamp {
  to {
    opacity: 0.85;
    transform: rotate(-12deg) scale(1);
  }
}

.work-order.is-picked {
  animation: nudge 0.5s ease;
}

@keyframes nudge {
  40% {
    transform: rotate(-0.4deg) translateY(-4px);
  }
}

/* Products */

.hero-products h1 {
  font-size: clamp(3rem, 9.5vw, 8rem);
}

.product-list {
  display: grid;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr);
  gap: 24px 48px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}

.product-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.product h3 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1;
}

.status {
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 0.78rem var(--typed);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-live {
  background: var(--cobalt);
  color: #fff;
}

.status-dev {
  background: var(--canary);
  color: var(--ink);
}

.status-planned {
  box-shadow: inset 0 0 0 1.5px var(--rule);
  color: var(--muted);
}

.tagline {
  margin-top: 14px;
  font: 600 1.15rem/1.4 var(--display);
}

.product-main > p:not(.tagline) {
  margin-top: 8px;
  max-width: 58ch;
  color: var(--muted);
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--sheet);
  font-size: 0.88rem;
}

.plans {
  align-self: start;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.plans li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
}

.plans span {
  color: var(--muted);
}

.plans b {
  font: 700 1.25rem var(--typed);
}

.plans small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.where {
  grid-column: 2;
  margin-top: -12px;
  font: 700 0.85rem var(--typed);
  color: var(--muted);
}

#billing {
  padding-bottom: clamp(72px, 9vw, 120px);
}

.steps-4 h3 {
  font-size: 1.15rem;
}

/* 404 */

.not-found {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(64px, 12vw, 160px) var(--gutter) 120px;
}

.not-found h1 {
  margin: 20px 0 28px;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.not-found .hero-actions {
  margin-top: 32px;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a {
  text-decoration: none;
}

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

/* Responsive */

@media (max-width: 900px) {
  .section-head,
  .service-list > div,
  .apply,
  .product {
    grid-template-columns: 1fr;
  }

  .apply-copy {
    position: static;
  }

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

  .where {
    grid-column: 1;
    margin-top: -8px;
  }

  .rate-card thead {
    display: none;
  }

  .rate-card,
  .rate-card tbody,
  .rate-card tr {
    display: block;
  }

  .rate-card tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
    padding: 20px 0;
  }

  .rate-card tbody th,
  .rate-card td {
    padding: 0;
    width: auto !important;
  }

  .rate-card tbody th {
    grid-column: 1;
  }

  .rate-card td.num {
    grid-column: 2;
    grid-row: 1;
  }

  .rate-card td:nth-of-type(1) {
    grid-column: 1 / -1;
  }

  .rate-card td:last-child {
    grid-column: 1 / -1;
    text-align: left;
  }

  .pick {
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  #site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }

  #site-nav[data-open="true"] {
    display: flex;
  }

  #site-nav a {
    padding: 12px 4px;
    border-radius: 0;
    font-size: 1.05rem;
  }

  #site-nav .nav-cta {
    margin: 8px 0 0;
    text-align: center;
    border-radius: 999px;
  }

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

  .steps li {
    padding-right: 0;
  }

  .work-order {
    transform: none;
    box-shadow:
      5px 5px 0 -1px var(--pink),
      0 20px 32px -24px rgba(16, 24, 38, 0.45);
  }

  .line,
  .captcha {
    grid-template-columns: 1fr;
  }

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

  .captcha > label {
    grid-column: 1 / -1;
  }

  .stack li + li::before {
    margin: 0 8px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
