@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Martian Grotesk";
  src: url("assets/fonts/MartianGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Martian Grotesk";
  src: url("assets/fonts/MartianGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #f3f1ec;
  --mute: #8c877f;
  --line: #242320;
  --paper: #0a0a09;
  --raised: #121211;
  --edge: #3a3833;
  --measure: 40rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Martian Grotesk", "Avenir Next", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.frame {
  width: min(var(--measure), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
}

.name {
  color: var(--ink);
  font-family: "Space Grotesk", "Avenir Next", system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stage {
  perspective: 420px;
  flex: 0 0 auto;
}

.mark {
  transform-style: preserve-3d;
}

.mark img {
  display: block;
  width: 64px;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* Main */

main {
  flex: 1;
  padding: 28px 0 56px;
}

.hero {
  padding-top: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 8.6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}

.sub {
  margin: 18px 0 0;
  max-width: 30ch;
  color: var(--mute);
  font-size: 18px;
  line-height: 1.4;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  transition: background 160ms ease, transform 120ms ease;
}

.button:hover {
  background: #fff;
}

.button:active {
  transform: scale(0.97);
}

.cta-note {
  color: var(--mute);
  font-size: 15px;
}

.block {
  margin-top: 64px;
}

h2 {
  margin: 0 0 14px;
  color: var(--mute);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Steps */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps summary {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: start;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.steps summary > * {
  min-width: 0;
}

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

.steps summary::before {
  content: counter(step, decimal-leading-zero);
  color: var(--mute);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.steps summary::after {
  content: "+";
  color: var(--mute);
  font-size: 20px;
  line-height: 1;
  transition: transform 220ms ease, color 160ms ease;
}

.steps details[open] summary::after {
  transform: rotate(45deg);
  color: var(--ink);
}

.steps summary:hover::after {
  color: var(--ink);
}

.url {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.more {
  max-height: 0;
  overflow: hidden;
  padding-left: 2.25rem;
  transition: max-height 240ms ease;
}

.steps details[open] .more {
  max-height: 9rem;
}

.more p {
  margin: 0 0 18px;
  max-width: 44ch;
  color: var(--mute);
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--raised);
  color: var(--mute);
  transition: border-color 180ms ease, transform 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.plan.main {
  border-color: var(--edge);
}

.plan:hover {
  border-color: #66625a;
  transform: translateY(-2px);
}

.plan:active {
  transform: translateY(0) scale(0.99);
}

.plan-name {
  font-size: 15px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 10px;
  color: var(--ink);
  font-family: "Space Grotesk", "Avenir Next", system-ui, sans-serif;
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -0.045em;
  line-height: 1;
}

.plan-price small {
  color: var(--mute);
  font-family: "Martian Grotesk", "Avenir Next", system-ui, sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -0.011em;
}

.plan-go {
  margin-top: 18px;
  color: var(--ink);
  font-weight: 500;
}

.early {
  margin: 20px 0 0;
  max-width: 40ch;
  color: var(--mute);
}

/* Footer */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 20px 0 calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 15px;
}

.legal-links,
.corner {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.corner {
  margin-left: auto;
}

footer a {
  transition: color 160ms ease;
}

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

/* Legal pages */

.legal {
  padding-top: 40px;
  padding-bottom: 72px;
}

.legal h1 {
  margin: 0 0 8px;
  max-width: none;
  font-size: 32px;
  letter-spacing: -0.035em;
}

.legal .when {
  margin: 0 0 36px;
  color: var(--mute);
}

.legal h2 {
  margin: 32px 0 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
}

.legal p {
  margin: 0 0 12px;
  max-width: 62ch;
  color: var(--mute);
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Wider screens */

@media (min-width: 720px) {
  .bar {
    padding-top: 24px;
  }

  .name {
    font-size: 22px;
  }

  .mark img {
    width: 80px;
  }

  main {
    padding-top: 48px;
  }

  .sub {
    font-size: 20px;
  }

  .block {
    margin-top: 88px;
  }

  .plans {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .steps summary {
    padding: 19px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
