:root {
  color-scheme: light;
  --navy: #19365c;
  --navy-dark: #10243d;
  --mint: #d7f2f0;
  --mint-soft: #f1faf7;
  --paper: #f7fbf6;
  --panel: #ffffff;
  --ink: #1f344f;
  --muted: #65758a;
  --coral: #f0525f;
  --line: #d9e5e2;
  --shadow: 0 16px 36px rgba(25, 54, 92, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 0;
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 22px 20px 10px;
  background: linear-gradient(180deg, rgba(247, 251, 246, 0.96), rgba(247, 251, 246, 0.72));
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1020px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 24px rgba(25, 54, 92, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 900;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 9px;
  border: 2px solid var(--navy);
  object-fit: cover;
  background: var(--mint);
  box-shadow: 0 5px 12px rgba(25, 54, 92, 0.12);
}

.brand-text {
  font-size: 15px;
  line-height: 1;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  justify-content: center;
  color: #3f5877;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  justify-content: end;
  gap: 10px;
}

.nav-join,
.nav-login,
.primary-action,
.secondary-action,
.quote-band button,
.price-card button,
.card-actions button,
.footer button {
  min-height: 38px;
  border-radius: 11px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-join,
.primary-action,
.quote-band button,
.main-plan button,
.card-actions button,
.footer button {
  background: var(--coral);
  color: #fff;
}

.nav-login,
.secondary-action,
.price-card button {
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
}

.nav-join:hover,
.nav-login:hover,
.primary-action:hover,
.secondary-action:hover,
.quote-band button:hover,
.price-card button:hover,
.card-actions button:hover,
.footer button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(25, 54, 92, 0.16);
}

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

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

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease, transform 600ms ease;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.88fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 86px) 20px 58px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
.steps h3 {
  color: var(--navy);
  font-weight: 1000;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1;
}

.lead {
  max-width: 500px;
  color: #304966;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.76;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 76px;
  color: var(--navy);
  font-weight: 800;
}

.story-bubbles {
  display: inline-flex;
}

.story-bubbles i {
  display: grid;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--mint);
  color: var(--navy);
  font-size: 12px;
  font-style: normal;
  font-weight: 1000;
}

.hero-visual {
  overflow: hidden;
  border-radius: 38% 18% 34% 16%;
  background: var(--navy-dark);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  transition: border-radius 260ms ease, transform 260ms ease;
}

.hero-visual:hover {
  border-radius: 28px;
  transform: rotate(0deg) translateY(-3px);
}

.hero-visual img {
  display: block;
  width: 100%;
  min-height: 410px;
  object-fit: cover;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 20px 96px;
}

.portal-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--navy);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(25, 54, 92, 0.16);
}

.portal-card:hover img,
.portal-card:hover .portal-plain {
  transform: scale(1.04);
}

.portal-card img,
.portal-plain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.portal-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(16, 36, 61, 0.16), rgba(16, 36, 61, 0.78));
}

.portal-plain {
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--navy);
  font-size: 38px;
  font-weight: 1000;
}

.portal-card:nth-child(3) .portal-plain {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 24px;
  font-size: 34px;
}

.portal-card div:not(.portal-plain) {
  position: absolute;
  inset: auto 22px 20px;
  z-index: 1;
  color: #fff;
}

.portal-card h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 25px;
}

.portal-card:nth-child(3) h2 {
  max-width: 120px;
}

.portal-card p {
  margin-bottom: 0;
  line-height: 1.6;
}

.section {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 92px 20px;
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: clamp(34px, 8vw, 96px);
  align-items: center;
}

.manifesto h2,
.library-section h2,
.join-band h2,
.faq h2 {
  margin-bottom: 22px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
}

.manifesto p {
  color: #38516d;
  font-size: 17px;
  line-height: 1.78;
}

.check-list {
  margin: 24px 0 0;
  padding: 0;
  color: #38516d;
  line-height: 2;
  list-style: none;
}

.check-list li::before {
  margin-right: 10px;
  content: "□";
  color: #86cfd0;
  font-weight: 900;
}

.fit-card {
  border-radius: 22px;
  padding: 28px;
  background: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(25, 54, 92, 0.06);
}

.fit-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 22px;
}

.fit-card p {
  margin-bottom: 22px;
}

.fit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fit-tags span,
.card-meta span,
.plan {
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.how {
  text-align: center;
}

.center {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  margin-top: 34px;
}

.steps article {
  position: relative;
  min-height: 240px;
  padding: 30px 22px 0;
}

.steps article::before {
  position: absolute;
  top: 72px;
  right: -22px;
  width: 44px;
  height: 2px;
  background: #bfe4e2;
  content: "";
}

.steps article:last-child::before {
  display: none;
}

.steps span {
  display: grid;
  width: 86px;
  height: 86px;
  margin: 0 auto 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--navy);
  font-size: 22px;
  font-weight: 1000;
}

.steps h3 {
  margin-bottom: 14px;
  font-size: 25px;
}

.steps p {
  color: #405875;
  line-height: 1.7;
}

.quote-band {
  width: min(1080px, calc(100% - 40px));
  min-height: 260px;
  margin: 20px auto 72px;
  border-radius: 28px;
  padding: 56px 24px;
  background: var(--mint);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(25, 54, 92, 0.06);
}

.tool-lab {
  padding-top: 78px;
}

.section-note {
  max-width: 390px;
  margin: 0;
  color: #405875;
  line-height: 1.8;
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 22px;
}

.lab-card,
.lab-stack article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(25, 54, 92, 0.08);
}

.lab-primary {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 34px;
}

.lab-primary::before {
  position: absolute;
  inset: auto 28px 28px 28px;
  height: 96px;
  border: 2px solid #bfe4e2;
  border-radius: 18px;
  content: "";
}

.lab-primary::after {
  position: absolute;
  right: 34px;
  bottom: 52px;
  color: var(--navy);
  content: "SKILL";
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 1000;
  opacity: 0.12;
}

.lab-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 54px;
}

.lab-card-head span,
.lab-stack span {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--mint);
  color: var(--navy);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.lab-card-head strong {
  color: var(--navy);
  font-size: 14px;
}

.lab-primary h3 {
  max-width: 620px;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
}

.lab-primary p,
.lab-stack p {
  color: #405875;
  line-height: 1.76;
}

.lab-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.lab-tags span {
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.lab-stack {
  display: grid;
  gap: 14px;
}

.lab-stack article {
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.lab-stack article:hover {
  transform: translateX(-6px);
  box-shadow: 0 18px 34px rgba(25, 54, 92, 0.14);
}

.lab-stack h3 {
  margin: 16px 0 8px;
  color: var(--navy);
  font-size: 23px;
}

.quote-band p {
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 800;
}

.library-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 92px max(20px, calc((100vw - 1080px) / 2));
  background: #eef7f4;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter {
  min-width: 58px;
  border: 0;
  border-radius: 999px;
  padding: 11px 15px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.filter.active {
  background: var(--mint);
  outline: 2px solid #91d4d5;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.library-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(25, 54, 92, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.library-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(25, 54, 92, 0.14);
}

.library-card.featured {
  grid-column: span 2;
}

.library-card img,
.text-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.text-thumb {
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 36px;
  font-weight: 1000;
}

.text-thumb.accent {
  background: #516f73;
}

.tools-thumb {
  background: var(--mint);
  color: var(--navy);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.card-meta span {
  background: #eef7f4;
}

.library-card h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 20px;
}

.library-card p {
  color: #425a76;
  line-height: 1.75;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.card-actions a {
  align-self: center;
  color: var(--navy);
  font-weight: 900;
}

.card-actions .button-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 11px;
  padding: 0 16px;
  background: var(--coral);
  color: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card-actions .button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(25, 54, 92, 0.16);
}

.library-card.is-hidden {
  display: none;
}

.join-band {
  display: block;
  padding: 88px max(20px, calc((100vw - 1080px) / 2));
}

.join-band > div:first-child {
  max-width: 720px;
  margin-bottom: 34px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  align-items: end;
}

.price-card {
  position: relative;
  min-height: 410px;
  border: 2px solid rgba(25, 54, 92, 0.22);
  border-radius: 14px;
  padding: 38px 38px 30px;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.main-plan {
  min-height: 475px;
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.popular-ribbon {
  position: absolute;
  top: 0;
  right: -2px;
  left: -2px;
  border-radius: 12px 12px 0 0;
  padding: 13px;
  background: var(--navy);
  color: var(--coral);
  text-align: center;
  font-weight: 1000;
  letter-spacing: 0.03em;
}

.main-plan .plan {
  display: inline-block;
  margin-top: 46px;
}

.main-plan h3,
.main-plan .price {
  color: #fff;
}

.price-card h3 {
  margin: 10px 0 0;
  color: var(--navy);
  font-size: 20px;
}

.plan-subtitle {
  min-height: 30px;
  margin: 12px 0 24px;
  color: #60738b;
  font-size: 16px;
}

.main-plan .plan-subtitle {
  color: #c9e4e8;
}

.price {
  margin: 22px 0 18px;
  color: var(--navy);
  font-size: 34px;
  font-weight: 1000;
}

.price-card ul {
  margin: 26px 0 0;
  padding-left: 20px;
  line-height: 1.9;
  border-top: 1px dashed var(--line);
  padding-top: 24px;
}

.main-plan ul {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-list {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--mint);
}

.faq-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid #bfe4e2;
}

.faq-list span {
  color: var(--navy);
  font-size: 22px;
  font-weight: 1000;
}

.faq-list h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 18px;
}

.faq-list p {
  margin-bottom: 0;
  color: #405875;
  line-height: 1.7;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 40px max(20px, calc((100vw - 1080px) / 2));
  background: var(--navy);
  color: #fff;
}

.footer strong {
  font-size: 18px;
}

.footer span {
  color: #b8d8dd;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(16, 36, 61, 0.72);
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  border-radius: 18px;
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 38px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eef7f4;
  color: var(--navy);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-panel ol {
  margin: 0 0 22px;
  padding-left: 22px;
  line-height: 1.9;
}

.modal-note {
  border-radius: 14px;
  padding: 16px;
  background: var(--mint-soft);
}

.modal-note strong,
.modal-note span {
  display: block;
}

.modal-note strong {
  margin-bottom: 6px;
}

.article-page {
  background: #f6faf5;
}

.article-header {
  position: sticky;
}

.article-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 44px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 42px 20px 96px;
}

.article-toc {
  position: sticky;
  top: 112px;
  align-self: start;
  max-height: calc(100vh - 136px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(25, 54, 92, 0.07);
}

.article-toc p {
  margin: 18px 0 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 1000;
}

.article-toc a {
  display: block;
  border-radius: 10px;
  padding: 8px 9px;
  color: #4a607b;
  font-size: 13px;
  line-height: 1.45;
}

.article-toc a:hover {
  background: var(--mint-soft);
  color: var(--navy);
}

.article-toc .toc-back {
  color: var(--navy);
  font-weight: 900;
}

.article-toc .toc-depth-3 {
  padding-left: 20px;
  color: #64758a;
}

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

.article-hero-card {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  box-shadow: 0 16px 36px rgba(25, 54, 92, 0.08);
}

.article-hero-card h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.article-dek {
  max-width: 680px;
  margin-bottom: 0;
  color: #52667f;
  font-size: 16px;
  line-height: 1.8;
}

.markdown-body {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 48px);
  background: #fff;
  box-shadow: 0 16px 36px rgba(25, 54, 92, 0.08);
}

.markdown-body h2,
.markdown-body h3 {
  scroll-margin-top: 112px;
  color: var(--navy);
}

.markdown-body h2 {
  margin: 2.1em 0 0.75em;
  padding-top: 0.45em;
  border-top: 1px solid #edf3f1;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.24;
}

.markdown-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.markdown-body h3 {
  margin: 1.8em 0 0.7em;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
}

.markdown-body p,
.markdown-body li {
  color: #263c57;
  font-size: 17px;
  line-height: 2.02;
}

.markdown-body p {
  margin: 0 0 1.15em;
}

.markdown-body blockquote {
  margin: 0 0 24px;
  border-left: 4px solid var(--mint);
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  background: var(--mint-soft);
}

.markdown-body blockquote p {
  margin-bottom: 0.55em;
  color: #405875;
  font-size: 15px;
  line-height: 1.85;
}

.markdown-body figure {
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #f8fbfa;
}

.markdown-body figure img {
  display: block;
  width: 100%;
  height: auto;
}

.markdown-body figcaption {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  color: #65758a;
  font-size: 13px;
  line-height: 1.6;
}

.markdown-body code {
  border-radius: 6px;
  padding: 0.12em 0.38em;
  background: #edf7f5;
  color: var(--navy);
  font-size: 0.92em;
}

.markdown-body a {
  color: var(--navy);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: #a7dedd;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .nav-shell,
  .hero,
  .manifesto,
  .lab-layout {
    grid-template-columns: 1fr;
  }

  .nav-links {
    order: 3;
    justify-content: start;
  }

  .hero {
    padding-top: 44px;
  }

  .portal-grid,
  .steps,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-grid {
    gap: 20px;
  }

  .steps article::before {
    display: none;
  }

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

  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    max-height: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-top: 14px;
  }

  .nav-shell {
    gap: 14px;
    padding: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    justify-content: start;
  }

  .nav-login {
    display: none;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 15px;
  }

  .story-link {
    margin-top: 34px;
  }

  .hero-visual {
    border-radius: 22px;
    transform: none;
  }

  .hero-visual img {
    min-height: 270px;
  }

  .section-head,
  .footer {
    display: grid;
    align-items: start;
  }

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

  .lab-primary {
    min-height: 420px;
    padding: 24px;
  }

  .lab-primary::before {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .lab-primary::after {
    right: 24px;
    bottom: 46px;
  }

  .section-note {
    max-width: none;
  }

  .price-card,
  .main-plan {
    min-height: auto;
    padding: 30px 26px;
  }

  .library-card.featured {
    grid-column: auto;
  }

  .faq-list article {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .article-shell {
    padding: 24px 12px 64px;
  }

  .article-toc {
    display: none;
  }

  .article-hero-card,
  .markdown-body {
    border-radius: 14px;
  }

  .markdown-body p,
  .markdown-body li {
    font-size: 15px;
    line-height: 1.95;
  }
}

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

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

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