/* =========================================================
   InspireTheSunnah Academy — site-wide additions
   Loaded after styles.css on every page: mobile menu, the
   multi-column footer, and the layouts for inner pages.
   ========================================================= */

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.skip:focus { left: 16px; }

/* ---------- Nav: active link, CTA group, mobile menu ---------- */
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 560; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 1100px) { .nav-links { gap: 24px; font-size: 14px; } }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-seat { margin-left: -6px; }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .7); place-items: center; transition: background .2s, border-color .2s; }
.nav-burger:hover { background: #fff; border-color: var(--ink); }
.nav-burger i { display: block; width: 16px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s; }
.nav-burger i + i { margin-top: 4px; }
.nav-burger span { display: grid; }
.nav-burger[aria-expanded="true"] i:first-child { transform: translateY(2.8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] i:last-child { transform: translateY(-2.8px) rotate(-45deg); }
@media (max-width: 900px) { .nav-burger { display: grid; } }
@media (max-width: 480px) { .nav-in { gap: 12px; } .nav-seat { display: none; } .nav-cta .btn-sm { padding: 0 15px; } }

.nav-sheet { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(30, 20, 48, .35); padding: 8px 0 26px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; }
.nav-sheet.open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.nav-sheet nav { display: grid; }
.nav-sheet nav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -.035em; }
.nav-sheet nav a .i { width: 18px; height: 18px; color: var(--muted); }
.nav-sheet nav a[aria-current="page"] { color: var(--emerald); }
.nav-sheet .sheet-foot { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.nav-sheet .sheet-foot .btn { flex: 1 1 220px; }
.menu-open .nav { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
@media (min-width: 901px) { .nav-sheet { display: none; } }

/* ---------- Footer ---------- */
.f-top { display: grid; grid-template-columns: 1.1fr 1.6fr; gap: 48px; }
.f-top > * { min-width: 0; }
.f-brand p { margin-top: 18px; max-width: 330px; font-size: 14.5px; line-height: 1.6; }
.f-social { display: flex; gap: 10px; margin-top: 18px; }
.f-social a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: #fff; }
.f-social a:hover { background: rgba(255, 255, 255, .08); }
.f-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.f-cols h2 { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .4); margin-bottom: 14px; }
.f-cols a { display: block; padding: 5px 0; font-size: 14.5px; }
.f-cols a:hover { color: #fff; }
@media (max-width: 820px) { .f-top { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 460px) { .f-cols { grid-template-columns: 1fr 1fr; row-gap: 28px; } }

/* =========================================================
   INNER PAGES
   ========================================================= */
.page main { display: block; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: .5; }

.page-hero { padding: 56px 0 72px; position: relative; }
.page-hero .eyebrow { margin-top: 28px; }
.page-title { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 7vw, 92px); line-height: .96; letter-spacing: -.032em; margin-top: 18px; max-width: 15ch; text-wrap: balance; }
.page-title em { font-family: var(--accent); font-weight: 400; letter-spacing: -.025em; color: var(--emerald); }
.page-title .saw { color: var(--gold); }
.page-title.sm { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; max-width: 22ch; }
.page-lead { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.page-hero .cta-row { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero .pills { margin-top: 26px; }
.page-hero.split .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: end; }
@media (max-width: 960px) { .page-hero.split .container { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 720px) { .page-hero { padding: 36px 0 52px; } .page-lead { font-size: 17.5px; } }
@media (max-width: 520px) { .page-hero .cta-row .btn { width: 100%; } }

/* "In short" — the direct answer, written to be quoted */
.answer { margin-top: 34px; max-width: 880px; padding: 24px 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); position: relative; }
.answer::before { content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--emerald); }
.answer-k { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--emerald); }
.answer-k .i { width: 15px; height: 15px; }
.answer p { margin-top: 10px; font-size: 17.5px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 520px) { .answer { padding: 20px; } .answer p { font-size: 16.5px; } }

/* Key facts */
.facts { margin: 0; border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-size: 13px; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; font-size: 15.5px; font-weight: 500; color: var(--ink); }
.facts dd small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.facts-head { padding: 18px 22px; background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.facts-head b { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.facts-head span { font-size: 12px; color: rgba(255, 255, 255, .6); }
@media (max-width: 480px) { .facts > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 18px; } }

/* Sections */
.sec { padding: 96px 0; position: relative; }
.sec.tight { padding-top: 24px; }
.sec.white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec.cream { background: var(--bg-2); }
@media (max-width: 720px) { .sec { padding: 68px 0; } }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.6vw, 56px); line-height: 1; letter-spacing: -.032em; margin-top: 16px; text-wrap: balance; }
.h2 em { font-family: var(--accent); font-weight: 400; letter-spacing: -.02em; color: var(--emerald); }
.sec-head .sub { max-width: 600px; }
.sec-head.center .sub { margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.card { padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.sec.white .card { background: var(--bg); }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .ci { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--emerald-soft); color: var(--emerald); margin-bottom: 20px; }
.card .ci .i { width: 20px; height: 20px; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.03em; line-height: 1.15; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.card .src { margin-top: 14px; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 550; color: var(--emerald); }
.src::before { content: ""; width: 14px; height: 1px; background: currentColor; }

/* The Sunnah Method steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.step { padding: 24px 22px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--c, var(--emerald)); }
.sec.white .step { background: var(--bg); }
.step-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.step-top b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 13px; }
.step h3 { margin-top: 22px; font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -.035em; }
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.55; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Week rhythm */
.rhythm { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 10px; border-radius: 26px; background: #fff; border: 1px solid var(--line); }
.rhythm > div { padding: 18px 10px; border-radius: 18px; background: var(--bg); text-align: center; }
.rhythm small { display: block; font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rhythm b { display: block; margin-top: 8px; font-size: 14.5px; font-weight: 600; }
.rhythm span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.rhythm .sat { background: var(--emerald); color: #fff; }
.rhythm .sat small, .rhythm .sat span { color: rgba(255, 255, 255, .7); }
@media (max-width: 720px) { .rhythm { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Curriculum ---------- */
.stage-nav { position: sticky; top: 80px; z-index: 20; display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 48px; padding: 6px; border-radius: 99px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow-x: auto; scrollbar-width: none; }
.stage-nav::-webkit-scrollbar { display: none; }
.stage-nav a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 99px; font-size: 14px; font-weight: 550; color: var(--ink-2); white-space: nowrap; transition: background .25s, color .25s; }
.stage-nav a small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.stage-nav a.on { background: var(--ink); color: #fff; }
.stage-nav a.on small { color: rgba(255, 255, 255, .6); }
@media (max-width: 640px) { .stage-nav a small { display: none; } .stage-nav a { padding: 0 13px; font-size: 13.5px; } }
.stage { scroll-margin-top: 150px; }
.stage + .stage { margin-top: 72px; }
.stage-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: end; margin-bottom: 24px; }
.stage-no { font-family: var(--display); font-weight: 600; font-size: 64px; line-height: .8; letter-spacing: -.032em; color: var(--sc); }
.stage-head h3 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.032em; line-height: 1; }
.stage-head h3 small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sc); margin-bottom: 8px; }
.stage-head p { margin-top: 8px; color: var(--muted); font-size: 15.5px; max-width: 560px; }
.wk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1040px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .wk-grid { grid-template-columns: minmax(0, 1fr); } .stage-no { font-size: 48px; } }
.wk { display: flex; flex-direction: column; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); scroll-margin-top: 150px; }
.wk-top { display: flex; justify-content: space-between; align-items: center; }
.wk-n { font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--sc); }
.wk-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--scs); color: var(--sc); }
.wk h4 { margin-top: 16px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.035em; line-height: 1.1; }
.wk-ev { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.wk-days { margin-top: 18px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.wk-days li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.wk-days li small { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.wk-sat, .wk-sis { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.wk-sat .i, .wk-sis .i { width: 16px; height: 16px; margin-top: 2px; color: var(--sc); }
.wk-sis { margin-top: 8px; color: var(--muted); }
.wk-sat b { font-weight: 650; color: var(--ink); }

/* Who it's for */
.fit2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fit2 > div { padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: #fff; }
.fit2 h3 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.03em; }
.fit2 ul { margin-top: 16px; display: grid; gap: 12px; }
.fit2 li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.fit2 li .i { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.fit2 .yes .i { color: var(--emerald); }
.fit2 .no .i { color: var(--red); }
@media (max-width: 720px) { .fit2 { grid-template-columns: minmax(0, 1fr); } }

/* Included list */
.incl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.incl > div { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.sec.white .incl > div { background: var(--bg); }
.incl .vi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--emerald-soft); color: var(--emerald); flex: none; }
.incl .vi .i { width: 19px; height: 19px; }
.incl b { display: block; font-size: 15px; font-weight: 650; }
.incl span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 1040px) { .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .incl { grid-template-columns: minmax(0, 1fr); } }

/* Book shelf (sources) */
.shelf2 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.shelf2 > div { padding: 20px 18px; border-radius: 18px; color: #fff; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.shelf2 b { font-family: var(--accent); font-weight: 500; font-size: 18px; line-height: 1.2; }
.shelf2 small { font-size: 10.5px; font-weight: 650; letter-spacing: .16em; opacity: .7; }
@media (max-width: 900px) { .shelf2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shelf2 > div { min-height: 110px; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: 64px 56px; border-radius: 32px; background: var(--night); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern-w); background-size: 64px; opacity: .6; pointer-events: none; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.4vw, 54px); line-height: .98; letter-spacing: -.032em; }
.cta-band h2 em { font-family: var(--accent); font-weight: 400; color: var(--mint); letter-spacing: -.02em; }
.cta-band p { margin-top: 14px; color: rgba(255, 255, 255, .6); font-size: 16.5px; max-width: 520px; }
.cta-band .acts { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.cta-band .fine { font-size: 12.5px; color: rgba(255, 255, 255, .45); text-align: center; }
@media (max-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr); padding: 44px 24px; border-radius: 26px; } }

/* ---------- Prose (articles, about, legal) ---------- */
.prose { max-width: 720px; font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -.032em; color: var(--ink); margin-top: 2.1em; scroll-margin-top: 100px; }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.03em; color: var(--ink); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--emerald); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--emerald-2); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { display: grid; gap: .5em; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--emerald); opacity: .85; }
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 34px; counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; background: var(--emerald-soft); color: var(--emerald); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); font-family: var(--accent); font-size: 21px; line-height: 1.5; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--muted); }
.prose blockquote cite a { color: var(--emerald); }
.prose .note { padding: 18px 22px; border-radius: 18px; background: var(--gold-soft); color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prose td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
@media (max-width: 520px) { .prose { font-size: 16.5px; } .prose blockquote { font-size: 18.5px; padding: 18px 20px; } }

/* Article layout */
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 72px; align-items: start; }
.article-side { position: sticky; top: 100px; display: grid; gap: 14px; }
@media (max-width: 1040px) { .article-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } .article-side { position: static; } }
.side-card { padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.side-card h2 { font-size: 11.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.side-card ol { margin-top: 12px; display: grid; gap: 8px; font-size: 14.5px; counter-reset: t; }
.side-card ol a { color: var(--ink-2); }
.side-card ol a:hover { color: var(--emerald); }
.side-card.dark { background: var(--night); color: #fff; border-color: var(--night); }
.side-card.dark h2 { color: rgba(255, 255, 255, .5); }
.side-card.dark p { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.15; letter-spacing: -.03em; }
.side-card.dark small { display: block; margin-top: 8px; color: rgba(255, 255, 255, .55); font-size: 13.5px; }
.side-card.dark .btn { margin-top: 18px; width: 100%; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; font-size: 13.5px; color: var(--muted); }
.meta-row span { display: inline-flex; align-items: center; gap: 7px; }
.meta-row .i { width: 15px; height: 15px; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px; background: var(--emerald-soft); color: var(--emerald-2); font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.sources { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.sources h2 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.03em; }
.sources ol { margin-top: 14px; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); list-style: decimal; padding-left: 20px; }
.sources a { color: var(--emerald); }
.sources p { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* Journal index */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }
.post { display: flex; flex-direction: column; padding: 26px; border-radius: 26px; background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.post h2, .post h3 { margin-top: 18px; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.1; letter-spacing: -.035em; }
.post p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.post .post-meta { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.post .post-meta .go { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink); transition: background .25s, color .25s, border-color .25s; }
.post:hover .go { background: var(--ink); color: #fff; border-color: var(--ink); }
.post.feature { grid-column: span 2; background: var(--night); color: #fff; border-color: var(--night); }
.post.feature h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 16ch; }
.post.feature p { color: rgba(255, 255, 255, .6); max-width: 520px; }
.post.feature .tag { background: rgba(255, 107, 107, .15); color: var(--mint); }
.post.feature .post-meta { color: rgba(255, 255, 255, .5); }
.post.feature .go { border-color: rgba(255, 255, 255, .25); color: #fff; }
.post.feature:hover .go { background: #fff; color: var(--ink); }
@media (max-width: 640px) { .post.feature { grid-column: auto; } }

/* ---------- FAQ page ---------- */
.faq-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 36px; }
.faq-search { position: relative; flex: 1; min-width: 240px; max-width: 520px; }
.faq-search .i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.faq-search .input { padding-left: 48px; background: #fff; }
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-jump a { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13.5px; background: rgba(255, 255, 255, .6); }
.faq-jump a:hover { background: #fff; border-color: var(--ink); }
.faq-group { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.faq-group h2 { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -.032em; line-height: 1.05; }
.faq-group h2 small { display: block; margin-top: 10px; font-family: var(--sans); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
@media (max-width: 860px) { .faq-group { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 32px 0; } }
details.faq-item { border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
details.faq-item:first-child { border-top: 1px solid var(--line); }
details.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 17px; font-weight: 550; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .pm { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s; }
details.faq-item summary .pm .i { width: 14px; height: 14px; stroke-width: 2; }
details.faq-item[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
details.faq-item .fa { padding: 0 48px 22px 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
details.faq-item .fa a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
details.faq-item[open] .fa { animation: swapIn .4s var(--ease); }
@media (max-width: 520px) { details.faq-item .fa { padding-right: 0; } details.faq-item summary { font-size: 16px; } }
.faq-empty { padding: 40px 0; color: var(--muted); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 860px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }
.price { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 30px; background: #fff; border: 1px solid var(--line); }
.price.hot { background: var(--night); color: #fff; border-color: var(--night); box-shadow: var(--shadow-lg); }
.price-k { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price.hot .price-k { color: rgba(255, 255, 255, .6); }
.price-k .badge { height: 28px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 99px; background: rgba(255, 107, 107, .14); color: var(--mint); letter-spacing: .04em; text-transform: none; font-size: 12.5px; }
.price-amt { margin-top: 22px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-amt b { font-family: var(--display); font-weight: 600; font-size: 68px; line-height: 1; letter-spacing: -.032em; }
.price-amt span { font-size: 16px; color: var(--muted); }
.price.hot .price-amt span { color: rgba(255, 255, 255, .55); }
.price-total { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.price.hot .price-total { color: rgba(255, 255, 255, .6); }
.price ul { margin: 26px 0 28px; display: grid; gap: 12px; flex: 1; }
.price li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.price li .i { width: 18px; height: 18px; color: var(--emerald); margin-top: 2px; }
.price.hot li .i { color: var(--mint); }
.price .btn { width: 100%; }
.price.hot .btn-light:hover { background: var(--bg); }
.price .fine { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.price.hot .fine { color: rgba(255, 255, 255, .5); }
@media (max-width: 480px) { .price { padding: 26px 22px; border-radius: 26px; } .price-amt b { font-size: 56px; } }

.per-class { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 36px; border-radius: 30px; background: #fff; border: 1px solid var(--line); }
@media (max-width: 860px) { .per-class { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; } }
.seg { display: inline-flex; padding: 5px; border-radius: 99px; background: var(--bg-2); gap: 4px; margin-top: 20px; }
.seg button { height: 38px; padding: 0 16px; border-radius: 99px; font-size: 14px; font-weight: 550; color: var(--ink-2); transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pc-out { text-align: center; }
.pc-out b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(64px, 9vw, 110px); line-height: .9; letter-spacing: -.032em; color: var(--emerald); }
.pc-out span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); }
.pc-out span b { display: inline; font-family: var(--sans); font-size: inherit; letter-spacing: 0; color: var(--ink); font-weight: 650; }

.table-card { border-radius: 26px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; width: 22%; }
.cmp .i { width: 18px; height: 18px; color: var(--emerald); margin: 0 auto; }
@media (max-width: 520px) { .cmp th, .cmp td { padding: 12px 12px; font-size: 14px; } }

/* ---------- Teachers ---------- */
.tcard.soon .t-av span { background: var(--bg-2); color: var(--muted); }
.page .tcard { background: #fff; }
.t-soon { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--gold-soft); color: #C42B2B; font-size: 12px; font-weight: 600; }
.t-bio { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.vsteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: v; }
.vsteps > div { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); counter-increment: v; }
.vsteps > div::before { content: "0" counter(v); display: block; font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: -.032em; color: var(--emerald); line-height: 1; }
.vsteps h3 { margin-top: 18px; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.03em; }
.vsteps p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 980px) { .vsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vsteps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-card { padding: 34px; border-radius: 30px; background: #fff; border: 1px solid var(--line); }
@media (max-width: 520px) { .contact-card { padding: 24px 18px; border-radius: 24px; } }
.contact-card textarea.input { height: auto; min-height: 140px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.contact-card .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 560px) { .contact-card .row2 { grid-template-columns: minmax(0, 1fr); } }
.contact-card select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237A7167' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-card .done-box { padding: 40px 0; }
.contact-card.done form { display: none; }
.contact-card.done .done-box { display: flex; }
.c-side { display: grid; gap: 12px; }
.c-line { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.c-line .vi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--emerald-soft); color: var(--emerald); flex: none; }
.c-line b { display: block; font-size: 15px; font-weight: 650; }
.c-line span, .c-line a { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.c-line a { color: var(--emerald); }
a.c-line:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }

/* ---------- Legal ---------- */
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 100px; }
.legal-toc h2 { font-size: 11.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { margin-top: 14px; display: grid; gap: 9px; font-size: 14px; }
.legal-toc a { color: var(--ink-2); }
.legal-toc a:hover { color: var(--emerald); }
@media (max-width: 900px) { .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .legal-toc { position: static; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); } }
.updated { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.updated .i { width: 15px; height: 15px; }

/* ---------- 404 ---------- */
.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf-code { font-family: var(--display); font-weight: 600; font-size: clamp(110px, 20vw, 220px); line-height: .8; letter-spacing: -.032em; color: var(--line-2); }
.nf h1 { margin-top: 18px; font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.032em; line-height: 1; }
.nf h1 em { font-family: var(--accent); font-weight: 400; color: var(--emerald); }
.nf p { margin: 16px auto 0; color: var(--muted); font-size: 17px; max-width: 460px; }
.nf .cta-row { justify-content: center; margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* inner pages: footer clearance for the sticky CTA */
@media (max-width: 900px) { .page .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }

/* =========================================================
   MOTION & POLISH (inner pages)
   ========================================================= */
/* Hero art: the brand arch draws itself, then the lamp swings gently */
.page-hero { overflow: hidden; }
.page-hero > .container { position: relative; z-index: 1; }
.hero-art { position: absolute; top: 34px; right: max(24px, calc((100% - 1180px) / 2 + 48px)); width: 220px; pointer-events: none; z-index: 0; }
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes haDraw { to { stroke-dashoffset: 0; } }

/* Headlines reveal line by line (site.js wraps lines in .ln) */
.split[data-reveal] { opacity: 1; transform: none; }

/* Section eyebrow rule draws in; the "In short" bar grows */
.sec-head[data-reveal] .eyebrow::before { width: 0; transition: width .8s var(--ease) .25s; }
.sec-head.in .eyebrow::before, .reveal-all .sec-head .eyebrow::before, .no-js .sec-head .eyebrow::before { width: 20px; }
.answer::before { transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease) .35s; }
.answer.in::before, .reveal-all .answer::before, .no-js .answer::before { transform: none; }

/* Hover lift that keeps the scroll-reveal fade intact (uses `translate`, not `transform`) */
@media (hover: hover) and (pointer: fine) {
  .card, .step, .wk, .incl > div, .vsteps > div, .route, .post {
    transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms), translate .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, background-color .3s;
  }
  .card:hover, .step:hover, .wk:hover, .incl > div:hover, .vsteps > div:hover, .route:hover, .post:hover { translate: 0 -4px; box-shadow: var(--shadow-md); }
  a.card:hover, .post:hover { transform: none; }
}

/* ---------- About: mission & vision ---------- */
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mv-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 320px; padding: 40px; border-radius: 30px; }
.mv-card > * { position: relative; z-index: 1; }
.mv-card::after { content: ""; position: absolute; right: -36px; bottom: -70px; width: 230px; height: 280px; border: 2px solid currentColor; border-bottom: 0; border-radius: 115px 115px 0 0; opacity: .09; }
.mv-card.dark { background: var(--night); color: #fff; }
.mv-card.light { background: var(--emerald-soft); color: var(--ink); }
.mv-k { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.mv-k .i { width: 17px; height: 17px; }
.mv-card.dark .mv-k { color: var(--mint); }
.mv-card.light .mv-k { color: var(--emerald); }
.mv-card h2 { font-family: var(--display); font-weight: 600; font-size: clamp(27px, 3vw, 40px); line-height: 1.08; letter-spacing: -.032em; text-wrap: balance; }
.mv-card h2 em { font-family: var(--accent); font-weight: 400; letter-spacing: -.02em; }
.mv-card.dark h2 em { color: var(--mint); }
.mv-card.light h2 em { color: var(--emerald); }
@media (max-width: 820px) { .mv { grid-template-columns: minmax(0, 1fr); } .mv-card { min-height: 0; padding: 30px 24px; gap: 32px; } }

/* Count-up numbers */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 26px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.numbers > div { padding: 28px 26px; border-left: 1px solid var(--line); }
.numbers > div:first-child { border-left: 0; }
.numbers b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(44px, 5vw, 66px); line-height: 1; letter-spacing: -.032em; font-variant-numeric: tabular-nums; }
.numbers > div > span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } .numbers > div:nth-child(3) { border-left: 0; } .numbers > div:nth-child(n+3) { border-top: 1px solid var(--line); } .numbers > div { padding: 22px 18px; } }

.sec.flush-b { padding-bottom: 16px; }

/* Marquee on inner pages */
.page .marquee { margin-top: 56px; }

/* Values */
.value { position: relative; }
.value .v-n { position: absolute; top: 24px; right: 26px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.02em; color: var(--line-2); }

/* Quote card */
.quote-card { position: relative; margin: 0; padding: 44px 40px 36px; font-family: var(--accent); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4; color: var(--ink); }
.quote-card::before { content: "\201C"; position: absolute; top: 2px; left: 26px; font-family: var(--accent); font-size: 110px; line-height: 1; color: var(--emerald); opacity: .14; }
.quote-card cite { display: block; margin-top: 18px; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); }
.quote-card cite a { color: var(--emerald); }
.prose em.acc { font-family: var(--accent); font-weight: 400; color: var(--emerald); }

/* Dark band + promises */
.sec.dark-sec { background: var(--night); color: #FDE8E6; }
.dark-sec .h2 { color: #fff; }
.dark-sec .h2 em { color: var(--mint); }
.pledge { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pledge li { display: flex; gap: 14px; align-items: flex-start; padding: 24px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms), background-color .3s, border-color .3s; }
.pledge li:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 107, 107, .3); }
.pl-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 107, 107, .14); color: var(--mint); flex: none; }
.pl-ic .i { width: 17px; height: 17px; stroke-width: 2.4; }
.pledge li > div > b { display: block; color: #fff; font-size: 17px; font-weight: 600; }
.pledge li > div > span { display: block; margin-top: 4px; font-size: 14px; color: rgba(253, 232, 230, .6); }
@media (max-width: 980px) { .pledge { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pledge { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact: topic routes ---------- */
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.route { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-align: left; }
.route .vi { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--emerald-soft); color: var(--emerald); flex: none; }
.route .vi .i { width: 19px; height: 19px; }
.route .r-t { flex: 1; min-width: 0; }
.route b { display: block; font-size: 15.5px; font-weight: 650; }
.route small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.route .r-go { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.route:hover .r-go { transform: translateX(3px); color: var(--ink); }
.route.on { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(196, 43, 43, .12); }
@media (max-width: 900px) { .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .routes { grid-template-columns: minmax(0, 1fr); } }
#message { scroll-margin-top: 90px; }
.cc-h { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -.035em; margin-bottom: 20px; }
.c-next, .c-quick { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.c-next h3, .c-quick h3 { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.03em; margin-bottom: 14px; }
.c-next ol { display: grid; gap: 12px; }
.c-next li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.c-next li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-soft); color: var(--emerald); font-size: 12.5px; flex: none; }
.c-quick details.faq-item summary { font-size: 15px; padding: 14px 0; }
.c-quick details.faq-item .fa { padding-right: 0; font-size: 14.5px; }
.c-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--emerald); }
.c-more .i { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.c-more:hover .i { transform: translateX(3px); }

/* ---------- Lead box (journal, articles) ---------- */
.lead-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 40px; border-radius: 30px; background: var(--emerald-soft); border: 1px solid #F6D5D5; }
.lb-copy h2 { margin-top: 12px; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 36px); line-height: 1.05; letter-spacing: -.032em; }
.lb-copy p { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
.lead-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.lead-form .input { background: #fff; }
.lead-form .btn, .lead-form .form-note { grid-column: 1 / -1; }
.lb-done { display: none; align-items: center; gap: 14px; }
.lb-done .big-check { width: 52px; height: 52px; }
.lb-done .big-check .i { width: 24px; height: 24px; }
.lb-done p { font-size: 16px; color: var(--ink-2); }
.lead-box.done .lead-form { display: none; }
.lead-box.done .lb-done { display: flex; }
@media (max-width: 820px) { .lead-box { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; gap: 22px; } .lead-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Journal: topic filter ---------- */
.topic-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.topic-filter button { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .6); font-size: 14px; font-weight: 550; color: var(--ink-2); transition: background .25s, color .25s, border-color .25s; }
.topic-filter button small { font-size: 12px; font-weight: 500; color: var(--muted); }
.topic-filter button:hover { border-color: var(--ink); }
.topic-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.topic-filter button[aria-pressed="true"] small { color: rgba(255, 255, 255, .6); }
.post[hidden] { display: none; }
.post-grid.filtered .post.feature { grid-column: auto; }
.post.pop { animation: postIn .55s var(--ease) both; animation-delay: var(--pd, 0ms); }
@keyframes postIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Article: mid-article course prompt ---------- */
.prose .mid-cta { margin: 2.2em 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 22px 24px; border-radius: 22px; background: var(--night); color: #fff; }
.prose .mid-cta .mc-k { display: inline-flex; align-items: center; gap: 8px; width: 100%; font-size: 11.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); }
.prose .mid-cta .mc-k .i { width: 16px; height: 16px; }
.prose .mid-cta p { margin: 0; flex: 1 1 260px; font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.prose .mid-cta b { color: #fff; font-weight: 600; }
.prose .mid-cta .btn { background: #fff; color: var(--ink); text-decoration: none; }

/* Gift page: three steps */
.vsteps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .vsteps.three { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   COURSES HUB + "COMING NEXT"
   ========================================================= */
/* Now enrolling */
.now-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 40px; align-items: center; padding: 52px; border-radius: 32px; background: var(--night); color: #fff; }
.now-card::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern-w); background-size: 64px; opacity: .55; pointer-events: none; -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000); mask-image: linear-gradient(100deg, transparent 45%, #000); }
.now-card > * { position: relative; z-index: 1; min-width: 0; }
.now-badge { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 14px; border-radius: 99px; background: rgba(255, 107, 107, .12); color: var(--mint); font-size: 13px; font-weight: 600; }
.now-card h2 { margin-top: 22px; font-family: var(--display); font-weight: 600; font-size: clamp(44px, 6vw, 76px); line-height: .95; letter-spacing: -.032em; }
.now-card h2 .saw { color: var(--gold); }
.now-tag { margin-top: 8px; font-family: var(--accent); font-size: clamp(24px, 2.6vw, 32px); color: var(--mint); }
.now-sub { margin-top: 16px; max-width: 480px; font-size: 16.5px; color: rgba(255, 255, 255, .65); }
.now-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.now-facts span { display: inline-flex; align-items: baseline; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: rgba(255, 255, 255, .7); line-height: 34px; }
.now-facts b { font-family: var(--display); font-size: 17px; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.now-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.now-card .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.now-card .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.now-fine { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .45); }
.now-stages { display: grid; gap: 10px; }
.now-stages li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); opacity: 0; transform: translateX(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 110ms + 300ms); }
.now-card.in .now-stages li, .reveal-all .now-stages li, .no-js .now-stages li { opacity: 1; transform: none; }
.now-stages b { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--mint); letter-spacing: -.032em; }
.now-stages span { font-size: 16px; font-weight: 600; }
.now-stages small { display: block; font-size: 12.5px; font-weight: 400; color: rgba(255, 255, 255, .5); }
@media (max-width: 920px) { .now-card { grid-template-columns: minmax(0, 1fr); padding: 34px 22px; gap: 28px; } }
@media (max-width: 520px) { .now-ctas .btn { width: 100%; } }

/* Upcoming course cards */
.up-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .up-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .up-cards { grid-template-columns: minmax(0, 1fr); } }
.up-card { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: 26px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms), translate .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.up-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--uc); transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease); }
.up-card.picked::before { transform: none; }
.up-card.picked { border-color: var(--uc); box-shadow: var(--shadow-md); }
@media (hover: hover) and (pointer: fine) { .up-card:hover { translate: 0 -4px; box-shadow: var(--shadow-md); } .up-card:hover::before { transform: scaleX(1); } }
.up-top { display: flex; justify-content: space-between; align-items: center; }
.up-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-2); background: color-mix(in srgb, var(--uc) 11%, #fff); color: var(--uc); flex: none; }
.up-ic .i { width: 21px; height: 21px; }
.up-status { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px; background: var(--gold-soft); color: #C42B2B; font-size: 12px; font-weight: 650; }
.up-card h3 { margin-top: 20px; font-family: var(--display); font-weight: 600; font-size: 25px; letter-spacing: -.032em; line-height: 1.05; }
.up-tag { margin-top: 6px; font-family: var(--accent); font-size: 18.5px; color: var(--uc); }
.up-about { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.up-learn { margin: 16px 0 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.up-learn li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.up-learn .i { width: 15px; height: 15px; margin-top: 3px; color: var(--uc); stroke-width: 2.3; }
.up-vote { position: relative; height: 46px; border-radius: 99px; border: 1.5px solid var(--line-2); font-size: 14.5px; font-weight: 600; transition: background .25s, color .25s, border-color .25s, transform .2s; }
.up-vote span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.up-vote .i { width: 16px; height: 16px; stroke-width: 2.2; }
.up-vote .uv-on { display: none; }
.up-vote:hover { border-color: var(--uc); color: var(--uc); }
.up-vote:active { transform: scale(.97); }
.up-vote[aria-pressed="true"] { background: var(--uc); border-color: var(--uc); color: #fff; }
.up-vote[aria-pressed="true"] .uv-on { display: inline-flex; animation: pop .45s var(--ease); }
.up-vote[aria-pressed="true"] .uv-off { display: none; }

/* Notify panel (sticks to the bottom of the screen on desktop while you browse the cards) */
.up-panel { margin-top: 20px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px 28px; align-items: center; padding: 22px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (min-width: 1024px) { .up-panel { position: sticky; bottom: 16px; z-index: 30; box-shadow: 0 24px 50px -24px rgba(30, 20, 48, .35); } }
.up-panel.has { border-color: var(--emerald); }
.up-panel-copy h3 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.035em; }
.up-panel-copy p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.up-panel-copy p b { color: var(--ink); font-weight: 600; }
.up-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; }
.up-form .input { height: 48px; }
.up-form .btn { width: 100%; }
.up-form .btn-lg { --h: 48px; }
.up-form .form-note, .up-form .up-err { grid-column: 1 / -1; margin: 0; }
.up-err { font-size: 13.5px; font-weight: 600; color: var(--red); }
.up-done { display: none; align-items: center; gap: 14px; }
.up-done .big-check { width: 48px; height: 48px; flex: none; }
.up-done .big-check .i { width: 22px; height: 22px; }
.up-done p { font-size: 15.5px; color: var(--ink-2); }
.up-panel.done .up-form { display: none; }
.up-panel.done .up-done { display: flex; }
@media (max-width: 1023px) { .up-panel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .up-form { grid-template-columns: minmax(0, 1fr); } }

/* Home: "coming next" strip */
.upcoming-home { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.up-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .up-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .up-tiles { grid-template-columns: minmax(0, 1fr); } }
.up-tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms), translate .4s var(--ease), border-color .3s, box-shadow .4s; }
.up-tile:hover { translate: 0 -3px; border-color: var(--uc); box-shadow: var(--shadow-sm); }
.up-tile .ut-t { flex: 1; min-width: 0; }
.up-tile b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.up-tile small { display: block; margin-top: 2px; font-family: var(--accent); font-size: 15px; line-height: 1.3; color: var(--uc); }
.up-more { margin-top: 28px; }
@media (max-width: 520px) { .up-more .btn { width: 100%; } }

/* =========================================================
   LOADING SCREEN — hold the hero animations until it opens
   ========================================================= */
.loader-on .hero [data-reveal], .loader-on .page-hero [data-reveal] { transition-delay: calc(var(--d, 0ms) + .62s); }
.loader-on .hero .ln > span, .loader-on .page-hero .ln > span { transition-delay: calc(var(--i, 0) * 110ms + .66s); }

/* =========================================================
   LOGO CONCEPTS (internal page)
   ========================================================= */
.lg-compare { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lg-cmp { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px 20px; border-radius: 24px; background: #fff; border: 1px solid var(--line); text-align: center; transition: translate .4s var(--ease), box-shadow .4s, border-color .3s; }
.lg-cmp:hover { translate: 0 -4px; box-shadow: var(--shadow-md); border-color: var(--line-2); }
.lg-cmp-mark { margin-bottom: 12px; }
.lg-cmp b { font-size: 15px; font-weight: 650; }
.lg-cmp small { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .lg-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lg-sec { scroll-margin-top: 80px; }
.lg-sec + .lg-sec { border-top: 1px solid var(--line); }
.lg-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.lg-n { font-family: var(--display); font-weight: 600; font-size: 56px; line-height: .85; letter-spacing: -.032em; color: var(--line-2); }
.lg-title { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4vw, 48px); line-height: 1; letter-spacing: -.032em; }
.lg-title em { font-family: var(--accent); font-weight: 400; letter-spacing: -.02em; color: var(--emerald); }
.lg-cur { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px; background: var(--emerald-soft); color: var(--emerald-2); font-family: var(--sans); font-size: 12px; font-weight: 650; letter-spacing: 0; vertical-align: middle; }
.lg-line { margin-top: 8px; font-size: 16.5px; color: var(--muted); }

.lg-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 172px; gap: 12px; }
.lg-tile { position: relative; display: grid; place-items: center; border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.lg-tile > small { position: absolute; left: 16px; bottom: 12px; font-size: 12px; color: var(--muted); }
.lg-main { grid-column: span 2; grid-row: span 2; background: var(--bg-2); }
.lg-tile.lg-dark { background: var(--night); border-color: var(--night); }
.lg-tile.lg-dark > small { color: rgba(255, 255, 255, .5); }
.lg-wide { grid-column: span 2; }
.lg-app { width: 92px; height: 92px; border-radius: 24px; display: grid; place-items: center; background: var(--emerald); box-shadow: 0 16px 30px -14px rgba(196, 43, 43, .7); }
.lg-sizes > div { display: flex; align-items: flex-end; gap: 22px; margin-bottom: 10px; }
.lg-av { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px var(--line-2); }
@media (max-width: 900px) { .lg-board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 156px; } }
@media (max-width: 480px) { .lg-main .lg-svg { width: 160px; height: 160px; } .lg-n { font-size: 40px; } }

/* Wordmark lockups */
.lockup { display: inline-flex; align-items: center; gap: 12px; }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm b { font-family: var(--display); font-weight: 600; font-size: 25px; letter-spacing: -.035em; color: var(--ink); }
.wm small { margin-top: 6px; font-size: 9.5px; font-weight: 600; letter-spacing: .38em; color: var(--muted); }
.lockup.dark .wm b { color: #FDE8E6; }
.lockup.dark .wm small { color: rgba(253, 232, 230, .55); }
.wm-sirat b i { font-style: normal; color: var(--emerald); }
.lockup.dark .wm-sirat b i { color: var(--mint); }
.wm-nakhlah b { font-family: var(--accent); font-weight: 500; font-size: 26px; letter-spacing: -.02em; }
.wm-nakhlah small { letter-spacing: .32em; }
.wm-khatam b { font-family: var(--sans); font-weight: 650; font-size: 26px; letter-spacing: -.045em; }
.wm-khatam small { margin-top: 4px; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; }
@media (max-width: 520px) { .wm b { font-size: 19px; } .lockup .lg-svg { width: 38px; height: 38px; } .wm small { letter-spacing: .3em; } }

.lg-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.lg-notes > div { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.lg-notes h3 { margin-bottom: 10px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.03em; }
.lg-notes p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.lg-notes a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
.lg-notes ul { display: grid; gap: 8px; }
.lg-notes li { display: flex; gap: 9px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.lg-notes li .i { width: 16px; height: 16px; margin-top: 2px; color: var(--emerald); }
.lg-watch li .i { color: var(--gold); }
.lg-notes .lg-feel { margin-top: 14px; font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .lg-notes { grid-template-columns: minmax(0, 1fr); } }

/* Pick */
.lg-pick { display: grid; gap: 18px; }
.lg-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lg-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px 18px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1.5px solid rgba(255, 255, 255, .1); text-align: center; cursor: pointer; transition: border-color .25s, background-color .25s; }
.lg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lg-opt:has(input:checked) { border-color: var(--mint); background: rgba(255, 107, 107, .08); }
.lg-opt:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 3px; }
.lg-opt-mark { margin-bottom: 8px; }
.lg-opt b { font-size: 15px; color: #fff; }
.lg-opt small { font-size: 13px; color: rgba(255, 255, 255, .55); }
.lg-notes-field span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.lg-notes-field .input { height: auto; min-height: 92px; padding: 14px 16px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; line-height: 1.5; }
.lg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lg-saved { font-size: 14px; color: var(--mint); }
@media (max-width: 720px) { .lg-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =========================================================
   UI QA FIXES
   ========================================================= */
/* The hidden attribute always wins (FAQ search groups, the under-18 consent row, …) */
[hidden] { display: none !important; }

/* Swipe-deck cards stay inside their own stacking context — never above the nav or sticky bar */
.deck { isolation: isolate; }

/* No stranded single words in headlines */
.ln > span, .title, .h2, .page-title, .final h2, .cta-band h2, .mv-card h2, .now-card h2, .lb-copy h2, .wl h2, .faq-group h2, .prose h2, .card h3, .post h2, .post h3 { text-wrap: balance; }

/* iOS: no zoom on focus */
@media (max-width: 900px) { input, select, textarea { font-size: max(16px, 1em); } }

/* Curriculum panel never runs past the bottom of shorter laptop screens */
.cur-panel { max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }

/* Courses notify panel: only sticks where there's room for it */
@media (min-width: 1024px) { .up-panel { position: static; box-shadow: var(--shadow-sm); } }
@media (min-width: 1024px) and (min-height: 860px) { .up-panel { position: sticky; bottom: 16px; box-shadow: 0 24px 50px -24px rgba(30, 20, 48, .35); } }

/* Phone "Reserve" bar steps aside while you're typing */
.typing .sticky { transform: translateY(150%); visibility: hidden; }

/* Readable stage/tag colours (darkened from the stage colour) */
.sc-tag, .tf-stage { color: var(--c); color: color-mix(in srgb, var(--c) 70%, #000); }
.up-tag, .up-tile small, .up-learn .i { color: var(--uc); color: color-mix(in srgb, var(--uc) 72%, #000); }
.up-vote[aria-pressed="true"] { background: color-mix(in srgb, var(--uc) 82%, #000); border-color: color-mix(in srgb, var(--uc) 82%, #000); }
.f-cols h2 { color: rgba(255, 255, 255, .6); }
.saved-empty { color: var(--muted); }

/* Bigger tap targets */
.announce-link { padding: 6px 0; }
.back-link, .p-gift { padding: 10px 6px; }
.ny-sw { width: 42px; height: 42px; }
.f-cols a { padding: 8px 0; }
.legal-toc ol, .side-card ol { gap: 4px; }
.legal-toc a, .side-card ol a { display: inline-block; padding: 6px 0; }
.seg button, .stage-nav a { min-height: 42px; }

/* Class mock-up on small phones */
@media (max-width: 480px) {
  .mm-dots, .mm-ep { display: none; }
  .mm-steps > span { padding: 0 9px; font-size: 11.5px; }
  .mm-live { padding: 0 9px; }
}

/* =========================================================
   INSPIRETHESUNNAH — wordmark + brand guide
   ========================================================= */
/* Two-tone wordmark: "Inspire" in emerald italic, "TheSunnah" in the display face */

/* Brand guide */
.bg-hero { display: grid; place-items: center; min-height: 340px; border-radius: 30px; background: var(--bg-2); border: 1px solid var(--line); }
.bg-hero .lockup .lg-svg { width: 120px; height: 120px; }
.bg-hero .bw b { font-size: clamp(38px, 6vw, 72px); }
.bg-hero .bw small { font-size: clamp(11px, 1.3vw, 16px); margin-top: 12px; }
.bg-meaning { margin-top: 16px; }
.bg-meaning em { font-family: var(--accent); }
.bg-meaning a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
.bg-part { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: var(--bg-2); }
.bg-part.star { color: var(--gold); font-size: 26px; }
.bg-part.stem::before { content: ""; width: 7px; height: 24px; border-radius: 4px; background: var(--emerald); }
.bw { display: flex; flex-direction: column; line-height: 1; }
.bw b { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -.035em; color: var(--ink); white-space: nowrap; }
.bw small { margin-top: 7px; font-size: 10px; font-weight: 600; letter-spacing: .4em; color: var(--muted); }
.bw.dark b { color: #FDE8E6; } .bw.dark b em { color: var(--mint); } .bw.dark small { color: rgba(253, 232, 230, .55); }
.bw.emerald b, .bw.emerald b em { color: #FFFFFF; } .bw.emerald small { color: rgba(255, 255, 255, .7); }
.bw.mono b, .bw.mono b em { color: var(--ink); }
.lockup.stacked { flex-direction: column; gap: 16px; text-align: center; }
.lockup.stacked .bw { align-items: center; }
.lockup.stacked .bw b { font-size: 34px; }
.lg-tile.lg-em { background: var(--emerald); border-color: var(--emerald); }
.lg-tile.lg-em > small { color: rgba(255, 255, 255, .6); }
.bg-rules { margin-top: 16px; }
.bg-swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bg-sw { padding: 12px 12px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.bg-sw span { display: block; height: 96px; border-radius: 14px; border: 1px solid rgba(30, 20, 48, .08); margin-bottom: 14px; }
.bg-sw b { display: block; font-size: 15px; font-weight: 650; }
.bg-sw code { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.bg-sw small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.bg-sw small em { font-family: var(--accent); }
@media (max-width: 860px) { .bg-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bg-type { display: grid; gap: 12px; }
.bg-type > div { padding: 24px 28px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.bg-type small { font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bg-type p { margin-top: 10px; }
.bg-type .t1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5vw, 60px); letter-spacing: -.032em; line-height: 1; }
.bg-type .t2 { font-family: var(--accent); font-size: clamp(32px, 4.6vw, 54px); color: var(--emerald); line-height: 1; }
.bg-type .t3 { font-size: 18px; color: var(--ink-2); max-width: 640px; }
.bg-type .t4 { font-family: var(--arabic); font-size: 40px; color: var(--gold); direction: rtl; text-align: left; }
.bg-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .bg-dl { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .bg-hero .lockup { flex-direction: column; } .bg-hero .bw { align-items: center; } .bw b { font-size: 23px; } .lockup .lg-svg { width: 44px; height: 44px; } }

/* Very small phones (≤360px): the longer wordmark needs the room — Reserve stays in the announce bar, hero and sticky bar */
@media (max-width: 360px) { .nav-cta .btn-sm { display: none; } }

/* Teacher names: Arabic name under the English one; long names may wrap */
.t-name { flex-wrap: wrap; row-gap: 2px; }
.t-ar { margin-top: 2px; font-family: var(--arabic); font-size: 17px; line-height: 1.35; color: var(--ink-2); text-align: left; }

/* =========================================================
   BRAND KIT — Inspire the Sunnah ("The Pulse")
   Plum and blush lead, white for space, coral only as the spark.
   ========================================================= */
/* Logo: the kit's own files */
.logo { gap: 0; }
.logo-img { display: block; height: 38px; width: auto; }
@media (max-width: 760px) { .logo-img { height: 30px; } }
.logo-foot { display: block; width: 172px; height: auto; }
.f-line { margin-top: 22px !important; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; color: var(--blush); }
.f-line + p { margin-top: 8px !important; }

/* Type: Sora headlines, accents carried by colour */
h1, h2, h3, .title, .page-title, .h2 { font-family: var(--display); }
.title, .page-title, .h2, .final h2, .cta-band h2, .mv-card h2, .nf h1 { font-weight: 600; letter-spacing: -.032em; }
.title em, .page-title em, .h2 em, .final h2 em, .cta-band h2 em, .nf h1 em, .mv-card h2 em, .lg-title em { font-weight: inherit; letter-spacing: inherit; }
/* Sora has no italic: accent words in headings stay upright */
h1 em, h2 em, h3 em, .title em, .page-title em, .h2 em, .hero-tag em { font-style: normal; }
.hero h1 { font-weight: 600; font-size: clamp(42px, 7.6vw, 104px); letter-spacing: -.04em; }
.hero-tag { font-weight: 400; letter-spacing: -.02em; }
.marquee span, .quote-card, .mdemo-text, .sc-did p, .mg-msg, .fl-q, .now-tag, .up-tag, .prose blockquote { font-weight: 300; letter-spacing: -.01em; }
.saw, .t4 { font-family: var(--arabic); }
.t-ar, [lang="ar"]:not(.saw) { font-family: var(--arabic-ui); }
.t-ar { font-size: 16px; }

/* Buttons: plum with blush text; coral never carries white text */
.btn-dark { background: var(--plum); color: var(--blush); box-shadow: 0 10px 26px -12px rgba(30, 20, 48, .55); }
.btn-dark:hover { background: #120B1E; }
.btn-emerald-solid { background: var(--plum); color: var(--blush); box-shadow: 0 12px 28px -14px rgba(30, 20, 48, .7); }
.btn-emerald-solid:hover { background: #120B1E; }
.btn-emerald { color: var(--plum); }
.btn-red { background: var(--coral); color: var(--plum); }
.btn-red:hover { background: #FF6B6B; }
.btn-ghost:hover { border-color: var(--plum); }
::selection { background: var(--plum); color: var(--blush); }
:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 2px; }

/* Big colour blocks sit on plum, not on the accent */
.still, .deck-end, .tlist-card { background: var(--plum); }
.lg-app { background: var(--plum); }

/* Journeys and progress run coral → plum */
.jline i { background: linear-gradient(90deg, var(--coral), var(--rose) 50%, var(--plum)); }
.cur-spine i { background: linear-gradient(180deg, var(--coral) 0%, var(--rose) 45%, #5B3A8C 70%, var(--plum) 100%); }
.pq-progress i { background: linear-gradient(90deg, var(--coral), var(--coral-deep)); }
@media (max-width: 760px) { .jline i { background: linear-gradient(180deg, var(--coral), var(--rose) 50%, var(--plum)); } }

/* Small coral text on light grounds uses coral-deep */
.c-label { color: var(--coral-deep); }
.cert { background: var(--blush); }
.c-logo { display: block; height: 22px; width: auto; }

/* Inner-page hero art: one beat, drawn once, bleeding off the right edge */
.hero-art { top: 50%; right: 0; width: min(34vw, 470px); transform: translateY(-50%); }
.ha-line, .ha-spark { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.ha-line { stroke: url(#haFade); stroke-width: 3.2; animation: haDraw 1.3s cubic-bezier(.55, 0, .25, 1) .2s forwards; }
.ha-spark { stroke: var(--coral); stroke-width: 4.4; stroke-dasharray: .05 2; stroke-dashoffset: .05; animation: haSpark 1.3s cubic-bezier(.55, 0, .25, 1) .2s forwards, haFadeOut .2s linear 1.45s forwards; }
.ha-dot, .ha-tdot { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.ha-dot { fill: var(--coral); animation: haPop .5s cubic-bezier(.3, 1.8, .5, 1) .72s forwards; }
.ha-tdot { fill: var(--plum); animation: haPop .4s cubic-bezier(.3, 1.8, .5, 1) .5s forwards; }
.ha-ring { fill: none; stroke: var(--coral); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: haRing .9s ease-out .76s; }
@keyframes haSpark { to { stroke-dashoffset: -.95; } }
@keyframes haFadeOut { to { opacity: 0; } }
@keyframes haPop { to { transform: scale(1); } }
@keyframes haRing { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(4); } }
@media (max-width: 1100px) { .hero-art { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ha-line { animation: none; stroke-dashoffset: 0; }
  .ha-spark, .ha-ring { display: none; }
  .ha-dot, .ha-tdot { animation: none; transform: none; }
}
.loader-on .ha-line, .loader-on .ha-spark { animation-delay: .75s, 2s; }
.loader-on .ha-line { animation-delay: .75s; }
.loader-on .ha-tdot { animation-delay: 1.05s; }
.loader-on .ha-dot { animation-delay: 1.27s; }
.loader-on .ha-ring { animation-delay: 1.31s; }

/* Brand guide: the kit's files on their grounds */
.bg-hero { padding: 48px 32px; background: #fff; }
.bg-hero img { width: min(100%, 720px); height: auto; }
.lg-tile { margin: 0; padding: 28px 28px 44px; }
.lg-tile img { max-width: 100%; max-height: 92px; width: auto; height: auto; }
.lg-tile.lg-icon img { max-height: 104px; }
.lg-tile figcaption { position: absolute; left: 16px; bottom: 12px; font-size: 12px; color: var(--muted); }
.lg-tile.lg-plum { background: var(--plum); border-color: var(--plum); }
.lg-tile.lg-plum figcaption { color: rgba(253, 232, 230, .6); }
.lg-tile.lg-blush { background: var(--blush); border-color: var(--blush); }
.bg-type .t4 { color: var(--ink); font-size: 34px; }
.bg-type .t5 { font-family: var(--arabic-ui); font-size: 30px; text-align: left; }
@media (max-width: 860px) { .lg-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .lg-board { grid-template-columns: minmax(0, 1fr); } .lg-wide { grid-column: auto; } }

/* Sora is wider than the old faces: keep tight spots inside their boxes on small phones */
.form { grid-template-columns: minmax(0, 1fr); }
.input { min-width: 0; width: 100%; }
.faced h3 { font-size: min(30px, 6.4vw); overflow-wrap: break-word; }
.countdown .cd { flex: 1 1 0; min-width: 0; }
@media (max-width: 400px) { .countdown { gap: 6px; } }
