:root {
  --rh-red: #ee0000;
  --rh-red-60: #a60000;
  --rh-red-10: #fce3e3;
  --rh-red-05: #fef0f0;
  --rh-black: #151515;
  --rh-gray-90: #1f1f1f;
  --rh-gray-70: #383838;
  --rh-gray-60: #4d4d4d;
  --rh-gray-50: #707070;
  --rh-gray-30: #c7c7c7;
  --rh-gray-20: #e0e0e0;
  --rh-gray-10: #f2f2f2;
  --rh-white: #fff;
  --rh-link: #0066cc;
  --rh-ok: #3d7317;
  --rh-display: "Red Hat Display", "Red Hat Text", Arial, sans-serif;
  --rh-text: "Red Hat Text", Arial, Helvetica, sans-serif;
  --rh-mono: "Red Hat Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--rh-text);
  color: var(--rh-black);
  background: var(--rh-white);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--rh-link); }
img, svg { display: block; max-width: 100%; }

.wrap {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--rh-white);
  border-bottom: 1px solid var(--rh-gray-20);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  gap: 1.25rem;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--rh-black);
  flex: 0 0 auto;
  width: clamp(4.75rem, 17%, 9.5rem);
  max-width: 17%;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 2.65rem;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 1rem;
  font-size: 0.9rem;
  min-width: 0;
}

.nav a {
  color: var(--rh-black);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav a:hover { text-decoration: underline; }

.site-header .btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--rh-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  background: var(--rh-gray-10);
  color: var(--rh-black);
}

.btn:hover { text-decoration: none; filter: brightness(0.97); }
.btn-red {
  background: var(--rh-red);
  color: var(--rh-white);
}
.btn-red:hover { background: var(--rh-red-60); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--rh-black);
}

.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    linear-gradient(180deg, var(--rh-red-05) 0%, var(--rh-white) 58%);
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--rh-red);
  font-weight: 500;
  font-size: 0.95rem;
}

h1, h2, h3 {
  font-family: var(--rh-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); letter-spacing: -0.02em; }
h1 em {
  font-style: normal;
  color: var(--rh-red);
}
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.lead {
  font-size: 1.2rem;
  color: var(--rh-gray-60);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.2rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--rh-gray-50);
  font-size: 0.95rem;
}

.section { padding: 3.5rem 0; }
.section-alt { background: var(--rh-gray-10); }
.section-head { margin-bottom: 1.75rem; max-width: 40rem; }

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
}

.lab-card {
  background: var(--rh-white);
  border: 1px solid var(--rh-gray-20);
  padding: 1.25rem 1.2rem 1.35rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 13.5rem;
  transition: border-color 0.15s ease;
}

a.lab-card:hover {
  border-color: var(--rh-black);
  text-decoration: none;
}

.lab-card.locked {
  background: var(--rh-white);
  opacity: 0.92;
}

.lab-card .num {
  font-family: var(--rh-mono);
  font-size: 0.78rem;
  color: var(--rh-red);
  margin-bottom: 0.45rem;
}

.lab-card h3 { font-size: 1.2rem; }
.lab-card p {
  color: var(--rh-gray-60);
  font-size: 0.95rem;
  flex: 1;
  margin: 0 0 1rem;
}

.chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--rh-gray-30);
  color: var(--rh-gray-70);
}

.chip-free { border-color: var(--rh-ok); color: var(--rh-ok); }
.chip-lock { border-color: var(--rh-red); color: var(--rh-red); }

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.25rem;
}

.plan {
  background: var(--rh-white);
  border: 1px solid var(--rh-gray-20);
  padding: 1.6rem 1.5rem;
}

.plan.featured {
  border: 2px solid var(--rh-red);
}

.price {
  font-family: var(--rh-display);
  font-size: 2.4rem;
  font-weight: 500;
  margin: 0.4rem 0 0.9rem;
}

.price small {
  font-size: 1rem;
  color: var(--rh-gray-50);
}

.plan ul {
  margin: 0 0 1.3rem;
  padding-left: 1.15rem;
}

.plan li { margin: 0.35rem 0; }

.note {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  background: var(--rh-red-05);
  border-left: 3px solid var(--rh-red);
  font-size: 0.95rem;
}

.split-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.block {
  padding-top: 0.4rem;
}

.block h3 { font-size: 1.25rem; }

.site-footer {
  background: var(--rh-black);
  color: #c7c7c7;
  padding: 2.2rem 0;
  font-size: 0.88rem;
}

.site-footer a { color: #fff; }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(21, 21, 21, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}
.modal.open { display: flex; }
.modal-card {
  width: min(440px, 100%);
  background: #fff;
  padding: 1.5rem;
}
.modal-card label { display: block; margin: 0.7rem 0 0.3rem; }
.modal-card input, .modal-card select {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--rh-gray-30);
}
.modal-actions { display: flex; gap: 0.6rem; margin-top: 1rem; }
.err { color: var(--rh-red); min-height: 1.2em; font-size: 0.9rem; }

@media (max-width: 900px) {
  .plan-grid, .split-3 { grid-template-columns: 1fr; }
  .nav .hide-sm { display: none; }
  .hero { padding-top: 2.5rem; }
  .brand { width: clamp(4.5rem, 28%, 8rem); max-width: 28%; }
}
