@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/Figtree-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  color: #16171a;
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100dvh;
  margin: 0;
  background: #fff;
  color: #16171a;
  line-height: 1.55;
}

a {
  color: inherit;
}

.guide-header {
  width: min(100% - 40px, 1120px);
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.guide-brand,
.guide-sign-in,
.guide-sign-up {
  color: inherit;
  text-decoration: none;
}

.guide-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.guide-brand strong {
  font-weight: 900;
}

.guide-logo {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.guide-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.guide-logo-orbit {
  animation: guide-logo-orbit 18s linear infinite;
}

.guide-sign-in,
.guide-sign-up {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid #d8d9de;
  border-radius: 8px;
  background: #fff;
  color: #292a30;
  font-weight: 900;
}

.guide-sign-up {
  border-color: #ff766c;
  background: #ff766c;
  color: #fff;
  box-shadow: 0 8px 22px rgba(235, 91, 96, 0.2);
}

main {
  width: min(100% - 32px, var(--guide-max, 900px));
  margin: 0 auto;
  padding: 24px 0 74px;
}

.guide-hero {
  max-width: 780px;
  margin-bottom: 30px;
}

.kicker {
  margin: 0 0 10px;
  color: #d84f54;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 900;
  line-height: 0.98;
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 900;
  line-height: 1.08;
}

.lede {
  max-width: 700px;
  margin: 16px 0 0;
  color: #656872;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
}

section + section {
  margin-top: 34px;
}

.guide-hero + section {
  margin-top: 0;
}

section > p {
  margin: 0;
  color: #555965;
}

.grid,
.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.steps {
  display: grid;
  gap: 12px;
}

.card,
.step,
.steps:not(:has(.step)) {
  border: 1px solid #dedfe4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(25, 27, 34, 0.07);
}

.card,
.step {
  padding: 18px;
}

.steps:not(:has(.step)) {
  padding: 20px 24px;
}

.card ul,
.card ol,
.step p,
.steps ol {
  margin-bottom: 0;
  color: #555965;
}

.card ul,
.card ol,
.steps ol {
  padding-left: 22px;
}

.card li + li,
.steps li + li {
  margin-top: 8px;
}

.template {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 30px 0;
  border: 2px solid #2f3035;
  background: #2f3035;
}

.template div {
  aspect-ratio: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(5px, 1vw, 9px);
  border: 1px solid #2f3035;
  background: #fff1f2;
  color: #202126;
  font-size: clamp(0.65rem, 2vw, 0.95rem);
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
}

.guide-footer {
  padding: 56px max(24px, calc((100vw - 1080px) / 2)) 64px;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 40px;
  background: #131419;
  color: #f7f7f8;
}

.guide-footer-brand,
.guide-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.guide-footer-brand strong,
.guide-footer nav strong {
  font-weight: 900;
}

.guide-footer-brand strong {
  font-size: 22px;
}

.guide-footer-brand span,
.guide-footer nav span {
  color: #8f929d;
}

.guide-footer a {
  color: #bfc1c8;
  text-decoration: none;
}

.guide-footer a:hover {
  color: #fff;
}

@keyframes guide-logo-orbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .guide-header {
    width: min(100% - 28px, 1120px);
    min-height: 66px;
  }

  .guide-brand {
    font-size: 16px;
  }

  .guide-logo {
    width: 38px;
    height: 38px;
  }

  .guide-sign-in,
  .guide-sign-up {
    min-height: 38px;
    padding: 0 14px;
  }

  main {
    padding-top: 18px;
  }

  h1 {
    font-size: clamp(39px, 12vw, 56px);
  }

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

  .template div {
    font-size: clamp(0.58rem, 2.7vw, 0.78rem);
  }

  .guide-footer {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (prefers-color-scheme: dark) {
  html,
  body {
    background: #18191e;
    color: #f4f4f5;
  }

  .guide-sign-in {
    border-color: #4a4d57;
    background: #2d2f36;
    color: #f5f5f5;
  }

  .guide-sign-up {
    border-color: #ff8a80;
    background: #ff8a80;
    color: #fff;
  }

  .lede,
  section > p,
  .card ul,
  .card ol,
  .step p,
  .steps ol {
    color: #aaadb7;
  }

  .card,
  .step,
  .steps:not(:has(.step)) {
    border-color: #363840;
    background: #24262c;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  }

  .template {
    border-color: #f0f0f0;
    background: #f0f0f0;
  }
}
