.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  transition: border-color var(--transition);
}

.feature-card:hover {
  border-color: var(--line-strong);
}

.feature-card h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin: 0 0 0.95rem 0;
}

.feature-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card li {
  position: relative;
  padding-left: 0.9rem;
  color: var(--fg-soft);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0.35rem;
}

.feature-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--muted-2);
  font-weight: 700;
}

.feature-card li:last-child {
  margin-bottom: 0;
}

.edition-list {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0;
}

.edition-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
}

.edition-item h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.75rem 0;
}

.edition-item p {
  margin: 0;
  color: var(--fg-soft);
  font-size: 0.85rem;
  line-height: 1.65;
}

.limitations-highlight {
  background: #fdf8ec;
  border: 1px solid #efe0b8;
  border-left: 3px solid #c39b2e;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.limitations-highlight h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a6d1b;
  margin: 0 0 0.85rem 0;
}

.limitations-highlight ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.limitations-highlight li {
  color: var(--fg-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

.limitations-highlight li:last-child {
  margin-bottom: 0;
}

.download-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0 1rem;
  font-size: 0.9rem;
}

.download-table thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  font-weight: 500;
  padding: 0.6rem 0.85rem 0.6rem 0;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.download-table tbody th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  padding: 0.75rem 0.85rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.download-table tbody td {
  padding: 0.75rem 0.85rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-soft);
  vertical-align: middle;
  white-space: nowrap;
}

.download-table tbody tr:last-child th,
.download-table tbody tr:last-child td {
  border-bottom: none;
}

.download-table .version-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

.download-table .version-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-table .icon-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

.download-table .icon-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-table .edition-tip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.download-table .edition-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 280px;
  background: #1a1a1a;
  color: #fafafa;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.download-table .edition-tip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 10px;
  margin-bottom: 0;
  border: 5px solid transparent;
  border-top-color: #1a1a1a;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease;
  z-index: 100;
}

.download-table .edition-tip:hover::after,
.download-table .edition-tip:hover::before {
  opacity: 1;
  visibility: visible;
}

.download-note {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 1rem 0;
}

.purchase-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem 1.75rem;
  margin: 1.75rem 0;
}

.edition-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.edition-tab {
  padding: 0.65rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.edition-tab:hover {
  color: var(--fg-soft);
}

.edition-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.edition-description {
  font-size: 0.9rem;
  color: var(--fg-soft);
  line-height: 1.65;
  padding: 1rem 1.15rem;
  background: #f4f7fa;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
}

.edition-description:empty {
  display: none;
}

.edition-description strong {
  color: var(--fg);
  font-weight: 600;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

@media (min-width: 960px) {
  .license-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .license-grid > .license-card {
    grid-column: span 2;
  }

  .license-grid > .license-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

.license-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.license-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.license-card.is-recommended {
  border-color: #c39b2e;
  position: relative;
}

.license-card.is-recommended::before {
  content: "Recommended";
  position: absolute;
  top: 0;
  right: 0;
  background: #c39b2e;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  z-index: 1;
}

.license-name {
  --ln-pad-top: 0.85rem;
  --ln-pad-bottom: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  padding: var(--ln-pad-top) 1.35rem var(--ln-pad-bottom);
  margin: 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.3;
  min-height: calc(var(--ln-pad-top) + (1em * 1.3 * 2) + var(--ln-pad-bottom));
  display: flex;
  align-items: flex-start;
}

.license-grid .license-name {
  margin: 0;
}

.license-card[data-license="individual"] .license-name {
  background: #eef2f6;
}

.license-card[data-license="single"] .license-name {
  background: #e8f3ea;
}

.license-card[data-license="single-src"] .license-name {
  background: #fdf4e0;
}

.license-card[data-license="build"] .license-name {
  background: #ece6f3;
}

.license-card[data-license="site"] .license-name {
  background: #e3eef8;
}

.license-details {
  margin: 0;
  padding: 1rem 1.35rem 1.1rem;
  list-style: none;
  flex: 1;
}

.license-details li {
  position: relative;
  padding-left: 0.9rem;
  color: var(--fg-soft);
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.license-details li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--muted-2);
  font-weight: 700;
}

.license-details li:last-child {
  margin-bottom: 0;
}

.compare-link {
  display: block;
  padding: 0 1.35rem 0.9rem;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

.compare-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.license-price {
  display: none;
  border-top: 1px solid var(--line);
  padding: 1rem 1.35rem 1.25rem;
  margin-top: auto;
}

.js-enabled .license-price {
  display: block;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.price-row:last-child {
  margin-bottom: 0;
}

.price-value,
.invoice-price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  flex-shrink: 0;
  width: 4.5rem;
}

.order-link,
.invoice-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.order-link {
  background: var(--accent);
  color: var(--surface);
}

.order-link:hover {
  background: var(--accent-hover);
  color: var(--surface);
}

.invoice-link {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line-strong);
}

.invoice-link:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.no-js-message {
  display: block;
  color: #8a6d1b;
  background: #fdf8ec;
  border: 1px dashed #c39b2e;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  text-align: center;
  margin: 0.75rem 1.35rem 1.25rem;
}

.js-enabled .no-js-message {
  display: none;
}

.info-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  cursor: help;
  user-select: none;
  flex-shrink: 0;
}

.invoice-link .info-icon {
  background: rgba(0, 0, 0, 0.08);
}

.info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  right: -4px;
  width: 240px;
  background: #1a1a1a;
  color: #fafafa;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  white-space: normal;
}

.info-icon::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 6px;
  border: 5px solid transparent;
  border-top-color: #1a1a1a;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease;
  z-index: 100;
}

.info-icon:hover::after,
.info-icon:hover::before {
  opacity: 1;
  visibility: visible;
}

.payment-note {
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.payment-note,
.payment-note p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted-2);
}

.payment-note p {
  margin: 0;
}

.payment-note p + p {
  margin-top: 0.35rem;
}

.delivery-note {
  font-size: 0.9rem;
  color: var(--fg-soft);
  line-height: 1.65;
  background: #f1f7ee;
  border-left: 3px solid #3d8b40;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.product-section {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

.product-section:first-of-type {
  border-top: none;
}

.product-section--features {
  background: var(--bg);
}

.product-section--download {
  background: var(--surface);
}

.product-section--purchase {
  background: #f0f5fb;
}

.product-section .article-body {
  max-width: none;
}

@media (max-width: 640px) {
  .product-section {
    padding: 2.5rem 0;
  }
}

@media (max-width: 900px) {
  .features-grid,
  .license-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  .features-grid,
  .license-grid {
    grid-template-columns: 1fr;
  }

  .edition-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .download-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .purchase-box {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .license-name {
    --ln-pad-top: 0.7rem;
    --ln-pad-bottom: 0.75rem;
    padding: var(--ln-pad-top) 1.15rem var(--ln-pad-bottom);
  }

  .license-details {
    padding: 0.85rem 1.15rem 1rem;
  }

  .compare-link {
    padding: 0 1.15rem 0.8rem;
  }

  .license-price {
    padding: 0.9rem 1.15rem 1.15rem;
  }

  .no-js-message {
    margin: 0.75rem 1.15rem 1.15rem;
  }

  .info-icon::after {
    width: 200px;
  }

  .download-table .edition-tip::after {
    width: 220px;
  }
}

@media (max-width: 480px) {
  .price-row {
    flex-wrap: wrap;
  }

  .price-value,
  .invoice-price {
    flex-basis: 100%;
  }

  .order-link,
  .invoice-link {
    flex-basis: 100%;
  }
}

.page-toc {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  background: #f4f7fa;
  border-bottom: 1px solid var(--line);
}

.page-toc .article-toc {
  position: static;
  top: auto;
  padding: 0.6rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 0.85rem;
}

.page-toc .article-toc ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.page-toc .article-toc li {
  position: relative;
  margin: 0;
  padding: 0 0.9rem;
  counter-increment: none;
}

.page-toc .article-toc li:first-child {
  padding-left: 0;
}

.page-toc .article-toc li:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  line-height: 1;
}

.page-toc .article-toc a {
  display: inline-block;
  color: var(--muted);
  line-height: 1.35;
  transition: color var(--transition);
}

.page-toc .article-toc a:hover {
  color: var(--fg);
}

.page-toc .article-toc a.is-active {
  color: var(--accent);
  font-weight: 500;
}

#overview,
#features,
#frameworks,
#download,
#order {
  scroll-margin-top: calc(var(--header-height) + 4rem);
}

.intro-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.intro-layout .intro-text {
  max-width: none;
}

.intro-art img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .intro-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .intro-art {
    max-width: 280px;
    margin: 0 auto;
  }
}