@font-face {
  font-family: "Inter Variable";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.template-page-body {
  --template-panel: color-mix(in srgb, var(--template-surface) 90%, white 10%);
  --template-line: color-mix(in srgb, var(--template-ink) 12%, transparent);
  --display:
    "Inter Variable", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --type-hero: clamp(46px, 5.2vw, 76px);
  --type-page-hero: clamp(44px, 5vw, 72px);
  --type-section: clamp(34px, 3.8vw, 56px);
  --type-content-heading: clamp(30px, 3.2vw, 48px);
  --type-card-heading: clamp(24px, 2.2vw, 34px);
  --type-lead: clamp(17px, 1.1vw, 19px);
  --type-body: 16px;
  --type-body-small: 14px;
  --type-ui: 12px;
  --type-label: 11px;
  --type-micro: 10px;
  color: var(--template-ink);
  background:
    radial-gradient(
      circle at 88% 4%,
      color-mix(in srgb, var(--template-accent) 24%, transparent) 0,
      transparent 24rem
    ),
    var(--template-surface);
  font-optical-sizing: auto;
  font-kerning: normal;
}

.template-page-body .section-heading h2 {
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.038em;
}

.template-nav {
  background: color-mix(in srgb, var(--template-surface) 88%, transparent);
}

.template-nav .cs-nav__cta {
  color: var(--template-accent-contrast) !important;
  background: var(--template-accent);
  border-color: var(--template-accent);
}

.template-button--accent {
  color: var(--template-accent-contrast);
  background: var(--template-accent);
  border-color: var(--template-accent);
  box-shadow: 0 14px 36px -18px
    color-mix(in srgb, var(--template-accent) 78%, black 22%);
}

.template-button--accent:hover {
  box-shadow: 0 18px 42px -18px
    color-mix(in srgb, var(--template-accent) 90%, black 10%);
}

.template-hero {
  position: relative;
  min-height: 100svh;
  padding: 158px 0 64px;
  overflow: hidden;
  background:
    linear-gradient(
      112deg,
      color-mix(in srgb, var(--template-surface) 97%, white 3%) 0 47%,
      transparent 68%
    ),
    radial-gradient(
      circle at 78% 30%,
      color-mix(in srgb, var(--template-accent) 20%, transparent),
      transparent 38%
    );
}

.template-hero__glow {
  position: absolute;
  width: 34rem;
  height: 34rem;
  top: 4rem;
  right: -12rem;
  background: var(--template-accent);
  border-radius: 999px;
  filter: blur(140px);
  opacity: 0.18;
  pointer-events: none;
}

.template-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr);
  gap: clamp(56px, 7vw, 112px);
  align-items: center;
}

.template-hero__copy {
  position: relative;
  z-index: 2;
}

.template-hero__logo {
  width: auto;
  max-width: min(250px, 66%);
  height: 58px;
  margin: clamp(40px, 6vw, 76px) 0 28px;
  object-fit: contain;
  object-position: left center;
}

.template-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: var(--type-page-hero);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.template-hero__lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: color-mix(in srgb, var(--template-ink) 72%, transparent);
  font-size: var(--type-lead);
  line-height: 1.6;
}

.template-hero__actions {
  margin-top: 36px;
}

.template-link-strip {
  display: grid;
  margin-top: clamp(34px, 4.5vw, 52px);
  border-top: 1px solid var(--template-line);
}

.template-link-strip a {
  display: grid;
  min-height: 64px;
  padding: 0 4px;
  grid-template-columns: minmax(0, 156px) minmax(0, 1fr) 20px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--template-line);
  text-decoration: none;
  transition:
    padding 0.2s ease,
    background-color 0.2s ease;
}

.template-link-strip a:hover {
  padding-inline: 12px;
  background: color-mix(in srgb, var(--template-accent) 8%, transparent);
}

.template-link-strip small {
  min-width: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--template-ink) 50%, transparent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.template-link-strip strong {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.012em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-link-strip a > span {
  font-size: 19px;
  line-height: 1;
}

.template-hero__visual {
  position: relative;
  min-width: 0;
}

.template-browser {
  padding: 10px;
  color: white;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  box-shadow: 0 58px 130px -58px
    color-mix(in srgb, var(--template-ink) 72%, transparent);
  transform: rotate(1.2deg);
}

.template-browser__bar {
  display: grid;
  min-height: 46px;
  padding: 0 10px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.template-browser__bar > span {
  display: flex;
  gap: 6px;
}

.template-browser__bar i {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.template-browser__bar small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-browser__bar em {
  justify-self: end;
  padding: 5px 8px;
  color: var(--template-accent-contrast);
  background: var(--template-accent);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-browser__screen {
  aspect-ratio: 1.72 / 1;
  overflow: hidden;
  background: white;
  border-radius: 19px;
}

.template-browser__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.template-hero__note {
  position: absolute;
  right: -22px;
  bottom: 44px;
  display: grid;
  width: min(280px, 60%);
  padding: 18px 20px;
  gap: 5px;
  color: var(--template-accent-contrast);
  background: var(--template-accent);
  border: 1px solid color-mix(in srgb, var(--template-accent) 60%, white 40%);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  transform: rotate(-2deg);
}

.template-hero__note span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-hero__note strong {
  font-size: 15px;
}

.template-stats {
  position: relative;
  display: grid;
  margin-top: clamp(64px, 8vw, 110px);
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--template-line);
  border-bottom: 1px solid var(--template-line);
}

.template-stats > span {
  display: grid;
  min-height: 112px;
  padding: 24px clamp(18px, 3vw, 36px);
  align-content: center;
  border-right: 1px solid var(--template-line);
}

.template-stats > span:first-child {
  padding-left: 0;
}

.template-stats > span:last-child {
  border-right: 0;
}

.template-stats strong {
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.template-stats small {
  margin-top: 8px;
  color: color-mix(in srgb, var(--template-ink) 55%, transparent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-story {
  background: color-mix(in srgb, var(--template-surface) 94%, white 6%);
}

.template-story .section-index,
.template-gallery .section-index,
.template-cloudflare .section-index {
  color: var(--template-accent-text-light);
}

.template-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: template-step;
}

.template-timeline li {
  display: grid;
  min-height: 216px;
  padding: 44px 0;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  border-top: 1px solid var(--template-line);
}

.template-timeline li:last-child {
  border-bottom: 1px solid var(--template-line);
}

.template-timeline li > span {
  color: color-mix(in srgb, var(--template-ink) 24%, transparent);
  font-family: var(--mono);
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
}

.template-timeline li > div {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.template-timeline h3 {
  margin: 0;
  font-size: var(--type-card-heading);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.template-timeline p {
  margin: 0;
  color: color-mix(in srgb, var(--template-ink) 67%, transparent);
  font-size: var(--type-body);
  line-height: 1.65;
}

.template-timeline small {
  grid-column: 2;
  width: fit-content;
  margin-top: -36px;
  padding: 7px 10px;
  color: var(--template-accent-contrast);
  background: var(--template-accent);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.template-outcomes {
  color: white;
  background: var(--template-ink);
}

.template-outcomes .section-heading > div > p {
  color: rgba(255, 255, 255, 0.62);
}

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

.template-outcome-grid article {
  position: relative;
  display: grid;
  min-height: 480px;
  overflow: hidden;
  align-items: end;
  background: #131313;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.template-outcome-grid article::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(5, 5, 5, 0.94) 100%
  );
}

.template-outcome-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.78;
  transition:
    transform 0.5s var(--ease),
    opacity 0.5s ease;
}

.template-outcome-grid article:hover img {
  opacity: 0.92;
  transform: scale(1.02);
}

.template-outcome-grid article > div {
  position: relative;
  z-index: 1;
  display: grid;
  padding: 34px;
  grid-template-columns: 38px 1fr;
  gap: 8px 18px;
}

.template-outcome-grid span {
  color: var(--template-accent-text-dark);
  font-family: var(--mono);
  font-size: 11px;
}

.template-outcome-grid h3 {
  margin: 0;
  font-size: var(--type-card-heading);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.template-outcome-grid p {
  max-width: 560px;
  margin: 10px 0 0;
  grid-column: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--type-body);
  line-height: 1.65;
}

.template-gallery {
  background: #f8f8f5;
}

.template-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.template-gallery-card {
  display: grid;
  padding: 0;
  grid-column: span 4;
  gap: 16px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.template-gallery-card--wide {
  grid-column: span 8;
}

.template-gallery-card__media {
  position: relative;
  aspect-ratio: 1.05 / 1;
  overflow: hidden;
  background: #e8e8e2;
  border: 1px solid rgba(10, 10, 10, 0.09);
  border-radius: 18px;
}

.template-gallery-card--wide .template-gallery-card__media {
  aspect-ratio: 2.12 / 1;
}

.template-gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s var(--ease);
}

.template-gallery-card:hover .template-gallery-card__media img,
.template-gallery-card:focus-visible .template-gallery-card__media img {
  transform: scale(1.025);
}

.template-gallery-card__media i {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 10px;
  color: white;
  background: rgba(10, 10, 10, 0.8);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.template-gallery-card:hover .template-gallery-card__media i,
.template-gallery-card:focus-visible .template-gallery-card__media i {
  opacity: 1;
  transform: translateY(0);
}

.template-gallery-card__copy {
  display: grid;
  padding: 0 3px 14px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.template-gallery-card__copy b,
.template-gallery-card__copy em {
  color: rgba(10, 10, 10, 0.48);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.template-gallery-card__copy span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.template-setup {
  color: white;
  background:
    radial-gradient(
      circle at 90% 10%,
      color-mix(in srgb, var(--template-accent) 20%, transparent),
      transparent 26rem
    ),
    var(--template-ink);
}

.template-setup__intro {
  display: grid;
  margin-bottom: clamp(56px, 8vw, 92px);
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 112px);
}

.template-setup__intro h2 {
  max-width: 920px;
  margin: 0;
  font-size: var(--type-section);
  line-height: 1.04;
  letter-spacing: -0.038em;
}

.template-setup__intro > p:last-child {
  max-width: 720px;
  margin: 22px 0 0;
  grid-column: 2;
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--type-lead);
  line-height: 1.62;
}

.template-setup__steps {
  display: grid;
  gap: 18px;
}

.template-setup-step {
  display: grid;
  padding: clamp(28px, 4vw, 48px);
  grid-template-columns: 72px minmax(260px, 0.72fr) minmax(360px, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
}

.template-setup-step--featured {
  background: color-mix(
    in srgb,
    var(--template-accent) 9%,
    rgba(255, 255, 255, 0.055)
  );
  border-color: color-mix(in srgb, var(--template-accent) 38%, transparent);
}

.template-setup-step__number {
  color: var(--template-accent-text-dark);
  font-family: var(--mono);
  font-size: 25px;
}

.template-setup-step__label {
  margin: 0 0 12px;
  color: var(--template-accent-text-dark);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-setup-step h3 {
  margin: 0;
  font-size: var(--type-card-heading);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.template-setup-step__copy > p:not(.template-setup-step__label) {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--type-body);
  line-height: 1.65;
}

.template-setup-step__copy .button-row {
  margin-top: 24px;
}

.template-setup-step .button--ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.template-setup-step code {
  color: var(--template-accent-text-dark);
}

.template-code-window {
  min-width: 0;
  margin: 0;
}

.template-code-window pre {
  max-width: 100%;
  overflow-x: auto;
}

.template-cloudflare {
  background: #f3f5fa;
}

.template-cloudflare .section-heading a {
  color: var(--violet-deep);
  font-size: 14px;
  font-weight: 700;
}

.template-prerequisite {
  display: grid;
  margin-bottom: 22px;
  padding: clamp(26px, 4vw, 46px);
  grid-template-columns: minmax(260px, 0.7fr) minmax(360px, 1.3fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
}

.template-prerequisite > div > span {
  color: var(--violet-deep);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-prerequisite h3 {
  margin: 12px 0 0;
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.template-prerequisite p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.65;
}

.template-prerequisite a {
  color: var(--violet-deep);
  font-size: 13px;
  font-weight: 700;
}

.template-prerequisite figure {
  margin: 0;
}

.template-prerequisite img {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 14px;
}

.template-prerequisite figcaption,
.template-cloudflare-step figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.template-cloudflare__steps {
  display: grid;
  gap: 12px;
}

.template-cloudflare-step {
  overflow: clip;
  background: white;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.template-cloudflare-step summary {
  display: grid;
  min-height: 94px;
  padding: 18px 24px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.template-cloudflare-step summary::-webkit-details-marker {
  display: none;
}

.template-cloudflare-step summary > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--template-accent-contrast);
  background: var(--template-accent);
  border-radius: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.template-cloudflare-step summary div {
  display: grid;
  gap: 3px;
}

.template-cloudflare-step summary small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.template-cloudflare-step summary strong {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.template-cloudflare-step summary > i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--canvas-soft);
  border-radius: 999px;
  font-style: normal;
  font-size: 22px;
  transition: transform 0.2s ease;
}

.template-cloudflare-step[open] summary > i {
  transform: rotate(45deg);
}

.template-cloudflare-step__body {
  display: grid;
  padding: 4px 24px 28px 100px;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1.48fr);
  gap: clamp(28px, 5vw, 64px);
}

.template-cloudflare-step__copy p {
  margin: 0;
  color: var(--text);
  font-size: var(--type-body);
  line-height: 1.65;
}

.template-cloudflare-step__copy ul {
  display: grid;
  margin: 20px 0 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.template-cloudflare-step__copy li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.template-cloudflare-step__copy li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--template-accent);
  border-radius: 999px;
}

.template-cloudflare-step__copy pre {
  margin: 22px 0 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: white;
  background: var(--ink);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 13px;
}

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

.template-cloudflare-step__images figure {
  margin: 0;
}

.template-cloudflare-step__images img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--stroke);
  border-radius: 12px;
}

.template-cloudflare-step__no-image {
  display: grid;
  min-height: 170px;
  padding: 28px;
  place-content: center;
  text-align: center;
  background: var(--canvas-soft);
  border: 1px dashed var(--stroke-strong);
  border-radius: 16px;
}

.template-cloudflare-step__no-image span {
  color: var(--violet-deep);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-cloudflare-step__no-image p {
  max-width: 420px;
  margin: 10px auto 0;
  color: var(--muted);
}

.template-final-cta {
  padding: clamp(90px, 12vw, 170px) 0;
  color: var(--template-accent-contrast);
  background: var(--template-accent);
}

.template-final-cta__inner {
  text-align: center;
}

.template-final-cta__inner > p {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-final-cta h2 {
  max-width: 980px;
  margin: 0 auto 36px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.template-final-cta .template-button--accent {
  color: white;
  background: var(--template-ink);
  border-color: var(--template-ink);
}

.template-final-cta .button--ghost {
  color: var(--template-accent-contrast);
  border-color: color-mix(
    in srgb,
    var(--template-accent-contrast) 25%,
    transparent
  );
}

.template-footer {
  background: var(--template-ink);
}

.business-template-band {
  --display:
    "Inter Variable", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --type-section: clamp(34px, 3.8vw, 56px);
  padding-block: clamp(92px, 10vw, 144px);
  background: #0b1026;
  font-family: var(--display);
  font-optical-sizing: auto;
}

.business-template-band .section-heading h2 {
  color: white;
}

.business-template-band .section-heading > div > p {
  color: rgba(255, 255, 255, 0.62);
}

.business-template-band__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.business-template-band__actions {
  margin-top: 34px;
}

.business-template-card {
  overflow: hidden;
  color: white;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
}

.business-template-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1.58 / 1;
  overflow: hidden;
  background: #111;
}

.business-template-card__media::after {
  position: absolute;
  inset: 50% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
}

.business-template-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
}

.business-template-card:hover .business-template-card__media img {
  transform: scale(1.025);
}

.business-template-card__media span {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  padding: 9px 12px;
  color: var(--template-card-accent-contrast);
  background: var(--template-card-accent);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.business-template-card__copy {
  padding: clamp(26px, 4vw, 42px);
}

.business-template-card__copy > p {
  margin: 0;
  color: var(--template-card-accent-text-dark);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.business-template-card h3 {
  margin: 12px 0 0;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.business-template-card__copy > span {
  display: block;
  max-width: 620px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 16px;
  line-height: 1.65;
}

.business-template-card__copy > div {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 18px;
}

.business-template-card__copy > div a {
  color: white;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .template-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 48px;
  }

  .template-link-strip a {
    grid-template-columns: minmax(0, 132px) minmax(0, 1fr) 20px;
  }

  .template-setup-step {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .template-setup-step .template-code-window {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .template-hero {
    padding-top: 128px;
  }

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

  .template-hero__visual {
    max-width: 760px;
  }

  .template-browser {
    transform: none;
  }

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

  .template-stats > span:nth-child(2) {
    border-right: 0;
  }

  .template-stats > span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--template-line);
  }

  .template-timeline li > div {
    grid-template-columns: 1fr;
  }

  .template-timeline small {
    grid-column: 1;
    margin-top: 0;
  }

  .template-gallery-card,
  .template-gallery-card--wide {
    grid-column: span 6;
  }

  .template-gallery-card--wide .template-gallery-card__media {
    aspect-ratio: 1.05 / 1;
  }

  .template-cloudflare-step__body {
    padding-left: 24px;
    grid-template-columns: 1fr;
  }

  .business-template-band__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .template-hero h1 {
    font-size: clamp(38px, 10.5vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.04em;
  }

  .template-link-strip a {
    min-height: 66px;
    padding: 9px 2px;
    grid-template-columns: minmax(0, 1fr) 22px;
    grid-template-rows: auto auto;
    gap: 2px 10px;
  }

  .template-link-strip small {
    grid-column: 1;
    grid-row: 1;
  }

  .template-link-strip strong {
    grid-column: 1;
    grid-row: 2;
    font-size: 14px;
  }

  .template-link-strip a > span {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }

  .template-hero__note {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 28px);
    margin: -34px auto 0;
    transform: none;
  }

  .template-timeline li {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
  }

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

  .template-outcome-grid article {
    min-height: 410px;
  }

  .template-gallery-card,
  .template-gallery-card--wide {
    grid-column: 1 / -1;
  }

  .template-gallery-card__media,
  .template-gallery-card--wide .template-gallery-card__media {
    aspect-ratio: 1.18 / 1;
  }

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

  .template-setup__intro > p:last-child {
    grid-column: 1;
  }

  .template-setup-step {
    grid-template-columns: 1fr;
  }

  .template-setup-step .template-code-window {
    grid-column: 1;
  }

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

  .template-cloudflare-step summary {
    padding-inline: 16px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .template-cloudflare-step summary > span {
    width: 42px;
    height: 42px;
  }

  .template-cloudflare-step__body {
    padding: 4px 16px 22px;
  }

  .template-cloudflare-step__images {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .template-stats {
    grid-template-columns: 1fr;
  }

  .template-stats > span,
  .template-stats > span:first-child {
    min-height: 88px;
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--template-line);
  }

  .template-stats > span:last-child {
    border-bottom: 0;
  }

  .template-timeline li {
    padding-block: 32px;
    grid-template-columns: 1fr;
  }

  .template-timeline li > span {
    font-size: 28px;
  }

  .template-outcome-grid article > div {
    padding: 26px;
    grid-template-columns: 28px 1fr;
  }

  .template-gallery-card__copy {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .template-gallery-card__copy em {
    display: none;
  }

  .template-code-window .code-window__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .template-cloudflare-step summary small {
    display: none;
  }

  .template-cloudflare-step summary strong {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .template-browser,
  .template-hero__note {
    transform: none;
  }

  .template-outcome-grid img,
  .template-gallery-card__media img,
  .business-template-card__media img {
    transition: none;
  }
}

/* Genesis business template — 2026 refinement
 * Appended and page-scoped to preserve the shared landing contracts.
 */
.template-page-body {
  --template-2026-ink: #111126;
  --template-2026-ink-soft: #323248;
  --template-2026-muted: #5f6078;
  --template-2026-violet: #6757e9;
  --template-2026-blue: #315fe7;
  --template-2026-purple: #9253ea;
  --template-2026-line: rgba(62, 54, 111, 0.14);
  --template-2026-shadow: 0 24px 72px rgba(40, 32, 88, 0.12);
  color: var(--template-2026-ink);
  background:
    radial-gradient(
      circle at 7% 6%,
      rgba(255, 203, 128, 0.2),
      transparent 25rem
    ),
    radial-gradient(
      circle at 94% 13%,
      rgba(115, 145, 255, 0.18),
      transparent 30rem
    ),
    linear-gradient(180deg, #fbfbff, #fff 32%, #f8f8ff);
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .template-page-body {
    overflow-x: hidden;
  }
}

.template-page-body *,
.template-page-body *::before,
.template-page-body *::after {
  box-sizing: border-box;
}

.template-page-body main {
  overflow: clip;
}

.template-page-body .page-shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.template-page-body
  :is(
    .template-hero__grid,
    .template-hero__copy,
    .template-hero__visual,
    .template-browser,
    .section-heading,
    .section-heading > div,
    .template-outcomes__intro,
    .template-setup__overview,
    .template-setup-step,
    .template-prerequisite,
    .template-cloudflare-step__body,
    .template-final-cta__inner
  ) {
  min-inline-size: 0;
}

.template-page-body :is(img, svg, video, canvas) {
  max-inline-size: 100%;
}

.template-page-body :is(h1, h2, h3) {
  color: var(--template-2026-ink);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.template-page-body p {
  color: var(--template-2026-muted);
}

.template-page-body :is(#features, #gallery, #story, #setup, #cloudflare) {
  scroll-margin-top: 96px;
}

.template-page-body :is(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(49, 95, 231, 0.5);
  outline-offset: 3px;
}

.template-page-body .section {
  padding-block: clamp(76px, 8vw, 112px);
}

.template-page-body .section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 74px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 54px);
}

.template-page-body .section-heading .section-index {
  margin: 0;
  color: #5545c7;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.template-page-body .section-heading h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.04;
}

.template-page-body .section-heading > div > p {
  max-width: 68ch;
  margin: 18px 0 0;
  color: var(--template-2026-muted);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.65;
}

/* Hero */
.template-page-body .template-hero {
  min-height: auto;
  padding: clamp(116px, 10vw, 150px) 0 clamp(62px, 7vw, 96px);
  background:
    linear-gradient(
      115deg,
      rgba(255, 238, 216, 0.76),
      rgba(248, 247, 255, 0.7) 48%,
      rgba(224, 233, 255, 0.76)
    ),
    #fff;
  isolation: isolate;
}

.template-page-body .template-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(76, 65, 143, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 65, 143, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(#000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(#000 0%, transparent 88%);
}

.template-page-body .template-hero__grid {
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: clamp(42px, 6vw, 82px);
}

.template-page-body .template-hero__copy {
  max-width: 640px;
}

.template-page-body .template-hero .eyebrow {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.template-page-body .template-hero .eyebrow span {
  max-width: 100%;
  color: #4c3fba;
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(87, 73, 191, 0.18);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.template-page-body .template-hero__logo {
  height: 52px;
  margin: clamp(26px, 4vw, 46px) 0 22px;
}

.template-page-body .template-hero h1 {
  max-width: 12.5ch;
  font-size: clamp(44px, 5.5vw, 68px);
  line-height: 0.99;
}

.template-page-body .template-hero__lead {
  max-width: 62ch;
  margin-top: 24px;
  color: var(--template-2026-ink-soft);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.68;
}

.template-page-body .template-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.template-page-body .template-hero__actions .button {
  min-height: 48px;
  border-radius: 14px;
}

.template-page-body .template-link-strip {
  gap: 8px;
  margin-top: 34px;
  border: 0;
}

.template-page-body .template-link-strip a {
  min-height: 62px;
  padding: 10px 12px;
  grid-template-columns: minmax(0, 118px) minmax(0, 1fr) 18px;
  gap: 10px;
  border: 1px solid var(--template-2026-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.template-page-body .template-link-strip small {
  color: #655f78;
  font-size: 11px;
  line-height: 1.35;
}

.template-page-body .template-link-strip strong {
  color: var(--template-2026-ink);
  font-size: 12px;
  line-height: 1.4;
}

.template-page-body .template-browser {
  width: 100%;
  max-width: 690px;
  margin-inline: auto;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 42px 94px -42px rgba(28, 23, 71, 0.5),
    0 10px 24px rgba(28, 23, 71, 0.1);
  transform: rotate(0.7deg);
}

.template-page-body .template-browser__bar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.template-page-body .template-browser__bar small,
.template-page-body .template-browser__bar em {
  min-width: 0;
  font-size: 11px;
}

.template-page-body .template-browser__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.template-page-body .template-hero__note {
  right: -10px;
  bottom: 28px;
  width: min(290px, 64%);
  padding: 16px 18px;
  color: var(--template-accent-contrast);
  background: var(--template-accent);
  border-radius: 16px;
}

.template-page-body .template-hero__note span {
  font-size: 11px;
  line-height: 1.35;
}

.template-page-body .template-hero__note strong {
  font-size: 15px;
  line-height: 1.35;
}

.template-page-body .template-stats {
  gap: 10px;
  margin-top: clamp(44px, 6vw, 72px);
  border: 0;
}

.template-page-body .template-stats > span {
  min-height: 96px;
  padding: 18px 20px;
  border: 1px solid var(--template-2026-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.template-page-body .template-stats > span:first-child {
  padding-left: 20px;
}

.template-page-body .template-stats > span:last-child {
  border-right: 1px solid var(--template-2026-line);
}

.template-page-body .template-stats strong {
  color: var(--template-2026-ink);
  font-size: clamp(24px, 2.6vw, 36px);
}

.template-page-body .template-stats small {
  color: #626079;
  font-size: 11px;
  line-height: 1.35;
}

/* Connected capabilities and proof */
.template-page-body .template-outcomes {
  color: var(--template-2026-ink);
  background:
    radial-gradient(
      circle at 86% 10%,
      rgba(135, 101, 255, 0.12),
      transparent 24rem
    ),
    linear-gradient(180deg, #f7f7ff, #fff);
}

.template-page-body .template-outcomes .section-heading > div > p {
  color: var(--template-2026-muted);
}

.template-page-body .template-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.template-page-body .template-capability-card {
  position: relative;
  display: grid;
  min-height: 116px;
  padding: 20px 20px 20px 58px;
  align-content: center;
  overflow: hidden;
  border: 1px solid var(--template-2026-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(42, 35, 92, 0.07);
}

.template-page-body .template-capability-card > span {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--template-2026-blue),
    var(--template-2026-purple)
  );
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 850;
}

.template-page-body .template-capability-card p {
  margin: 0;
  color: var(--template-2026-ink-soft);
  font-size: 15px;
  font-weight: 680;
  line-height: 1.5;
}

.template-page-body .template-outcomes__intro {
  display: grid;
  margin-bottom: 22px;
  padding: 20px 22px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: center;
  border: 1px solid var(--template-2026-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.template-page-body .template-outcomes__intro p,
.template-page-body .template-outcomes__intro span {
  margin: 0;
  color: var(--template-accent-text-light);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.template-page-body .template-outcomes__intro h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
}

.template-page-body .template-outcome-grid {
  gap: 18px;
}

.template-page-body .template-outcome-grid article {
  min-height: clamp(360px, 36vw, 460px);
  border-color: rgba(47, 42, 85, 0.18);
  box-shadow: 0 22px 58px rgba(38, 31, 84, 0.12);
}

.template-page-body .template-outcome-grid article::after {
  background: linear-gradient(
    180deg,
    rgba(5, 5, 8, 0.02) 18%,
    rgba(7, 7, 14, 0.94) 100%
  );
}

.template-page-body .template-outcome-grid img {
  opacity: 0.86;
}

.template-page-body .template-outcome-grid article > div {
  padding: 28px;
}

.template-page-body .template-outcome-grid span {
  color: var(--template-accent-text-dark);
  font-size: 11px;
}

.template-page-body .template-outcome-grid h3 {
  color: #fff;
  font-size: clamp(20px, 2vw, 25px);
}

.template-page-body .template-outcome-grid p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

/* Real-screen gallery */
.template-page-body .template-gallery {
  background: linear-gradient(180deg, #f6f7ff, #fff 82%);
}

.template-page-body .template-gallery__grid {
  gap: 16px;
}

.template-page-body .template-gallery-card {
  min-width: 0;
  padding: 10px;
  gap: 10px;
  border: 1px solid var(--template-2026-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(42, 35, 92, 0.08);
}

.template-page-body .template-gallery-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef0f7;
  border-radius: 14px;
}

.template-page-body .template-gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.template-page-body .template-gallery-card__media i {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 11px;
}

.template-page-body .template-gallery-card__copy {
  min-height: 58px;
  padding: 8px 6px 6px;
  align-items: center;
}

.template-page-body .template-gallery-card__copy b,
.template-page-body .template-gallery-card__copy em {
  color: #68657a;
  font-size: 11px;
  line-height: 1.35;
}

.template-page-body .template-gallery-card__copy > span {
  color: var(--template-2026-ink);
  font-size: 13px;
  font-weight: 730;
  line-height: 1.45;
}

/* Compact AI build story */
.template-page-body .template-story {
  background:
    radial-gradient(
      circle at 10% 16%,
      rgba(255, 201, 128, 0.14),
      transparent 24rem
    ),
    #fff;
}

.template-page-body .template-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.template-page-body .template-timeline li {
  position: relative;
  display: block;
  min-height: 220px;
  padding: 28px 26px 24px 80px;
  border: 1px solid var(--template-2026-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 46px rgba(42, 35, 92, 0.07);
}

.template-page-body .template-timeline li:last-child {
  border-bottom: 1px solid var(--template-2026-line);
}

.template-page-body .template-timeline li > span {
  position: absolute;
  top: 26px;
  left: 24px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #4d40bf;
  background: #efedff;
  border: 1px solid rgba(103, 87, 233, 0.18);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 850;
}

.template-page-body .template-timeline li > div {
  display: block;
}

.template-page-body .template-timeline h3 {
  margin: 0 0 10px;
  color: var(--template-2026-ink);
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.15;
}

.template-page-body .template-timeline p {
  color: var(--template-2026-muted);
  font-size: 15px;
  line-height: 1.62;
}

.template-page-body .template-timeline small {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 7px 10px;
  grid-column: auto;
  color: #1d654f;
  background: #e8f7f1;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

/* Build with AI and launch */
.template-page-body .template-setup {
  color: #fff;
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(126, 95, 255, 0.24),
      transparent 25rem
    ),
    radial-gradient(
      circle at 10% 84%,
      rgba(49, 104, 225, 0.18),
      transparent 26rem
    ),
    #121124;
}

.template-page-body .template-setup :is(h2, h3, strong) {
  color: #fff;
}

.template-page-body .template-setup p {
  color: #cbc9dc;
}

.template-page-body .template-setup__intro {
  max-width: 860px;
  margin-bottom: 30px;
}

.template-page-body .template-setup__intro .section-index {
  color: var(--template-accent-text-dark);
  font-size: 12px;
}

.template-page-body .template-setup__intro h2 {
  margin: 14px 0 0;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.04;
}

.template-page-body .template-setup__intro > p:last-child {
  max-width: 68ch;
  margin: 18px 0 0;
  color: #ceccdd;
  font-size: 16px;
  line-height: 1.65;
}

.template-page-body .template-setup__overview {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 12px;
}

.template-page-body .template-setup__agents {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.template-page-body .template-setup__agents > p {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.template-page-body .template-setup__agents > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-page-body .template-setup__agents > div > span {
  display: inline-flex;
  min-height: 42px;
  padding: 8px 11px;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 750;
}

.template-page-body .template-setup__agents img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.template-page-body .template-setup__agent-any {
  color: #dedbff !important;
  border-style: dashed !important;
}

.template-page-body .template-launch-roadmap {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.template-page-body .template-launch-roadmap > li {
  position: relative;
  min-width: 0;
  min-height: 124px;
  padding: 18px 16px 16px 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.template-page-body .template-launch-roadmap > li > span {
  position: absolute;
  top: 18px;
  left: 16px;
  color: var(--template-accent-text-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 850;
}

.template-page-body .template-launch-roadmap strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 14px;
}

.template-page-body .template-launch-roadmap p {
  margin: 0;
  color: #bdbacf;
  font-size: 12px;
  line-height: 1.5;
}

.template-page-body .template-setup__readiness {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.template-page-body .template-setup__readiness > p {
  margin: 0 0 8px;
  color: var(--template-accent-text-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-page-body .template-setup__readiness h3 {
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 1.2;
}

.template-page-body .template-setup__readiness ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.template-page-body .template-setup__readiness li {
  position: relative;
  padding-left: 18px;
  color: #d3d1df;
  font-size: 12px;
  line-height: 1.45;
}

.template-page-body .template-setup__readiness li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: #60d3aa;
  border-radius: 50%;
}

.template-page-body .template-setup__steps {
  gap: 14px;
}

.template-page-body .template-setup-step {
  padding: clamp(24px, 3vw, 36px);
  grid-template-columns: 52px minmax(240px, 0.78fr) minmax(340px, 1.22fr);
  gap: clamp(20px, 3vw, 40px);
  border-radius: 22px;
}

.template-page-body .template-setup-step__number {
  font-size: 22px;
}

.template-page-body .template-setup-step__label {
  color: var(--template-accent-text-dark);
  font-size: 11px;
  line-height: 1.4;
}

.template-page-body .template-setup-step h3 {
  font-size: clamp(20px, 2vw, 25px);
}

.template-page-body
  .template-setup-step__copy
  > p:not(.template-setup-step__label) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.template-page-body .template-setup-step .button {
  min-height: 44px;
}

.template-page-body .template-code-window {
  overflow: hidden;
  border-radius: 16px;
}

.template-page-body .template-code-window .code-window__bar {
  min-height: 46px;
}

.template-page-body .template-code-window .code-window__bar span,
.template-page-body .template-code-window .code-window__bar button {
  font-size: 11px;
}

.template-page-body .template-code-window .code-window__bar button {
  min-height: 36px;
  padding-inline: 12px;
}

.template-page-body .template-code-window pre {
  font-size: 12px;
  line-height: 1.65;
}

/* Cloudflare handoff */
.template-page-body .template-cloudflare {
  color: var(--template-2026-ink);
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 155, 54, 0.13),
      transparent 24rem
    ),
    #f7f8fc;
}

.template-page-body .template-cloudflare .section-heading h2,
.template-page-body .template-cloudflare h3,
.template-page-body .template-cloudflare strong {
  color: var(--template-2026-ink);
}

.template-page-body .template-cloudflare .section-heading a {
  color: #5141bd;
  text-underline-offset: 3px;
}

.template-page-body .template-prerequisite {
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1.22fr);
  padding: clamp(24px, 3.5vw, 38px);
  border-color: var(--template-2026-line);
  box-shadow: 0 18px 52px rgba(42, 35, 92, 0.08);
}

.template-page-body .template-prerequisite > div > span,
.template-page-body .template-cloudflare-step summary small,
.template-page-body .template-cloudflare-step__no-image span {
  color: #6755c7;
  font-size: 11px;
  line-height: 1.35;
}

.template-page-body .template-prerequisite p {
  color: var(--template-2026-muted);
  font-size: 15px;
}

.template-page-body .template-prerequisite a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #5141bd;
  font-size: 13px;
}

.template-page-body .template-prerequisite img {
  object-fit: contain;
  background: #f1f2f7;
}

.template-page-body .template-cloudflare-step {
  border-color: var(--template-2026-line);
  box-shadow: 0 12px 38px rgba(42, 35, 92, 0.06);
}

.template-page-body .template-cloudflare-step summary {
  min-height: 86px;
}

.template-page-body .template-cloudflare-step summary > span {
  color: var(--template-accent-contrast);
  background: var(--template-accent);
}

.template-page-body .template-cloudflare-step summary strong {
  font-size: clamp(18px, 1.5vw, 22px);
}

.template-page-body .template-cloudflare-step__copy p,
.template-page-body .template-cloudflare-step__copy li {
  color: var(--template-2026-muted);
}

.template-page-body .template-cloudflare-step__images img {
  height: 100%;
  min-height: 180px;
  object-fit: contain;
  background: #f2f3f8;
}

.template-page-body .template-cloudflare-step figcaption {
  color: #666479;
  font-size: 11px;
}

.template-page-body .template-cloudflare-step__no-image p {
  color: var(--template-2026-muted);
  font-size: 14px;
}

/* Closing CTA and footer */
.template-page-body .template-final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 116px) 0;
  color: var(--template-2026-ink);
  background:
    radial-gradient(
      circle at 10% 18%,
      rgba(255, 194, 105, 0.25),
      transparent 22rem
    ),
    radial-gradient(
      circle at 90% 82%,
      rgba(112, 88, 236, 0.2),
      transparent 26rem
    ),
    linear-gradient(135deg, #fff9ef, #f2f1ff);
}

.template-page-body .template-final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.template-page-body .template-final-cta__inner > p {
  margin-bottom: 18px;
  color: #5a46c5;
  font-size: 12px;
}

.template-page-body .template-final-cta h2 {
  color: var(--template-2026-ink);
  font-size: clamp(38px, 5vw, 62px);
}

.template-page-body .template-final-cta__inner > span {
  display: block;
  max-width: 62ch;
  margin: -16px auto 30px;
  color: var(--template-2026-muted);
  font-size: 16px;
  line-height: 1.65;
}

.template-page-body .template-final-cta .template-button--accent {
  min-height: 48px;
  color: #fff;
  background: var(--template-2026-ink);
  border-color: var(--template-2026-ink);
}

.template-page-body .template-final-cta .button--ghost {
  min-height: 48px;
  color: var(--template-2026-ink);
  border-color: rgba(17, 17, 38, 0.2);
  background: rgba(255, 255, 255, 0.6);
}

.template-page-body .template-footer {
  color: #d9d7e7;
  background: #11101f;
}

.template-page-body .template-footer .footer__brand span {
  color: #bdbaca;
  font-size: 13px;
  line-height: 1.55;
}

.template-page-body .template-footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #f3f2fb;
  font-size: 13px;
}

.template-page-body .template-footer > .footer__inner > p {
  color: #aaa7bb;
  font-size: 12px;
}

/* Responsive continuity */
@media (max-width: 1080px) {
  .template-page-body .template-hero__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
    gap: 36px;
  }

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

  .template-page-body .template-setup-step {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .template-page-body .template-setup-step .template-code-window {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .template-page-body .template-hero {
    padding-top: 108px;
  }

  .template-page-body .template-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .template-page-body .template-hero__copy,
  .template-page-body .template-hero__visual,
  .template-page-body .template-browser {
    width: 100%;
    max-width: 100%;
  }

  .template-page-body .template-browser {
    transform: none;
  }

  .template-page-body .section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .template-page-body .template-outcomes__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .template-page-body .template-gallery-card {
    grid-column: span 6;
  }

  .template-page-body .template-gallery-card--wide {
    grid-column: span 12;
  }

  .template-page-body .template-setup__overview,
  .template-page-body .template-prerequisite {
    grid-template-columns: minmax(0, 1fr);
  }

  .template-page-body .template-prerequisite {
    gap: 22px;
  }

  .template-page-body .template-cloudflare-step__body {
    padding: 4px 22px 24px;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 760px) {
  .template-page-body .page-shell {
    width: min(100% - 32px, 1200px);
  }

  .template-page-body .section {
    padding-block: 58px;
  }

  .template-page-body .template-hero {
    padding-block: 100px 60px;
  }

  .template-page-body .template-hero h1 {
    max-width: 100%;
    font-size: clamp(38px, 11.6vw, 52px);
  }

  .template-page-body .template-hero__lead {
    font-size: 16px;
  }

  .template-page-body .template-hero__note {
    position: static;
    width: 100%;
    margin-top: 10px;
    transform: none;
  }

  .template-page-body .template-stats,
  .template-page-body .template-capability-grid,
  .template-page-body .template-outcome-grid,
  .template-page-body .template-timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .template-page-body .template-stats > span {
    min-height: 78px;
  }

  .template-page-body .template-outcome-grid article {
    min-height: 360px;
  }

  .template-page-body .template-gallery__grid {
    display: flex;
    width: 100%;
    padding-bottom: 12px;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
  }

  .template-page-body .template-gallery-card,
  .template-page-body .template-gallery-card--wide {
    flex: 0 0 min(84vw, 410px);
    grid-column: auto;
    scroll-snap-align: start;
  }

  .template-page-body .template-gallery-card__media {
    aspect-ratio: 4 / 3;
  }

  .template-page-body
    .template-gallery-card[data-type="mobile"]
    .template-gallery-card__media {
    aspect-ratio: 9 / 14;
  }

  .template-page-body .template-launch-roadmap {
    grid-template-columns: minmax(0, 1fr);
  }

  .template-page-body .template-setup-step {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .template-page-body .template-setup-step .template-code-window {
    grid-column: 1 / -1;
  }

  .template-page-body .template-cloudflare-step summary {
    min-height: 76px;
    padding: 14px 16px;
    grid-template-columns: 44px minmax(0, 1fr) 34px;
    gap: 10px;
  }

  .template-page-body .template-cloudflare-step summary > span {
    width: 40px;
    height: 40px;
  }

  .template-page-body .template-cloudflare-step__images {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .template-page-body .page-shell {
    width: min(100% - 24px, 1200px);
  }

  .template-page-body .template-hero {
    padding-top: 94px;
  }

  .template-page-body .template-hero .eyebrow span {
    width: auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .template-page-body .template-hero__actions {
    flex-direction: column;
  }

  .template-page-body .template-hero__actions .button {
    width: 100%;
  }

  .template-page-body .template-link-strip a {
    grid-template-columns: minmax(0, 1fr) 18px;
    padding: 12px;
  }

  .template-page-body .template-link-strip small {
    grid-column: 1;
  }

  .template-page-body .template-link-strip strong {
    grid-column: 1;
  }

  .template-page-body .template-link-strip a > span {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .template-page-body .template-capability-card {
    min-height: 0;
  }

  .template-page-body .template-outcomes__intro {
    padding: 18px;
  }

  .template-page-body .template-outcome-grid article {
    min-height: 340px;
  }

  .template-page-body .template-outcome-grid article > div {
    padding: 22px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px 10px;
  }

  .template-page-body .template-timeline li {
    min-height: 0;
    padding: 76px 20px 22px;
  }

  .template-page-body .template-timeline li > span {
    top: 20px;
    left: 20px;
  }

  .template-page-body .template-setup__agents > div > span {
    flex: 1 1 calc(50% - 8px);
  }

  .template-page-body .template-setup-step {
    display: block;
  }

  .template-page-body .template-setup-step__number {
    display: block;
    margin-bottom: 14px;
  }

  .template-page-body .template-setup-step .template-code-window {
    margin-top: 22px;
  }

  .template-page-body .template-setup-step .button-row {
    flex-direction: column;
  }

  .template-page-body .template-setup-step .button {
    width: 100%;
  }

  .template-page-body .template-code-window .code-window__bar {
    align-items: stretch;
  }

  .template-page-body .template-code-window .code-window__bar button {
    min-height: 40px;
  }

  .template-page-body .template-final-cta .button-row {
    flex-direction: column;
  }

  .template-page-body .template-final-cta .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .template-page-body .page-shell {
    width: min(100% - 20px, 1200px);
  }

  .template-page-body .template-hero h1 {
    font-size: 37px;
  }

  .template-page-body .template-setup__agents > div > span {
    flex-basis: 100%;
  }
}

@media (hover: none) {
  .template-page-body .template-gallery-card__media i {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .template-page-body *,
  .template-page-body *::before,
  .template-page-body *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .template-page-body .template-browser,
  .template-page-body .template-hero__note {
    transform: none !important;
  }
}

/* Final accessibility sizing for interactive template chrome. */
.template-page-body .template-nav .cs-brand {
  min-height: 44px;
}

.template-page-body .template-link-strip small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.template-page-body .template-code-window .code-window__bar button {
  min-height: 44px;
}
/* Lodera 2026: one quiet, connected template experience. */
.template-page-body .template-nav .cs-brand {
  min-width: 0;
}

.template-page-body .template-nav .cs-brand__home,
.template-page-body .template-nav .cs-brand__product {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}

.template-page-body .template-nav .cs-brand__home {
  flex: 0 1 auto;
}

.template-page-body .template-nav .cs-brand__home img {
  display: block;
  width: clamp(108px, 10vw, 128px);
  max-width: 100%;
  height: auto;
}

.template-page-body .template-nav .cs-brand__product {
  min-width: 118px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-inline: 14px;
}

.template-page-body .template-nav .cs-brand__product strong {
  color: var(--template-2026-ink);
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.025em;
}

.template-page-body .template-nav .cs-brand__product small {
  margin-block-start: 4px;
  color: #655a83;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-page-body .template-breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 44px;
  padding-block-start: 104px;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #716b83;
  font-size: 12.5px;
  line-height: 1.4;
}

.template-page-body .template-breadcrumb a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: #352f4c;
  font-weight: 700;
  text-decoration: none;
}

.template-page-body .template-breadcrumb a:hover {
  color: var(--template-2026-violet);
}

.template-page-body .template-breadcrumb svg {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  color: #aaa4bd;
}

.template-page-body .template-breadcrumb [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  color: #777087;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-page-body .template-hero {
  padding-block-start: 0;
}

.template-page-body .template-hero__grid {
  padding-block-start: clamp(24px, 4vw, 52px);
}

.template-page-body .template-link-strip {
  display: grid;
  gap: 9px;
}

.template-page-body .template-link-strip a {
  display: grid;
  min-height: 58px;
  grid-template-columns: 38px minmax(112px, 0.42fr) minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 16px;
}

.template-page-body .template-link-strip__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #5f50d8;
  border: 1px solid #dfdafb;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #f1efff);
}

.template-page-body .template-link-strip__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.template-page-body .template-link-strip__arrow {
  color: #47405c;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.template-page-body .template-link-strip small {
  color: #716a84;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.template-page-body .template-link-strip strong {
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.35;
}

.template-page-body .template-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.template-page-body .template-stats > span,
.template-page-body .template-stats > span:first-child,
.template-page-body .template-stats > span:last-child {
  display: flex;
  min-height: 112px;
  padding: 22px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(55, 47, 101, 0.12);
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(247, 246, 255, 0.9)
  );
  box-shadow: 0 18px 42px -34px rgba(31, 25, 70, 0.45);
}

.template-page-body .template-stats strong {
  color: var(--template-2026-ink);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 780;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.template-page-body .template-stats small {
  max-width: 18ch;
  color: #615a73;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.template-page-body .section {
  padding-block: clamp(68px, 7vw, 96px);
}

.template-page-body .template-features,
.template-page-body .template-outcomes,
.template-page-body .template-gallery,
.template-page-body .template-story,
.template-page-body .template-setup,
.template-page-body .template-cloudflare {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.template-page-body .template-features {
  background:
    radial-gradient(
      circle at 8% 8%,
      rgba(255, 199, 44, 0.1),
      transparent 26rem
    ),
    linear-gradient(180deg, #fff, #fbfaff);
}

.template-page-body .template-outcomes,
.template-page-body .template-story {
  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(103, 87, 233, 0.09),
      transparent 28rem
    ),
    linear-gradient(180deg, #fbfaff, #fff);
}

.template-page-body .template-gallery {
  background:
    radial-gradient(
      circle at 5% 82%,
      rgba(49, 95, 231, 0.08),
      transparent 28rem
    ),
    #fff;
}

.template-page-body .template-setup {
  color: var(--template-2026-ink);
  background:
    radial-gradient(
      circle at 92% 16%,
      rgba(146, 83, 234, 0.11),
      transparent 31rem
    ),
    radial-gradient(
      circle at 4% 88%,
      rgba(255, 199, 44, 0.08),
      transparent 25rem
    ),
    linear-gradient(180deg, #fbfaff, #fff);
}

.template-page-body .template-cloudflare {
  background:
    radial-gradient(
      circle at 88% 70%,
      rgba(244, 129, 32, 0.07),
      transparent 30rem
    ),
    linear-gradient(180deg, #fff, #f8f7ff);
}

.template-page-body .section-heading--simple {
  display: grid;
  max-width: 860px;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.template-page-body .section-heading--simple > div {
  grid-column: 1 / -1;
}

.template-page-body .section-heading--simple h2 {
  max-width: 760px;
  font-size: clamp(2.1rem, 4.2vw, 3.55rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.template-page-body .section-heading--simple p {
  max-width: 68ch;
  color: var(--template-2026-muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.65;
}

.template-page-body .template-gallery__grid {
  grid-auto-rows: auto;
}

.template-page-body .template-gallery-card {
  min-width: 0;
}

.template-page-body .template-gallery-card__media,
.template-page-body .template-gallery-card--wide .template-gallery-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ecebf4;
}

.template-page-body .template-gallery-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.template-page-body .showcase-dialog__media img,
.template-page-body [data-showcase-dialog] [data-showcase-image] {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.template-page-body .template-story__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-block-end: 36px;
}

.template-page-body .template-story__intro h2,
.template-page-body .template-setup__intro h2 {
  margin: 8px 0 0;
  color: var(--template-2026-ink);
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.template-page-body .template-story__intro > p,
.template-page-body .template-setup__intro > p:last-child {
  margin: 0;
  color: var(--template-2026-muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.template-page-body .template-story__kicker,
.template-page-body .template-setup__kicker {
  margin: 0;
  color: #6254db;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-page-body .template-story-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: clip;
  list-style: none;
  border: 1px solid var(--template-2026-line);
  border-radius: 28px;
  background: var(--template-2026-line);
  box-shadow: 0 24px 70px rgba(40, 30, 88, 0.08);
}

.template-page-body .template-story-flow li {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 190px;
  padding: 26px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.96);
}

.template-page-body .template-story-flow li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  inset-block-start: 49px;
  inset-inline-end: -9px;
  width: 17px;
  height: 2px;
  background: linear-gradient(90deg, #6757e8, #b980f4);
  content: "";
}

.template-page-body .template-story-flow__icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-block-end: auto;
  place-items: center;
  color: #6254db;
  border: 1px solid #ddd8fb;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f1efff);
}

.template-page-body .template-story-flow__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.template-page-body .template-story-flow__step {
  margin-block: 20px 7px;
  color: #8a82a0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.template-page-body .template-story-flow strong {
  color: var(--template-2026-ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.template-page-body .template-story-flow small {
  margin-block-start: 6px;
  color: #6d667f;
  font-size: 0.86rem;
  line-height: 1.45;
}

.template-page-body .template-story-log,
.template-page-body .template-setup-advanced {
  margin-block-start: 18px;
  overflow: clip;
  border: 1px solid var(--template-2026-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.template-page-body .template-story-log > summary,
.template-page-body .template-setup-advanced > summary {
  display: flex;
  min-height: 68px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--template-2026-ink);
  cursor: pointer;
  list-style: none;
  border-radius: inherit;
}

.template-page-body .template-story-log > summary::-webkit-details-marker,
.template-page-body .template-setup-advanced > summary::-webkit-details-marker {
  display: none;
}

.template-page-body .template-story-log > summary > span,
.template-page-body .template-setup-advanced > summary > span {
  display: grid;
  gap: 3px;
}

.template-page-body .template-story-log > summary small,
.template-page-body .template-setup-advanced > summary small {
  color: #6d667f;
  font-size: 0.82rem;
  font-weight: 400;
}

.template-page-body .template-story-log > summary svg,
.template-page-body .template-setup-advanced > summary svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.template-page-body .template-story-log[open] > summary svg,
.template-page-body .template-setup-advanced[open] > summary svg {
  transform: rotate(180deg);
}

.template-page-body .template-story-log > summary:focus-visible,
.template-page-body .template-setup-advanced > summary:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.3);
  outline-offset: 3px;
}

.template-page-body .template-story-log .template-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 8px 18px 20px;
}

.template-page-body .template-story-log .template-timeline li {
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--template-2026-line);
  border-radius: 16px;
  background: #fbfaff;
}

.template-page-body .template-story-log .template-timeline li > span {
  position: static;
  display: grid;
  width: 38px;
  height: 38px;
  margin-block-end: 14px;
  place-items: center;
  color: #5d50d3;
  border-radius: 12px;
  background: #ece9ff;
  font-size: 0.72rem;
}

.template-page-body .template-story-log .template-timeline li > div {
  padding: 0;
}

.template-page-body .template-story-log .template-timeline small {
  display: inline-flex;
  margin-block-start: 14px;
  padding: 7px 9px;
  color: #356752;
  border-radius: 8px;
  background: #e7f6ef;
  font-size: 0.74rem;
  line-height: 1.35;
}

.template-page-body .template-setup__intro {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.template-page-body .template-setup__intro .template-setup__kicker {
  margin-block-end: 8px;
}

.template-page-body .template-setup__intro > p:last-child {
  grid-column: auto;
  max-width: 640px;
  margin: 18px auto 0;
}

.template-page-body .template-setup__handoff {
  display: grid;
  gap: 26px;
  margin-block-start: 34px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--template-2026-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 60px rgba(40, 30, 88, 0.06);
}

.template-page-body .template-setup__agents {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.template-page-body .template-setup__agents > p {
  margin: 0;
  color: var(--template-2026-ink);
  font-size: 0.95rem;
  font-weight: 680;
}

.template-page-body .template-setup__agent-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.template-page-body .template-setup__agent-list > span {
  display: inline-flex;
  min-height: 40px;
  padding: 7px 12px;
  align-items: center;
  gap: 8px;
  color: var(--template-2026-ink);
  border: 1px solid var(--template-2026-line);
  border-radius: 12px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 650;
}

.template-page-body .template-setup__agent-list img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.template-page-body .template-setup__agent-list .template-setup__agent-any {
  color: #5c4ed4;
  background: #f3f1ff;
}

.template-page-body .template-launch-roadmap.template-setup__path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.template-page-body .template-launch-roadmap.template-setup__path li {
  display: flex;
  min-width: 0;
  padding: 14px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--template-2026-line);
  border-radius: 16px;
  background: #fff;
}

.template-page-body .template-launch-roadmap.template-setup__path li > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: #5d50d3;
  border-radius: 11px;
  background: #efedff;
  font-size: 0.7rem;
  font-weight: 750;
}

.template-page-body .template-launch-roadmap.template-setup__path li > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.template-page-body .template-launch-roadmap.template-setup__path strong {
  color: var(--template-2026-ink);
  font-size: 0.88rem;
}

.template-page-body .template-launch-roadmap.template-setup__path small {
  color: #6d667f;
  font-size: 0.75rem;
}

.template-page-body .template-setup__steps.template-setup__steps--minimal {
  display: grid;
  gap: 18px;
  margin-block-start: 20px;
}

.template-page-body .template-setup-step.template-setup-primary {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 4vw, 52px);
  margin: 0;
  padding: clamp(22px, 4vw, 44px);
  align-items: center;
  color: #fff;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, #151129, #211a42 58%, #332270);
  box-shadow: 0 28px 80px rgba(25, 18, 63, 0.2);
}

.template-page-body .template-setup-primary__copy h3 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.template-page-body .template-setup-primary__copy > p:last-of-type {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.template-page-body .template-setup-primary__label {
  margin: 0;
  color: #cabfff;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-page-body .template-setup-primary .button-row {
  margin-block-start: 22px;
}

.template-page-body .template-setup-primary .button-row .button {
  min-height: 44px;
}

.template-page-body .template-setup-primary .template-code-window {
  min-width: 0;
  margin: 0;
}

.template-page-body .template-setup-advanced {
  margin-block-start: 0;
}

.template-page-body .template-setup-advanced__content {
  padding: 0 18px 18px;
  border-block-start: 1px solid var(--template-2026-line);
}

.template-page-body .template-setup-advanced__intro {
  margin: 18px 0;
  color: #615a74;
  line-height: 1.6;
}

.template-page-body .template-setup-advanced__intro a {
  color: #5547cf;
  font-weight: 650;
}

.template-page-body .template-setup-advanced__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.template-page-body .template-setup-step.template-setup-advanced__step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--template-2026-line);
  border-radius: 18px;
  background: #fbfaff;
  box-shadow: none;
}

.template-page-body .template-setup-advanced__heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.template-page-body .template-setup-advanced__heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: #5d50d3;
  border-radius: 11px;
  background: #ece9ff;
  font-size: 0.72rem;
  font-weight: 750;
}

.template-page-body .template-setup-advanced__heading h3 {
  margin: 0;
  color: var(--template-2026-ink);
  font-size: 1.02rem;
}

.template-page-body .template-setup-advanced__heading p {
  margin: 5px 0 0;
  color: #6d667f;
  font-size: 0.86rem;
  line-height: 1.5;
}

.template-page-body .template-setup-advanced__step .template-code-window {
  min-width: 0;
  margin: 0;
}

.template-page-body .template-cloudflare__intro {
  max-width: 780px;
}

.template-page-body .template-cloudflare-step__figure {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin: 0;
}

.template-page-body .template-cloudflare-step__image-trigger {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  grid-template-rows: minmax(0, 1fr) auto;
  color: var(--template-2026-ink);
  cursor: zoom-in;
  border: 1px solid var(--template-2026-line);
  border-radius: 14px;
  background: #f5f5fb;
  font: inherit;
  text-align: start;
}

.template-page-body .template-cloudflare-step__image-trigger img,
.template-page-body
  .template-cloudflare-step__images
  .template-cloudflare-step__image-trigger
  img {
  display: block;
  width: 100%;
  height: clamp(160px, 16vw, 230px);
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: top center;
}

.template-page-body .template-cloudflare-step__image-action {
  display: flex;
  min-height: 38px;
  padding: 8px 12px;
  align-items: center;
  justify-content: space-between;
  color: #5143c7;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.template-page-body .template-cloudflare-step__figure figcaption {
  position: static;
  margin: 0;
  padding: 0 2px;
  color: var(--template-2026-muted);
  font-size: 12px;
  line-height: 1.45;
}

.template-page-body .template-cloudflare-step__image-trigger:focus-visible {
  outline: 3px solid rgba(47, 94, 229, 0.48);
  outline-offset: 3px;
}

.template-page-body .template-cloudflare-step__no-image--handoff {
  min-width: 0;
  padding: clamp(16px, 3vw, 26px);
  overflow: hidden;
  border: 1px solid var(--template-2026-line);
  border-radius: 20px;
  background: linear-gradient(145deg, #fbfaff, #f1efff);
}

.template-page-body .template-cloudflare-step__no-image--handoff > span {
  color: #6558d8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-page-body .template-cloudflare-step__no-image--handoff > p {
  max-width: 62ch;
  margin: 6px auto 0;
  color: var(--template-2026-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.template-page-body .template-cloudflare-handoff {
  display: block;
  width: 100%;
  max-height: 220px;
  height: auto;
  margin: 14px 0 10px;
}

@media (prefers-reduced-motion: no-preference) {
  .template-page-body .template-cloudflare-handoff__flow {
    animation: templateHandoffDash 9s linear infinite;
  }

  .template-page-body .template-cloudflare-handoff__orbit {
    transform-origin: 280px 110px;
    animation: templateHandoffOrbit 12s linear infinite;
  }

  .template-page-body .template-cloudflare-handoff__pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: templateHandoffPulse 2.4s ease-in-out infinite;
  }
}

@keyframes templateHandoffDash {
  to {
    stroke-dashoffset: -76;
  }
}

@keyframes templateHandoffOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes templateHandoffPulse {
  50% {
    opacity: 0.72;
    transform: scale(1.22);
  }
}

@media (max-width: 900px) {
  .template-page-body .template-breadcrumb {
    padding-block-start: 96px;
  }

  .template-page-body .template-link-strip a {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
  }

  .template-page-body .template-link-strip small {
    grid-column: 2;
  }

  .template-page-body .template-link-strip strong {
    grid-column: 2;
  }

  .template-page-body .template-link-strip__arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .template-page-body .template-story__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .template-page-body .template-story-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-page-body .template-story-flow li {
    min-height: 165px;
    padding: 20px;
  }

  .template-page-body .template-story-flow li::after {
    display: none;
  }

  .template-page-body .template-setup__agents {
    align-items: flex-start;
    flex-direction: column;
  }

  .template-page-body .template-setup__agent-list {
    justify-content: flex-start;
  }

  .template-page-body .template-launch-roadmap.template-setup__path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-page-body .template-setup-step.template-setup-primary {
    grid-template-columns: minmax(0, 1fr);
  }

  .template-page-body .template-setup-advanced__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .template-page-body .template-nav .cs-brand__home img {
    width: 106px;
  }

  .template-page-body .template-nav .cs-brand__product {
    min-width: 100px;
    padding-inline: 10px;
  }

  .template-page-body .template-nav .cs-brand__product strong {
    font-size: 15px;
  }

  .template-page-body .template-nav .cs-brand__product small {
    font-size: 8.5px;
  }

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

  .template-page-body .template-stats > span,
  .template-page-body .template-stats > span:first-child,
  .template-page-body .template-stats > span:last-child {
    min-height: 104px;
    padding: 18px;
  }

  .template-page-body .section {
    padding-block: clamp(48px, 12vw, 62px);
  }

  .template-page-body .template-story-log .template-timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .template-page-body .template-gallery__grid {
    scroll-padding-inline: 18px;
  }
}

@media (max-width: 520px) {
  .template-page-body .template-breadcrumb {
    padding-block-start: 86px;
    font-size: 11.5px;
  }

  .template-page-body .template-hero__grid {
    padding-block-start: 18px;
  }

  .template-page-body .template-link-strip a {
    min-height: 68px;
    padding: 10px;
  }

  .template-page-body .template-story-flow li {
    min-height: 156px;
    padding: 17px;
  }

  .template-page-body .template-story-flow__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .template-page-body .template-story-flow__step {
    margin-block-start: 16px;
  }

  .template-page-body .template-setup__handoff {
    padding: 18px;
  }

  .template-page-body .template-setup__agent-list > span {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }

  .template-page-body .template-launch-roadmap.template-setup__path {
    grid-template-columns: minmax(0, 1fr);
  }

  .template-page-body .template-setup-step.template-setup-primary {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .template-page-body .template-setup-primary .button-row {
    display: grid;
  }

  .template-page-body .template-setup-primary .button-row .button {
    width: 100%;
  }

  .template-page-body .template-cloudflare-step__image-trigger img,
  .template-page-body
    .template-cloudflare-step__images
    .template-cloudflare-step__image-trigger
    img {
    height: 170px;
  }

  .template-page-body .template-cloudflare-step__no-image--handoff {
    padding: 14px;
  }
}

@media (max-width: 390px) {
  .template-page-body .template-nav .cs-brand__home img {
    width: 94px;
  }

  .template-page-body .template-nav .cs-brand__product {
    min-width: 88px;
    padding-inline: 8px;
  }

  .template-page-body .template-nav .cs-brand__product small {
    display: none;
  }

  .template-page-body .template-story-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .template-page-body .template-story-flow li {
    min-height: 142px;
  }

  .template-page-body .template-stats strong {
    font-size: 1.9rem;
  }

  .template-page-body .template-stats small {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .template-page-body .template-story-log > summary svg,
  .template-page-body .template-setup-advanced > summary svg,
  .template-page-body .template-cloudflare-handoff__flow,
  .template-page-body .template-cloudflare-handoff__orbit,
  .template-page-body .template-cloudflare-handoff__pulse {
    animation: none !important;
    transition: none;
  }
}

/* Resolve legacy dark setup selector specificity in the light handoff. */
.template-page-body .template-setup__agents .template-setup__agent-list > span {
  color: var(--template-2026-ink);
  border-color: var(--template-2026-line);
  background: #fff;
}

.template-page-body
  .template-setup__agents
  .template-setup__agent-list
  .template-setup__agent-any {
  color: #5c4ed4 !important;
  border-color: #dcd7fb !important;
  border-style: solid !important;
  background: #f3f1ff;
}

.template-page-body .template-launch-roadmap.template-setup__path > li {
  min-height: 0;
}

.template-page-body .template-launch-roadmap.template-setup__path > li > span {
  position: static;
  inset: auto;
}
