/* Colors */
:root {
  --color-darkest: rgba(0, 0, 17, 0.9);
  --color-darker: rgba(0, 0, 17, 0.7);
  --color-half: rgba(0, 0, 17, 0.5);
  --color-light: rgba(0, 0, 17, 0.1);
  --color-lighter: rgba(0, 0, 17, 0.05);
  --color-lightest: rgb(255, 255, 255);
  --space-clamp: clamp(1.5rem, 3vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-darkest: rgba(255, 255, 255, 0.9);
    --color-darker: rgba(255, 255, 255, 0.7);
    --color-half: rgba(255, 255, 255, 0.5);
    --color-light: rgba(255, 255, 255, 0.1);
    --color-lighter: rgba(255, 255, 255, 0.05);
    --color-lightest: rgb(0, 0, 17);
  }
}

/* Reset */
* {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4,
p {
  text-wrap: balance;
}

/* Typography */
body {
  -webkit-font-smoothing: antialiased;
  background: var(--color-lightest);
  color: var(--color-darkest);
  font: 500 100%/1 'DM Sans', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 20ch;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

h1 + p,
h2 + p {
  color: var(--color-half);
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 40rem;
}

p {
  color: var(--color-darker);
  line-height: 1.5;
}

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

/* Layout */
.fill {
  flex: 1;
}

.layer {
  display: flex;
  justify-content: center;
  padding: var(--space-clamp);
}

.layer-inset {
  flex: 1;
  max-width: 60rem;
}

.row {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

section .layer-inset {
  display: flex;
  flex-direction: column;
  gap: var(--space-clamp);
}

/* Logo */
.logo {
  align-items: center;
  display: flex;
  font-size: 2rem;
  font-weight: 700;
  gap: 0.5rem;
  letter-spacing: -0.06em;
}

.logo i {
  font-size: 2rem;
}

/* Hero */
#hero {
  min-height: 80vh;
}

#hero .layer-inset {
  justify-content: center;
}

/* Button */
.button {
  background: var(--color-darkest);
  border: 0;
  border-radius: 0.375rem;
  color: var(--color-lightest);
  cursor: pointer;
  display: inline-block;
  font: inherit;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: opacity 0.2s;
  width: fit-content;
}

.button:hover {
  opacity: 0.8;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-clamp);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Cards */
.card {
  border: 1px solid var(--color-light);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}

.card p {
  font-size: 0.875rem;
}

/* Problems */
.problem-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.problem-item p {
  font-size: 0.875rem;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 36rem;
}

.step {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
}

.step > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step p {
  font-size: 0.875rem;
}

.step-number {
  align-items: center;
  background: var(--color-lighter);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  font-weight: 700;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

/* CTA */
#cta {
  border-top: 1px solid var(--color-light);
  padding-bottom: clamp(4rem, 8vw, 8rem);
  padding-top: clamp(4rem, 8vw, 8rem);
}

.fine {
  color: var(--color-half);
  font-size: 0.875rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--color-light);
}

footer p {
  color: var(--color-half);
  font-size: 0.875rem;
}
