.template-page {
  --content: 760px;
  background:
    radial-gradient(circle at 82% -8%, rgba(139,92,246,.11), transparent 27rem),
    var(--black);
}

.template-page .site-header {
  background: rgba(8,8,13,.88);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.template-shell {
  max-width: var(--max);
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: 130px 24px 96px;
}

.page-kicker {
  margin: 0 0 1.2rem;
  color: var(--purple-light);
  font: .68rem var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-kicker.orange { color: #ffb17b; }

.license-manage-link {
  margin-top: .85rem;
  display: block;
  color: #a99acb;
  text-align: center;
  text-decoration: none;
  font-size: .74rem;
}

.license-manage-link:hover { color: var(--purple-light); }

.template-title {
  max-width: 930px;
  font-size: clamp(3rem, 6.4vw, 6.2rem);
  line-height: .95;
  letter-spacing: -.06em;
}

.template-lede {
  max-width: 760px;
  margin: 1.7rem 0 0;
  color: #aaa7b1;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.75;
}

.template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.3rem;
  margin-top: 1.7rem;
  color: #777482;
  font-size: .78rem;
}

.template-meta span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.template-meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--purple);
}

.subsite-nav {
  max-width: var(--max);
  margin: 84px auto 0;
  padding: 0 24px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  border-bottom: 1px solid var(--line);
  color: #8d8995;
  font-size: .76rem;
}

.subsite-nav strong { color: var(--white); font-family: var(--display); }
.subsite-nav a { text-decoration: none; }
.subsite-nav a:hover { color: var(--white); }
.subsite-nav .subsite-right { margin-left: auto; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--content)) 230px;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.article-hero { margin-bottom: 4.5rem; }

.article-title {
  max-width: 900px;
  font-size: clamp(3.15rem, 6.7vw, 6.6rem);
  line-height: .96;
  letter-spacing: -.062em;
}

.article-prose {
  min-width: 0;
  color: #c3c0ca;
  font-size: 1.04rem;
  line-height: 1.85;
}

.article-prose > p:first-child {
  margin-top: 0;
  color: var(--white);
  font-size: 1.28rem;
  line-height: 1.68;
}

.article-prose h2 {
  margin: 4.2rem 0 1.1rem;
  padding-top: 1rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.045em;
  scroll-margin-top: 100px;
}

.article-prose h3 {
  margin: 2.5rem 0 .7rem;
  font-size: 1.45rem;
  scroll-margin-top: 100px;
}

.article-prose a { color: var(--purple-light); }
.article-prose strong { color: var(--white); }
.article-prose ul, .article-prose ol { padding-left: 1.25rem; }
.article-prose li { margin: .55rem 0; }
.article-prose code:not(pre code) {
  padding: .15rem .38rem;
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.16);
  border-radius: .3rem;
  font: .82em var(--mono);
}

.article-rule { height: 1px; margin: 4.3rem 0; background: var(--line); border: 0; }

.article-aside {
  position: sticky;
  top: 110px;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.article-aside strong {
  display: block;
  margin-bottom: .8rem;
  color: #777482;
  font: .62rem var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.article-aside a {
  display: block;
  padding: .42rem 0;
  color: #888591;
  text-decoration: none;
  font-size: .76rem;
  line-height: 1.4;
  transition: color .2s;
}

.article-aside a:hover, .article-aside a.active { color: var(--purple-light); }

.content-callout {
  margin: 2.3rem 0;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(139,92,246,.28);
  border-radius: .75rem;
  background: linear-gradient(120deg, rgba(139,92,246,.1), rgba(139,92,246,.03));
}

.content-callout strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--purple-light);
  font: .7rem var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.content-callout p { margin: 0; }
.content-callout.signal { border-color: rgba(249,115,22,.32); background: rgba(249,115,22,.06); }
.content-callout.signal strong { color: #ffb17b; }

.code-block {
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #15111f;
}

.code-head {
  min-height: 42px;
  padding: 0 .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: #a49aad;
  font: .64rem var(--mono);
}

.copy-code {
  padding: .3rem .55rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  color: #aaa6b1;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.copy-code:hover { color: var(--white); border-color: var(--line-strong); }

.code-block pre {
  margin: 0;
  padding: 1.2rem;
  overflow-x: auto;
  color: #ece8f3;
  font: .79rem/1.8 var(--mono);
}

.code-purple { color: #c6a9ff; }
.code-orange { color: #f4b383; }
.code-muted { color: #a49aad; }

.article-footer-card {
  margin-top: 4rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--black-soft);
}

.article-footer-card h3 { margin: 0 0 .35rem; }
.article-footer-card p { margin: 0; color: #85818e; font-size: .86rem; }

/* Documentation */
.docs-shell {
  max-width: 1540px;
  margin: 84px auto 0;
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 220px;
}

.docs-sidebar {
  height: calc(100vh - 84px);
  padding: 1.3rem 1rem 2rem max(20px, calc((100vw - 1490px) / 2));
  position: sticky;
  top: 84px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: #0a090f;
}

.docs-nav-toggle { display: none; }

.docs-tree, .docs-tree ul { margin: 0; padding: 0; list-style: none; }
.docs-tree > li { margin-bottom: 1.35rem; }
.docs-tree strong {
  display: block;
  margin-bottom: .45rem;
  color: #74707c;
  font: .61rem var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.docs-tree a {
  display: block;
  margin: .16rem 0;
  padding: .38rem .55rem;
  color: #8c8894;
  text-decoration: none;
  border-radius: .4rem;
  font-size: .76rem;
  line-height: 1.35;
}

.docs-tree a:hover { color: var(--white); background: rgba(255,255,255,.035); }
.docs-tree a.current { color: var(--white); background: rgba(139,92,246,.12); box-shadow: inset 2px 0 0 var(--purple); }

.docs-main {
  min-width: 0;
  max-width: 860px;
  padding: 58px clamp(28px, 6vw, 92px) 100px;
}

.docs-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.8rem;
  color: #716d79;
  font-size: .72rem;
}
.docs-breadcrumbs a { text-decoration: none; }
.docs-breadcrumbs b { color: #514e58; }

.docs-main h1 {
  font-size: clamp(2.9rem, 5vw, 4.7rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.docs-summary {
  margin: 1.4rem 0 2rem;
  color: #aaa7b1;
  font-size: 1.05rem;
}

.version-chip {
  display: inline-flex;
  padding: .28rem .5rem;
  color: var(--purple-light);
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 999px;
  font: .6rem var(--mono);
}

.docs-main h2 {
  margin: 4rem 0 1rem;
  padding-top: .7rem;
  font-size: 2.15rem;
  letter-spacing: -.04em;
  scroll-margin-top: 100px;
}

.docs-main h3 {
  margin: 2.4rem 0 .6rem;
  font-size: 1.35rem;
  scroll-margin-top: 100px;
}

.docs-main p, .docs-main li { color: #b1aeb8; font-size: .94rem; line-height: 1.8; }
.docs-main li { margin: .35rem 0; }
.docs-main code:not(pre code) { color: #d7c9ff; font: .82em var(--mono); }

.method-signature {
  margin: 1.2rem 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  border-left: 3px solid var(--purple);
  color: #e3deea;
  background: #100e18;
  font: .8rem var(--mono);
}

.parameter-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: .82rem;
}
.parameter-table th, .parameter-table td { padding: .8rem; text-align: left; border: 1px solid var(--line); }
.parameter-table th { color: #777482; font: .62rem var(--mono); text-transform: uppercase; letter-spacing: .08em; background: #0d0c12; }
.parameter-table td { color: #aaa7b1; }
.parameter-table code { color: var(--purple-light); }

.docs-toc {
  height: fit-content;
  padding: 58px 20px 20px 0;
  position: sticky;
  top: 84px;
}
.docs-toc strong { display: block; margin-bottom: .8rem; color: #66626f; font: .6rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.docs-toc a { display: block; padding: .32rem 0; color: #74707c; text-decoration: none; font-size: .7rem; }
.docs-toc a:hover, .docs-toc a.active { color: var(--purple-light); }

/* Product */
.product-hero {
  min-height: 720px;
  padding-top: 160px;
  padding-bottom: 20px;
  display: grid;
  grid-template-columns: 1.15fr .65fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.product-hero h1 {
  max-width: 800px;
  font-size: clamp(3.8rem, 7vw, 7rem);
  line-height: .91;
  letter-spacing: -.065em;
}

.product-hero h1 em { color: var(--purple-light); font-style: normal; }

.product-summary {
  max-width: 670px;
  margin: 1.8rem 0 0;
  color: #aaa7b1;
  font-size: 1.12rem;
}

.product-points {
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  list-style: none;
}

.product-points li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  color: #c6c3cc;
  font-size: .84rem;
}

.product-points li::before { content: "✓"; color: var(--purple-light); font-family: var(--mono); }

.purchase-card {
  position: sticky;
  top: 110px;
  padding: 1.45rem;
  border: 1px solid rgba(139,92,246,.28);
  border-radius: 1rem;
  background: linear-gradient(150deg, rgba(139,92,246,.12), rgba(18,17,27,.98) 48%);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.pricing-toggle {
  padding: .25rem;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .25rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: rgba(0,0,0,.2);
}
.pricing-toggle button {
  min-height: 38px;
  border: 0;
  border-radius: .4rem;
  color: #7f7b87;
  background: transparent;
  font: .72rem var(--body);
  cursor: pointer;
}
.pricing-toggle button.active { color: var(--white); background: rgba(139,92,246,.2); }

.plan-label { margin: 1.5rem 0 .3rem; color: #85818e; font: .66rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.plan-price { display: flex; align-items: baseline; gap: .45rem; }
.plan-price strong { font: 600 3.5rem/1 var(--display); letter-spacing: -.05em; }
.plan-price span { color: #777482; font-size: .75rem; }
.plan-description { min-height: 48px; color: #918d99; font-size: .8rem; }
.purchase-card ul { margin: 1.2rem 0 1.5rem; padding: 1.2rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.purchase-card li { margin: .55rem 0; color: #aaa6b1; font-size: .78rem; }
.purchase-card li::before { content: "—"; margin-right: .55rem; color: var(--purple-light); }
.purchase-card .button { width: 100%; }
.risk-note { margin: .8rem 0 0; text-align: center; color: #66626f; font-size: .65rem; }

.product-section { padding: 110px 0; border-top: 1px solid var(--line); }
.product-section-head { max-width: 760px; margin-bottom: 3rem; }
.product-section h2 { font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.055em; }
.product-section-head p { color: #95919d; }
.feature-matrix { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.feature-matrix article { min-height: 250px; padding: 1.7rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-matrix code { color: var(--purple-light); font: .62rem var(--mono); }
.feature-matrix h3 { min-height: 2.5em; margin-top: 3.5rem; font-size: 1.28rem; line-height: 1.25; }
.feature-matrix p { color: #85818e; font-size: .82rem; }

.comparison-wrap { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--panel); box-shadow: 0 24px 60px rgba(36,23,65,.07); }
.comparison-intro { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.comparison-intro > div { padding: clamp(1.4rem,3vw,2.3rem); background: radial-gradient(circle at 0 0,rgba(139,92,246,.18),transparent 68%),var(--panel); }
.comparison-intro > div:last-child { background: radial-gradient(circle at 100% 0,rgba(249,115,22,.14),transparent 62%),var(--panel); }
.comparison-intro span { display: block; color: var(--purple-light); font: .63rem var(--mono); letter-spacing: .08em; }
.comparison-intro > div:last-child span { color: var(--orange); }
.comparison-intro strong { display: block; margin-top: .6rem; color: var(--white); font: 600 clamp(1.3rem,2.5vw,2rem) var(--display); }
.comparison-intro p { max-width: 25rem; margin: .5rem 0 0; color: var(--muted); font-size: .81rem; line-height: 1.5; }
.comparison { width: 100%; border-collapse: collapse; }
.comparison th, .comparison td { padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); text-align: left; }
.comparison tr:last-child td { border-bottom: 0; }
.comparison th { color: var(--muted); font: .64rem var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.comparison td { color: var(--muted); font-size: .83rem; }
.comparison td:first-child { color: var(--white); font-weight: 600; }
.comparison th:nth-child(2),.comparison td:nth-child(2) { background: rgba(139,92,246,.055); }
.comparison th:nth-child(3),.comparison td:nth-child(3) { background: rgba(249,115,22,.055); }
.comparison td:nth-child(2).yes { color: var(--purple-light); }
.comparison td:nth-child(3).yes { color: var(--orange); }
.comparison .no { color: var(--muted); }
@media(max-width:600px) { .comparison-intro { grid-template-columns: 1fr; } .comparison th,.comparison td { padding: .85rem .55rem; font-size: .72rem; } }

/* Course */
.course-hero {
  min-height: 690px;
  padding-top: 158px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.course-hero h1 {
  max-width: 900px;
  font-size: clamp(3.8rem, 7.3vw, 7.3rem);
  line-height: .91;
  letter-spacing: -.068em;
}
.course-hero h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, var(--purple-light), var(--orange)); background-clip: text; -webkit-background-clip: text; }
.course-facts { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.course-facts span { padding: .42rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: #aaa6b1; font-size: .7rem; }

.course-visual {
  aspect-ratio: 1 / 1;
  padding: 1.5rem;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139,92,246,.23);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.18), transparent 67%);
}
.course-visual::before, .course-visual::after { content: ""; position: absolute; inset: 15%; border: 1px solid rgba(249,115,22,.2); border-radius: 50%; }
.course-visual::after { inset: 32%; border-color: rgba(139,92,246,.3); }
.course-visual strong { max-width: 230px; position: relative; z-index: 2; text-align: center; font: 600 2rem/1.05 var(--display); letter-spacing: -.04em; }
.course-visual strong span { display: block; margin-top: .7rem; color: var(--purple-light); font: .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.course-section { padding: 105px 0; border-top: 1px solid var(--line); }
.course-section-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 6rem; }
.course-section h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.052em; }
.course-section-intro p { color: #8d8995; }

.outcome-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.outcome-list article { min-height: 210px; padding: 1.6rem; background: var(--black); }
.outcome-list span { color: var(--purple-light); font: .62rem var(--mono); }
.outcome-list h3 { min-height: 2.5em; margin-top: 2.7rem; font-size: 1.2rem; line-height: 1.25; }
.outcome-list p { color: #85818e; font-size: .8rem; }

.curriculum { border-top: 1px solid var(--line); }
.curriculum-item { border-bottom: 1px solid var(--line); }
.curriculum-button {
  width: 100%;
  min-height: 92px;
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 0;
  color: var(--white);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.curriculum-button > span:first-child { color: #6d6975; font: .64rem var(--mono); }
.curriculum-button strong { font: 600 1.18rem var(--display); }
.curriculum-button i { color: var(--purple-light); font-style: normal; font-size: 1.3rem; }
.curriculum-panel { display: none; padding: 0 0 1.5rem 66px; color: #8d8995; font-size: .84rem; }
.curriculum-item.open .curriculum-panel { display: block; }

.instructor-card { padding: 2rem; display: grid; grid-template-columns: 90px 1fr; gap: 1.3rem; align-items: center; border: 1px solid var(--line); border-radius: .8rem; background: var(--black-soft); }
.instructor-monogram { width: 90px; height: 90px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: linear-gradient(145deg, var(--purple), var(--purple-dark)); font: 600 1.2rem var(--display); }
.instructor-card h3 { font-size: 1.4rem; }
.instructor-card p { margin: .35rem 0 0; color: #85818e; font-size: .82rem; }

/* Checkout */
.checkout-page { background: #0a090f; }
.checkout-header { max-width: 1100px; height: 88px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.checkout-header .brand-mark { width: 50px; height: 38px; }
.secure-label { display: flex; align-items: center; gap: .45rem; color: #777482; font-size: .72rem; }
.secure-label::before { content: "●"; color: var(--purple); font-size: .5rem; }
.checkout-shell { max-width: 1040px; margin: 0 auto; padding: 56px 24px 100px; }
.preview-banner { margin-bottom: 1.5rem; padding: .75rem 1rem; color: #d9c8ff; background: rgba(139,92,246,.09); border: 1px solid rgba(139,92,246,.2); border-radius: .55rem; font-size: .76rem; }
.checkout-steps { display: flex; align-items: center; max-width: 720px; margin-bottom: 3rem; color: #696572; font: .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.checkout-steps span { display: flex; align-items: center; gap: .45rem; }
.checkout-steps span::before { content: attr(data-step); width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.checkout-steps span.active { color: var(--white); }
.checkout-steps span.active::before { color: var(--white); border-color: var(--purple); background: var(--purple); }
.checkout-steps span.completed { color: #9e98aa; }
.checkout-steps span.completed::before { content: "✓"; color: var(--purple-light); border-color: rgba(139,92,246,.45); }
.checkout-steps i { flex: 1; height: 1px; margin: 0 .7rem; background: var(--line); }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; align-items: start; }
.checkout-main h1 { font-size: 2.8rem; letter-spacing: -.05em; }
.checkout-main > p { color: #85818e; }

.configuration-panel { margin-top: 1.8rem; overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; background: var(--panel); }
.configuration-head { min-height: 76px; padding: 1.2rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.014); }
.configuration-head > div { display: flex; align-items: center; gap: .75rem; }
.configuration-head h2 { font-size: 1.15rem; }
.configuration-index { color: var(--purple-light); font: .66rem var(--mono); letter-spacing: .08em; }
.included-pill { padding: .3rem .55rem; color: #cdbdff; border: 1px solid rgba(139,92,246,.24); border-radius: 999px; background: rgba(139,92,246,.08); font-size: .72rem; }

.checkout-option { margin: 0; padding: 1.45rem; border: 0; border-bottom: 1px solid var(--line); }
.option-copy label, .checkout-option legend { display: block; padding: 0; color: var(--white); font: 600 1rem var(--display); }
.option-copy p, .option-help { max-width: 610px; margin: .35rem 0 0; color: #85818e; font-size: .82rem; line-height: 1.6; }
.quantity-row { margin-top: 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.quantity-control { height: 46px; display: inline-grid; grid-template-columns: 44px 58px 44px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: .55rem; background: #0d0c13; }
.quantity-control button { border: 0; color: #d6d2dc; background: transparent; font-size: 1.25rem; cursor: pointer; }
.quantity-control button:hover { color: var(--white); background: rgba(139,92,246,.1); }
.quantity-control input { width: 58px; padding: 0; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--white); background: transparent; text-align: center; font: 600 .95rem var(--mono); appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.quantity-control input:focus { outline: 2px solid var(--purple); outline-offset: -2px; }
.unit-price { display: flex; align-items: baseline; gap: .4rem; }
.unit-price strong { font: 600 1.1rem var(--display); }
.unit-price span { color: #777482; font-size: .72rem; }

.cadence-option legend { margin-bottom: .2rem; }
.cadence-grid { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.cadence-card { min-height: 112px; padding: 1rem; position: relative; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: .65rem; background: #0f0e15; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.cadence-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.cadence-card.selected { border-color: var(--purple); background: rgba(139,92,246,.09); box-shadow: inset 0 0 0 1px rgba(139,92,246,.25); }
.cadence-card input { position: absolute; opacity: 0; pointer-events: none; }
.cadence-card:focus-within { outline: 2px solid var(--purple-light); outline-offset: 2px; }
.cadence-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.cadence-top strong { font: 600 .9rem var(--display); }
.cadence-top em { color: #777482; font: normal .58rem var(--mono); text-transform: uppercase; }
.cadence-top em.saving { padding: .2rem .35rem; color: #ffd0b1; border-radius: .3rem; background: rgba(249,115,22,.1); }
.cadence-card small { color: #716d79; font-size: .68rem; line-height: 1.35; }

.promo-control { margin-top: 1rem; display: grid; grid-template-columns: 1fr auto; }
.promo-control input { min-width: 0; height: 46px; padding: 0 .85rem; border: 1px solid var(--line-strong); border-right: 0; border-radius: .55rem 0 0 .55rem; color: var(--white); background: #0d0c13; font: .86rem var(--body); text-transform: uppercase; outline: none; }
.promo-control input::placeholder { color: #625e6a; text-transform: none; }
.promo-control input:focus { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.promo-control button { min-width: 82px; padding: 0 1rem; border: 1px solid var(--purple); border-radius: 0 .55rem .55rem 0; color: var(--white); background: rgba(139,92,246,.16); font: 600 .78rem var(--body); cursor: pointer; }
.promo-control button:hover { background: rgba(139,92,246,.26); }
.promo-message { min-height: 1.2rem; margin: .5rem 0 0; color: var(--purple-light); font-size: .72rem; }
.promo-message.error { color: #ffad76; }

.support-addon { margin: 1.45rem; padding: 1.15rem; display: grid; grid-template-columns: 24px 1fr auto; gap: .9rem; align-items: start; border: 1px solid var(--line); border-radius: .7rem; background: linear-gradient(120deg, rgba(139,92,246,.055), rgba(249,115,22,.025)); cursor: pointer; transition: border-color .2s, background .2s; }
.support-addon:hover { border-color: rgba(139,92,246,.35); }
.support-addon:has(input:checked) { border-color: var(--purple); background: rgba(139,92,246,.09); }
.support-addon input { position: absolute; opacity: 0; pointer-events: none; }
.support-check { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: .3rem; background: #0d0c13; }
.support-addon input:focus-visible + .support-check { outline: 2px solid var(--purple-light); outline-offset: 2px; }
.support-addon input:checked + .support-check { color: var(--white); border-color: var(--purple); background: var(--purple); }
.support-addon input:checked + .support-check::before { content: "✓"; font: .72rem var(--mono); }
.support-copy strong { display: block; color: var(--white); font: 600 .9rem var(--display); }
.support-copy small { display: block; margin-top: .35rem; color: #85818e; font-size: .76rem; line-height: 1.55; }
.support-price { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.support-price strong { font: 600 1rem var(--display); }
.support-price small { color: #716d79; font-size: .65rem; }

.payment-panel { margin-top: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--panel); }
.payment-method-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.payment-method-head > div { display: flex; align-items: center; gap: .75rem; }
.payment-method-head strong { font: 600 .95rem var(--display); }
.payment-method-head span { color: #66626f; font: .6rem var(--mono); }
.dropin-placeholder { min-height: 210px; padding: 2rem; display: grid; place-items: center; text-align: center; border: 1px dashed rgba(139,92,246,.3); border-radius: .6rem; background: rgba(139,92,246,.035); }
.dropin-placeholder div { max-width: 330px; }
.dropin-placeholder strong { display: block; margin-bottom: .5rem; color: #cbc4d6; font: 600 1rem var(--display); }
.dropin-placeholder p { margin: 0; color: #777482; font-size: .74rem; }
.checkout-consent { margin: 1rem 0; color: #777482; font-size: .7rem; }
.checkout-consent a { color: #aaa6b1; }
.checkout-submit { width: 100%; border: 0; cursor: not-allowed; opacity: .52; }
.order-card { padding: 1.4rem; position: sticky; top: 24px; border: 1px solid var(--line); border-radius: .8rem; background: #111018; }
.order-card h2 { font-size: 1.15rem; }
.order-product { margin-top: 1rem; padding: 1rem 0; display: grid; grid-template-columns: 42px 1fr auto; gap: .75rem; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: .5rem; color: var(--white); background: var(--purple); font: .68rem var(--mono); }
.order-product strong { display: block; font-size: .78rem; }
.order-product span { color: #777482; font-size: .66rem; }
.order-product > b { font: 600 .88rem var(--display); }
.order-row { padding-top: 1rem; display: flex; justify-content: space-between; color: #8b8793; font-size: .76rem; }
.order-row[hidden] { display: none; }
.order-row.discount-row span:last-child { color: var(--purple-light); }
.order-row.total { margin-top: 1rem; border-top: 1px solid var(--line); color: var(--white); font-size: .9rem; }
.order-row.total strong { font-family: var(--display); }
.renewal-note { margin: .75rem 0 0; color: #777482; font-size: .68rem; line-height: 1.45; }
.checkout-help { margin-top: 1.2rem; color: #66626f; font-size: .68rem; }

/* Template index and migration */
.template-catalog { padding-top: 150px; }
.template-catalog-head { display: grid; grid-template-columns: 1fr .55fr; gap: 5rem; align-items: end; margin-bottom: 4rem; }
.template-catalog-head p { color: #96929d; }
.template-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.template-card { min-height: 330px; padding: 2rem; position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .85rem; text-decoration: none; background: var(--black-soft); transition: transform .2s, border-color .2s; }
.template-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.4); }
.template-card > span { color: #625e6a; font: .62rem var(--mono); }
.template-card h2 { min-height: 2.2em; margin-top: 4rem; font-size: 2.5rem; line-height: 1.1; letter-spacing: -.045em; }
.template-card p { max-width: 440px; color: #85818e; font-size: .84rem; }
.template-card b { margin-top: auto; color: var(--purple-light); font: 500 .75rem var(--mono); }
.migration-panel { margin-top: 5rem; padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(145deg, rgba(139,92,246,.09), rgba(249,115,22,.03)); }
.migration-panel h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.052em; }
.migration-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.migration-grid article { min-height: 190px; padding: 1.3rem; background: #0d0c13; }
.migration-grid code { color: var(--purple-light); font: .62rem var(--mono); }
.migration-grid h3 { min-height: 2.5em; margin-top: 2.1rem; font-size: 1rem; line-height: 1.25; }
.migration-grid p { color: #7e7a86; font-size: .74rem; }

@supports (grid-template-rows: subgrid) {
  .feature-matrix article,.outcome-list article,.migration-grid article { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
  .template-card { display: grid; grid-template-rows: subgrid; grid-row: span 4; }
  .feature-matrix h3,.outcome-list h3,.migration-grid h3,.template-card h2 { min-height: 0; }
}

@media (max-width: 1080px) {
  .docs-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .docs-toc { display: none; }
  .product-hero, .course-hero { grid-template-columns: 1fr; }
  .product-hero { padding-top: 145px; }
  .purchase-card { position: relative; top: auto; max-width: 540px; }
  .course-visual { width: min(420px, 85vw); }
  .course-section-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 760px) {
  .subsite-nav { margin-top: 72px; padding: 0 20px; overflow-x: auto; white-space: nowrap; }
  .subsite-nav .subsite-right { display: none; }
  .template-shell { padding: 110px 20px 72px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { display: none; }
  .article-hero { margin-bottom: 3rem; }
  .article-footer-card { grid-template-columns: 1fr; }
  .docs-shell { display: block; margin-top: 72px; }
  .docs-sidebar { height: auto; padding: 1rem 20px; position: relative; top: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .docs-tree { display: none; }
  .docs-sidebar.open .docs-tree { display: block; max-height: 55vh; overflow: auto; }
  .docs-nav-toggle { width: 100%; margin-top: .75rem; padding: .72rem .85rem; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: .55rem; color: var(--white); background: var(--panel); font: 600 .78rem var(--body); cursor: pointer; }
  .docs-nav-toggle span { color: var(--purple-light); font-size: 1.1rem; }
  .docs-sidebar.open .docs-tree { margin-top: 1rem; }
  .docs-main { padding: 46px 20px 80px; }
  .product-hero, .course-hero { min-height: auto; padding-top: 122px; }
  .product-points, .outcome-list { grid-template-columns: 1fr; }
  .feature-matrix { grid-template-columns: 1fr; }
  .product-section, .course-section { padding: 78px 0; }
  .course-hero h1, .product-hero h1 { font-size: clamp(3.5rem, 16vw, 5.3rem); }
  .curriculum-button { grid-template-columns: 38px 1fr auto; }
  .curriculum-panel { padding-left: 54px; }
  .checkout-header { height: 72px; }
  .checkout-shell { padding-top: 38px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-card { grid-row: 1; position: relative; top: auto; }
  .checkout-steps { max-width: none; font-size: .55rem; }
  .checkout-steps span { gap: 0; font-size: 0; }
  .checkout-steps span.active { font-size: .55rem; }
  .checkout-steps span::before { margin-right: .35rem; }
  .cadence-grid { grid-template-columns: 1fr; }
  .quantity-row { align-items: flex-start; flex-direction: column; }
  .support-addon { grid-template-columns: 24px 1fr; }
  .support-price { grid-column: 2; align-items: flex-start; flex-direction: row; gap: .35rem; }
  .template-catalog { padding-top: 120px; }
  .template-catalog-head, .template-cards { grid-template-columns: 1fr; gap: 1rem; }
  .template-catalog-head { margin-bottom: 2rem; }
  .migration-grid { grid-template-columns: 1fr; }
}
