/* ==========================================================================
   /cyber-security — page-specific styles only (shared styles live in /shared/base.css)
   ========================================================================== */

/* ---------- ?kw= H1 variants (html[data-kw] is set before paint in <head>) ---------- */
.h1-alt { display: none; }
html[data-kw="hacking"] .h1-default, html[data-kw="analyst"] .h1-default { display: none; }
html[data-kw="hacking"] .h1-hacking, html[data-kw="analyst"] .h1-analyst { display: inline; }

/* ---------- 1. Hero ---------- */
.hero {
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(16, 185, 129, .22), transparent 60%),
    linear-gradient(180deg, var(--kn-dark) 0%, var(--kn-ink) 100%);
  color: var(--on-dark);
  padding: 20px 0 36px;
}
.hero__grid { display: grid; gap: 22px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(217, 249, 157, .3);
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4;
}
.hero__kicker { margin-top: 14px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--kn-lime); }
.hero__h1 { margin-top: 6px; font-size: 29px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.hero__sub { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--on-dark-muted); }
.hero__chips { margin-top: 16px; }
.hero__note { margin-top: 6px; text-align: center; font-size: 14px; color: var(--on-dark-muted); }
.hero .form-alt { color: var(--on-dark); }

@media (min-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
  .hero__h1 { font-size: 50px; }
  .hero__sub { font-size: 19px; max-width: 34em; }
  .hero__chips { max-width: 520px; }
  .chip { font-size: 15px; }
}

/* ---------- 2. Trust bar ---------- */
.trust { background: var(--kn-white); border-bottom: 1px solid var(--kn-line); padding: 18px 0; }
.trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.trust__item { display: flex; flex-direction: column; gap: 2px; }
.trust__item--wide { grid-column: 1 / -1; order: 3; }
.trust__link { display: flex; flex-direction: column; text-decoration: none; }
.trust__big { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--kn-ink); }
.trust__big [aria-hidden] { color: #B7791F; }
.trust__small { font-size: 14px; color: var(--kn-muted); }
.trust__certs { font-size: 15px; font-weight: 700; color: var(--kn-forest); }
@media (min-width: 960px) {
  .trust__list { grid-template-columns: auto auto 1fr auto; gap: 32px; align-items: center; }
  .trust__item--wide { grid-column: auto; order: 0; }
}

/* ---------- 3. How it works ---------- */
.how__grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .how__grid { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; } }

.live-ui { border-radius: var(--radius); overflow: hidden; background: #0B1712; box-shadow: var(--shadow); border: 1px solid #1E3A2E; }
.live-ui__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--kn-ink); color: #fff; font-size: 13px; }
.live-ui__live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 2px 10px; border-radius: 6px; background: rgba(255, 77, 79, .16); }
.live-ui__title { color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-ui__body { display: grid; grid-template-columns: 1fr; }
.live-ui__screen { padding: 16px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--kn-lime); min-height: 190px; }
.live-ui__screen .t-prompt { color: var(--kn-emerald); }
.live-ui__screen .t-dim { color: var(--on-dark-muted); }
.t-cursor { display: inline-block; width: 8px; height: 15px; vertical-align: -2px; background: var(--kn-lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.live-ui__side { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 0 12px 12px; }
.live-ui__cam { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--kn-forest); border: 2px solid var(--kn-emerald); overflow: hidden; }
.live-ui__avatar { position: absolute; left: 50%; top: 22%; width: 34%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #5C8C75; box-shadow: 0 46px 0 18px #5C8C75; }
.live-ui__name { position: absolute; left: 6px; bottom: 5px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); padding: 1px 6px; border-radius: 4px; }
.live-ui__chat { display: grid; gap: 6px; align-content: end; }
.bubble { font-size: 13px; line-height: 1.35; padding: 7px 10px; border-radius: 10px; }
.bubble--student { background: rgba(255, 255, 255, .1); color: #fff; justify-self: start; border-bottom-left-radius: 3px; }
.bubble--trainer { background: var(--kn-emerald); color: var(--kn-ink); justify-self: end; border-bottom-right-radius: 3px; font-weight: 700; }
@media (min-width: 600px) {
  .live-ui__body { grid-template-columns: 1fr 190px; }
  .live-ui__side { grid-template-columns: 1fr; padding: 12px 12px 12px 0; align-content: start; }
  .live-ui__screen { font-size: 14px; }
}

.steps { display: grid; gap: 12px; counter-reset: none; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--kn-paper); border: 1px solid var(--kn-line); }
.step__num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--kn-dark); color: var(--kn-lime); font-weight: 700; }
.step p { margin-top: 4px; color: #33463D; }

.how__lower { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 960px) { .how__lower { grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; margin-top: 44px; } .how__video { order: -1; } }
.week { padding: 20px; border-radius: var(--radius); background: var(--kn-lime-soft); border: 1px solid #CDE7D6; }
.week__list { margin-top: 12px; display: grid; gap: 8px; }
.week__list li { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--kn-white); font-size: 15px; }
.week__days { font-weight: 700; color: var(--kn-forest); }
.week__what--live { font-weight: 700; }
.week__what--live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; margin-right: 8px; vertical-align: 1px; }

/* ---------- 4. Comparison ---------- */
.compare { max-width: 1000px; margin: 0 auto; }
.compare__table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare__table .yes, .compare__table .no, .compare__table .mid { display: inline-flex; gap: 8px; align-items: flex-start; }
.compare__table .yes::before, .compare__table .no::before, .compare__table .mid::before { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; content: ""; background-position: center; background-repeat: no-repeat; background-size: 12px; }
.compare__table .yes::before { background-color: var(--kn-emerald); background-image: var(--i-check-ink); }
.compare__table .no::before { background-color: #F3D5D2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.compare__table .mid::before { background-color: #E8EDEA; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F6259' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }

/* Mobile: every row becomes a card with 3 labelled values */
@media (max-width: 767px) {
  .compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare__table, .compare__table tbody, .compare__table tr, .compare__table th, .compare__table td { display: block; }
  .compare__table tbody { display: grid; gap: 12px; }
  .compare__table tr { background: var(--kn-white); border: 1px solid var(--kn-line); border-radius: var(--radius); overflow: hidden; }
  .compare__table th[scope="row"] { padding: 12px 16px; font-size: 17px; background: var(--kn-dark); color: #fff; text-align: left; }
  .compare__table td { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--kn-line); font-size: 15px; }
  .compare__table td::before { content: attr(data-label); font-size: 13px; font-weight: 700; color: var(--kn-muted); line-height: 1.35; padding-top: 2px; }
  .compare__table td.is-us { background: var(--kn-lime-soft); font-weight: 700; }
  .compare__table td.is-us::before { color: var(--kn-forest); }
}
/* Desktop: real 3-column table, Knoa column highlighted */
@media (min-width: 768px) {
  .compare__table { background: var(--kn-white); border: 1px solid var(--kn-line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
  .compare__table th, .compare__table td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--kn-line); }
  .compare__table thead th { border-top: 0; font-size: 16px; background: var(--kn-paper); }
  .compare__table thead th.is-us { background: var(--kn-dark); color: #fff; }
  .compare__table th[scope="row"] { width: 22%; font-weight: 700; }
  .compare__table td.is-us { background: var(--kn-lime-soft); font-weight: 700; width: 30%; }
}
.compare__close { margin: 32px auto 0; max-width: 640px; text-align: center; font-size: 22px; line-height: 1.35; font-weight: 700; color: var(--kn-forest); }
.btn-row--center { justify-content: center; }

/* ---------- 5. Who ---------- */
.who__card h3 { color: var(--kn-forest); }
.who__card p { margin-top: 6px; color: #33463D; }
.who__lower { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 960px) { .who__lower { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; } }
.need { background: var(--kn-lime-soft); border-color: #CDE7D6; }
.need .checklist { margin-top: 12px; }
.need .checklist li::before { background-color: var(--kn-white); }
.who__honest { padding: 16px 18px; border-left: 4px solid var(--kn-amber); background: #FFF8E6; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 17px; }

/* ---------- 6. Fees ---------- */
.fees { max-width: 640px; margin: 0 auto; }
.fees__card { background: var(--kn-white); color: var(--kn-ink); border-radius: var(--radius-lg); padding: 22px 18px; box-shadow: var(--shadow-lg); }
@media (min-width: 768px) { .fees__card { padding: 32px; } }
.fees__next { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 17px; }
.fees__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.fees__specs div { padding: 12px; border-radius: 10px; background: var(--kn-paper); border: 1px solid var(--kn-line); }
.fees__specs dt { font-size: 13px; font-weight: 700; color: var(--kn-muted); text-transform: uppercase; letter-spacing: .05em; }
.fees__specs dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; line-height: 1.35; }
.fees__or { display: block; font-weight: 400; font-size: 14px; color: var(--kn-muted); }
.fees__price { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--kn-dark); color: #fff; }
.fees__price-title { font-size: 21px; line-height: 1.3; font-weight: 700; }
.fees__price-sub { margin-top: 6px; color: var(--on-dark-muted); }
.fees__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fees__tags li { padding: 6px 12px; border-radius: 999px; background: var(--kn-lime); color: var(--kn-ink); font-size: 14px; font-weight: 700; }
.fees__inc-title { margin-top: 22px; font-size: 17px; }
.fees__inc { margin: 12px 0 22px; }
@media (min-width: 480px) { .fees__inc { grid-template-columns: 1fr 1fr; } }
.fees__wa { margin-top: 10px; }

/* ---------- 7. Curriculum ---------- */
.curr { max-width: 880px; }
.curr__n { display: inline-block; min-width: 34px; color: var(--kn-green-text); font-variant-numeric: tabular-nums; }
.curr__list details[open] { border-color: #BFE3CD; box-shadow: var(--shadow); }
.curr__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.curr__meta > span { padding: 4px 10px; border-radius: 999px; background: var(--kn-lime-soft); border: 1px solid #CDE7D6; font-size: 14px; font-weight: 700; color: var(--kn-forest); }
.btn--ghost-dark { color: var(--kn-forest); border-color: var(--kn-forest); }
.btn--ghost-dark:hover { background: var(--kn-lime-soft); }

/* ---------- 8. Tools ---------- */
.tool { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.tool p { margin-top: 4px; color: #33463D; font-size: 15px; }

/* ---------- 9. Trainer ---------- */
.trainer { display: grid; gap: 28px; }
@media (min-width: 900px) { .trainer { grid-template-columns: 360px 1fr; gap: 56px; align-items: center; } }
.trainer__photo img { width: 100%; max-width: 360px; border-radius: var(--radius-lg); border: 3px solid var(--kn-emerald); aspect-ratio: 1; object-fit: cover; }
.trainer__role { margin-top: 6px; color: var(--kn-lime); font-weight: 700; }
.trainer__bio { margin-top: 12px; color: var(--on-dark-muted); }
.trainer__certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.trainer__certs li { padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(217, 249, 157, .4); font-size: 14px; font-weight: 700; }
.trainer__points { margin: 20px 0; }
.trainer__points li::before { background-color: var(--kn-lime); border-color: var(--kn-lime); }

/* ---------- 10. Careers ---------- */
.role__pay { margin-top: 4px; font-size: 22px; font-weight: 700; color: var(--kn-green-text); }
.role p:last-child { margin-top: 6px; color: #33463D; font-size: 15px; }
.roles__note { margin-top: 14px; font-size: 14px; color: var(--kn-muted); }
.support__title { margin-top: 40px; }
.support { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 768px) { .support { grid-template-columns: repeat(4, 1fr); } }
.support li { display: grid; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--kn-lime-soft); border: 1px solid #CDE7D6; }
.support__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--kn-dark); color: var(--kn-lime); font-weight: 700; margin-bottom: 6px; }
.support li > span:last-child { color: #33463D; font-size: 15px; }

/* ---------- 11. Student proof ---------- */
.proof { display: grid; gap: 20px; }
@media (min-width: 960px) { .proof { grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; } }
.proof__list { display: grid; gap: 12px; }
.quote__text { font-size: 16px; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.quote__who img { width: 48px; height: 48px; border-radius: 50%; }
.quote__who div { display: flex; flex-direction: column; font-size: 14px; color: var(--kn-muted); }
.quote__who strong { color: var(--kn-ink); font-size: 15px; }

/* ---------- 12. Demo (secondary CTA) ---------- */
.demo { background: var(--kn-paper); padding: 8px 0 48px; }
.demo__inner { display: grid; gap: 14px; padding: 22px; border: 2px dashed #BFE3CD; border-radius: var(--radius-lg); }
@media (min-width: 768px) { .demo__inner { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; } }
.demo__sub { margin-top: 4px; color: var(--kn-muted); }

/* ---------- 13. FAQ ---------- */
.faq { max-width: 880px; }

/* ---------- 14. Final CTA ---------- */
.final__grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .final__grid { grid-template-columns: 1fr 440px; gap: 56px; align-items: center; } }
.final__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.final__phone { color: var(--on-dark); font-weight: 700; text-underline-offset: 3px; padding: 12px 0; }
