@import url("/tokens.css");

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

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

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

html {
  overflow-x: clip;
}

body {
  isolation: isolate;
  display: grid;
  min-width: 320px;
  min-height: 100svh;
  grid-template-rows: auto 1fr;
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.background-canvas,
.background-shade {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.background-canvas {
  background:
    radial-gradient(circle at 78% 68%, rgb(255 79 0 / 24%), transparent 42%),
    var(--color-paper);
}

.background-canvas[data-fallback="true"] {
  opacity: 0.82;
}

.background-shade {
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 50%, rgb(7 7 9 / 22%) 0%, rgb(7 7 9 / 8%) 35%, transparent 68%),
    radial-gradient(ellipse at 50% 50%, transparent 42%, rgb(4 4 5 / 36%) 100%);
}

a {
  color: inherit;
}

h1,
p {
  margin: 0;
}

.shell {
  width: min(100%, var(--layout-shell));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.skip-link {
  position: fixed;
  z-index: var(--z-sticky);
  inset-block-start: var(--space-sm);
  inset-inline-start: var(--space-sm);
  min-height: var(--control-height);
  padding: var(--space-xs) var(--space-sm);
  transform: translateY(calc(var(--space-3xl) * -1));
  border-radius: var(--radius-button);
  background: var(--color-inverse-paper);
  color: var(--color-inverse-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: var(--space-2xs);
}

.site-header {
  position: relative;
  width: 100%;
}

.nav-shell {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 3rem;
  height: auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-height));
  place-items: center;
  padding-block: var(--space-xl) calc(var(--header-height) + var(--space-xl));
}

.hero-content {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.hero h1 {
  max-width: 11ch;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero-lede {
  max-width: 46rem;
  margin-block-start: var(--space-lg);
  color: var(--color-ink-2);
  font-size: var(--text-md);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  width: 100%;
  max-width: 24rem;
  flex-direction: column;
  gap: var(--space-xs);
  margin-block-start: var(--space-lg);
}

.button {
  display: inline-flex;
  min-height: var(--control-height);
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  border: var(--rule-thin) solid transparent;
  border-radius: var(--radius-button);
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--dur-micro) var(--ease-out),
    background-color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out);
}

.button-primary {
  background: var(--color-inverse-paper);
  color: var(--color-inverse-ink);
}

.button-secondary {
  border-color: var(--color-rule);
  background: transparent;
  color: var(--color-ink);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
  transform: none;
}

.error-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: var(--page-gutter);
}

.error-card {
  display: grid;
  max-width: 34rem;
  justify-items: start;
  gap: var(--space-md);
}

.error-card h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.error-card > p:not(.error-code) {
  color: var(--color-muted);
}

.error-code {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-2px);
  }

  .button-primary:hover {
    background: var(--color-ink-2);
  }

  .button-secondary:hover {
    border-color: var(--color-muted);
    background: var(--color-paper-2);
  }
}

.button:active {
  transform: translateY(0);
}

.pro-dialog {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  overflow: auto;
  border: var(--rule-thin) solid rgb(255 255 255 / 16%);
  border-radius: 1.25rem;
  padding: 0;
  background: rgb(11 11 13 / 94%);
  box-shadow:
    0 2rem 6rem rgb(0 0 0 / 72%),
    inset 0 1px 0 rgb(255 255 255 / 6%);
  color: var(--color-ink);
  opacity: 0;
  transform: translateY(0.75rem) scale(0.985);
  backdrop-filter: blur(1.5rem) saturate(1.2);
}

.pro-dialog[open] {
  animation: modal-in var(--dur-long) var(--ease-out) forwards;
}

.pro-dialog::backdrop {
  background: rgb(3 3 4 / 72%);
  backdrop-filter: blur(0.75rem);
}

.pro-modal {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.pro-modal-header {
  margin-block-end: var(--space-lg);
}

.pro-label {
  margin-block-end: var(--space-xs);
  color: rgb(255 116 36);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pro-modal h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 1;
}

.pro-modal-header > p:last-child {
  max-width: 34rem;
  margin-block-start: var(--space-sm);
  color: var(--color-ink-2);
}

.pro-matrix-wrap {
  overflow-x: auto;
  border: var(--rule-thin) solid rgb(255 255 255 / 11%);
  border-radius: var(--radius-card);
  background: rgb(255 255 255 / 2%);
}

.pro-matrix {
  width: 100%;
  min-width: 33rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--text-sm);
}

.pro-matrix th,
.pro-matrix td {
  padding: 0.9rem 1rem;
  border-bottom: var(--rule-thin) solid rgb(255 255 255 / 8%);
  text-align: start;
  vertical-align: middle;
}

.pro-matrix thead th {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 400;
}

.pro-matrix thead th:first-child,
.pro-matrix tbody th {
  width: 42%;
}

.pro-matrix tbody th {
  color: var(--color-ink-2);
  font-weight: 400;
}

.pro-matrix td {
  color: var(--color-muted);
}

.pro-matrix .pro-value,
.pro-matrix .pro-price {
  color: var(--color-ink);
}

.pro-matrix .price-row th,
.pro-matrix .price-row td {
  border-bottom: 0;
  background: rgb(255 79 0 / 5%);
}

.pro-price {
  font-weight: 600;
  white-space: nowrap;
}

.pro-price span {
  display: block;
  margin-block-start: 0.15rem;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 400;
}

.pro-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-xs);
  margin-block-start: var(--space-lg);
}

.pro-modal-actions .button {
  min-width: 7.5rem;
}

@keyframes modal-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 40rem) {
  .hero-actions {
    width: auto;
    max-width: none;
    flex-direction: row;
  }

  .hero-actions .button {
    min-width: 10rem;
  }
}

@media (max-height: 42rem) {
  body {
    --header-height: 4rem;
  }

  .hero {
    padding-block: var(--space-md);
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 3.25rem);
  }

  .hero-lede,
  .hero-actions {
    margin-block-start: var(--space-sm);
  }
}

@media (max-width: 32rem) {
  .pro-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .pro-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pro-matrix {
    min-width: 0;
    font-size: var(--text-xs);
  }

  .pro-matrix th,
  .pro-matrix td {
    padding: 0.75rem 0.5rem;
    overflow-wrap: anywhere;
  }

  .pro-matrix thead th:first-child,
  .pro-matrix tbody th {
    width: 38%;
  }

  .pro-price {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .background-canvas {
    filter: saturate(0.86);
  }
}
