/* DO IT Krystian Kudła — doit.kud.la */

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #15213b;
  --ink-deep: #0d1629;
  --muted: #56627a;
  --paper: #f3f5f8;
  --surface: #ffffff;
  --alt: #e9edf3;
  --line: #d3dae4;
  --pass: #17804f;
  --pass-bright: #3dbe7e;
  --pass-wash: #e1f0e7;
  --radius: 10px;
  --step: 0.55s;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-weight: 400;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  font-stretch: 112%;
  font-weight: 760;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

h3 {
  font-weight: 680;
  font-size: 1.15rem;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

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

.narrow {
  max-width: 820px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- header ---------- */

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark {
  font-stretch: 125%;
  font-weight: 860;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-name {
  font-size: 0.95rem;
  color: var(--muted);
}

header.site nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0;
  padding: 0;
}

header.site nav a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 550;
}

header.site nav a:hover {
  text-decoration: underline;
}

/* ---------- buttons ---------- */

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

.button {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  padding: 0.85rem 1.35rem;
  border-radius: 6px;
}

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

.text-link {
  font-weight: 620;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- hero ---------- */

.hero {
  padding: 4.5rem 0 4rem;
}

.hero h1 {
  font-stretch: 120%;
  font-weight: 820;
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 19ch;
  margin: 0 0 1.4rem;
}

.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.32rem);
  max-width: 46ch;
  margin: 0 0 2rem;
}

/* ---------- pipeline: the one moment of motion ---------- */

.pipeline {
  margin-top: 3.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.6rem;
}

.pipeline h2 {
  font-size: 1.25rem;
  font-stretch: 110%;
  margin-bottom: 1.4rem;
}

.stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stage {
  position: relative;
  padding-right: 1.25rem;
}

.stage h3 {
  font-size: 1.08rem;
  margin: 0.9rem 0 0.25rem;
}

.stage p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 24ch;
}

.dot {
  position: relative;
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pass-wash);
  border: 2px solid var(--pass);
  color: var(--pass);
  animation: pass 0.35s ease-out both;
}

.tick {
  width: 1.25rem;
  height: 1.25rem;
}

/* grey track behind each connector */
.stage:not(:last-child)::before,
.stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(1.125rem - 1px);
  left: 2.25rem;
  right: 0;
  height: 2px;
}

.stage:not(:last-child)::before {
  background: var(--line);
}

.stage:not(:last-child)::after {
  background: var(--pass);
  transform-origin: left center;
  animation: fill var(--step) ease-in-out both;
}

.stage:nth-child(1) .dot { animation-delay: 0.3s; }
.stage:nth-child(1)::after { animation-delay: calc(0.3s + 0.35s); }
.stage:nth-child(2) .dot { animation-delay: calc(0.3s + 0.35s + var(--step)); }
.stage:nth-child(2)::after { animation-delay: calc(0.3s + 0.7s + var(--step)); }
.stage:nth-child(3) .dot { animation-delay: calc(0.3s + 0.7s + 2 * var(--step)); }
.stage:nth-child(3)::after { animation-delay: calc(0.3s + 1.05s + 2 * var(--step)); }
.stage:nth-child(4) .dot { animation-delay: calc(0.3s + 1.05s + 3 * var(--step)); }

@keyframes pass {
  from {
    background: var(--surface);
    border-color: var(--line);
    color: transparent;
    transform: scale(0.9);
  }
}

@keyframes fill {
  from {
    transform: scaleX(0);
  }
}

/* ---------- bands ---------- */

.band {
  padding: 4.5rem 0;
}

.band-alt {
  background: var(--alt);
}

.section-intro {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}

/* price list */

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

.price-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 2.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.price-list h3 {
  font-size: 1.22rem;
}

.price-list h3 a {
  text-decoration: none;
}

.price-list h3 a:hover {
  text-decoration: underline;
}

.price-list p {
  grid-column: 1;
  margin: 0.3rem 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* audience */

.audience {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.audience p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

/* about */

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

.about p {
  max-width: 62ch;
}

.stack {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-top: 3.4rem;
}

.stack h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.stack p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* faq */

.faq {
  border-top: 2px solid var(--ink);
  margin-top: 1.5rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  padding: 1.1rem 2.5rem 1.1rem 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq details p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  max-width: 62ch;
}

/* contact */

.contact {
  background: var(--ink);
  color: #fff;
}

.contact a {
  color: #fff;
}

.contact .section-intro {
  color: #c7cfdd;
}

.email {
  font-stretch: 115%;
  font-weight: 760;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  letter-spacing: -0.01em;
  text-decoration-thickness: 2px;
  word-break: break-word;
}

.contact :focus-visible {
  outline-color: var(--pass-bright);
}

/* ---------- footer ---------- */

footer.site {
  background: var(--ink-deep);
  color: #c7cfdd;
  font-size: 0.95rem;
  padding: 2.5rem 0;
}

footer.site a {
  color: #fff;
}

footer.site :focus-visible {
  outline-color: var(--pass-bright);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.footer-inner p {
  margin: 0 0 0.3rem;
}

.footer-name {
  color: #fff;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* ---------- service pages ---------- */

.service {
  padding-top: 3rem;
  padding-bottom: 4.5rem;
}

.service h1 {
  font-stretch: 116%;
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin: 0 0 1.2rem;
}

.service .lead {
  max-width: 62ch;
}

.service h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-top: 2.75rem;
}

.service > p,
.prose p {
  max-width: 68ch;
}

.back {
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.list {
  padding-left: 1.2rem;
  max-width: 66ch;
}

.list li {
  margin-bottom: 0.45rem;
}

.note-box {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--pass);
  background: var(--pass-wash);
  max-width: 66ch;
}

/* tables */

.table-wrap {
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 1rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

thead th {
  background: var(--alt);
  font-weight: 700;
  font-size: 0.95rem;
}

tbody th {
  font-weight: 680;
  width: 22%;
}

.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

td.num {
  font-weight: 700;
}

/* cta */

.cta {
  margin-top: 3.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--pass);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.cta h2 {
  margin-top: 0;
}

.cta p {
  max-width: 60ch;
}

.cta .actions {
  margin: 1.25rem 0 0;
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .stages {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .stage {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    column-gap: 1rem;
    padding-right: 0;
  }

  .stage .dot {
    grid-row: 1 / span 2;
  }

  .stage h3 {
    margin: 0.35rem 0 0.15rem;
  }

  .stage p {
    max-width: none;
  }

  .stage:not(:last-child)::before,
  .stage:not(:last-child)::after {
    top: 2.25rem;
    bottom: -1.4rem;
    left: calc(1.125rem - 1px);
    right: auto;
    width: 2px;
    height: auto;
  }

  .stage:not(:last-child)::after {
    transform-origin: center top;
    animation-name: fill-down;
  }

  .audience,
  .about {
    grid-template-columns: 1fr;
  }

  .stack {
    margin-top: 0;
  }
}

@keyframes fill-down {
  from {
    transform: scaleY(0);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1.0625rem;
  }

  .hero {
    padding: 3rem 0 3rem;
  }

  .band {
    padding: 3.25rem 0;
  }

  .price-list li {
    grid-template-columns: 1fr;
  }

  .price {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.5rem;
  }

  /* stacked tables */
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tbody tr {
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 0;
  }

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

  th,
  td {
    border-bottom: 0;
    padding: 0.35rem 1.1rem;
  }

  tbody th {
    width: 100%;
    padding-top: 0.8rem;
    font-size: 1.05rem;
  }

  td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-weight: 400;
  }

  .num {
    text-align: left;
  }

  td:empty {
    display: none;
  }
}

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

  .dot,
  .stage::after,
  .faq summary::after {
    animation: none !important;
    transition: none !important;
  }
}
