/* Product page: the existing ASCII identity, with a feature-led hierarchy. */
.home :is(h1, h2, h3, p, figure, dl) { margin: 0; }
.home :is(h1, h2, h3) { font-weight: 500; line-height: 1.3; text-wrap: balance; }
.home h2 { font-size: clamp(23px, 2.45vw, 32px); letter-spacing: -0.025em; }
.home h3 { font-size: 19px; }
.home p { color: var(--text-2); max-width: 70ch; }
.home button { font: inherit; }
.product-hero { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); align-items: center; gap: 48px; padding-top: 60px; padding-bottom: 72px; }
.product-intro { min-width: 0; container-type: inline-size; }
/* Size the unwrapped ASCII lettering to its column, including on mobile. */
.product-wordmark { margin: 0; font-size: min(3cqi, 13px); line-height: 1.05; color: var(--text); }
.product-wordmark .ace-glyph { color: var(--accent); }
.home h1 { font-size: clamp(24px, 2.5vw, 32px); letter-spacing: -0.025em; margin-top: 28px; line-height: 1.3; }
.product-summary { margin-top: 20px !important; font-size: 15px; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 28px; }
.home .platform-note { font-size: 12px; color: var(--text-3); margin-top: 14px; }
.button { display: inline-flex; min-height: 48px; padding: 10px 16px; align-items: center; justify-content: center; gap: 12px; font-size: 13px; border: 1px solid var(--line-3); font-weight: 500; }
.button-primary { background: var(--accent); border-color: var(--accent); color: #071018; }
.button-primary:hover { background: #81bce3; border-color: #81bce3; }
.product-preview { min-width: 0; }
.product-preview > a { display: block; }
.product-preview img { display: block; width: 100%; height: auto; }
.product-preview figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-top: 10px; color: var(--text-3); font-size: 11px; }
.product-preview figcaption a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); }

.home-section { padding-block: 64px; }
.feature-focus { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 80px; padding-bottom: 48px; }
.feature-intro p { margin-top: 14px; }
.feature-intro .text-link { margin-top: 6px; }
.feature-intro h3:not(:first-child) { margin-top: 30px; }
.code-examples { border: 1px solid var(--line-3); align-self: start; min-width: 0; background: var(--bg-2); }
.code-example + .code-example { border-top: 1px solid var(--line-3); }
.example-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 12px; padding: 4px 18px; color: var(--text-3); font-size: 12px; border-bottom: 1px solid var(--line); }
.home .copy-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 8px; background: transparent; border: 0; color: var(--accent); font-size: 12px; cursor: pointer; }
.home .copy-btn:hover { color: var(--text); text-decoration: underline; }
.home .copy-btn.copied { color: var(--c-green); }
.home pre:not(.ascii) { margin: 0; padding: 20px; font-family: var(--mono); font-size: 13px; line-height: 1.75; overflow-x: auto; tab-size: 2; }
.home code { font-family: var(--mono); }
.syntax-field { color: var(--accent); }
.syntax-value { color: #a1cb88; }
.home .copy-status { color: var(--text-2); font-size: 12px; padding: 0 18px; }
.home .copy-status:not(:empty) { flex-basis: 100%; padding: 0 0 8px; }
.capability { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; padding-block: 26px; border-top: 1px solid var(--line-2); }
.capability:last-child { border-bottom: 1px solid var(--line-2); }
.capability h3 { padding-top: 2px; }
.capability .text-link { margin-top: 4px; }
.section-description { margin-top: -12px !important; margin-bottom: 28px !important; }
.source-list > div { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; padding-block: 20px; border-top: 1px solid var(--line-2); }
.source-list > div:last-child { border-bottom: 1px solid var(--line-2); }
.source-list dt { font-size: 15px; color: var(--text); }
.source-list dd { margin: 0; color: var(--text-2); font-size: 14px; }
.source-notes { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 12px 32px; padding-top: 20px; }
.source-notes p { font-size: 12px; max-width: 75ch; color: var(--text-3); }
.source-notes .text-link { flex-shrink: 0; }
.platform-section { padding-top: 40px; padding-bottom: 80px; }
.platform-features { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.platform-features p { margin-top: 14px; }
.platform-features .text-link { margin-top: 6px; }

.download-section { padding-block: 56px 64px; background: var(--bg-2); border-block: 1px solid var(--line-2); }
.download-section .section-title { margin-bottom: 14px; }
.release-note { font-size: 13px; }
.release-note a { color: var(--accent); text-decoration: underline; }
.download-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 40px; }
.download-platform { min-width: 0; }
.download-platform h3 { font-size: 22px; }
.download-platform > p { margin-top: 8px; margin-bottom: 20px; font-size: 12px; }
.package-download { width: 100%; justify-content: space-between; color: var(--text); background: var(--bg-3); }
.package-download:hover { background: var(--bg-4); border-color: var(--accent); }
.package-alternative, .package-note { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 12px; }
.package-alternative { color: var(--accent); }
.package-alternative:hover { text-decoration: underline; }
.package-note { color: var(--text-3); }
.home details { font-size: 13px; }
.home summary { cursor: pointer; padding-block: 12px; min-height: 48px; color: var(--accent); }
.home summary:hover { color: var(--text); }
.package-options ul { list-style: none; margin: 0 0 12px; padding-left: 18px; }
.package-options a { display: flex; align-items: center; min-height: 44px; color: var(--text-2); }
.package-options a:hover { color: var(--accent); text-decoration: underline; }
.install-details { border-top: 1px solid var(--line-2); }
.install-details p { margin-block: 8px 16px; }
.home .install-details pre { padding: 12px 0; font-size: 12px; }
.install-details strong { color: var(--text); font-weight: 500; }

@media (max-width: 1050px) {
  .product-hero { gap: 28px; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
  .feature-focus, .platform-features { gap: 40px; }
  .download-platforms { gap: 28px; }
}
@media (max-width: 760px) {
  .product-hero { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 40px; }
  .home h1 { margin-top: 24px; font-size: clamp(24px, 5.5vw, 30px); }
  .product-summary { max-width: 55ch !important; }
  .product-actions { margin-top: 22px; }
  .home-section { padding-block: 36px; }
  .feature-focus { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .feature-intro h3:not(:first-child) { margin-top: 24px; }
  .capability, .source-list > div { grid-template-columns: 1fr; gap: 10px; padding-block: 22px; }
  .capability .text-link { margin-top: 0; }
  .platform-features { grid-template-columns: 1fr; gap: 28px; }
  .platform-section { padding-bottom: 44px; }
  .download-section { padding-block: 36px; }
  .download-platforms { grid-template-columns: 1fr; gap: 32px; margin-top: 28px; }
  .download-platform + .download-platform { border-top: 1px dashed var(--line-3); padding-top: 28px; }
  .download-platform > p { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .package-download { transition: background-color 150ms ease-out, border-color 150ms ease-out; }
}
