@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2-variations"),
       url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2f0f7;
  --paper-deep: #e6e2f1;
  --ink: #1a1530;
  --ink-soft: #4a4462;
  --signal: #4b3bff;
  --signal-soft: #dcd8ff;
  --rule: #cfc9e0;
  --white: #ffffff;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 1.4rem + 4.2vw, 4.25rem);

  --gutter: clamp(1rem, 0.5rem + 3vw, 3rem);
  --measure: 38rem;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal);
}

::selection {
  background: var(--signal);
  color: var(--white);
}

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

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

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  background: var(--white);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

main {
  flex: 1 0 auto;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  padding-block: 1.25rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  font-weight: 750;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
}

.wordmark span {
  font-weight: 400;
  color: var(--ink-soft);
}

.header-mail {
  font-size: var(--step--1);
  color: var(--ink-soft);
  padding-block: 0.75rem;
}

@media (max-width: 22.5rem) {
  .header-mail {
    display: none;
  }

  .button {
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
  }
}

/* Hero */
.hero {
  padding-block: clamp(2rem, 1rem + 5vw, 5.5rem) clamp(3rem, 2rem + 4vw, 6rem);
}

.hero .wrap {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero .wrap {
    grid-template-columns: 1.15fr 1fr;
  }
}

.hero h1 {
  font-size: var(--step-3);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 760;
  margin: 0 0 1.5rem;
  max-width: 12ch;
  text-wrap: balance;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 0 2rem;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  transition: background-color 160ms ease;
}

.button:hover {
  background: var(--signal);
  color: var(--white);
}

.button-note {
  display: block;
  margin-top: 0.85rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Mechanism illustration */
.mechanism {
  margin: 0;
  width: 100%;
  max-width: 34rem;
  justify-self: center;
}

.mechanism svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.mechanism figcaption {
  display: flex;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--ink-soft);
  padding-inline: 4%;
  margin-top: 0.75rem;
}

.m-path {
  stroke-dasharray: 6 8;
}

.m-cover {
  transform-box: fill-box;
  transform-origin: 50% 60%;
  animation: arrive 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 1900ms both;
}

.m-sale {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: arrive 500ms cubic-bezier(0.2, 0.8, 0.2, 1) 2700ms both;
}

.m-sale text {
  font-family: inherit;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(14px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .m-dot {
    display: none;
  }

  .m-cover,
  .m-sale {
    animation: none;
  }
}

/* Sections */
.section {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  border-top: 1px solid var(--rule);
}

.section h2 {
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 2rem;
  max-width: 22ch;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
  counter-reset: step;
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.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;
  border-radius: 50%;
  background: var(--signal);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.steps h3,
.fit h3 {
  font-size: var(--step-1);
  line-height: 1.25;
  font-weight: 650;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

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

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.checklist li {
  padding-left: 2rem;
  position: relative;
  max-width: var(--measure);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--signal);
  border-bottom: 2.5px solid var(--signal);
  transform: rotate(-45deg);
}

.terms {
  background: var(--paper-deep);
  border-radius: 20px;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.terms p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.terms p:last-child {
  margin-bottom: 0;
}

.terms strong {
  font-weight: 650;
}

/* Contact */
.contact {
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
}

.contact h2 {
  color: var(--paper);
}

.contact p {
  max-width: var(--measure);
  color: #c9c3dc;
  margin: 0 0 2rem;
}

.contact .mail-big {
  font-size: clamp(1.6rem, 1rem + 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration-color: var(--signal);
  text-decoration-thickness: 0.06em;
  word-break: break-word;
}

.contact .mail-big:hover {
  color: var(--signal-soft);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: #a9a2c0;
  font-size: var(--step--1);
  padding-block: 1.5rem 2.5rem;
}

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

.site-footer .wrap {
  align-items: center;
}

.site-footer nav {
  display: flex;
  gap: 0.5rem;
  margin-right: -0.5rem;
}

.site-footer nav a {
  padding: 0.75rem 0.5rem;
}

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

/* Legal pages */
.legal {
  padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) 4rem;
}

.legal .wrap > * {
  max-width: 42rem;
}

.legal h1 {
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 2rem;
}

.legal h2 {
  font-size: var(--step-1);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.legal h1,
.legal h2 {
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal h3 {
  font-size: var(--step-0);
  margin: 1.75rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal p,
.legal li,
.legal address {
  overflow-wrap: anywhere;
}

.legal address {
  font-style: normal;
  color: var(--ink);
  line-height: 1.6;
}

.legal ul {
  padding-left: 1.2rem;
}

.back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: var(--step--1);
}

.notfound {
  padding-block: 6rem;
}

.notfound h1 {
  font-size: var(--step-3);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
}
