:root {
  --ink: #102326;
  --muted: #587072;
  --deep: #08292c;
  --night: #041517;
  --teal: #0b8f88;
  --teal-soft: #68d5cd;
  --teal-dark: #09625f;
  --gold: #caa760;
  --coral: #d8785f;
  --ivory: #fbf7ee;
  --mist: #edf7f5;
  --white: #ffffff;
  --line: rgba(16, 35, 38, 0.12);
  --shadow: 0 24px 80px rgba(5, 31, 34, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--ivory);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.top-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 8px 6vw;
  color: var(--white);
  background: linear-gradient(90deg, #123b3d, #0b8f88);
  font-size: 0.92rem;
  font-weight: 800;
}

.top-ribbon a {
  color: #fff4cf;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px 6vw;
  color: var(--white);
  background: rgba(5, 24, 27, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--deep);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.82);
}

.site-nav a {
  padding: 10px 2px;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--gold);
}

.header-actions,
.hero-actions,
.cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.solid-button,
.outline-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

.solid-button {
  color: var(--white);
  background: var(--teal);
  border: 1px solid var(--teal);
}

.solid-button:hover,
.outline-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.solid-button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.solid-button.small {
  min-height: 40px;
  padding: 10px 16px;
}

.solid-button.full {
  width: 100%;
}

.outline-button {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.outline-button.dark {
  color: var(--deep);
  border-color: rgba(8, 41, 44, 0.28);
}

.ghost-button {
  min-height: 40px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid transparent;
}

.theme-toggle {
  min-height: 40px;
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 48px;
  align-items: center;
  min-height: 760px;
  padding: 70px 6vw 80px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 68% 18%, rgba(104, 213, 205, 0.22), transparent 29%),
    linear-gradient(135deg, #041113 0%, #08292c 42%, #075754 100%);
}

.hero::after {
  content: "CSA";
  position: absolute;
  right: 2vw;
  top: 96px;
  color: rgba(255, 255, 255, 0.055);
  font-size: 148px;
  font-weight: 900;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: 4rem;
  line-height: 1.03;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.18rem;
  line-height: 1.7;
}

.trust-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.trust-row span {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero-visual {
  align-self: end;
}

.hero-visual img {
  width: min(520px, 100%);
  margin-left: auto;
  border-radius: 0 0 34px 34px;
  filter: drop-shadow(0 35px 60px rgba(0, 0, 0, 0.32));
}

.floating-card {
  position: absolute;
  left: 8px;
  bottom: 34px;
  width: min(360px, 86%);
  padding: 18px 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.floating-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--teal-dark);
  font-weight: 900;
}

.hero-note {
  position: absolute;
  right: 0;
  top: 48px;
  width: min(270px, 72%);
  padding: 16px 18px;
  color: var(--white);
  background: rgba(4, 21, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note strong {
  color: var(--gold);
}

.hero-note span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: 92px 6vw;
  background: var(--white);
}

.section:nth-of-type(odd) {
  background: var(--ivory);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 700px;
}

.section-heading.centered {
  margin: 0 auto 38px;
  text-align: center;
}

h2 {
  margin: 0;
  font-size: 2.45rem;
  line-height: 1.15;
}

h3 {
  margin: 12px 0 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

p {
  line-height: 1.7;
}

.authority-band {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 41, 44, 0.96), rgba(9, 98, 95, 0.96)),
    var(--deep);
}

.authority-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  align-items: start;
}

.authority-copy p {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.78);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.proof-grid div,
.pain-grid article,
.device-grid article,
.course-card,
.module-list,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proof-grid div {
  min-height: 120px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}

.proof-grid strong,
.proof-grid span {
  display: block;
}

.proof-grid strong {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 1.35rem;
}

.proof-grid span {
  color: rgba(255, 255, 255, 0.76);
}

.pain-grid,
.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain-grid article,
.device-grid article {
  padding: 26px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(16, 35, 38, 0.06);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--teal-dark);
  background: var(--mist);
  border-radius: 8px;
  font-weight: 900;
}

.pain-grid p,
.device-grid p,
.outcome-grid p,
.section-heading p,
.course-card p,
.faq-list p {
  color: var(--muted);
}

.reveal-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(4, 21, 23, 0.96), rgba(8, 41, 44, 0.93)),
    var(--night);
}

.reveal-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.reveal-section .section-heading p {
  color: rgba(255, 255, 255, 0.76);
}

.distance-demo {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.past-button {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  padding: 12px 18px;
  color: var(--night);
  background: var(--gold);
  border-radius: 8px;
  font-weight: 900;
}

.distance-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.distance-row span {
  color: rgba(255, 255, 255, 0.78);
}

.distance-row strong {
  color: var(--teal-soft);
}

.system-section {
  background: var(--mist);
}

.system-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

.csa-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.csa-node {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 22px;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(8, 41, 44, 0.14);
  border-radius: 50%;
  aspect-ratio: 1;
  box-shadow: 0 18px 42px rgba(8, 41, 44, 0.08);
}

.csa-node strong {
  display: block;
  color: var(--teal-dark);
  font-size: 1.15rem;
}

.csa-node span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.csa-node.active {
  color: var(--white);
  background: var(--teal-dark);
}

.csa-node.active strong,
.csa-node.active span {
  color: var(--white);
}

.csa-plus {
  color: var(--coral);
  font-size: 2rem;
  font-weight: 900;
}

.device-grid {
  margin-top: 44px;
}

.device-grid article span {
  color: var(--coral);
  font-weight: 900;
}

.outcomes-section {
  background:
    linear-gradient(180deg, #ffffff, #f0fbf9);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.outcome-grid article {
  min-height: 210px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(8, 41, 44, 0.07);
}

.outcome-grid strong {
  display: block;
  color: var(--teal-dark);
  font-size: 1.22rem;
  line-height: 1.3;
}

.course-section {
  background: var(--white);
}

.course-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
  align-items: start;
}

.course-card {
  position: sticky;
  top: 100px;
  padding: 30px;
  background: var(--deep);
  color: var(--white);
  box-shadow: var(--shadow);
}

.course-card p {
  color: rgba(255, 255, 255, 0.76);
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.price-row span {
  color: rgba(255, 255, 255, 0.7);
}

.module-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  background: var(--ivory);
}

.module-list div {
  min-height: 118px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.module-list span {
  display: block;
  margin-bottom: 12px;
  color: var(--teal-dark);
}

.preview-section {
  background: var(--ivory);
}

.preview-layout,
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 42px;
  align-items: center;
}

.video-frame {
  display: grid;
  place-items: center;
  min-height: 370px;
  padding: 30px;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(rgba(5, 24, 27, 0.72), rgba(5, 24, 27, 0.72)),
    linear-gradient(135deg, #08292c, #0b8f88);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.play-button {
  width: 74px;
  height: 74px;
  margin-bottom: 18px;
  background: var(--gold);
  clip-path: polygon(28% 18%, 28% 82%, 82% 50%);
}

.video-frame p {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.video-frame span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
}

.credibility-section {
  background: var(--white);
}

.faq-preview {
  background: var(--mist);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 20px 22px;
  background: var(--white);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin-bottom: 0;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 58px 6vw;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 17, 19, 0.96), rgba(9, 98, 95, 0.92)),
    var(--deep);
}

.final-cta h2,
.final-cta p {
  margin: 0;
}

.final-cta p:not(.eyebrow) {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  padding: 42px 6vw;
  color: rgba(255, 255, 255, 0.72);
  background: #051315;
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  margin: 14px 0 0;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.placeholder-main {
  min-height: 70vh;
  padding: 110px 6vw;
  background: var(--ivory);
}

.placeholder-panel {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 42px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(8, 41, 44, 0.1);
}

.placeholder-panel h1 {
  margin: 0;
  font-size: 2.65rem;
}

.placeholder-panel p {
  color: var(--muted);
}

.placeholder-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.form-shell {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.form-shell label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.form-shell input,
.form-shell textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-shell textarea {
  min-height: 130px;
  resize: vertical;
}

.public-page {
  background: var(--ivory);
}

.simple-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 6vw;
  color: var(--white);
  background: var(--night);
}

.simple-header nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.simple-header nav a:hover {
  color: var(--gold);
}

.page-hero {
  padding: 92px 6vw;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 8%, rgba(104, 213, 205, 0.2), transparent 28%),
    linear-gradient(135deg, #041517, #08292c 52%, #09625f);
}

.page-hero h1,
.page-hero p {
  width: min(860px, 100%);
}

.page-hero h1 {
  margin: 0;
  font-size: 3.2rem;
  line-height: 1.08;
}

.page-hero p:not(.eyebrow) {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.course-hero .placeholder-actions {
  margin-top: 26px;
}

.content-section {
  width: min(1180px, calc(100% - 12vw));
  margin: 0 auto;
  padding: 74px 0;
}

.split-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.info-card-grid.compact article,
.purchase-panel,
.contact-card,
.contact-notes,
.faq-page-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(8, 41, 44, 0.07);
}

.info-card-grid.compact article {
  min-height: 122px;
  padding: 22px;
}

.info-card-grid strong,
.info-card-grid span {
  display: block;
}

.info-card-grid strong {
  color: var(--teal-dark);
  font-size: 1.35rem;
}

.info-card-grid span {
  margin-top: 8px;
  color: var(--muted);
}

.quote-band {
  width: min(1180px, calc(100% - 12vw));
  margin-bottom: 40px;
  padding: 42px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(4, 21, 23, 0.97), rgba(9, 98, 95, 0.94)),
    var(--night);
  border-radius: 8px;
}

.quote-band h2 {
  color: var(--white);
}

.quote-band p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.76);
}

.purchase-panel {
  padding: 28px;
}

.purchase-panel span,
.purchase-panel strong {
  display: block;
}

.purchase-panel span {
  color: var(--muted);
  font-weight: 900;
}

.purchase-panel strong {
  margin: 8px 0 14px;
  color: var(--teal-dark);
  font-size: 2.2rem;
}

.public-modules {
  margin-top: 32px;
}

.faq-page-list {
  display: grid;
  gap: 12px;
}

.faq-page-list details {
  padding: 22px 24px;
}

.faq-page-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.faq-page-list p,
.contact-notes p,
.policy-body p,
.split-panel p {
  color: var(--muted);
}

.contact-card,
.contact-notes {
  padding: 28px;
}

.policy-body {
  max-width: 880px;
}

.policy-body h2 {
  margin-top: 34px;
  font-size: 1.55rem;
}

.policy-body h2:first-child {
  margin-top: 0;
}

html[data-theme="dark"] body {
  color: #edf7f5;
  background: #07191b;
}

html[data-theme="dark"] .top-ribbon {
  background: linear-gradient(90deg, #08292c, #0a6f6a);
}

html[data-theme="dark"] .site-header {
  background: rgba(4, 17, 19, 0.92);
}

html[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 70% 18%, rgba(104, 213, 205, 0.24), transparent 31%),
    linear-gradient(135deg, #030c0e 0%, #08292c 45%, #07514f 100%);
}

html[data-theme="dark"] .section,
html[data-theme="dark"] .section:nth-of-type(odd),
html[data-theme="dark"] .problem-section,
html[data-theme="dark"] .course-section,
html[data-theme="dark"] .credibility-section,
html[data-theme="dark"] .outcomes-section,
html[data-theme="dark"] .faq-preview,
html[data-theme="dark"] .placeholder-main,
html[data-theme="dark"] .public-page {
  background: #07191b;
}

html[data-theme="dark"] .system-section,
html[data-theme="dark"] .preview-section {
  background: #0a2023;
}

html[data-theme="dark"] .authority-band,
html[data-theme="dark"] .reveal-section,
html[data-theme="dark"] .final-cta,
html[data-theme="dark"] .quote-band {
  background:
    linear-gradient(90deg, rgba(4, 17, 19, 0.98), rgba(8, 76, 74, 0.92)),
    #041517;
}

html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .placeholder-panel h1,
html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .contact-notes h2,
html[data-theme="dark"] .policy-body h2 {
  color: #f3fbf9;
}

html[data-theme="dark"] p,
html[data-theme="dark"] .pain-grid p,
html[data-theme="dark"] .device-grid p,
html[data-theme="dark"] .outcome-grid p,
html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .faq-list p,
html[data-theme="dark"] .faq-page-list p,
html[data-theme="dark"] .contact-notes p,
html[data-theme="dark"] .policy-body p,
html[data-theme="dark"] .split-panel p,
html[data-theme="dark"] .placeholder-panel p {
  color: rgba(237, 247, 245, 0.72);
}

html[data-theme="dark"] .pain-grid article,
html[data-theme="dark"] .device-grid article,
html[data-theme="dark"] .outcome-grid article,
html[data-theme="dark"] .faq-list details,
html[data-theme="dark"] .faq-page-list details,
html[data-theme="dark"] .placeholder-panel,
html[data-theme="dark"] .info-card-grid.compact article,
html[data-theme="dark"] .purchase-panel,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .contact-notes {
  color: #edf7f5;
  background: #10282b;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .icon-box,
html[data-theme="dark"] .csa-node {
  color: #daf8f5;
  background: #123438;
  border-color: rgba(104, 213, 205, 0.22);
}

html[data-theme="dark"] .csa-node strong,
html[data-theme="dark"] .device-grid article span,
html[data-theme="dark"] .outcome-grid strong,
html[data-theme="dark"] .info-card-grid strong,
html[data-theme="dark"] .purchase-panel strong {
  color: var(--teal-soft);
}

html[data-theme="dark"] .csa-node span,
html[data-theme="dark"] .info-card-grid span,
html[data-theme="dark"] .purchase-panel span {
  color: rgba(237, 247, 245, 0.68);
}

html[data-theme="dark"] .csa-node.active {
  background: var(--teal-dark);
}

html[data-theme="dark"] .module-list {
  background: #0d2427;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .module-list div {
  color: #edf7f5;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .module-list span {
  color: var(--teal-soft);
}

html[data-theme="dark"] .course-card {
  background:
    linear-gradient(180deg, #092426, #061315);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .outline-button.dark {
  color: #edf7f5;
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .form-shell input,
html[data-theme="dark"] .form-shell textarea {
  color: #edf7f5;
  background: #07191b;
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .form-shell input::placeholder,
html[data-theme="dark"] .form-shell textarea::placeholder {
  color: rgba(237, 247, 245, 0.42);
}

html[data-theme="dark"] .faq-list summary,
html[data-theme="dark"] .faq-page-list summary {
  color: #f3fbf9;
}

html[data-theme="dark"] .floating-card {
  color: #edf7f5;
  background: rgba(10, 32, 35, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .floating-card span {
  color: var(--teal-soft);
}

html[data-theme="dark"] .brand-mark {
  color: #061315;
}

html[data-theme="light"] .theme-toggle {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(8, 41, 44, 0.16);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.nav-open .site-nav,
  .site-header.nav-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-header.nav-open .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 8px;
  }

  .site-header.nav-open .header-actions {
    justify-content: flex-start;
  }

  .hero,
  .authority-grid,
  .reveal-grid,
  .system-layout,
  .course-layout,
  .preview-layout,
  .faq-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .simple-header,
  .split-panel {
    grid-template-columns: 1fr;
  }

  .simple-header {
    display: grid;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-visual img {
    margin: 0 auto;
  }

  .proof-grid,
  .pain-grid,
  .device-grid,
  .outcome-grid,
  .info-card-grid,
  .module-list {
    grid-template-columns: 1fr;
  }

  .course-card {
    position: static;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .top-ribbon,
  .simple-header,
  .hero,
  .section,
  .final-cta,
  .site-footer,
  .placeholder-main {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .cta-actions,
  .final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .solid-button,
  .outline-button,
  .ghost-button {
    width: 100%;
  }

  .csa-diagram {
    grid-template-columns: 1fr;
  }

  .csa-node {
    min-height: auto;
    border-radius: 8px;
    aspect-ratio: auto;
  }

  .csa-plus {
    text-align: center;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: -20px;
  }

  .hero-note {
    position: static;
    width: 100%;
    margin: 14px 0 0;
  }

  .distance-row {
    grid-template-columns: 1fr;
  }

  .placeholder-panel {
    padding: 28px;
  }

  .placeholder-panel h1 {
    font-size: 2.2rem;
  }

  .page-hero {
    padding: 72px 22px;
  }

  .page-hero h1 {
    font-size: 2.35rem;
  }

  .content-section,
  .quote-band {
    width: calc(100% - 44px);
  }

  .quote-band {
    padding: 28px;
  }
}
