/* Habakkuk Academy — Project Management. Black & white with colourful PM icons. */
:root {
  --bg: #000; --bg2: #0B0B0B; --card: #121212; --card2: #1A1A1A; --line: #262626; --line2: #333;
  --fg: #fff; --muted: #A3A3A3; --dim: #737373;
  --red: #FF5A5F; --amber: #FFB400; --teal: #00C2A8; --blue: #3D7BFF; --green: #22C55E; --purple: #A855F7; --orange: #F97316; --pink: #EC4899;
  --gold: #C9A35B;
  --radius: 18px; --serif: 'Playfair Display', Georgia, serif; --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, select { font: inherit; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }

/* layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
h1, .h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; margin: 0 0 18px; letter-spacing: -.01em; }
h2, .h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 14px; }
h3 { font-size: 1.15rem; margin: 0 0 6px; font-weight: 600; }
.lead { font-size: 1.15rem; color: #D4D4D4; max-width: 560px; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; max-width: 1120px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; color: #000; font-family: var(--serif); font-weight: 900; font-size: 1rem; position: relative; }
.brand-mark::after { content: ''; position: absolute; bottom: 6px; left: 10px; right: 8px; height: 3px; border-radius: 3px; background: var(--gold); }
.nav nav { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: #fff; }
@media (max-width: 560px) { .nav nav a.hide-sm { display: none; } .brand span:last-child { font-size: .95rem; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; border: 1px solid #fff; background: #fff; color: #000; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: #fff; border-color: var(--line2); }
.btn.ghost:hover { border-color: #fff; }
.btn.small { padding: 9px 16px; font-size: .9rem; }
.btn.block { width: 100%; }
.nav .btn.small { color: #000; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* notice */
.notice { border: 1px solid var(--line2); background: var(--bg2); border-radius: 14px; padding: 14px 18px; color: #D4D4D4; font-size: .92rem; display: flex; gap: 12px; align-items: flex-start; }
.notice::before { content: 'i'; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #000; font-weight: 700; display: grid; place-items: center; font-size: .8rem; font-family: Georgia, serif; font-style: italic; margin-top: 1px; }
.notice.small::before { display: none; }
.notice.small { display: block; margin-top: 24px; }

/* hero */
.hero { padding: 48px 0 72px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 420px; justify-self: center; width: 100%; }
.hero-art .tile { display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; aspect-ratio: 1; animation: float 6s ease-in-out infinite; }
.hero-art .tile:nth-child(even) { margin-top: 18px; }
.hero-art .tile svg { width: 58%; height: 58%; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-art .tile { animation: none; } }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } .hero-art { max-width: 320px; } }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .9rem; }
.pill { border: 1px solid var(--line2); border-radius: 999px; padding: 4px 12px; }

/* module cards */
.mod-card { display: flex; gap: 16px; align-items: flex-start; }
.mod-card > [data-icon], .step > [data-icon] { flex: 0 0 auto; display: inline-block; line-height: 0; }
.mod-card .num { font-size: .75rem; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }
.mod-card p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }
.step { text-align: left; }
.step .k { font-family: var(--serif); font-size: 2.2rem; font-weight: 900; color: #333; line-height: 1; }

/* 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(--muted); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 10px 0 0; }

/* pricing */
.price-card { max-width: 520px; margin: 0 auto; text-align: center; }
.price { font-family: var(--serif); font-weight: 900; font-size: clamp(3rem, 10vw, 4.4rem); line-height: 1; margin: 12px 0 4px; }
.price small { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--muted); }
.select { width: 100%; background: #000; color: #fff; border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.select:focus, .input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.checks { list-style: none; padding: 0; margin: 22px 0; text-align: left; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ''; flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.charge-note { font-size: .85rem; color: var(--muted); margin: 8px 0 0; min-height: 1.4em; }
.alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: .95rem; }
.alert.err { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); color: #FCA5A5; }
.alert.ok { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .4); color: #86EFAC; }

/* forms */
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #000; border: 1px solid var(--line2); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 10px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.tabs button.on { background: #fff; color: #000; }
label { display: block; font-size: .9rem; color: #D4D4D4; margin: 14px 0 6px; }
.input { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line2); background: #000; color: #fff; }
.hint { font-size: .8rem; color: var(--dim); margin-top: 6px; }

/* ===== learning app ===== */
.app-top { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.app-top .nav { padding: 12px 20px; }
.progress { height: 4px; background: #1F1F1F; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--amber), var(--teal), var(--blue), var(--purple), var(--pink)); transition: width .5s ease; }
.stage { max-width: 680px; margin: 0 auto; padding: 32px 20px 120px; min-height: calc(100vh - 70px); }
.stage-anim { animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mod-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.intro-icon { width: 96px; height: 96px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 22px; }
.reading p { font-size: 1.07rem; line-height: 1.75; color: #E5E5E5; margin: 0 0 20px; }
.reading p:first-of-type::first-letter { font-family: var(--serif); font-weight: 900; float: left; font-size: 3.4rem; line-height: .9; padding: 6px 10px 0 0; }
.qdots { display: flex; gap: 6px; margin-bottom: 18px; }
.qdots i { flex: 1; height: 5px; border-radius: 5px; background: #262626; }
.qdots i.done { background: #fff; }
.qdots i.cur { background: var(--blue); }
.question { font-size: 1.25rem; font-weight: 600; line-height: 1.45; margin: 0 0 22px; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; width: 100%; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--card); color: #fff; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; line-height: 1.45; transition: border-color .15s, background .15s; }
.opt:hover:not(:disabled) { border-color: #fff; }
.opt .key { flex: 0 0 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line2); display: grid; place-items: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
.opt.right { border-color: var(--green); background: rgba(34, 197, 94, .1); }
.opt.right .key { background: var(--green); border-color: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red); background: rgba(255, 90, 95, .1); }
.opt.wrong .key { background: var(--red); border-color: var(--red); color: #fff; }
.opt:disabled { cursor: default; }
.feedback { position: fixed; left: 0; right: 0; bottom: 0; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #0B0B0B; transform: translateY(110%); transition: transform .3s ease; z-index: 20; }
.feedback.show { transform: none; }
.feedback .in { max-width: 680px; margin: 0 auto; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.feedback .msg { flex: 1 1 300px; }
.feedback .msg strong { display: block; font-size: 1.05rem; }
.feedback.good strong { color: var(--green); }
.feedback.bad strong { color: var(--red); }
.feedback .msg span { color: #D4D4D4; font-size: .93rem; }
.center { text-align: center; }
.celebrate { font-size: 0; display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
.banner { border-radius: 12px; padding: 10px 14px; font-size: .88rem; margin-bottom: 18px; border: 1px dashed var(--line2); color: #D4D4D4; }
.banner b { color: var(--amber); }
.drawer { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); z-index: 30; display: none; }
.drawer.open { display: block; }
.drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: #0B0B0B; border-left: 1px solid var(--line); padding: 22px; overflow-y: auto; }
.mod-link { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; background: none; color: #fff; width: 100%; text-align: left; }
.mod-link:hover { border-color: var(--line2); background: var(--card); }
.mod-link .st { margin-left: auto; font-size: .78rem; color: var(--dim); white-space: nowrap; }
.mod-link.locked { opacity: .45; cursor: not-allowed; }
.icon-btn { background: none; border: 1px solid var(--line2); color: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: .88rem; }

/* certificate page */
.cert-frame { background: #111; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.cert-frame img { display: block; width: 100%; height: auto; border-radius: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* verify */
.verify-card { margin: 32px 0 60px; }
.v-badge { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.1rem; margin: 20px 0; }
.v-badge.ok { color: #86EFAC; } .v-badge.bad { color: #FCA5A5; }
.v-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.v-list div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.v-list dt { color: var(--muted); font-size: .9rem; }
.v-list dd { margin: 0; font-weight: 500; }
.v-name { font-family: var(--serif); font-size: 1.3rem; }
@media (max-width: 520px) { .v-list div { grid-template-columns: 1fr; gap: 2px; } }

/* admin */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.table-scroll { overflow-x: auto; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; border: 1px solid var(--line2); }
.tag.g { border-color: var(--green); color: var(--green); } .tag.a { border-color: var(--amber); color: var(--amber); } .tag.b { border-color: var(--blue); color: var(--blue); }

.foot { border-top: 1px solid var(--line); padding: 32px 20px; text-align: center; color: var(--dim); font-size: .88rem; }
.foot a { color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid #262626; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
