/* Habakkuk Academy · Digital Marketing — black theme with colourful marketing icons */
:root {
  --bg: #000;
  --surface: #0c0c0e;
  --surface-2: #141418;
  --line: #24242b;
  --line-2: #33333c;
  --text: #f6f5f2;
  --muted: #a3a3ad;
  --faint: #6f6f7a;
  --gold: #d4a24c;
  --gold-2: #f0c46c;
  --pink: #ff3d7f;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --amber: #fbbf24;
  --violet: #a78bfa;
  --orange: #fb923c;
  --blue: #60a5fa;
  --emerald: #34d399;
  --danger: #f87171;
  --ok: #4ade80;
  --radius: 16px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--gold-2); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -.25em; flex: none; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(0,0,0,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand-mark { width: 34px; height: 34px; }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1; margin-top: 3px; }
.brand-text { line-height: 1.1; }
.nav { display: flex; gap: 4px; margin-left: 18px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.auth-slot { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) { .nav { display: none; } .brand small { display: none; } .auth-slot .btn { padding: 9px 13px; font-size: .9rem; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 600 .98rem/1 var(--sans); padding: 12px 18px; border-radius: 12px; cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--gold); border-color: var(--gold); color: #111; }
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn-light { background: #fff; color: #000; border-color: #fff; }
.btn-lg { padding: 16px 24px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--gold-2); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* Non-accredited badge */
.badge-na { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gold); color: var(--gold-2); background: rgba(212,162,76,.08); padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.notice { border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius); padding: 16px 18px; color: var(--muted); font-size: .95rem; }
.notice strong { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.icon-cloud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.icon-tile { aspect-ratio: 1; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.icon-tile .icon { width: 44%; height: 44%; }
.icon-tile:nth-child(2n) { transform: translateY(14px); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .icon-cloud { max-width: 380px; } }

.c-pink { color: var(--pink); } .c-cyan { color: var(--cyan); } .c-lime { color: var(--lime); } .c-amber { color: var(--amber); }
.c-violet { color: var(--violet); } .c-orange { color: var(--orange); } .c-blue { color: var(--blue); } .c-emerald { color: var(--emerald); } .c-gold { color: var(--gold-2); }
.bg-pink { background: rgba(255,61,127,.12); border-color: rgba(255,61,127,.35); }
.bg-cyan { background: rgba(34,211,238,.10); border-color: rgba(34,211,238,.35); }
.bg-lime { background: rgba(163,230,53,.10); border-color: rgba(163,230,53,.35); }
.bg-amber { background: rgba(251,191,36,.10); border-color: rgba(251,191,36,.35); }
.bg-violet { background: rgba(167,139,250,.12); border-color: rgba(167,139,250,.35); }
.bg-orange { background: rgba(251,146,60,.10); border-color: rgba(251,146,60,.35); }
.bg-blue { background: rgba(96,165,250,.10); border-color: rgba(96,165,250,.35); }
.bg-emerald { background: rgba(52,211,153,.10); border-color: rgba(52,211,153,.35); }

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 30px; }
.eyebrow { color: var(--gold-2); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; display: block; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 12px; }
.icon-chip { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; border: 1px solid; }
.icon-chip .icon { width: 24px; height: 24px; }
.module-card { display: flex; flex-direction: column; gap: 6px; }
.module-card .num { font-size: .78rem; color: var(--faint); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.module-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.stat { font-family: var(--serif); font-size: 2.2rem; font-weight: 800; }

/* Price */
.price-card { border: 1px solid var(--gold); background: linear-gradient(180deg, rgba(212,162,76,.08), transparent 60%), var(--surface); border-radius: 22px; padding: 30px; }
.price { font-family: var(--serif); font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 800; line-height: 1; }
.price small { font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-alt { color: var(--muted); margin-top: 8px; font-size: .98rem; }
.checklist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--lime); margin-top: 3px; }
.currency-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 6px; }
select, input[type=text], input[type=email], input[type=password] { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 1rem; width: 100%; }
select { width: auto; padding-right: 32px; }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,162,76,.2); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: '+'; color: var(--gold-2); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Forms / auth */
.auth-wrap { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.auth-card h1 { font-size: 2rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.form-msg { border-radius: 12px; padding: 12px 14px; font-size: .95rem; margin-bottom: 14px; }
.form-msg.error { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.4); color: #fecaca; }
.form-msg.ok { background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.35); color: #bbf7d0; }
.form-foot { margin-top: 16px; font-size: .95rem; color: var(--muted); text-align: center; }

/* Dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 40px 0 20px; }
.progress { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--amber), var(--lime), var(--cyan)); border-radius: 99px; transition: width .4s; }
.continue-card { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.module-row { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.module-row > button { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 14px; align-items: center; padding: 18px 20px; cursor: pointer; }
.module-row > button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -2px; }
.module-row .grow { flex: 1; min-width: 0; }
.module-row .mtitle { font-weight: 700; }
.module-row .msub { color: var(--muted); font-size: .9rem; }
.module-items { border-top: 1px solid var(--line); padding: 6px 10px 10px; }
.item-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.item-link:hover { background: var(--surface-2); }
.item-link.locked { color: var(--faint); pointer-events: none; }
.item-link .state { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); flex: none; }
.item-link .state .icon { width: 14px; height: 14px; }
.item-link.done .state { background: var(--lime); border-color: var(--lime); color: #000; }
.item-link.current .state { border-color: var(--gold); color: var(--gold-2); }
.item-link .meta { margin-left: auto; color: var(--faint); font-size: .85rem; }
.pill { font-size: .75rem; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.pill.done { border-color: var(--lime); color: var(--lime); }
.pill.current { border-color: var(--gold); color: var(--gold-2); }

/* Player */
.player { max-width: 720px; margin: 0 auto; padding: 24px 20px 60px; }
.player-top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.player-top .progress { flex: 1; }
.close-x { color: var(--muted); text-decoration: none; font-size: 1.6rem; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.close-x:hover { color: var(--text); background: var(--surface-2); }
.step-label { color: var(--faint); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.lesson-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; min-height: 280px; animation: rise .3s ease; }
.lesson-card h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.lesson-card p { white-space: pre-line; color: #dcdce2; }
.lesson-card ul { padding-left: 20px; color: #dcdce2; }
.lesson-card li { margin-bottom: 8px; }
.lesson-card.example { border-color: rgba(34,211,238,.4); }
.lesson-card.takeaway { border-color: var(--gold); background: linear-gradient(180deg, rgba(212,162,76,.1), transparent 70%), var(--surface); }
.tag { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.options { display: grid; gap: 10px; margin-top: 18px; }
.option { text-align: left; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 14px; padding: 15px 16px; font: inherit; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; }
.option:hover:not([disabled]) { border-color: var(--muted); }
.option .key { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--muted); }
.option.selected { border-color: var(--gold); background: rgba(212,162,76,.1); }
.option.selected .key { background: var(--gold); color: #000; border-color: var(--gold); }
.option.correct { border-color: var(--ok); background: rgba(74,222,128,.1); }
.option.wrong { border-color: var(--danger); background: rgba(248,113,113,.1); }
.option[disabled] { cursor: default; }
.feedback { margin-top: 14px; padding: 14px 16px; border-radius: 14px; font-size: .96rem; }
.feedback.good { background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.35); }
.feedback.bad { background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.35); }
.player-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.result-big { font-family: var(--serif); font-size: 4rem; font-weight: 800; line-height: 1; }
.review-item { border-top: 1px solid var(--line); padding: 14px 0; }
.review-item .ok { color: var(--ok); } .review-item .no { color: var(--danger); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Certificate */
.cert-stage { background: #111; border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.cert-stage canvas, .cert-stage img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; }
.inline-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.inline-links a, .inline-links button { color: var(--gold-2); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.verify-card { border-radius: 22px; padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.verify-card.valid { border-color: rgba(74,222,128,.5); }
.verify-card.invalid { border-color: rgba(248,113,113,.5); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 18px; margin: 16px 0 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }

/* Misc */
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--gold); animation: spin 1s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block { padding: 60px 0; text-align: center; color: var(--muted); }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose p, .prose li { color: #d4d4da; }
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--faint); font-size: .9rem; margin-top: 40px; }
.site-footer .wrap { display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; margin-right: 16px; }
.site-footer a:hover { color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; z-index: 50; }
