/* AiNex Edu design — shared components. Ported from the React/Vite design (CSS modules → prefixed classes). */

/* ===== public/NumberedSection.module.css (prefix .ns-) ===== */
.ns-section {
  padding: 70px 32px;
  background: var(--bg);
  scroll-margin-top: 80px;
}

.ns-alt {
  background: #f7f9fc;
}

.ns-hero {
  padding: 64px 32px;
  background: #f3f6fa;
  border-bottom: 1px solid #e4e7ec;
}

.ns-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 45px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.ns-stack {
  grid-template-columns: 1fr;
}

.ns-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ns-name {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.ns-num {
  color: #4873b8;
  font-weight: 800;
  margin-right: 10px;
}

.ns-headline,
.ns-heroTitle {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.3;
  word-break: keep-all;
}

.ns-headline {
  font-size: clamp(22px, 2.4vw, 28px);
}

.ns-heroTitle {
  font-size: clamp(28px, 3vw, 32px);
  letter-spacing: -0.045em;
  line-height: 1.28;
}

.ns-line {
  display: block;
}

.ns-lead {
  margin: 14px 0 0;
  color: #475467;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.7;
  word-break: keep-all;
}

.ns-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 26px;
}

.ns-primary,
.ns-secondary,
.ns-mint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.ns-primary {
  color: #fff;
  background: #4873b8;
}

.ns-secondary {
  color: #101828;
  background: #fff;
  border: 1px solid #cfd4dc;
}

.ns-mint {
  color: #071521;
  background: #56bdb6;
}

.ns-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.ns-row,
.ns-rowLink {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #e4e7ec;
  color: inherit;
  text-decoration: none;
}

.ns-row:first-child,
.ns-rowLink:first-child {
  padding-top: 4px;
}

.ns-row:last-child,
.ns-rowLink:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ns-itemNum {
  flex-shrink: 0;
  min-width: 22px;
  margin-top: 3px;
  color: #4873b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ns-title {
  display: block;
  margin: 0 0 5px;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.ns-body {
  margin: 0;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.62;
  word-break: keep-all;
}

.ns-extra {
  max-width: 1200px;
  margin: 30px auto 0;
}

@media (max-width: 1023px) {
  .ns-section,
  .ns-hero {
    padding: 48px 20px;
  }

  .ns-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ns-name {
    font-size: 18px;
  }

  .ns-headline,
  .ns-heroTitle {
    font-size: 22px;
  }

  .ns-ctas {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
    padding-top: 0;
  }

  .ns-primary,
  .ns-secondary,
  .ns-mint {
    width: 100%;
  }
}

.ns-hero {
  background: var(--bg);
  border-bottom: 0;
  padding: 72px 32px 36px;
}

.ns-hero .ns-heroTitle {
  max-width: 12em;
  color: var(--text);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: var(--heading-weight);
  letter-spacing: -0.055em;
}

.ns-hero .ns-heroTitle .ns-line:last-child {
  color: var(--accent);
}

.ns-lead {
  max-width: 34em;
  color: #3d4654;
  font-size: 18px;
  line-height: 1.6;
}

.ns-section:not(.ns-hero) {
  padding-top: 88px;
  padding-bottom: 88px;
}

.ns-alt {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #eef3fa 100%);
}

.ns-name {
  margin-bottom: 14px;
  font-size: 28px;
  letter-spacing: -0.045em;
}

.ns-section:not(.ns-hero) .ns-num {
  display: block;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: clamp(52px, 5.4vw, 76px);
  font-weight: var(--heading-weight);
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.ns-headline {
  max-width: 16em;
  color: #3d4654;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.45;
}

.ns-ctas {
  align-items: center;
  gap: 10px;
}

.ns-primary,
.ns-secondary,
.ns-mint {
  border-radius: var(--radius-button);
  min-height: 50px;
  box-shadow: none;
}

.ns-primary {
  color: var(--bg);
  background: var(--accent);
  border: 0;
  box-shadow: 0 12px 28px rgb(from var(--accent) r g b / 0.28);
}

.ns-primary:hover,
.ns-primary:focus-visible {
  background: var(--hover-blue);
  color: var(--bg);
  transform: translateY(-2px);
}

.ns-secondary,
.ns-mint {
  color: var(--text);
  background: var(--bg);
  border: 1px solid #d5dbe6;
}

.ns-secondary:hover,
.ns-secondary:focus-visible,
.ns-mint:hover,
.ns-mint:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg);
  transform: translateY(-2px);
}

.ns-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: center;
}

.ns-row,
.ns-rowLink {
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 18px 18px 16px;
  background: var(--bg);
  border: 1px solid #e6ebf3;
  border-bottom: 1px solid #e6ebf3;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(18, 36, 74, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ns-section:not(.ns-alt) .ns-row,
.ns-section:not(.ns-alt) .ns-rowLink {
  background: #f7f9fc;
}

.ns-row:first-child,
.ns-rowLink:first-child,
.ns-row:last-child,
.ns-rowLink:last-child {
  padding: 18px 18px 16px;
  border-bottom: 1px solid #e6ebf3;
}

.ns-row:hover,
.ns-rowLink:hover,
.ns-rowLink:focus-visible {
  border-color: #c9d6f0;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(18, 36, 74, 0.08);
}

.ns-itemNum {
  color: var(--accent);
  min-width: 0;
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.04em;
}

@media (width >= 1024px) {
  .ns-alt .ns-inner {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .ns-alt .ns-list {
    grid-area: 1 / 1;
  }

  .ns-alt .ns-copy {
    grid-area: 1 / 2;
  }
}

.ns-section.ns-alt .ns-inner.ns-stack { grid-template-columns: 1fr; }
.ns-section.ns-alt .ns-inner.ns-stack .ns-copy { grid-column: 1 / -1; }

@media (width <= 1023px) {
  .ns-hero {
    padding: 40px 20px 24px;
  }

  .ns-hero .ns-heroTitle,
  .ns-headline {
    font-size: 28px;
  }

  .ns-section:not(.ns-hero) .ns-num {
    font-size: 52px;
  }

  .ns-list {
    grid-template-columns: 1fr;
  }

  .ns-primary,
  .ns-secondary,
  .ns-mint {
    width: 100%;
  }
}

/* ===== public/CloseBand.module.css (prefix .cb-) ===== */
.cb-section {
  padding: 56px 32px;
  color: #fff;
  background: #3a3d42;
  text-align: center;
}

.cb-headline {
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.35;
  word-break: keep-all;
}

.cb-accent {
  color: #ff8f7a;
}

.cb-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.cb-mint,
.cb-blue,
.cb-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.cb-mint {
  color: #071521;
  background: #56bdb6;
}

.cb-blue {
  color: #fff;
  background: #4873b8;
}

.cb-ghost {
  color: #fff;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.5);
}

@media (max-width: 1023px) {
  .cb-section {
    padding: 40px 20px;
  }

  .cb-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cb-mint,
  .cb-blue,
  .cb-ghost {
    width: 100%;
  }
}

.cb-mint,
.cb-blue,
.cb-ghost {
  border-radius: var(--radius-button);
  min-height: 50px;
  box-shadow: none;
}

.cb-blue {
  color: var(--bg);
  background: var(--accent);
  border: 0;
  box-shadow: 0 12px 28px rgb(from var(--accent) r g b / 0.28);
}

.cb-mint,
.cb-ghost {
  color: var(--text);
  background: var(--bg);
  border: 1px solid #d5dbe6;
}

/* ===== public/FieldCards.module.css (prefix .fc-) ===== */
.fc-grid {
  display: grid;
  gap: 10px;
}

.fc-cols3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fc-cols4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  color: inherit;
  background: #fff;
  border: 1px solid #e4e7ec;
  text-decoration: none;
}

.fc-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fc-num {
  flex-shrink: 0;
  color: #4873b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.fc-title {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  word-break: keep-all;
}

.fc-go {
  color: #4873b8;
  font-size: 16px;
  font-weight: 800;
}

.fc-body {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.55;
  word-break: keep-all;
}

@media (max-width: 1023px) {
  .fc-cols3,
  .fc-cols4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .fc-cols3,
  .fc-cols4 {
    grid-template-columns: 1fr;
  }
}

/* ===== public/PathStrip.module.css (prefix .ps-) ===== */
.ps-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.ps-padded {
  padding: 48px 32px;
  background: var(--bg);
}

.ps-label {
  margin: 0 0 16px;
  color: #475467;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ps-path {
  display: flex;
  margin: 0;
  padding: 8px 0 2px;
  list-style: none;
}

.ps-node {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 32px 8px 0;
  color: #101828;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  text-align: center;
  word-break: keep-all;
}

.ps-node::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 14px;
  height: 14px;
  border: 3px solid #4873b8;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.ps-node::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #d8dde4;
}

.ps-node:last-child::after {
  display: none;
}

.ps-peak {
  color: #4873b8;
  font-weight: 900;
}

.ps-peak::before {
  top: -3px;
  width: 20px;
  height: 20px;
  background: #4873b8;
  border-color: #4873b8;
}

.ps-axis {
  color: #8c1010;
}

.ps-axis::before {
  background: #d82020;
  border-color: #d82020;
}

@media (max-width: 1023px) {
  .ps-padded {
    padding: 36px 20px;
  }

  .ps-path {
    flex-direction: column;
    padding: 0;
  }

  .ps-node {
    padding: 0 0 22px 28px;
    text-align: left;
  }

  .ps-node::before {
    left: 0;
    transform: none;
  }

  .ps-node::after {
    top: 14px;
    left: 6px;
    width: 2px;
    height: calc(100% - 8px);
  }

  .ps-peak::before {
    top: -2px;
  }
}

.ps-node::before,
.ps-peak::before {
  border-color: var(--accent);
  background: var(--bg);
}

.ps-peak,
.ps-peak::before {
  color: var(--accent);
}

.ps-peak::before {
  background: var(--accent);
}

/* ===== public/MobileStickyActions.module.css (prefix .msa-) ===== */
.msa-spacer {
  display: none;
}

.msa-bar {
  display: none;
}

@media (max-width: 767px) {
  .msa-spacer {
    display: block;
    height: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .msa-bar {
    display: block;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e4e7ec;
  }

  .msa-grid1,
  .msa-grid2 {
    display: grid;
    gap: 8px;
  }

  .msa-grid1 {
    grid-template-columns: 1fr;
  }

  .msa-grid2 {
    grid-template-columns: 1fr 1fr;
  }

  .msa-primary,
  .msa-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid #153f73;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-align: center;
    text-decoration: none;
    word-break: keep-all;
  }

  .msa-primary {
    color: #fff;
    background: #153f73;
  }

  .msa-secondary {
    color: #153f73;
    background: #fff;
  }

  .msa-primary[aria-disabled='true'],
  .msa-secondary[aria-disabled='true'] {
    opacity: 0.45;
    cursor: not-allowed;
  }
}

.msa-primary,
.msa-secondary {
  border-radius: var(--radius-button);
  min-height: 50px;
  box-shadow: none;
}

.msa-primary {
  color: var(--bg);
  background: var(--accent);
  border: 0;
  box-shadow: 0 12px 28px rgb(from var(--accent) r g b / 0.28);
}

.msa-secondary {
  color: var(--text);
  background: var(--bg);
  border: 1px solid #d5dbe6;
}

/* ===== public/ConsentNotice.module.css (prefix .cn-) ===== */
.cn-block {
  padding: 4px 0 0;
}

.cn-invalid {
  padding-left: 12px;
  border-left: 2px solid #c2410c;
}

.cn-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cn-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--ink);
}

.cn-copy {
  min-width: 0;
  flex: 1;
}

.cn-label {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  cursor: pointer;
}

.cn-required {
  color: var(--accent);
  font-weight: 700;
}

.cn-summary a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cn-summary a:hover,
.cn-summary a:focus-visible {
  color: var(--accent);
}

.cn-toggle {
  margin: 4px 0 0;
  min-height: 44px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cn-toggle:hover,
.cn-toggle:focus-visible {
  color: var(--accent);
}

.cn-full {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.cn-full section + section {
  margin-top: 16px;
}

.cn-full h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cn-full p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.8;
  word-break: keep-all;
}

.cn-error {
  margin: 10px 0 0;
  color: #c2410c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
