/* Lemon Link Lab — a small, dependency-free knowledge site. */
:root {
  --lemon: #f4cf3a;
  --lemon-light: #fff3a7;
  --lemon-pale: #fffbe7;
  --lemon-deep: #e3ad18;
  --green: #58a94a;
  --green-deep: #1f4a2c;
  --green-ink: #17311f;
  --ink: #1d2b22;
  --muted: #66746b;
  --paper: #fffef9;
  --white: #ffffff;
  --line: #e8e5d8;
  --line-strong: #d8d4c4;
  --danger: #c46247;
  --shadow: 0 24px 70px rgba(50, 55, 35, 0.1);
  --shadow-soft: 0 12px 34px rgba(48, 54, 40, 0.07);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-height: 78px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  color: var(--green-ink);
  background: var(--lemon-light);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--green-ink);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  background: rgba(255, 254, 249, 0.92);
  border-bottom: 1px solid rgba(216, 212, 196, 0.72);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 43px;
  height: 43px;
}

.brand__name {
  display: grid;
  line-height: 1.1;
}

.brand__name strong {
  font-size: 17px;
}

.brand__name small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  position: relative;
  padding: 10px 12px;
  color: #445248;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green-ink);
  background: var(--lemon-pale);
  outline: none;
}

.site-nav a[aria-current="page"] {
  color: var(--green-ink);
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 3px;
  background: var(--lemon);
  border-radius: 99px;
  content: "";
}

.header-action {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--white);
  background: var(--green-ink);
  border: 1px solid var(--green-ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.header-action:hover,
.header-action:focus-visible {
  background: var(--green);
  outline: none;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--green-ink);
  border-radius: 10px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding: 92px 0 68px;
  background:
    radial-gradient(circle at 83% 20%, rgba(255, 255, 255, 0.64), transparent 23%),
    linear-gradient(122deg, #fffbe3 0%, #f8dd5f 44%, #f2ca31 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 74, 44, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 74, 44, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, #000 10%, transparent 88%);
}

.hero::after {
  position: absolute;
  top: -100px;
  right: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(255, 255, 255, 0.12),
    0 0 0 100px rgba(255, 255, 255, 0.08);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(88, 169, 74, 0.15);
  content: "";
}

.hero .eyebrow {
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.11em;
}

.hero h1,
.page-hero h1,
.cta-banner h2 {
  margin: 0;
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(44px, 4.2vw, 60px);
}

.hero-title-lead {
  white-space: nowrap;
}

.hero h1 .highlight {
  position: relative;
  z-index: 0;
  display: inline-block;
}

.hero h1 .highlight::after {
  position: absolute;
  z-index: -1;
  right: -5px;
  bottom: 5px;
  left: -3px;
  height: 19px;
  background: rgba(88, 169, 74, 0.25);
  border-radius: 4px 10px 4px 8px;
  content: "";
  transform: rotate(-1deg);
}

.hero-lede {
  max-width: 600px;
  margin: 26px 0 32px;
  color: #304536;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.button--dark {
  color: var(--white);
  background: var(--green-ink);
  box-shadow: 0 12px 26px rgba(23, 49, 31, 0.18);
}

.button--dark:hover,
.button--dark:focus-visible {
  background: #29583a;
  box-shadow: 0 16px 32px rgba(23, 49, 31, 0.24);
}

.button--light {
  color: var(--green-ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(23, 49, 31, 0.14);
}

.button--light:hover,
.button--light:focus-visible {
  background: var(--white);
}

.button--lemon {
  color: var(--green-ink);
  background: var(--lemon);
}

.button--outline {
  color: var(--green-ink);
  background: transparent;
  border-color: var(--green-ink);
}

.button .arrow {
  margin-left: 10px;
  font-size: 18px;
  line-height: 1;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  color: #52604f;
  font-size: 12px;
}

.hero-note::before {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--green-ink);
  background: rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  content: "✓";
  font-size: 12px;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
}

.route-demo {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: rgba(255, 255, 255, 0.79);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(65, 62, 26, 0.15);
  transform: rotate(1.3deg);
  backdrop-filter: blur(18px);
}

.route-demo::before {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 130px;
  height: 130px;
  background: var(--lemon-light);
  border-radius: 50%;
  content: "";
  opacity: 0.58;
}

.demo-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.demo-top__live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-ink);
}

.demo-top__live::before {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(88, 169, 74, 0.13);
  content: "";
  animation: pulse 1.9s infinite;
}

.route-map {
  position: relative;
  height: 280px;
  margin: 16px -6px 8px;
}

.route-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-map .base-line {
  fill: none;
  stroke: #d9d8cb;
  stroke-dasharray: 5 8;
  stroke-width: 2;
}

.route-map .active-line {
  fill: none;
  stroke: var(--green);
  stroke-dasharray: 9 11;
  stroke-linecap: round;
  stroke-width: 3;
  animation: dash 1.5s linear infinite;
}

.route-map .packet {
  fill: var(--lemon);
  stroke: var(--green-ink);
  stroke-width: 2;
}

.map-node {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  transform: translate(-50%, -50%);
}

.map-node__dot {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--green-ink);
  background: var(--white);
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(50, 54, 38, 0.1);
  font-size: 18px;
  font-weight: 800;
}

.map-node--start {
  top: 73%;
  left: 12%;
}

.map-node--relay {
  top: 48%;
  left: 50%;
}

.map-node--end {
  top: 20%;
  left: 88%;
}

.map-node--relay .map-node__dot {
  width: 70px;
  height: 70px;
  color: var(--white);
  background: var(--green-ink);
  border-color: var(--green-ink);
  box-shadow:
    0 0 0 10px rgba(88, 169, 74, 0.12),
    0 13px 25px rgba(31, 74, 44, 0.18);
}

.map-node--end .map-node__dot {
  color: var(--green-ink);
  background: var(--lemon);
  border-color: var(--lemon-deep);
}

.map-node strong {
  margin-top: 10px;
  color: var(--green-ink);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.map-node small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.demo-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.demo-stat {
  padding: 13px 12px;
  background: #f8f8f1;
  border: 1px solid #eceade;
  border-radius: 13px;
}

.demo-stat strong {
  display: block;
  color: var(--green-ink);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.1;
}

.demo-stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.hero-signals {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 1px;
  width: min(720px, 100%);
  margin-top: 64px;
  overflow: hidden;
  background: rgba(23, 49, 31, 0.13);
  border: 1px solid rgba(23, 49, 31, 0.12);
  border-radius: 16px;
}

.signal {
  flex: 1;
  min-width: 0;
  padding: 17px 20px;
  background: rgba(255, 255, 255, 0.49);
}

.signal strong {
  display: block;
  color: var(--green-ink);
  font-size: 15px;
}

.signal span {
  display: block;
  color: #596352;
  font-size: 10px;
}

.section {
  padding: clamp(76px, 9vw, 120px) 0;
}

.section--tight {
  padding: 62px 0;
}

.section--cream {
  background: #fcfaf0;
}

.section--pale {
  background: #f6f8ec;
}

.section--green {
  color: var(--white);
  background: var(--green-ink);
}

.section--green .kicker {
  color: var(--lemon);
}

.section--green .section-lede {
  color: #c7d3c9;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 46px;
}

.section-head--center {
  display: block;
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}

.kicker {
  display: block;
  margin-bottom: 15px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2,
.article-body h2,
.guide-aside h2 {
  margin: 0;
  color: var(--green-ink);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 830;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.section--green h2 {
  color: var(--white);
}

.section-lede,
.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-head .section-lede {
  margin: 0 0 5px;
}

.section-head--center .section-lede {
  margin: 18px auto 0;
}

.cards {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  position: relative;
  padding: 27px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.card--flat {
  box-shadow: none;
}

.card h3 {
  margin: 15px 0 10px;
  color: var(--green-ink);
  font-size: 20px;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.card__number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--green-ink);
  background: var(--lemon-light);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.icon-badge {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--green-ink);
  background: var(--lemon-light);
  border: 1px solid #f4e485;
  border-radius: 15px;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

.icon-badge--green {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.myth-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.myth-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.myth-card__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--green-ink);
  background: var(--lemon);
  border-radius: 50%;
  font-size: 19px;
  font-weight: 900;
}

.myth-card h3 {
  margin: 0 0 5px;
  color: var(--green-ink);
  font-size: 18px;
}

.myth-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.myth-card--note {
  color: var(--white);
  background: var(--green-ink);
  border-color: var(--green-ink);
}

.myth-card--note h3,
.myth-card--note p {
  color: var(--white);
}

.myth-card--note p {
  opacity: 0.72;
}

.pathway {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.pathway::before {
  position: absolute;
  top: 37px;
  right: 8%;
  left: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--lemon) 0 8px, transparent 8px 15px);
  content: "";
}

.pathway-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.pathway-step__dot {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 17px;
  place-items: center;
  color: var(--green-ink);
  background: var(--lemon);
  border: 7px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #e8d991;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
}

.pathway-step strong {
  display: block;
  color: var(--green-ink);
  font-size: 16px;
}

.pathway-step p {
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.route-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.route-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.route-panel--slow {
  background: #f6f3e9;
}

.route-panel--fast {
  color: var(--white);
  background: var(--green-ink);
  border-color: var(--green-ink);
}

.route-panel__label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.route-panel--fast .route-panel__label {
  color: var(--lemon);
}

.route-panel h3 {
  margin: 10px 0 20px;
  color: var(--green-ink);
  font-size: 23px;
}

.route-panel--fast h3 {
  color: var(--white);
}

.route-track {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 28px 0;
}

.route-track span {
  flex: 1;
  height: 7px;
  background: #dbd7c8;
  border-radius: 99px;
}

.route-panel--slow .route-track span:nth-child(2),
.route-panel--slow .route-track span:nth-child(4) {
  flex: 0.7;
  background: var(--danger);
  opacity: 0.65;
}

.route-panel--fast .route-track span {
  background: var(--lemon);
}

.route-track span::after {
  display: block;
  width: 9px;
  height: 9px;
  background: inherit;
  border-radius: 50%;
  content: "";
  transform: translateY(-1px);
}

.route-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.route-panel--fast p {
  color: #c7d3c9;
}

.route-panel ul {
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.route-panel li {
  position: relative;
  padding: 8px 0 8px 20px;
  color: var(--muted);
  border-top: 1px solid rgba(31, 74, 44, 0.1);
  font-size: 13px;
}

.route-panel--fast li {
  color: #d9e4da;
  border-color: rgba(255, 255, 255, 0.13);
}

.route-panel li::before {
  position: absolute;
  top: 16px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: var(--danger);
  border-radius: 50%;
  content: "";
}

.route-panel--fast li::before {
  background: var(--lemon);
}

.lesson-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.lesson-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 265px;
  padding: 28px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.lesson-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.lesson-card--accent {
  color: var(--green-ink);
  background: var(--lemon);
  border-color: var(--lemon-deep);
}

.lesson-card--accent::after {
  position: absolute;
  right: -26px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  content: "";
}

.lesson-card__index {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lesson-card h3 {
  margin: 38px 0 10px;
  color: var(--green-ink);
  font-size: 25px;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.lesson-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.lesson-card--accent p,
.lesson-card--accent .lesson-card__index {
  color: rgba(23, 49, 31, 0.7);
}

.lesson-card__link {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 28px;
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 750;
}

.lesson-card__link span {
  margin-left: 8px;
  transition: transform 160ms ease;
}

.lesson-card:hover .lesson-card__link span {
  transform: translateX(4px);
}

.compact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.compact-list li:last-child {
  border-bottom: 0;
}

.compact-list b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--green-ink);
  background: var(--lemon-light);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10px;
}

.compact-list span {
  color: var(--muted);
  font-size: 13px;
}

.compact-list strong {
  display: block;
  color: var(--green-ink);
  font-size: 14px;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 38px 42px;
  background: var(--lemon);
  border: 1px solid var(--lemon-deep);
  border-radius: var(--radius-xl);
}

.cta-band h2 {
  margin: 0;
  color: var(--green-ink);
  font-size: clamp(27px, 3.5vw, 42px);
  letter-spacing: -0.05em;
}

.cta-band p {
  max-width: 660px;
  margin: 10px 0 0;
  color: rgba(23, 49, 31, 0.72);
  font-size: 14px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 66px;
  background:
    radial-gradient(circle at 85% 30%, rgba(244, 207, 58, 0.34), transparent 20%),
    linear-gradient(180deg, #fffdf2, #fbf7df);
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  position: absolute;
  right: 4%;
  bottom: -85px;
  width: 270px;
  height: 270px;
  border: 30px solid rgba(244, 207, 58, 0.2);
  border-radius: 50%;
  content: "";
}

.page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: 50px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb span {
  color: #b1ad9e;
}

.page-hero h1 {
  max-width: 820px;
  color: var(--green-ink);
  font-size: clamp(42px, 5.4vw, 67px);
  text-wrap: balance;
}

.page-hero .lead {
  max-width: 700px;
  margin-top: 22px;
  font-size: 18px;
}

.hero-aside {
  position: relative;
  padding: 25px;
  background: var(--green-ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-aside__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lemon);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.hero-aside__label::before {
  width: 6px;
  height: 6px;
  background: var(--lemon);
  border-radius: 50%;
  content: "";
}

.hero-aside strong {
  display: block;
  margin: 22px 0 8px;
  color: var(--white);
  font-size: 20px;
  line-height: 1.45;
}

.hero-aside p {
  margin: 0;
  color: #bdcbc0;
  font-size: 12px;
}

.hero-aside__metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 22px;
  padding-top: 20px;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
}

.hero-aside__metric b {
  color: var(--lemon);
  font-size: 35px;
  line-height: 1;
}

.hero-aside__metric span {
  color: #aab9ae;
  font-size: 10px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 64px;
}

.article-body {
  min-width: 0;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body h2 {
  margin: 52px 0 20px;
  font-size: clamp(27px, 3vw, 38px);
}

.article-body h3 {
  margin: 32px 0 12px;
  color: var(--green-ink);
  font-size: 21px;
}

.article-body p {
  margin: 0 0 17px;
  color: #4e5e53;
}

.article-body a:not(.button) {
  color: #2f7a3c;
  text-decoration: underline;
  text-decoration-color: #b9d6a5;
  text-underline-offset: 4px;
}

.article-body strong {
  color: var(--green-ink);
}

.guide-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 24px;
  background: #f7f5e9;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.guide-aside h2 {
  margin: 0 0 15px;
  font-size: 14px;
  letter-spacing: 0;
}

.guide-aside a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  border-top: 1px solid rgba(216, 212, 196, 0.7);
  font-size: 12px;
}

.guide-aside a:hover {
  color: var(--green);
}

.callout {
  position: relative;
  margin: 28px 0;
  padding: 23px 24px 23px 28px;
  background: var(--lemon-pale);
  border-left: 4px solid var(--lemon-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.callout p {
  margin: 0;
  color: #5c6042;
  font-size: 13px;
}

.callout--green {
  background: #eff7ea;
  border-color: var(--green);
}

.callout--green p {
  color: #4a5e4f;
}

.formula {
  margin: 26px 0;
  padding: 22px;
  color: var(--white);
  background: var(--green-ink);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
}

.formula span {
  color: var(--lemon);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.metric-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.metric-card__value {
  color: var(--green-ink);
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.metric-card__unit {
  margin-left: 3px;
  color: var(--muted);
  font-size: 11px;
}

.metric-card h3 {
  margin: 14px 0 6px;
  font-size: 16px;
}

.metric-card p {
  margin: 0;
  font-size: 12px;
}

.lab {
  margin: 32px 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.lab__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 24px;
  color: var(--white);
  background: var(--green-ink);
}

.lab__head strong {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-size: 13px;
}

.lab__head strong::before {
  width: 7px;
  height: 7px;
  background: var(--lemon);
  border-radius: 50%;
  content: "";
}

.lab__head span {
  color: #aebdb2;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.lab__body {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 32px;
  padding: 28px;
}

.range-field {
  margin-bottom: 22px;
}

.range-field label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 700;
}

.range-field output {
  color: var(--green);
  font-family: var(--font-mono);
}

input[type="range"] {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--lemon), var(--green));
  border-radius: 999px;
  outline: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  background: var(--white);
  border: 6px solid var(--green-ink);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(23, 49, 31, 0.18);
  cursor: pointer;
  appearance: none;
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 6px solid var(--green-ink);
  border-radius: 50%;
  cursor: pointer;
}

.lab-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: #f8f7ed;
  border-radius: var(--radius-md);
}

.lab-result__label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.lab-result__value {
  margin: 8px 0;
  color: var(--green-ink);
  font-family: var(--font-mono);
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.lab-result__value small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.lab-result__grade {
  display: inline-block;
  align-self: center;
  padding: 5px 11px;
  color: var(--green-ink);
  background: var(--lemon-light);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 750;
}

.lab-result p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.lab-note {
  margin: 0;
  padding: 0 28px 24px;
  color: #8a8a7a;
  font-size: 10px;
}

.step-list {
  counter-reset: step;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  min-height: 70px;
  padding: 0 0 28px 62px;
  counter-increment: step;
}

.step-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--green-ink);
  background: var(--lemon);
  border-radius: 50%;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.step-list li::after {
  position: absolute;
  top: 42px;
  bottom: 7px;
  left: 18px;
  width: 2px;
  background: #e3dfd0;
  content: "";
}

.step-list li:last-child::after {
  display: none;
}

.step-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-ink);
}

.step-list p {
  margin: 0;
  font-size: 13px;
}

.tech-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 22px;
}

.tech-tab {
  padding: 10px 16px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.tech-tab:hover {
  color: var(--green-ink);
  border-color: var(--green);
}

.tech-tab[aria-selected="true"] {
  color: var(--green-ink);
  background: var(--lemon);
  border-color: var(--lemon-deep);
}

.tech-panel {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.tech-panel[hidden] {
  display: none;
}

.tech-panel h3 {
  margin: 0 0 10px;
  color: var(--green-ink);
  font-size: 25px;
}

.tech-panel > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.flow-strip span {
  position: relative;
  padding: 15px 12px;
  color: var(--green-ink);
  background: #faf9f1;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.flow-strip span:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -5px;
  width: 8px;
  height: 8px;
  background: var(--lemon);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  padding: 5px 9px;
  color: #52614c;
  background: #f4f3e8;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.tech-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 17px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.tech-item__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--green-ink);
  background: var(--lemon-light);
  border-radius: 13px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.tech-item h3 {
  margin: 0 0 5px;
  color: var(--green-ink);
  font-size: 17px;
}

.tech-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.data-table {
  width: 100%;
  margin: 28px 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  border-spacing: 0;
  border-collapse: separate;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 15px 17px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th {
  color: var(--green-ink);
  background: #f6f4e8;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.data-table td:first-child {
  color: var(--green-ink);
  font-weight: 700;
}

.data-table td {
  color: var(--muted);
}

.data-table .yes {
  color: #377a3e;
  font-weight: 750;
}

.data-table .no {
  color: #a45d49;
  font-weight: 750;
}

.game-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  gap: 12px;
  margin: 32px 0;
  padding: 30px 20px;
  background: var(--green-ink);
  border-radius: var(--radius-lg);
}

.game-flow::before {
  position: absolute;
  top: 58px;
  right: 9%;
  left: 9%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--lemon) 0 7px, transparent 7px 13px);
  content: "";
}

.game-flow__node {
  position: relative;
  z-index: 1;
  text-align: center;
}

.game-flow__icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  place-items: center;
  color: var(--green-ink);
  background: var(--lemon);
  border: 7px solid var(--green-ink);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--lemon);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
}

.game-flow__node strong {
  display: block;
  color: var(--white);
  font-size: 11px;
}

.game-flow__node span {
  display: block;
  margin-top: 3px;
  color: #9fb1a4;
  font-size: 9px;
}

.can-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.can-card {
  padding: 25px;
  background: #eff8ea;
  border: 1px solid #d4e7cd;
  border-radius: var(--radius-md);
}

.can-card--cannot {
  background: #fff7ee;
  border-color: #efdcc8;
}

.can-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--green-ink);
  font-size: 16px;
}

.can-card h3::before {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  content: "✓";
  font-size: 11px;
  font-weight: 900;
}

.can-card--cannot h3::before {
  background: #c57754;
  content: "×";
}

.can-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.can-card li {
  padding: 8px 0;
  color: #536257;
  border-top: 1px solid rgba(88, 169, 74, 0.13);
  font-size: 13px;
}

.can-card--cannot li {
  border-color: rgba(197, 119, 84, 0.14);
}

.compare-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
  margin: 34px 0;
}

.compare-banner__side {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.compare-banner__side--cdn {
  background: var(--lemon);
  border-color: var(--lemon-deep);
}

.compare-banner__side strong {
  display: block;
  color: var(--green-ink);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.compare-banner__side span {
  display: block;
  margin-top: 8px;
  color: rgba(23, 49, 31, 0.65);
  font-size: 12px;
}

.compare-banner__vs {
  display: grid;
  width: 52px;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.scenario {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.scenario__need {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 8px;
  color: var(--green-ink);
  background: var(--lemon-light);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 750;
}

.scenario h3 {
  margin: 0 0 7px;
  color: var(--green-ink);
  font-size: 17px;
}

.scenario p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.selection-item {
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
}

.selection-item b {
  display: block;
  color: var(--lemon);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.selection-item h3 {
  margin: 13px 0 6px;
  color: var(--white);
  font-size: 17px;
}

.selection-item p {
  margin: 0;
  color: #9fb1a4;
  font-size: 12px;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.decision-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.decision-item > b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--green-ink);
  background: var(--lemon-light);
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.decision-item strong {
  display: block;
  color: var(--green-ink);
  font-size: 14px;
}

.decision-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.accordion {
  margin: 30px 0;
  border-top: 1px solid var(--line);
}

.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  color: var(--green-ink);
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}

.accordion__trigger::after {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--green-ink);
  background: var(--lemon-light);
  border-radius: 50%;
  content: "+";
  font-size: 17px;
  font-weight: 500;
  transition: transform 180ms ease;
}

.accordion__trigger[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.accordion__panel {
  padding: 0 45px 22px 2px;
  color: var(--muted);
  font-size: 14px;
}

.accordion__panel[hidden] {
  display: none;
}

.accordion__panel p {
  margin: 0;
}

.source-list {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 160ms ease, transform 160ms ease;
}

.source-list a:hover {
  border-color: var(--green);
  transform: translateX(3px);
}

.source-list b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--green-ink);
  background: var(--lemon-light);
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.source-list span {
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 700;
}

.source-list small {
  color: #9a9a8b;
  font-size: 10px;
}

.source-list em {
  color: var(--green);
  font-size: 17px;
  font-style: normal;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 70px);
  background: var(--lemon);
  border-radius: var(--radius-xl);
}

.cta-banner::after {
  position: absolute;
  top: -70px;
  right: -40px;
  width: 260px;
  height: 260px;
  border: 35px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  content: "";
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  max-width: 720px;
  color: var(--green-ink);
  font-size: clamp(32px, 5vw, 56px);
}

.cta-banner p {
  max-width: 630px;
  margin: 18px 0 28px;
  color: rgba(23, 49, 31, 0.7);
}

.footer {
  padding: 56px 0 25px;
  color: #cbd5cd;
  background: #11251a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 50px;
}

.footer .brand {
  color: var(--white);
}

.footer .brand__name small {
  color: #91a396;
}

.footer-intro {
  max-width: 390px;
  margin: 18px 0 0;
  color: #8ea093;
  font-size: 12px;
  line-height: 1.8;
}

.footer h2 {
  margin: 0 0 13px;
  color: var(--white);
  font-size: 12px;
}

.footer-links {
  display: grid;
  gap: 7px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #90a295;
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--lemon);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 20px;
  color: #738779;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
}

.footer-bottom a {
  color: #a9b9ad;
}

.back-to-top {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--green-ink);
  background: var(--lemon);
  border: 1px solid var(--lemon-deep);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes dash {
  to {
    stroke-dashoffset: -40;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(88, 169, 74, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(88, 169, 74, 0.04);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1050px) {
  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding-inline: 9px;
    font-size: 13px;
  }

  .header-action {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 45px;
  }

  .hero {
    min-height: auto;
  }

  .selection-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .selection-item:nth-child(4),
  .selection-item:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 70px;
  }

  .header-inner {
    gap: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    z-index: 99;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 4px;
    max-height: calc(100vh - var(--header-height) - 24px);
    padding: 14px;
    overflow: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 14px;
    font-size: 14px;
  }

  .site-nav a[aria-current="page"] {
    background: var(--lemon-pale);
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-grid,
  .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .route-demo {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    transform: none;
  }

  .hero-signals {
    margin-top: 42px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .guide-aside {
    position: static;
    order: -1;
  }

  .hero-aside {
    max-width: 560px;
  }

  .lesson-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lesson-card:first-child {
    grid-column: 1 / -1;
  }

  .pathway {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  .pathway::before {
    display: none;
  }

  .lab__body {
    grid-template-columns: 1fr;
  }

  .game-flow {
    grid-template-columns: 1fr;
    gap: 0;
    overflow: visible;
    padding: 24px;
  }

  .game-flow::before {
    display: none;
  }

  .game-flow__node {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    text-align: left;
  }

  .game-flow__node:not(:last-child)::after {
    position: absolute;
    top: 58px;
    bottom: -9px;
    left: 27px;
    width: 2px;
    background: repeating-linear-gradient(180deg, var(--lemon) 0 6px, transparent 6px 12px);
    content: "";
  }

  .game-flow__icon {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .game-flow__node strong {
    align-self: end;
    font-size: 13px;
  }

  .game-flow__node span:last-child {
    align-self: start;
    margin-top: 0;
    font-size: 10px;
  }

  .tech-stack {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand__name small {
    display: none;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero h1 {
    font-size: clamp(32px, 9.7vw, 44px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions .button {
    flex: 1;
    min-width: 150px;
  }

  .route-demo {
    padding: 18px;
    border-radius: 23px;
  }

  .route-map {
    height: 235px;
  }

  .map-node__dot {
    width: 41px;
    height: 41px;
    font-size: 15px;
  }

  .map-node--relay .map-node__dot {
    width: 58px;
    height: 58px;
  }

  .demo-stats {
    grid-template-columns: 1fr;
  }

  .demo-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
  }

  .demo-stat span {
    margin: 0;
  }

  .hero-signals {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section {
    padding: 65px 0;
  }

  .section h2 {
    font-size: 33px;
  }

  .cards--2,
  .cards--3,
  .cards--4,
  .myth-grid,
  .route-compare,
  .lesson-grid,
  .metric-grid,
  .can-grid,
  .scenario-grid,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .myth-card {
    grid-template-columns: 1fr;
  }

  .pathway {
    grid-template-columns: 1fr;
  }

  .pathway-step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    text-align: left;
  }

  .pathway-step__dot {
    width: 58px;
    height: 58px;
    margin: 0;
    border-width: 5px;
  }

  .pathway-step p {
    margin-inline: 0;
  }

  .lesson-card:first-child {
    grid-column: auto;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 30px 26px;
  }

  .page-hero {
    padding: 52px 0 46px;
  }

  .page-hero h1 {
    font-size: 39px;
  }

  .page-hero .lead {
    font-size: 16px;
  }

  .article-body h2 {
    margin-top: 42px;
    font-size: 29px;
  }

  .lab__body {
    padding: 20px;
  }

  .lab-note {
    padding-inline: 20px;
  }

  .tech-panel {
    padding: 22px;
  }

  .flow-strip {
    grid-template-columns: 1fr;
  }

  .flow-strip span:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -5px;
    transform: translateX(50%);
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .compare-banner {
    grid-template-columns: 1fr;
  }

  .compare-banner__vs {
    width: auto;
    height: 30px;
  }

  .selection-grid {
    grid-template-columns: 1fr;
  }

  .source-list a {
    grid-template-columns: 34px 1fr;
  }

  .source-list small {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links a {
    min-height: 40px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
