@font-face {
  font-family: "Unbounded";
  src: url("./assets/unbounded-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+20BD, U+2116;
}

@font-face {
  font-family: "Unbounded";
  src: url("./assets/unbounded-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191-2193, U+2212, U+2215, U+2318, U+25A4, U+2605, U+2713, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Commissioner";
  src: url("./assets/commissioner-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+20BD, U+2116;
}

@font-face {
  font-family: "Commissioner";
  src: url("./assets/commissioner-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191-2193, U+2212, U+2215, U+2318, U+25A4, U+2605, U+2713, U+FEFF, U+FFFD;
}

:root {
  --ink: #06111f;
  --muted: #253347;
  --blue: #005be6;
  --lime: #cbff16;
  --green: #14d875;
  --cyan: #0ce4d3;
  --violet: #a96cff;
  --yellow: #e8ff10;
  --paper: #fbf7ee;
  --paper-2: #f3eee4;
  --line: #bcd1e8;
  --dark: #061017;
  --dark-2: #081723;
  --landing-max: 1180px;
  --landing-gutter: 56px;
  --section-space: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 1180px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 77% 8%, rgba(10, 103, 255, 0.1), transparent 24%),
    linear-gradient(#fbf8f0 0%, #f7f2e8 46%, #fbf8f0 100%);
  font-family: "Commissioner", Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: normal;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

.landing {
  width: min(100%, var(--landing-max));
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 2%, rgba(8, 103, 255, 0.08), transparent 18%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(250, 246, 237, 0.82)),
    var(--paper);
  padding: 22px 0 0;
}

.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 0 var(--landing-gutter);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-transform: uppercase;
}

.logo span {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 5px;
  font-family: "Commissioner", sans-serif;
  font-size: 21px;
  font-weight: 520;
}

.logo strong {
  font-family: "Unbounded", "Commissioner", sans-serif;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.05;
}

.lab-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-height: 48px;
  padding-top: 0;
  font-family: "Commissioner", sans-serif;
}

.lab-nav-item {
  position: relative;
}

.lab-nav-item::after {
  content: "";
  position: absolute;
  top: 36px;
  right: 0;
  left: 0;
  height: 12px;
}

.lab-nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 7px;
  padding: 0 10px;
  color: rgba(6, 17, 31, 0.78);
  font-size: 13px;
  font-weight: 820;
}

.lab-nav-item > a:hover,
.lab-nav-item > a:focus-visible {
  color: var(--ink);
  background: rgba(0, 91, 230, 0.08);
}

.lab-nav-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  z-index: 50;
  display: grid;
  gap: 4px;
  width: 260px;
  padding: 10px;
  border: 1px solid rgba(6, 17, 31, 0.16);
  border-radius: 10px;
  background: rgba(255, 252, 244, 0.98);
  box-shadow: 0 18px 34px rgba(6, 17, 31, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  visibility: hidden;
}

.lab-nav-dropdown a {
  display: block;
  border-radius: 7px;
  padding: 10px;
  color: var(--ink);
  font-family: "Commissioner", sans-serif;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.15;
}

.lab-nav-dropdown a:hover,
.lab-nav-dropdown a:focus-visible {
  background: rgba(0, 91, 230, 0.08);
}

.lab-nav-item:hover .lab-nav-dropdown,
.lab-nav-item:focus-within .lab-nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  gap: 5px;
  border: 0;
  border-radius: 7px;
  background: #07131e;
  padding: 12px;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 10px 26px rgba(6, 17, 31, 0.16);
}

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

.mobile-menu summary span {
  width: 23px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.mobile-menu > div {
  position: absolute;
  top: 58px;
  right: 0;
  z-index: 60;
  display: grid;
  gap: 8px;
  width: min(78vw, 280px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(6, 17, 31, 0.96);
  box-shadow: 0 22px 42px rgba(6, 17, 31, 0.22);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 7px;
  padding: 10px 12px;
  color: #fff;
  font-family: "Commissioner", sans-serif;
  font-size: 15px;
  font-weight: 760;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.lab-page-hero,
.section,
.light-section,
.dark-section,
.pricing-section,
.faq-section {
  border-bottom: 1px solid var(--line);
  padding: var(--section-space) var(--landing-gutter);
}

.lab-page-hero {
  padding-top: 74px;
  padding-bottom: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(410px, 0.76fr);
  align-items: center;
  gap: 46px;
}

.hero-grid.hero-wide {
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 0.88fr);
}

.section-kicker,
.mini-kicker {
  display: block;
  color: var(--blue);
  text-transform: uppercase;
  font-family: "Unbounded", "Commissioner", sans-serif;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.section-kicker {
  margin-bottom: 25px;
}

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

h1,
h2,
h3,
.btn,
.fact-card strong,
.price {
  font-family: "Unbounded", "Commissioner", sans-serif;
  letter-spacing: 0;
}

.lab-page-hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: 54px;
  font-weight: 880;
  line-height: 1;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 640px;
  color: #142235;
  font-size: 19px;
  line-height: 1.42;
  text-wrap: pretty;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 820;
}

.btn-main {
  overflow: hidden;
  color: var(--lime);
  background: linear-gradient(135deg, #040a0f, #071622);
  box-shadow:
    0 8px 12px rgba(6, 17, 31, 0.18),
    0 0 0 1px rgba(203, 255, 22, 0.18),
    0 0 18px rgba(203, 255, 22, 0.16);
}

.btn-main::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(203, 255, 22, 0.18), transparent);
  opacity: 0.7;
  transform: translateX(-115%);
  animation: ctaSheen 8.4s ease-in-out infinite;
}

.btn-main > * {
  position: relative;
  z-index: 1;
}

.btn-main span {
  transition: transform 180ms ease-out;
}

.btn-main:hover span {
  transform: translateX(3px);
}

.btn-outline {
  background: transparent;
}

.btn-blue {
  color: var(--ink);
  border-color: var(--blue);
  background: transparent;
}

.hero-note {
  max-width: 610px;
  margin-top: 22px;
  border-left: 3px solid var(--blue);
  padding: 6px 0 6px 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.42;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.fact-card,
.paper-card {
  border: 1px solid rgba(6, 17, 31, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.76), transparent 34%),
    repeating-linear-gradient(0deg, rgba(6, 17, 31, 0.025) 0 1px, transparent 1px 12px),
    #f7f2e8;
}

.fact-card {
  min-height: 118px;
  padding: 16px 16px 15px;
}

.fact-card .mini-kicker {
  margin-bottom: 14px;
  font-size: 10px;
}

.fact-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 880;
  line-height: 1;
}

.fact-card span,
.fact-card p {
  color: #142235;
  font-size: 13px;
  line-height: 1.25;
}

.section > h2,
.light-section > h2,
.dark-section > h2,
.pricing-section > h2,
.faq-section > h2 {
  margin-bottom: 26px;
  font-size: 45px;
  font-weight: 800;
  line-height: 1;
  text-wrap: balance;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lead-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.paper-card {
  min-height: 188px;
  padding: 24px 23px;
}

.paper-card .num {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(10, 103, 255, 0.18);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(10, 103, 255, 0.08);
  font-family: "Unbounded", "Commissioner", sans-serif;
  font-size: 14px;
  font-weight: 780;
}

.paper-card h3 {
  margin-bottom: 11px;
  font-size: 21px;
  font-weight: 820;
  line-height: 1.09;
  text-wrap: balance;
}

.paper-card p {
  color: #142235;
  font-size: 15.5px;
  line-height: 1.4;
  text-wrap: pretty;
}

.dark-section {
  padding-top: 62px;
  padding-bottom: 62px;
  color: #fff;
  background: linear-gradient(90deg, rgba(5, 13, 20, 0.97), rgba(5, 13, 20, 0.88)), url("./assets/blueprint-dark.webp") 50%/cover no-repeat;
}

.dark-section h2,
.dark-section .section-kicker {
  color: #fff;
}

.dark-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.dark-card {
  position: relative;
  isolation: isolate;
  min-height: 218px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(5, 13, 20, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  padding: 24px 24px 22px;
}

.dark-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.62;
  background:
    radial-gradient(circle at 20% 18%, color-mix(in srgb, currentColor 28%, transparent), transparent 28%),
    radial-gradient(circle at 86% 66%, color-mix(in srgb, currentColor 18%, transparent), transparent 30%),
    linear-gradient(100deg, transparent 0 42%, color-mix(in srgb, currentColor 20%, transparent) 47% 51%, transparent 56% 100%),
    repeating-linear-gradient(90deg, transparent 0 28px, color-mix(in srgb, currentColor 18%, transparent) 28px 29px, transparent 29px 58px),
    repeating-linear-gradient(0deg, transparent 0 24px, color-mix(in srgb, currentColor 12%, transparent) 24px 25px, transparent 25px 52px);
  background-size: 150% 150%, 150% 150%, 220% 100%, 118px 100%, 100% 104px;
  animation: rhythmCircuit 18s linear infinite;
}

.dark-card.lime {
  color: var(--lime);
}

.dark-card.cyan {
  color: var(--cyan);
}

.dark-card.violet {
  color: var(--violet);
}

.dark-card:nth-child(2)::before,
.dark-card:nth-child(2)::after {
  animation-delay: -3.4s;
}

.dark-card:nth-child(3)::before,
.dark-card:nth-child(3)::after {
  animation-delay: -6.8s;
}

.dark-card.yellow {
  color: var(--yellow);
}

.dark-card .glyph,
.dark-card h3,
.dark-card p {
  position: relative;
  z-index: 2;
}

.dark-card h3 {
  max-width: 310px;
  margin: 24px 0 12px;
  color: #fff;
  font-size: 23px;
  line-height: 1.08;
  text-wrap: balance;
}

.dark-card p {
  max-width: 330px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.38;
  text-wrap: pretty;
}

.glyph {
  font-family: "Unbounded", "Commissioner", sans-serif;
  font-size: 28px;
  font-weight: 760;
}

.timeline-list {
  display: grid;
  gap: 8px;
}

.timeline-list article {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid rgba(6, 17, 31, 0.16);
  padding: 18px 20px 18px;
}

.timeline-list strong {
  color: var(--blue);
  font-family: "Unbounded", "Commissioner", sans-serif;
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.timeline-list h3 {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 820;
}

.timeline-list p {
  max-width: 760px;
  color: #253347;
  font-size: 15px;
  line-height: 1.4;
  text-wrap: pretty;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pricing-grid.two-plans {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
}

.price-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  border: 1px solid rgba(6, 17, 31, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.8), transparent 34%),
    repeating-linear-gradient(0deg, rgba(6, 17, 31, 0.03) 0 1px, transparent 1px 12px),
    #f7f2e8;
  padding: 22px 20px;
}

.pricing-grid.two-plans .price-card {
  min-height: 382px;
  padding: 24px 24px 23px;
}

.price-card.featured {
  border-color: rgba(10, 103, 255, 0.5);
  background:
    radial-gradient(circle at 18% 12%, rgba(203, 255, 22, 0.42), transparent 33%),
    repeating-linear-gradient(0deg, rgba(6, 17, 31, 0.035) 0 1px, transparent 1px 12px),
    #f7f2e8;
  animation: studentCardGlow 8.8s ease-in-out infinite;
}

.price-card-head {
  display: grid;
  min-height: 118px;
  align-content: start;
  gap: 13px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(6, 17, 31, 0.16);
  padding-bottom: 18px;
}

.price-card.featured .price-card-head {
  border-bottom-color: rgba(0, 91, 230, 0.26);
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 18px;
  border: 1px solid rgba(10, 103, 255, 0.22);
  border-radius: 5px;
  padding: 6px 8px;
  color: var(--blue);
  background: rgba(10, 103, 255, 0.08);
  font-family: "Unbounded", "Commissioner", sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 830;
  line-height: 1.08;
  text-wrap: balance;
}

.pricing-grid.two-plans .price-card h3 {
  max-width: 520px;
  font-size: 25px;
}

.price {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: "Unbounded", "Commissioner", "Segoe UI", sans-serif;
  font-size: 34px;
  font-weight: 880;
  line-height: 0.98;
  white-space: nowrap;
}

.pricing-grid.two-plans .price {
  font-size: 42px;
}

.pricing-grid.two-plans .price-card:not(.featured) .price {
  font-size: 36px;
}

.price-card p,
.price-card li {
  color: #253347;
  font-size: 15px;
  line-height: 1.36;
}

.pricing-grid.two-plans .price-card > p {
  max-width: 540px;
  min-height: 44px;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
}

.price-card li span {
  color: var(--blue);
  font-weight: 900;
}

.price-card .btn {
  width: 100%;
  margin-top: auto;
}

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(6, 17, 31, 0.16);
}

.faq-list details {
  border-bottom: 1px solid rgba(6, 17, 31, 0.16);
  padding: 20px 24px;
}

.faq-list summary {
  min-height: 44px;
  cursor: pointer;
  color: var(--ink);
  font-family: "Unbounded", "Commissioner", sans-serif;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.24;
}

.faq-list p {
  max-width: 780px;
  margin-top: 12px;
  color: #253347;
  font-size: 16px;
  line-height: 1.44;
  text-wrap: pretty;
}

.bottom-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 32px;
  min-height: 104px;
  margin: 0;
  border-radius: 0;
  color: #fff;
  background: linear-gradient(90deg, rgba(5, 13, 20, 0.96), rgba(5, 13, 20, 0.88)), url("./assets/lab-grid-dark.webp") 50%/cover no-repeat;
  padding: 24px var(--landing-gutter);
}

.bottom-cta h2 {
  margin-bottom: 0;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 0.98;
  text-wrap: balance;
}

.bottom-cta .btn {
  justify-self: stretch;
}

.bottom-cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.35;
}

.bottom-cta small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.25;
}

.lab-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 43px;
  border-top: 1px solid var(--line);
  padding: 24px 0 28px;
}

.lab-footer strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Unbounded", "Commissioner", sans-serif;
  font-size: 15px;
}

.lab-footer p {
  max-width: 420px;
  color: #253347;
  font-size: 13px;
  line-height: 1.32;
}

.lab-footer nav {
  display: flex;
  max-width: 100%;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.lab-footer nav::-webkit-scrollbar {
  display: none;
}

.lab-footer a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 32px;
  color: var(--blue);
  font-family: "Commissioner", sans-serif;
  font-size: 13px;
  font-weight: 760;
}

.terminal-board {
  position: relative;
  display: flex;
  width: 438px;
  height: 438px;
  min-height: 438px;
  flex-direction: column;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(203, 255, 22, 0.24);
  border-radius: 8px;
  color: #dfffe8;
  background:
    linear-gradient(rgba(203, 255, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 228, 211, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 22% 14%, rgba(203, 255, 22, 0.22), transparent 27%),
    radial-gradient(circle at 82% 78%, rgba(12, 228, 211, 0.17), transparent 29%),
    linear-gradient(135deg, #03080d 0%, #07131c 54%, #082328 100%);
  background-size: 18px 18px, 18px 18px, auto, auto, auto;
  box-shadow: 0 18px 34px rgba(6, 17, 31, 0.2);
}

.terminal-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(203, 255, 22, 0.08) 48%, transparent 51%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.34;
  animation: terminalScan 11s ease-in-out infinite;
}

.terminal-board::after {
  content: "";
  position: absolute;
  inset: 13px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.terminal-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.terminal-leds {
  display: flex;
  gap: 7px;
}

.terminal-leds span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.terminal-leds span:nth-child(1) {
  background: var(--lime);
}

.terminal-leds span:nth-child(2) {
  background: var(--cyan);
}

.terminal-leds span:nth-child(3) {
  background: var(--violet);
}

.terminal-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.term-line {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

.term-line b,
.term-green {
  color: var(--lime);
  font-weight: 700;
}

.term-cyan {
  color: var(--cyan);
}

.term-violet {
  color: #caa9ff;
}

.term-dim {
  color: rgba(255, 255, 255, 0.42);
}

.terminal-pill {
  display: inline-flex;
  border: 1px solid rgba(203, 255, 22, 0.26);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--lime);
  background: rgba(203, 255, 22, 0.07);
  font-size: 11px;
}

.variant-boot .terminal-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
}

.boot-lines {
  display: grid;
  gap: 2px;
}

.boot-core {
  display: grid;
  min-height: 0;
  border: 1px solid rgba(203, 255, 22, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 15% 18%, rgba(203, 255, 22, 0.15), transparent 38%),
    rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.boot-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.variant-boot-rich .terminal-topbar {
  min-height: 43px;
}

.variant-boot-rich .terminal-body {
  grid-template-rows: auto 158px auto;
  align-content: space-between;
  padding: 14px;
}

.variant-boot-rich .term-line {
  font-size: 11px;
  line-height: 1.42;
  animation: terminalCommandIn 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.variant-boot-rich .term-line:nth-child(2) {
  animation-delay: 140ms;
}

.variant-boot-rich .term-line:nth-child(3) {
  animation-delay: 260ms;
}

.variant-boot-rich .term-line:nth-child(4) {
  animation-delay: 380ms;
}

.variant-boot-rich .term-line:nth-child(5) {
  animation-delay: 500ms;
}

.variant-boot-rich .term-line:nth-child(6) {
  animation-delay: 620ms;
}

.variant-boot-rich .boot-core {
  position: relative;
  overflow: hidden;
  border-color: rgba(203, 255, 22, 0.16);
  background:
    radial-gradient(circle at 12% 18%, rgba(203, 255, 22, 0.12), transparent 38%),
    radial-gradient(circle at 88% 78%, rgba(12, 228, 211, 0.11), transparent 34%),
    rgba(255, 255, 255, 0.045);
  padding: 10px 12px;
  animation: terminalBlockIn 680ms 740ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.variant-boot-rich .boot-core::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(203, 255, 22, 0.14), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 15px);
  opacity: 0.52;
  transform: translateX(-72%);
  animation: terminalLoadSweep 1.55s 840ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lab-stream {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  min-height: 0;
}

.stream-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 7px;
}

.stream-head span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 9.5px;
}

.stream-head strong {
  color: var(--lime);
  font-size: 11px;
  font-weight: 760;
}

.stream-rows {
  display: grid;
  gap: 5px;
}

.stream-rows div {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 26px;
  color: rgba(255, 255, 255, 0.78);
  animation: terminalRowIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stream-rows div:nth-child(1) {
  animation-delay: 980ms;
}

.stream-rows div:nth-child(2) {
  animation-delay: 1120ms;
}

.stream-rows div:nth-child(3) {
  animation-delay: 1260ms;
}

.stream-rows span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(12, 228, 211, 0.36);
  border-radius: 4px;
  color: var(--cyan);
  font-size: 9px;
}

.stream-rows p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.22;
}

.stream-meter {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.stream-meter span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  transform-origin: left;
  animation: terminalMeterLoad 1.05s 1.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.variant-boot-rich .boot-status {
  animation: terminalStatusIn 520ms 1.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.boot-panel-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 9px;
  min-height: 0;
}

.boot-panel-stack {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.boot-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    rgba(255, 255, 255, 0.055);
  background-size: 100% 14px;
  padding: 10px;
}

.boot-panel::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: rgba(203, 255, 22, 0.32);
}

.boot-panel h3 {
  margin-bottom: 7px;
  color: var(--lime);
  font-size: 13px;
  line-height: 1;
}

.boot-panel p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10.5px;
  line-height: 1.28;
}

.boot-panel code {
  display: block;
  margin-top: 7px;
  color: var(--cyan);
  font-size: 10.5px;
}

.boot-micro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.boot-micro {
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 9px;
}

.boot-micro strong {
  display: block;
  margin-bottom: 6px;
  color: var(--lime);
  font-size: 12px;
}

.boot-micro span {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10.5px;
  line-height: 1.2;
}

.boot-cells {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.boot-cells span {
  height: 13px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
}

.boot-cells span:nth-child(3n) {
  background: rgba(203, 255, 22, 0.34);
}

.boot-cells span:nth-child(5n) {
  background: rgba(12, 228, 211, 0.25);
}

.lab-dashboard,
.thesis-board,
.member-ledger,
.calendar-board,
.interview-board {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(6, 17, 31, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 13, 20, 0.95), rgba(5, 13, 20, 0.82)),
    url("./assets/blueprint-dark.webp") 50%/cover no-repeat;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(6, 17, 31, 0.16);
}

.lab-dashboard::before,
.thesis-board::before,
.member-ledger::before,
.calendar-board::before,
.interview-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 14%, rgba(203, 255, 22, 0.18), transparent 25%),
    radial-gradient(circle at 88% 86%, rgba(12, 228, 211, 0.16), transparent 24%);
}

.panel-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.dashboard-cards,
.thesis-stack,
.ledger-list,
.calendar-grid,
.interview-stack {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.dashboard-cards {
  grid-template-columns: 1.1fr 0.9fr;
}

.dash-card,
.small-panel,
.project-slip,
.ledger-row,
.week-tile,
.interview-row {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 16px;
}

.dash-card h3,
.small-panel h3,
.project-slip h3,
.ledger-row h3,
.week-tile h3,
.interview-row h3 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
}

.dash-card p,
.small-panel p,
.project-slip p,
.ledger-row p,
.week-tile p,
.interview-row p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.38;
}

.dash-card.big {
  min-height: 210px;
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--lime);
}

.small-panel {
  min-height: 116px;
}

.thesis-stack {
  padding-top: 22px;
}

.project-slip {
  display: grid;
  grid-template-columns: 94px 1fr;
  align-items: center;
  min-height: 96px;
}

.project-slip .mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--lime);
  font-family: "Unbounded", "Commissioner", sans-serif;
  font-size: 18px;
  font-weight: 850;
}

.member-ledger {
  min-height: 440px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 84px 1fr 88px;
  align-items: center;
  min-height: 86px;
}

.ledger-row strong {
  color: var(--lime);
  font-family: "Unbounded", "Commissioner", sans-serif;
  font-size: 15px;
}

.ledger-row em {
  justify-self: end;
  color: var(--cyan);
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.calendar-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.week-tile {
  min-height: 150px;
}

.week-tile strong {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.interview-stack {
  gap: 10px;
}

.interview-row {
  display: grid;
  grid-template-columns: 72px 1fr 86px;
  align-items: center;
  min-height: 78px;
}

.interview-row strong {
  color: var(--lime);
  font-family: "Unbounded", "Commissioner", sans-serif;
  font-size: 16px;
}

.interview-row em {
  justify-self: end;
  color: var(--cyan);
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(6, 17, 31, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.matrix div {
  min-height: 155px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.38);
}

.matrix div:nth-child(odd) {
  border-right: 1px solid rgba(6, 17, 31, 0.14);
}

.matrix div:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(6, 17, 31, 0.14);
}

.matrix h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.matrix p {
  color: #253347;
  font-size: 15px;
  line-height: 1.4;
}

@keyframes ctaSheen {
  0%,
  62%,
  100% {
    transform: translateX(-115%);
  }

  76% {
    transform: translateX(115%);
  }
}

@keyframes studentCardGlow {
  0%,
  100% {
    border-color: rgba(10, 103, 255, 0.48);
    box-shadow:
      0 0 0 rgba(203, 255, 22, 0),
      inset 0 0 0 1px rgba(203, 255, 22, 0);
  }

  50% {
    border-color: rgba(10, 103, 255, 0.62);
    box-shadow:
      0 0 22px rgba(203, 255, 22, 0.2),
      inset 0 0 28px rgba(203, 255, 22, 0.08);
  }
}

@keyframes terminalScan {
  0%,
  100% {
    transform: translateY(-9%);
    opacity: 0.22;
  }

  50% {
    transform: translateY(9%);
    opacity: 0.34;
  }
}

@keyframes terminalCommandIn {
  0% {
    opacity: 0.72;
    transform: translateY(5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes terminalBlockIn {
  0% {
    opacity: 0.82;
    transform: translateY(7px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes terminalLoadSweep {
  0% {
    transform: translateX(-78%);
    opacity: 0;
  }

  22% {
    opacity: 0.52;
  }

  100% {
    transform: translateX(78%);
    opacity: 0;
  }
}

@keyframes terminalRowIn {
  0% {
    opacity: 0.7;
    transform: translateX(-6px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes terminalMeterLoad {
  0% {
    transform: scaleX(0.18);
    opacity: 0.74;
  }

  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes terminalStatusIn {
  0% {
    opacity: 0.72;
    transform: translateY(5px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rhythmCircuit {
  0% {
    background-position: 0% 0%, 100% 100%, -140% 0, 0 0, 0 0;
    transform: translate3d(0, 0, 0);
  }

  50% {
    background-position: 58% 34%, 42% 64%, 40% 0, 46px 0, 0 32px;
    transform: translate3d(0, -3px, 0);
  }

  100% {
    background-position: 100% 76%, 0% 28%, 140% 0, 118px 0, 0 104px;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 980px) {
  :root {
    --landing-gutter: 20px;
    --section-space: 46px;
  }

  html {
    overflow-x: hidden;
  }

  body {
    min-width: 0;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 82% 3%, rgba(10, 103, 255, 0.12), transparent 24%),
      linear-gradient(#fbf8f0 0%, #f7f2e8 52%, #fbf8f0 100%);
  }

  .landing {
    width: 100%;
    overflow: hidden;
    padding-top: calc(16px + env(safe-area-inset-top));
  }

  .site-header {
    align-items: center;
    padding: 0 calc(var(--landing-gutter) + env(safe-area-inset-right)) 0 calc(var(--landing-gutter) + env(safe-area-inset-left));
  }

  .logo {
    gap: 12px;
  }

  .logo span {
    width: 42px;
    height: 42px;
    border-radius: 5px;
    font-size: 19px;
  }

  .logo strong {
    font-size: 11px;
    line-height: 1.08;
  }

  .lab-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .lab-page-hero,
  .section,
  .light-section,
  .dark-section,
  .pricing-section,
  .faq-section {
    padding-right: calc(var(--landing-gutter) + env(safe-area-inset-right));
    padding-left: calc(var(--landing-gutter) + env(safe-area-inset-left));
  }

  .lab-page-hero {
    padding-top: 52px;
    padding-bottom: 42px;
  }

  .hero-grid,
  .hero-grid.hero-wide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-grid > *,
  .lead-grid > *,
  .dark-grid > *,
  .pricing-grid > * {
    min-width: 0;
  }

  .lab-page-hero h1 {
    max-width: none;
    margin-bottom: 18px;
    font-size: clamp(33px, 8.7vw, 38px);
    line-height: 1.02;
    text-wrap: pretty;
    word-break: normal;
    overflow-wrap: normal;
  }

  .hero-copy p {
    max-width: none;
    font-size: 17px;
    line-height: 1.43;
  }

  .hero-note {
    max-width: none;
    margin-top: 18px;
    padding: 5px 0 5px 15px;
    font-size: 15px;
    line-height: 1.42;
  }

  .intro-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .btn {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    font-size: 14px;
  }

  .terminal-board {
    width: 100%;
    height: auto;
    min-height: 158px;
    justify-self: stretch;
    border-color: rgba(203, 255, 22, 0.2);
    box-shadow: 0 12px 20px rgba(6, 17, 31, 0.16);
  }

  .terminal-board::after {
    inset: 10px;
  }

  .variant-boot-rich .terminal-topbar {
    min-height: 40px;
    padding: 0 13px;
    font-size: 11px;
  }

  .variant-boot .terminal-body,
  .variant-boot-rich .terminal-body {
    display: block;
    padding: 13px 14px 15px;
  }

  .variant-boot-rich .term-line {
    font-size: 11px;
    line-height: 1.56;
    overflow-wrap: anywhere;
  }

  .variant-boot-rich .term-line:nth-child(n + 5),
  .variant-boot-rich .boot-core,
  .variant-boot-rich .boot-status {
    display: none;
  }

  .fact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .fact-card {
    min-height: 118px;
    padding: 14px 13px;
  }

  .fact-card .mini-kicker {
    margin-bottom: 11px;
    font-size: 9px;
  }

  .fact-card strong {
    margin-bottom: 7px;
    font-size: clamp(18px, 5.2vw, 21px);
    line-height: 1.03;
    overflow-wrap: normal;
  }

  .fact-card span,
  .fact-card p {
    font-size: 12.5px;
    line-height: 1.28;
  }

  .section > h2,
  .light-section > h2,
  .dark-section > h2,
  .pricing-section > h2,
  .faq-section > h2 {
    margin-bottom: 22px;
    font-size: clamp(31px, 8.9vw, 40px);
    line-height: 1.04;
  }

  .lead-grid,
  .lead-grid.two,
  .dark-grid,
  .pricing-grid,
  .pricing-grid.two-plans {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .paper-card {
    min-height: auto;
    padding: 20px 19px;
  }

  .paper-card .num {
    width: 38px;
    height: 38px;
    margin-bottom: 15px;
  }

  .paper-card h3 {
    font-size: 20px;
  }

  .paper-card p {
    font-size: 15px;
    line-height: 1.42;
  }

  .dark-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .dark-card {
    min-height: 194px;
    padding: 22px 21px 20px;
  }

  .dark-card h3 {
    max-width: 280px;
    margin-top: 22px;
    font-size: 22px;
  }

  .dark-card p {
    max-width: none;
  }

  .timeline-list {
    gap: 0;
  }

  .timeline-list article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 17px 0 18px;
  }

  .timeline-list strong {
    font-size: 11px;
  }

  .timeline-list h3 {
    margin-bottom: 7px;
    font-size: 20px;
    line-height: 1.12;
  }

  .timeline-list p {
    max-width: none;
    font-size: 15px;
    line-height: 1.43;
  }

  .pricing-grid.two-plans .price-card,
  .price-card {
    min-height: auto;
    padding: 22px 20px;
  }

  .price-card-head {
    min-height: 0;
    gap: 9px;
    margin-bottom: 14px;
    padding-bottom: 16px;
  }

  .pricing-grid.two-plans .price-card h3 {
    font-size: clamp(22px, 6.2vw, 26px);
  }

  .price,
  .pricing-grid.two-plans .price {
    font-size: clamp(32px, 8.9vw, 39px);
    line-height: 1.04;
  }

  .pricing-grid.two-plans .price-card:not(.featured) .price {
    font-size: clamp(30px, 8vw, 34px);
  }

  .pricing-grid.two-plans .price-card > p {
    min-height: 0;
  }

  .price-card ul {
    gap: 11px;
    margin-top: 18px;
  }

  .price-card li {
    grid-template-columns: 20px 1fr;
    gap: 8px;
  }

  .price-card li span {
    line-height: 1.3;
  }

  .price-card .btn {
    margin-top: 24px;
  }

  .faq-list details {
    padding: 18px 0;
  }

  .faq-list summary {
    font-size: 17px;
    line-height: 1.25;
  }

  .faq-list p {
    font-size: 15px;
    line-height: 1.43;
  }

  .bottom-cta {
    grid-template-columns: 1fr;
    gap: 17px;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    padding: 22px calc(var(--landing-gutter) + env(safe-area-inset-right)) 22px calc(var(--landing-gutter) + env(safe-area-inset-left));
  }

  .bottom-cta h2 {
    font-size: 25px;
    line-height: 1.06;
  }

  .bottom-cta p {
    font-size: 15px;
  }

  .bottom-cta small {
    font-size: 12.5px;
  }

  .lab-footer {
    display: grid;
    gap: 17px;
    margin: 0 calc(var(--landing-gutter) + env(safe-area-inset-right)) 0 calc(var(--landing-gutter) + env(safe-area-inset-left));
    padding: 22px 0 calc(28px + env(safe-area-inset-bottom));
  }

  .lab-footer strong {
    font-size: 14px;
    line-height: 1.2;
  }

  .lab-footer p {
    max-width: none;
  }

  .lab-footer nav {
    justify-content: flex-start;
    gap: 0 14px;
  }

  .lab-footer a {
    font-size: 13px;
    min-height: 44px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  :root {
    --landing-gutter: 40px;
    --section-space: 56px;
  }

  .lab-page-hero {
    padding-top: 64px;
    padding-bottom: 50px;
  }

  .hero-grid,
  .hero-grid.hero-wide {
    gap: 32px;
  }

  .lab-page-hero h1 {
    max-width: 760px;
    font-size: clamp(46px, 5.7vw, 54px);
  }

  .hero-copy p {
    max-width: 680px;
    font-size: 18px;
  }

  .hero-note {
    max-width: 650px;
  }

  .intro-actions {
    display: flex;
    max-width: 540px;
  }

  .intro-actions .btn {
    width: auto;
    flex: 1 1 230px;
  }

  .terminal-board {
    max-width: 620px;
    min-height: 166px;
  }

  .fact-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fact-card {
    min-height: 124px;
  }

  .lead-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-grid > .paper-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .dark-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .dark-card {
    min-height: 220px;
    padding: 20px 18px;
  }

  .dark-card h3 {
    max-width: 210px;
    font-size: 20px;
  }

  .dark-card p {
    font-size: 14px;
  }

  .pricing-grid.two-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .price-card-head {
    min-height: 104px;
  }

  .pricing-grid.two-plans .price-card h3 {
    font-size: 23px;
  }

  .price,
  .pricing-grid.two-plans .price {
    font-size: 36px;
  }

  .pricing-grid.two-plans .price-card:not(.featured) .price {
    font-size: 32px;
  }

  .bottom-cta {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: center;
  }

  .bottom-cta small {
    grid-column: 1 / -1;
  }

  .bottom-cta .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  :root {
    --landing-gutter: 16px;
  }

  .lab-page-hero h1 {
    font-size: clamp(30px, 9.2vw, 34px);
    overflow-wrap: anywhere;
  }

  .fact-row {
    grid-template-columns: 1fr;
  }

  .fact-card {
    min-height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dark-card::before {
    animation: none;
  }

  .dark-card::before {
    opacity: 0.36;
  }

  .terminal-board::before,
  .variant-boot-rich .term-line,
  .variant-boot-rich .boot-core,
  .variant-boot-rich .boot-core::before,
  .stream-rows div,
  .stream-meter span,
  .variant-boot-rich .boot-status,
  .btn-main::before,
  .price-card.featured {
    animation: none;
  }
}
