.agent-page { background: #f8fafc; overflow-x: clip; }
.agent-page h1, .agent-page h2, .agent-page p { margin-top: 0; }
.agent-page a:focus-visible, .agent-page button:focus-visible { outline: 3px solid #7c3aed; outline-offset: 5px; }
.kit-hero { position: relative; isolation: isolate; overflow: hidden; padding: 140px 40px 64px; background: #eaf4fc; border-block: 1px solid var(--line); }
.hero-inner { position: relative; z-index: 2; max-width: 1040px; margin: auto; }
.kit-label { font: 500 12px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 24px; color: #545078; }
.agent-page h1 { max-width: 980px; font-size: clamp(32px, 4.3vw, 58px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 26px; text-wrap: balance; }
.kit-intro { max-width: 720px; font-size: 19px; line-height: 1.65; margin-bottom: 22px; color: #334155; }
.risk-line { max-width: 800px; font-size: 13px; line-height: 1.6; color: #475569; margin-bottom: 0; }
.kit-content { max-width: 1120px; margin: auto; padding-inline: 40px; }
.kit-section { display: grid; grid-template-columns: 215px minmax(0,1fr); gap: 55px; padding: 60px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.agent-page h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; margin: 2px 0 0; }
.section-body { min-width: 0; }
.section-body > :last-child { margin-bottom: 0; }
.section-body p { font-size: 16px; line-height: 1.8; color: #334155; margin-bottom: 22px; }
.section-body strong { color: var(--ink); font-weight: 650; }
.section-body > p:has(> strong:first-child) { margin-bottom: 24px; }
.steps { margin: 0; padding-left: 24px; }
.steps li { padding-left: 8px; margin-bottom: 30px; }
.steps li:last-child { margin-bottom: 0; }
.steps li::marker { font: 500 14px var(--font-mono); color: #65519b; }
.steps li > p { margin-bottom: 12px; }
.section-body p code { font: .9em var(--font-mono); background: #e9edf4; padding: 2px 4px; border-radius: 3px; }
.code-block { margin: 18px 0 28px; border: 1px solid #273852; border-radius: 12px; background: #111d31; overflow: clip; }
.code-toolbar { padding: 6px 10px 6px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #31405b; font: 11px var(--font-mono); color: #c2d5ef; }
.copy-button { min-width: 64px; min-height: 40px; padding: 6px 12px; border: 1px solid #526887; border-radius: 7px; background: #243754; color: #e8f2ff; cursor: pointer; font-size: 12px; font-weight: 600; transition: background 150ms, border-color 150ms; }
.copy-button:hover { background: #344c70; border-color: #a9d1f0; }
.copy-button.is-copied { background: #ddeee6; border-color: #93bba6; color: #234d39; }
.code-block pre { margin: 0; padding: 20px; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; font: 12.5px/1.8 var(--font-mono); color: #d6e8ff; }
.code-block code { font: inherit; }
.propr-action { margin-top: 32px; }
.offer-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 56px; padding: 15px 24px; background: #d6c7f8; color: #24163d; border: 1px solid #baa1eb; border-radius: 999px; font-weight: 650; transition: background 180ms, transform 180ms; }
.offer-button:hover { background: #c8b3f2; transform: translateY(-2px); }
.section-body .disclosure { font-size: 13px; line-height: 1.65; max-width: 560px; margin: 14px 0 0; }
.kit-footer { max-width: 1120px; padding: 40px 40px 48px; margin: auto; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 28px; font-size: 13px; color: #526079; }
.footer-row a { text-decoration: underline; text-underline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 12px; background: #fff; z-index: 110; }
.skip-link:focus { top: 12px; }
@media (max-width: 760px) {
  .kit-hero { padding: 104px 20px 32px; }
  .kit-label { font-size: 11px; margin-bottom: 16px; }
  .agent-page h1 { font-size: clamp(28px, 7.6vw, 40px); margin-bottom: 20px; }
  .kit-intro { font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
  .risk-line { font-size: 12px; line-height: 1.55; }
  .kit-content { padding-inline: 20px; }
  .kit-section { grid-template-columns: 1fr; gap: 25px; padding: 38px 0; }
  .agent-page h2 { font-size: 25px; }
  .section-body p { font-size: 15px; line-height: 1.8; }
  .steps { padding-left: 20px; }
  .steps li { padding-left: 5px; }
  .code-block pre { font-size: 12px; padding: 16px; }
  .code-toolbar { padding-left: 12px; }
  .offer-button { width: 100%; font-size: 15px; }
  .kit-footer { padding: 32px 20px; }
}
@media (prefers-reduced-motion: reduce) { .agent-page *, .agent-page *::before, .agent-page *::after { scroll-behavior: auto !important; transition: none !important; } }

.footer-socials { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.footer-socials a { display: inline-flex; align-items: center; min-height: 44px; }

/* Decorative candlesticks, not a plot of performance or market data. */
.hero-chart {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: url('/agent/market-candlesticks.svg') right bottom / cover no-repeat;
  opacity: .24;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.48) 45%, #000);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.48) 45%, #000);
}
.kit-progress { position: fixed; inset: 0 0 auto; z-index: 100; height: 3px; pointer-events: none; }
.kit-progress span { display: block; height: 100%; background: #a78bfa; transform: scaleX(0); transform-origin: left; }
.agent-page ::selection { background: #d6c7f8; color: #111d31; }
.code-block ::selection { background: #a9d1f0; color: #111d31; }
@media (max-width: 760px) {
  .hero-chart { opacity: .16; mask-image: linear-gradient(90deg, rgba(0,0,0,.2), #000); -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.2), #000); }
}

/* A quiet distinction for the live course, within the existing reading layout. */
#course { position: relative; isolation: isolate; }
#course::before { content: ""; position: absolute; inset: 0 -40px; background: #edf4fb; z-index: -1; }
.section-body .course-note { margin-top: 20px; font-size: 14px; line-height: 1.7; color: #475569; }
@media (max-width: 760px) {
  #course::before { inset-inline: -20px; }
}

.hero-action { margin-top: 26px; }
.hero-action p { max-width: 620px; margin: 12px 0 0; color: #475569; font-size: 13px; line-height: 1.6; }
.hero-action p + p { margin-top: 4px; }
.course-button { background: transparent; border-color: #a3acc0; color: #27364d; }
.course-button:hover { background: #e1eaf5; }

.section-body .setup-source { font-size: 13px; color: #475569; }
.setup-source a { text-decoration: underline; text-underline-offset: 3px; }

/* Native disclosures keep every rule available without a wall of text. */
.rule-accordion { border-bottom: 1px solid var(--line); }
.rule-accordion:first-child { border-top: 1px solid var(--line); }
.rule-accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; padding: 15px 0; color: var(--ink); font-size: 16px; font-weight: 650; line-height: 1.5; cursor: pointer; list-style: none; }
.rule-accordion summary::-webkit-details-marker { display: none; }
.rule-accordion summary:hover { color: #65519b; }
.rule-accordion summary:focus-visible { outline: 3px solid #7c3aed; outline-offset: 4px; border-radius: 2px; }
.rule-toggle { position: relative; flex: 0 0 16px; width: 16px; height: 16px; color: #65519b; }
.rule-toggle::before, .rule-toggle::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.rule-toggle::before { width: 14px; height: 2px; left: 1px; top: 7px; }
.rule-toggle::after { width: 2px; height: 14px; left: 7px; top: 1px; }
.rule-accordion[open] .rule-toggle::after { display: none; }
.rule-content { padding: 0 28px 20px 0; }
.rule-content p:last-child { margin-bottom: 0; }
