/* New Perk Courses: public pages (academy and course landings). Brand: Montserrat, navy #0B1F33, gold accent. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/montserrat-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #0b1f33;
  --navy-2: #122b45;
  --gold: #c9a227;
  --gold-soft: #f6efd8;
  --ink: #111827;
  --text: #374151;
  --muted: #4b5563;
  --line: #e5e7eb;
  --bg-soft: #f6f8fa;
  --ok: #1d7a46;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.01em; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header and footer */
.top { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; }
.brand span { font-weight: 500; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--text); }
.nav a:hover { color: var(--navy); text-decoration: underline; }
.env-badge { display: none; font-size: 11px; font-weight: 700; text-transform: uppercase; background: var(--gold); color: var(--navy); padding: 2px 8px; border-radius: 4px; }
.staging .env-badge { display: inline-block; }
.foot { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 32px 0; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.foot a { color: var(--muted); }
.foot .spacer { flex: 1; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 6px; padding: 14px 26px; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d8b33c; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
[hidden] { display: none !important; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 26px 0 12px; }
.cta-note { font-size: 14px; opacity: .85; margin: 0; }

/* Hero */
.hero { background: var(--navy); color: #e8edf3; padding: 72px 0 64px; }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: 19px; max-width: 720px; color: #d5dde7; }
/* Landing hero with the intro video on the right; stacked on narrow screens. */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.intro-video { margin: 0; border-radius: 10px; box-shadow: 0 10px 32px rgba(0, 0, 0, .35); }
.intro-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: inherit; background: #071523; }
@media (max-width: 960px) { .hero-split { grid-template-columns: 1fr; gap: 32px; } .intro-video { max-width: 720px; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero a:not(.btn) { color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; padding: 22px 0 0; margin: 26px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 15px; color: #d5dde7; }
.facts strong { color: #fff; }

/* Sections */
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.section-intro { max-width: 720px; color: var(--muted); font-size: 17px; margin-bottom: 32px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.tile h3 { margin-bottom: 8px; }
.tile p:last-child { margin-bottom: 0; }
.check { list-style: none; padding: 0; margin: 0; }
.check li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.check li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 9px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.cross li::before { content: "–"; border: 0; transform: none; top: 0; left: 6px; color: var(--muted); font-weight: 700; width: auto; height: auto; }

/* Course cards */
.course-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
/* The title link covers the whole card; the certificate link sits above it. */
.course-card .card-link { color: inherit; text-decoration: none; }
.course-card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.course-card .card-link:focus-visible { outline: none; }
.course-card:has(.card-link:hover), .course-card:has(.card-link:focus-visible) { border-color: var(--navy); box-shadow: 0 8px 24px rgba(11, 31, 51, .10); transform: translateY(-2px); }
.course-card .card-cert { position: relative; z-index: 1; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.course-card .card-cert a { color: var(--navy); }
.cert-link { font-weight: 600; }
.course-card h3 { font-size: 22px; margin: 10px 0; }
.course-card .meta { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.course-card .more { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--navy); }
.badge { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge-free { background: #e3f3ea; color: var(--ok); }
.badge-soon { background: var(--gold-soft); color: #7a5d00; }
.badge-plan { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.price { font-size: 15px; font-weight: 700; color: var(--navy); }
.planned { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.planned li { border: 1px dashed #cbd2da; border-radius: 10px; padding: 18px 20px; background: #fff; }
.planned strong { display: block; color: var(--navy); margin-bottom: 4px; }
.planned span { font-size: 14px; color: var(--muted); }

/* Curriculum */
.module { margin-bottom: 30px; }
.module h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.lessons { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.lessons li { display: grid; grid-template-columns: 36px 1fr auto; gap: 4px 14px; padding: 18px 20px; border-top: 1px solid var(--line); }
.lessons li:first-child { border-top: 0; }
.lessons .n { font-weight: 700; color: var(--gold); font-size: 18px; }
.lessons .t { font-weight: 600; color: var(--navy); }
.lessons .d { grid-column: 2 / 4; font-size: 15px; color: var(--muted); }
.lessons .m { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps strong { display: block; color: var(--navy); margin-bottom: 6px; }

/* Sample and tables */
.sample { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 26px; }
.table-wrap { overflow-x: auto; margin: 16px 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--navy); font-weight: 700; background: var(--bg-soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.hl td { background: var(--gold-soft); }

/* Instructor */
.author { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 760px; }
.author .role { color: var(--muted); font-weight: 500; margin-bottom: 12px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 22px; font-weight: 500; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Final CTA */
.final { background: var(--navy); color: #d5dde7; text-align: center; padding: 64px 0; }
.final h2 { color: #fff; }
.final .cta-row { justify-content: center; }

@media (max-width: 720px) {
  .nav .hide-sm { display: none; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 48px 0; }
  .lessons li { grid-template-columns: 28px 1fr; }
  .lessons .m { grid-column: 2; }
  .lessons .d { grid-column: 2; }
  .btn { width: 100%; }
}
.sub-h { margin-top: 44px; }
.note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.nav a.btn, .nav a.btn:hover { color: #fff; text-decoration: none; }
@media (max-width: 720px) {
  .top .wrap { gap: 10px; }
  .brand { white-space: nowrap; font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .nav .btn { width: auto; white-space: nowrap; padding: 8px 12px; }
  .sample { padding: 16px; }
  th, td { padding: 8px 8px; }
}
