/* ============ PC × Maahir — main theme ============ */
:root {
  --pc-green: #0d7a3f;
  --pc-green-dark: #0a5c30;
  --maahir-teal: #0e7490;
  --ink: #1a2b3c;
  --muted: #46586a;
  --bg: #f5f7f6;
  --card: #ffffff;
  --gold: #c9a227;
}

body { background: var(--bg); color: var(--ink); font-size: 16.5px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }

/* Phone frame: at least 16px page margins */
@media (max-width: 575.98px) {
  .container { padding-inline: 18px; }
}

/* Navbar */
.site-nav { background: #fff; z-index: 1030; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); }
.brand-mark { background: var(--pc-green); color: #fff; padding: .28rem .55rem; border-radius: .45rem; letter-spacing: .5px; font-size: .95rem; }
.brand-x { opacity: .75; font-weight: 400; }
.brand-text { color: var(--muted); font-size: .95rem; }
.nav-auth .nav-cta { margin: .2rem .2rem .2rem .4rem; }

/* Hero */
.hero {
  background: #f2f6f4;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero h1 {
  font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
}
.hero .lead-xl { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.badge-row .badge { font-weight: 600; letter-spacing: .3px; }

/* Hero photo: one dominant image */
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: .9rem;
  animation: slow-zoom 22s ease-in-out infinite alternate;
}
@media (min-width: 992px) {
  .hero-photo img { aspect-ratio: 5 / 5.4; } /* fills the first screen: the dominant element */
}
.hero-photo figcaption { font-size: 13.5px; color: var(--muted); margin-top: .5rem; }
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.05); } }

/* Photo band */
.photo-card { margin: 0; height: 100%; display: flex; flex-direction: column; }
.photo-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: .9rem .9rem 0 0; }
.photo-card figcaption {
  background: var(--card); border-radius: 0 0 .9rem .9rem; padding: 1rem 1.1rem;
  font-size: 15.5px; color: var(--ink); flex: 1;
}
.credit-note { display: block; margin-top: .35rem; font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { max-width: 760px; margin-bottom: 2.2rem; }
.section-head h2 { font-weight: 800; letter-spacing: -.015em; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }

/* Reveal-on-scroll (motion layer) — only active when JS is running (html.js) */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; transition-delay: var(--d, 0s); }
html.js [data-reveal].reveal-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-photo img { animation: none; }
}

/* Cards */
.card { border: none; border-radius: .9rem; background: var(--card); }
.card .icon-tile {
  width: 2.6rem; height: 2.6rem; border-radius: .65rem; display: grid; place-items: center;
  background: rgba(13,122,63,.1); color: var(--pc-green); font-size: 1.1rem; margin-bottom: .9rem;
}
.lift { transition: transform .15s ease; }
.lift:hover { transform: translateY(-3px); }

/* Goal grid */
.goal-card { text-decoration: none; color: inherit; display: block; height: 100%; border-top: 4px solid var(--goal, #333); }
.goal-card .goal-no { font-size: 13.5px; font-weight: 700; opacity: .75; }
.goal-card h5 { font-weight: 700; }
.goal-card p { color: var(--muted); font-size: .95rem; }
.badge { font-size: 13px; }
small, .small { font-size: 14px; }

/* Buttons */
.btn-pc { background: var(--pc-green); border-color: var(--pc-green); color: #fff; }
.btn-pc:hover { background: var(--pc-green-dark); border-color: var(--pc-green-dark); color: #fff; }
.btn-outline-pc { border-color: var(--pc-green); color: var(--pc-green); }
.btn-outline-pc:hover { background: var(--pc-green); color: #fff; }

/* Steps */
.step { display: flex; gap: 1rem; }
.step .num {
  flex: 0 0 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--pc-green); color: #fff; font-weight: 700;
}

/* Stats band */
.stats-band { background: #0d5c34; color: #fff; }
.stats-band .stat-num { font-size: 2rem; font-weight: 800; }
.stats-band .stat-label { opacity: .85; font-size: .9rem; }

/* Content prose */
.prose { font-size: 1.02rem; line-height: 1.75; color: #233247; }
.prose h2 { margin-top: 1.8rem; font-weight: 800; font-size: 1.35rem; }
.prose h3 { margin-top: 1.5rem; font-weight: 700; font-size: 1.15rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin-bottom: 1rem; }
.prose li { margin-bottom: .35rem; }
.prose strong { color: var(--ink); }

/* Quiz / module */
.quiz-option { cursor: pointer; padding: .8rem 1rem; border: 1.5px solid rgba(22,40,60,.12); border-radius: .6rem; transition: border-color .12s ease, background-color .12s ease; }
.quiz-option:hover { border-color: var(--pc-green); background: rgba(13,122,63,.05); }
.quiz-option.selected { border-color: var(--pc-green); background: rgba(13,122,63,.1); font-weight: 600; }
.quiz-option .opt-letter { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: .35rem; background: #eef2f0; font-weight: 700; font-size: .85rem; margin-right: .6rem; }
.result-pill { font-size: .8rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; }

/* Progress ring/bar */
.pbar { height: .55rem; border-radius: 99px; background: #e7ece9; overflow: hidden; }
.pbar > div { height: 100%; background: var(--pc-green); }

/* Footer */
.site-footer { background: #122029; color: #cfd9e2; padding: 3rem 0 1.5rem; }
.site-footer h6 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: .9rem; }
.site-footer .small, .site-footer small { font-size: 13.5px; }
.site-footer .credits { font-size: 13px; color: #8ea3b5; margin-top: 1.4rem; }
.site-footer .credits a { color: #9fb2c2; }
.footer-link { color: #9fb2c2; text-decoration: none; font-size: 14px; }
.footer-link:hover { color: #fff; }
.verify-mini .form-control { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
.verify-mini .form-control::placeholder { color: #8ea3b5; }

/* Auth */
.auth-wrap { max-width: 460px; margin: 4rem auto; padding: 0 1rem; }
.auth-card { padding: 2rem; }
.auth-brand { text-align: center; margin-bottom: 1.4rem; }

/* Toast */
.toast-holder { position: fixed; right: 1rem; bottom: 1rem; z-index: 2000; display: grid; gap: .5rem; }

/* Utility */
.min-vh-60 { min-height: 60vh; }
.text-mut { color: var(--muted) !important; }
/* certificate numbers and verification codes are code-like identifiers */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; } /* taste-skill-ignore */

@media print {
  .site-nav, .site-footer, .no-print { display: none !important; }
}
