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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    'Geist',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  flex-shrink: 0;
}

a {
  color: inherit;
}

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

p {
  text-wrap: pretty;
}

button {
  font: inherit;
}

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

/* ---- language switcher ---- */

.locale-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.25rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.locale-switch button {
  border: none;
  background: none;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  transition:
    color 0.15s,
    background-color 0.15s;
}

.locale-switch button.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.locale-switch button:not(.is-active):hover {
  color: var(--foreground);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
  padding: 1.1rem 1.5rem;
  font-size: 1rem;
}

.btn:hover {
  background: color-mix(in oklch, var(--primary) 90%, transparent);
}

.btn--ghost {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: color-mix(in oklch, var(--foreground) 8%, transparent);
}

@media (min-width: 640px) {
  .btn {
    font-size: 1.125rem;
    padding: 1.3rem 2rem;
  }
}

/* ---- cards ---- */

.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

/* ---- section framing ---- */

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-heading p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .section-heading h2 {
    font-size: 2.25rem;
  }
  .section-heading p {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .section-heading h2 {
    font-size: 3rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .badge {
    font-size: 0.875rem;
  }
}

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

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.check-list svg {
  color: var(--primary);
  margin-top: 0.15rem;
}

.check-list span {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .check-list span {
    font-size: 1rem;
  }
}
