/* =========================================================
   Club700 — "Market Day" theme for Bootstrap 5
   Colour carries meaning: every part of the journey has its own hue.
     Home coral · Learn sky · Community berry · Build leaf
     Opportunities sun · Profile violet · Faith lagoon
   Bold moment: the kente-striped journey band on Home.
   ========================================================= */
:root {
  /* palette */
  --coral:  #F0563A;  --coral-soft:  #FFE9E3;  --coral-ink:  #B8341C;
  --sun:    #F7A400;  --sun-soft:    #FFF3D6;  --sun-ink:    #8F5D00;
  --leaf:   #3E9B0A;  --leaf-soft:   #E6F5D9;  --leaf-ink:   #2B6E06;
  --sky:    #1A8BE0;  --sky-soft:    #E1F0FC;  --sky-ink:    #0B5FA0;
  --berry:  #D23C7E;  --berry-soft:  #FCE4EF;  --berry-ink:  #9E1E58;
  --violet: #6E4FE0;  --violet-soft: #ECE7FD;  --violet-ink: #4A2FB0;
  --lagoon: #0E9F9A;  --lagoon-soft: #DDF4F3;  --lagoon-ink: #0A6E6A;

  --ink:   #1E1B3A;
  --muted: #6B6889;
  --bg:    #F5F4FB;
  --card:  #FFFFFF;
  --line:  #E7E5F2;
  --line-strong: #DEDBEC;
  --input: #FFFFFF;
  --chip: #EFEDF8; --chip-hover: #E3E0F2; --press: #F3F1FA; --track: #ECEAF5;
  --muted-2: #BDB8D6; --text-2: #3E3B5C;
  --danger-soft: #FDE6E6; --danger-ink: #A1262E;
  --sky-soft-2: #EAF4FD;
  --banner: #1E1B3A; --ink-solid: #1E1B3A;
  --mix-text: black; --on-accent: #fff;
  --brand: linear-gradient(120deg, var(--coral) 0%, var(--sun) 52%, var(--leaf) 100%);
  --kente: repeating-linear-gradient(115deg, rgba(255,255,255,.13) 0 14px, transparent 14px 30px, rgba(255,255,255,.07) 30px 36px, transparent 36px 58px);
  --shadow: 0 1px 0 rgba(30,27,58,.04), 0 10px 28px -18px rgba(30,27,58,.35);
  --shadow-lift: 0 2px 0 rgba(30,27,58,.04), 0 18px 40px -20px rgba(30,27,58,.45);

  /* section accent (overridden per page) */
  --accent: var(--coral); --accent-soft: var(--coral-soft); --accent-ink: var(--coral-ink);

  --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --topbar-h: 58px; --bottomnav-h: 70px;

  --bs-body-font-family: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-size: .97rem;
  --bs-body-line-height: 1.55;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--muted);
  --bs-link-color-rgb: 11, 95, 160;
  --bs-link-hover-color-rgb: 240, 86, 58;
  --bs-success-rgb: 62, 155, 10;
  --bs-danger-rgb: 210, 50, 60;
  --bs-warning-rgb: 247, 164, 0;
  --bs-info-rgb: 26, 139, 224;
}
.sec-home      { --accent: var(--coral);  --accent-soft: var(--coral-soft);  --accent-ink: var(--coral-ink); --band: linear-gradient(130deg, #EE4B2B, #F48A12); }
.sec-learn     { --accent: var(--sky);    --accent-soft: var(--sky-soft);    --accent-ink: var(--sky-ink); --band: linear-gradient(130deg, #157FD4, #0E9F9A); }
.sec-community { --accent: var(--berry);  --accent-soft: var(--berry-soft);  --accent-ink: var(--berry-ink); --band: linear-gradient(130deg, #CB2F75, #6E4FE0); }
.sec-build     { --accent: var(--leaf);   --accent-soft: var(--leaf-soft);   --accent-ink: var(--leaf-ink); --band: linear-gradient(130deg, #2F8A06, #0E9A72); }
.sec-access    { --accent: var(--sun);    --accent-soft: var(--sun-soft);    --accent-ink: var(--sun-ink); --band: linear-gradient(130deg, #DB7400, #E8502F); }
.sec-profile   { --accent: var(--violet); --accent-soft: var(--violet-soft); --accent-ink: var(--violet-ink); --band: linear-gradient(130deg, #5B3FD6, #C2367B); }
.sec-faith     { --accent: var(--lagoon); --accent-soft: var(--lagoon-soft); --accent-ink: var(--lagoon-ink); --band: linear-gradient(130deg, #0B8F8A, #2F8A06); }

/* ---------- Dark mode ----------
   Deep indigo night, with every section colour brightened so it glows.
   Applied when <html data-bs-theme="dark"> (set by the theme loader in head.php). */
[data-bs-theme="dark"] {
  color-scheme: dark;
  --coral:  #FF6B4F;  --coral-soft:  #3A2030;  --coral-ink:  #FF9C84;
  --sun:    #FFB627;  --sun-soft:    #382D1D;  --sun-ink:    #FFCB66;
  --leaf:   #5CBB23;  --leaf-soft:   #1E3227;  --leaf-ink:   #92DC63;
  --sky:    #3EA3F2;  --sky-soft:    #192C4B;  --sky-ink:    #86C6F8;
  --berry:  #EC5698;  --berry-soft:  #391C3C;  --berry-ink:  #F690BE;
  --violet: #8C72F6;  --violet-soft: #29235A;  --violet-ink: #BAA9FB;
  --lagoon: #24BEB7;  --lagoon-soft: #15353A;  --lagoon-ink: #74DBD5;

  --ink:   #EEECFA;
  --muted: #A9A5C9;
  --bg:    #12102A;
  --card:  #1C1938;
  --line:  #2C2950;
  --line-strong: #3B3765;
  --input: #16142F;
  --chip: #29254F; --chip-hover: #34305F; --press: #24204A; --track: #2D2952;
  --muted-2: #5A5584; --text-2: #CDC9E7;
  --danger-soft: #3D1C25; --danger-ink: #FF9AA2;
  --sky-soft-2: #1F3354;
  --banner: #2B2760; --ink-solid: #4C4790;
  --mix-text: white; --on-accent: #fff;
  --kente: repeating-linear-gradient(115deg, rgba(255,255,255,.10) 0 14px, transparent 14px 30px, rgba(255,255,255,.05) 30px 36px, transparent 36px 58px);
  --shadow: 0 1px 0 rgba(0,0,0,.25), 0 10px 28px -16px rgba(0,0,0,.85);
  --shadow-lift: 0 2px 0 rgba(0,0,0,.25), 0 18px 40px -18px rgba(0,0,0,.95);

  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--muted);
  --bs-tertiary-bg: var(--card);
  --bs-link-color-rgb: 134, 198, 248;
  --bs-link-hover-color-rgb: 255, 156, 132;
  --bs-emphasis-color: var(--ink);
}
[data-bs-theme="dark"] .text-bg-warning { color: #2B1D00 !important; }
[data-bs-theme="dark"] .alert-light { background: var(--card); color: var(--ink); }
[data-bs-theme="dark"] .modal-content, [data-bs-theme="dark"] .dropdown-menu, [data-bs-theme="dark"] .offcanvas { background: var(--card); color: var(--ink); }
[data-bs-theme="dark"] .bg-white, [data-bs-theme="dark"] .input-group-text { background-color: var(--input) !important; border-color: var(--line-strong); color: var(--muted); }
[data-bs-theme="dark"] .btn-light { background-image: none; --bs-btn-bg: var(--chip); --bs-btn-border-color: var(--chip); --bs-btn-hover-bg: var(--chip-hover); --bs-btn-hover-border-color: var(--chip-hover); --bs-btn-color: var(--ink); --bs-btn-hover-color: var(--ink); --bs-btn-active-bg: var(--chip-hover); --bs-btn-active-color: var(--ink); background-image: none; }
[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: var(--muted); --bs-btn-border-color: var(--line-strong); --bs-btn-hover-bg: var(--chip); --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: var(--line-strong); }
[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(1) brightness(1.8); }
[data-bs-theme="dark"] .form-control::placeholder { color: #7D78A6; }
[data-bs-theme="dark"] .table { --bs-table-color: var(--ink); --bs-table-border-color: var(--line); }
[data-bs-theme="dark"] .journey-band, [data-bs-theme="dark"] .hero-card { filter: saturate(1.05) brightness(.94); }
[data-bs-theme="dark"] .course-art, [data-bs-theme="dark"] .tile .tile-ic, [data-bs-theme="dark"] .pillar i { box-shadow: 0 8px 18px -12px rgba(0,0,0,.9); }
[data-bs-theme="dark"] .bottomnav { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 14px 34px -12px rgba(0,0,0,.9); }
[data-bs-theme="dark"] .plan-cover img, [data-bs-theme="dark"] .pg-head img { filter: brightness(0) invert(1); }
[data-bs-theme="dark"] .scripture, [data-bs-theme="dark"] .prayer-text { color: var(--ink); }

/* Push notifications */
.push-ask .push-bell { width: 84px; height: 84px; margin: 0 auto; border-radius: 28px; display: flex; align-items: center; justify-content: center; font-size: 2.3rem; color: #fff; background: var(--kente), var(--brand); box-shadow: 0 16px 30px -16px rgba(240,86,58,.9); animation: ring 1.2s ease .3s 1; transform-origin: 50% 10%; }
@keyframes ring { 0%,100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(9deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.push-device { display: flex; align-items: center; gap: .8rem; background: var(--accent-soft); border-radius: var(--r-md); padding: .8rem .9rem; }
.push-device-ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--card); color: var(--accent-ink); }
.push-device .btn { white-space: nowrap; flex: 0 0 auto; }
.push-device.on .push-device-ic { background: var(--leaf); color: #fff; }
.pref-row { display: flex; align-items: center; gap: .75rem; padding: .55rem .2rem; border-radius: var(--r-md); cursor: pointer; }
.pref-row:hover { background: var(--press); }
.pref-row .tile-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; font-size: 1.05rem; }
.form-switch .form-check-input { width: 2.6em; height: 1.45em; cursor: pointer; }
.form-switch .form-check-input:checked { background-color: var(--leaf); border-color: var(--leaf); }
#pushPrefs.off .pref-row:not([for="quietOn"]) { opacity: .55; }

/* Light / Dark / Automatic switch */
.theme-switch { display: flex; gap: 4px; background: var(--chip); padding: 4px; border-radius: 999px; }
.theme-switch button { flex: 1; border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: .45rem .6rem; font-size: .82rem; font-weight: 500; display: inline-flex; gap: .35rem; align-items: center; justify-content: center; }
.theme-switch button[aria-checked="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.theme-switch button:active { transform: scale(.96); }
.menu-theme { padding: 0 1.2rem 1rem; }
.menu-theme .label { font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }

/* ---------- Base type ---------- */
html { -webkit-tap-highlight-color: transparent; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-pct, .stat-n, .auth-title, .brand-word {
  font-family: "Bricolage Grotesque", "Lexend", system-ui, sans-serif; color: var(--ink); letter-spacing: -0.02em; font-weight: 700;
}
.h3, h1.h3 { font-size: 1.65rem; }
.h4 { font-size: 1.35rem; } .h5 { font-size: 1.15rem; } .h6 { font-size: 1rem; font-weight: 700; }
.fw-bold, strong, b { font-weight: 600 !important; }
.text-muted { color: var(--muted) !important; }
.small, small { font-size: .85rem; }
a { text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.min-w-0 { min-width: 0; }
.ls-wide { letter-spacing: .4em; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.skip { position: absolute; z-index: 2000; top: 8px; left: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.bg-sun-soft { background: var(--sun-soft); }
.rounded-4 { border-radius: var(--r-md) !important; }

/* Labels above content: sentence case, colour-coded */
.eyebrow, .eyebrow-sm { font-weight: 600; color: var(--accent-ink); letter-spacing: 0; text-transform: none; }
.eyebrow { font-size: .9rem; } .eyebrow-sm { font-size: .8rem; }
.section-title { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.1rem; font-weight: 700; margin: 0 0 .7rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .55rem 1.15rem; transition: transform .08s ease, background-color .15s, box-shadow .15s; }
.btn-sm { padding: .35rem .85rem; font-size: .85rem; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1.02rem; }
.btn:active { transform: scale(.97); }
.btn-brand { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; --bs-btn-disabled-color: #fff; background: var(--brand); border: 0; box-shadow: 0 8px 18px -10px rgba(240, 86, 58, .9); }
.btn-brand:hover { filter: saturate(1.15) brightness(1.03); box-shadow: 0 10px 22px -10px rgba(240, 86, 58, .9); }
.btn-brand:disabled, .btn-brand.disabled { opacity: .45; }
.btn-accent { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; background: var(--accent); border: 0; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-light { --bs-btn-bg: var(--chip); --bs-btn-border-color: var(--chip); --bs-btn-hover-bg: var(--chip-hover); --bs-btn-hover-border-color: var(--chip-hover); --bs-btn-color: var(--ink); }
.btn-ghost { background: transparent; border: 0; color: var(--muted); border-radius: 999px; }
.btn-ghost:hover { background: var(--chip); color: var(--ink); }
.btn-outline-dark { --bs-btn-border-color: var(--line-strong); --bs-btn-color: var(--ink); --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink); --bs-btn-hover-color: var(--bg); }
.btn-link { text-decoration: none; font-weight: 600; }
.input-group > .btn { border-radius: 0 var(--r-md) var(--r-md) 0; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: var(--r-md); border: 1.5px solid var(--line-strong); padding: .65rem .9rem; background-color: var(--input); }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.form-control-lg, .form-select-lg { font-size: 1rem; padding: .85rem 1rem; border-radius: var(--r-md); }
.form-control-sm, .form-select-sm { border-radius: var(--r-sm); padding: .4rem .7rem; }
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-check-input { width: 1.2em; height: 1.2em; border: 1.5px solid var(--line-strong); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-text { color: var(--muted); }

/* ---------- Cards ---------- */
.card { border: 0; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.card-soft { background: var(--accent-soft); box-shadow: none; }
.card-header-lite { padding: 1rem 1.15rem .6rem; font-weight: 600; font-family: "Bricolage Grotesque", sans-serif; border: 0; }
.card > .card-header-lite:first-child { display: flex; align-items: center; gap: .5rem; }
.card > .card-header-lite:first-child::before { content: ""; width: 6px; height: 18px; border-radius: 3px; background: var(--band, var(--accent)); flex: 0 0 6px; }
details > summary.card-header-lite::before { content: none; }
.card-header-lite.h6 { font-size: 1.02rem; }
details > summary.card-header-lite { cursor: pointer; list-style: none; padding-bottom: 1rem; }
details > summary::-webkit-details-marker { display: none; }
details > summary.card-header-lite::after { content: "\F282"; font-family: "bootstrap-icons"; float: right; transition: transform .2s; color: var(--muted); }
details[open] > summary.card-header-lite::after { transform: rotate(180deg); }
.card-footer { border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg) !important; }
.list-group-item { border-color: var(--line); padding: .85rem 1.15rem; background: transparent; }
.list-group-flush > .list-group-item:first-child { border-top: 0; }
.list-group-flush > .list-group-item:last-child { border-bottom-left-radius: var(--r-lg); border-bottom-right-radius: var(--r-lg); }
.list-group-item-action:active { background: var(--press); }
.list-group-item.unread { background: color-mix(in srgb, var(--accent-soft) 70%, var(--card)); }
.list-group-item.active-soft { background: var(--accent-soft); }
.alert { border: 0; border-radius: var(--r-md); }
.alert-success { background: var(--leaf-soft); color: var(--leaf-ink); }
.alert-info { background: var(--sky-soft); color: var(--sky-ink); }
.alert-warning { background: var(--sun-soft); color: var(--sun-ink); }
.alert-danger { background: var(--danger-soft); color: var(--danger-ink); }
.alert-light { background: var(--card); }
.badge { font-weight: 600; border-radius: 999px; padding: .35em .65em; }
.text-bg-warning { background: var(--sun) !important; color: #3D2800 !important; }
.text-bg-success { background: var(--leaf) !important; }
.text-bg-info { background: var(--sky) !important; color: #fff !important; }
.text-bg-danger { background: var(--coral) !important; }
.text-bg-light { background: var(--chip) !important; color: var(--ink) !important; }
.dropdown-menu { border: 0; border-radius: var(--r-md); box-shadow: var(--shadow-lift); padding: .4rem; }
.dropdown-item { border-radius: var(--r-sm); padding: .55rem .8rem; }
.modal-content { border: 0; border-radius: var(--r-xl); }
.modal-header { border-bottom: 0; padding: 1.2rem 1.4rem .4rem; }
.modal-footer { border-top: 0; padding: .4rem 1.4rem 1.3rem; }
.modal-body { padding: .6rem 1.4rem; }
.table { --bs-table-bg: transparent; }

.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  margin-bottom: 1rem; padding: 1.15rem 1.2rem; border-radius: var(--r-xl); color: #fff;
  background: var(--kente), var(--band, var(--brand));
  box-shadow: 0 18px 34px -24px color-mix(in srgb, var(--accent) 90%, black);
}
.page-head::after { content: ""; position: absolute; z-index: -1; right: -50px; top: -60px; width: 170px; height: 170px; border-radius: 50%; border: 22px solid rgba(255,255,255,.14); }
.page-head > div:first-child { min-width: 0; flex: 1 1 auto; }
.page-head h1, .page-head .h3 { color: #fff; }
.page-head .text-muted, .page-head .small { color: rgba(255,255,255,.9) !important; }
.page-head .btn-brand { background: #fff; color: var(--accent-ink); box-shadow: 0 8px 18px -10px rgba(0,0,0,.5); }
.page-head .btn-brand:hover { color: var(--accent-ink); filter: none; background: #fff; }
.page-head .btn-light, .page-head .btn-outline-dark { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); color: #fff; }
.page-head .btn-light:hover, .page-head .btn-outline-dark:hover { background: rgba(255,255,255,.32); color: #fff; }
.page-head .badge.text-bg-light { background: rgba(255,255,255,.25) !important; color: #fff !important; }
[data-bs-theme="dark"] .page-head { filter: brightness(.92) saturate(1.05); }
.back-link { display: inline-flex; gap: .35rem; align-items: center; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: .8rem; }
.back-link:hover { color: var(--accent-ink); }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty i { font-size: 2rem; width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: .6rem; }

/* ---------- Avatars ---------- */
.avatar { --av: var(--violet); width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--av) 18%, var(--card)); color: color-mix(in srgb, var(--av) 80%, var(--mix-text)); font-weight: 600; font-size: .85rem; }
.avatar.sm { width: 32px; height: 32px; font-size: .72rem; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.05rem; }
.avatar.xl { width: 84px; height: 84px; font-size: 1.6rem; box-shadow: 0 0 0 4px var(--card), 0 0 0 6px color-mix(in srgb, var(--av) 35%, var(--card)); }
.role-pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); }

/* ---------- App shell ---------- */
body.app { background: linear-gradient(180deg, var(--accent-soft) 0, color-mix(in srgb, var(--accent-soft) 40%, var(--bg)) 380px, var(--bg) 760px) no-repeat, var(--bg); min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--accent-soft) 78%, transparent); backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px); padding-top: env(safe-area-inset-top); }
.topbar-inner { max-width: 1240px; margin: 0 auto; height: var(--topbar-h); display: flex; align-items: center; padding: 0 12px 0 16px; gap: 4px; }
.brand img { display: block; height: 30px; width: auto; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); background: transparent; border: 0; font-size: 1.3rem; text-decoration: none; }
.icon-btn:hover { background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink); }
.icon-btn:active { transform: scale(.92); }
.dot-badge { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #fff; font-size: .66rem; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--card); }

.shell { max-width: 1240px; margin: 0 auto; display: flex; gap: 28px; padding: 10px 14px calc(var(--bottomnav-h) + 28px + env(safe-area-inset-bottom)); }
.content { flex: 1; min-width: 0; }
.sidenav { position: sticky; top: calc(var(--topbar-h) + 18px); align-self: flex-start; width: 236px; flex: 0 0 236px; flex-direction: column; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: .6rem .8rem; border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-weight: 500; }
.sidenav a .nav-ic { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; background: var(--ic-soft, var(--chip)); color: var(--ic, var(--muted)); }
.sidenav a:hover { background: color-mix(in srgb, var(--card) 75%, transparent); }
.sidenav a.active { background: var(--card); box-shadow: var(--shadow); font-weight: 600; }
.sidenav a.active .nav-ic { background: var(--ic); color: #fff; }
.sidenav-label { margin: 1.2rem .8rem .35rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.sidenav-foot { margin: 1.4rem .8rem 0; font-size: .82rem; color: var(--muted); }
.sidenav-foot a { display: inline; padding: 0; color: var(--muted); font-weight: 400; }

/* Each destination has a colour */
.c-coral  { --ic: var(--coral);  --ic-soft: var(--coral-soft); --ic-ink: var(--coral-ink); }
.c-sun    { --ic: var(--sun);    --ic-soft: var(--sun-soft); --ic-ink: var(--sun-ink); }
.c-leaf   { --ic: var(--leaf);   --ic-soft: var(--leaf-soft); --ic-ink: var(--leaf-ink); }
.c-sky    { --ic: var(--sky);    --ic-soft: var(--sky-soft); --ic-ink: var(--sky-ink); }
.c-berry  { --ic: var(--berry);  --ic-soft: var(--berry-soft); --ic-ink: var(--berry-ink); }
.c-violet { --ic: var(--violet); --ic-soft: var(--violet-soft); --ic-ink: var(--violet-ink); }
.c-lagoon { --ic: var(--lagoon); --ic-soft: var(--lagoon-soft); --ic-ink: var(--lagoon-ink); }
.c-ink    { --ic: var(--ink-solid); --ic-soft: var(--chip); --ic-ink: var(--ink); }

/* Bottom tab bar — a floating dock. Every tab keeps its colour;
   the active one lifts out of the dock as a solid bubble. */
.bottomnav {
  position: fixed; z-index: 1030; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: flex-end; height: 68px; padding: 0 4px 7px;
  background: color-mix(in srgb, var(--card) 96%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 26px; box-shadow: 0 0 0 1px rgba(30,27,58,.05), 0 14px 34px -14px rgba(30,27,58,.5);
}
.bottomnav::before { /* thin brand stripe along the top edge */
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); opacity: .9;
}
.bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 500; letter-spacing: .01em;
  -webkit-user-select: none; user-select: none;
}
.bottomnav a .tab-ic {
  width: 42px; height: 38px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; background: var(--ic-soft); color: var(--ic);
  transition: transform .28s cubic-bezier(.3, 1.6, .5, 1), background-color .2s, color .2s, box-shadow .2s, width .2s, height .2s;
}
.bottomnav a.active { color: var(--ic-ink, var(--ic)); font-weight: 700; }
.bottomnav a.active .tab-ic {
  width: 50px; height: 50px; border-radius: 18px; font-size: 1.35rem; background: var(--ic); color: #fff;
  transform: translateY(-14px); margin-bottom: -12px;
  box-shadow: 0 0 0 4px var(--card), 0 12px 20px -8px var(--ic);
}
.bottomnav a.active .tab-ic::after { /* soft shine on the bubble */
  content: ""; position: absolute; width: 50px; height: 50px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.35), transparent 55%); pointer-events: none;
}
.bottomnav a:not(.active):active .tab-ic { transform: scale(.88); }
.bottomnav .tab-badge { position: absolute; transform: translate(14px, -14px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--coral); color: #fff; font-size: .62rem; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--card); }
.bottomnav a .tab-ic { position: relative; }
@media (min-width: 992px) { .shell { padding-bottom: 40px; } }
@media (max-width: 991.98px) { .shell { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } .toast-up { bottom: calc(96px + env(safe-area-inset-bottom)) !important; } }

/* Slide-up menu (offcanvas) */
.menu-sheet.offcanvas-bottom { height: auto; max-height: 88dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; border: 0; padding-bottom: env(safe-area-inset-bottom); }
.menu-sheet.offcanvas-end { border: 0; width: 380px; }
.menu-sheet .grabber { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px auto 0; }
.menu-user { display: flex; gap: .8rem; align-items: center; padding: .9rem 1.2rem; }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; padding: .4rem 1rem 1rem; }
.menu-signout { padding: 0 1.2rem 1rem; }
.btn-signout { width: 100%; display: flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 999px; padding: .75rem 1rem; font-weight: 600; font-size: 1rem; background: var(--danger-soft); color: var(--danger-ink); }
.btn-signout:hover { filter: brightness(.97); }
.btn-signout:active { transform: scale(.98); }
.sidenav-signout { display: flex; align-items: center; gap: 12px; width: 100%; padding: .6rem .8rem; border: 0; background: none; border-radius: var(--r-md); color: var(--danger-ink); font-weight: 500; text-align: left; }
.sidenav-signout .nav-ic { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--danger-soft); color: var(--danger-ink); }
.sidenav-signout:hover { background: color-mix(in srgb, var(--card) 75%, transparent); }
.menu-foot { display: flex; flex-wrap: wrap; gap: .3rem .9rem; padding: .9rem 1.2rem 1.2rem; border-top: 1px solid var(--line); font-size: .85rem; }
.menu-foot a, .menu-foot button { color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; }

/* Launcher tile (home shortcuts + menu) */
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: .76rem; font-weight: 500; text-align: center; line-height: 1.2; border: 0; background: none; padding: 0; }
.tile .tile-ic { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.45rem; background: var(--ic); color: #fff; box-shadow: 0 8px 16px -10px var(--ic); position: relative; }
.tile .tile-ic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.28), transparent 55%); }
.tile:active .tile-ic { transform: scale(.92); }
.tile:hover { color: var(--ink); }
.launcher { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px; background: var(--card); border-radius: var(--r-lg); padding: 16px 8px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .launcher { grid-template-columns: repeat(8, 1fr); } }

/* ---------- Progress ---------- */
.brand-progress { height: 12px; background: var(--track); border-radius: 999px; overflow: hidden; }
.brand-progress.thin { height: 7px; }
.brand-progress .progress-bar { background: var(--brand); border-radius: 999px; }
.ring { --p: 0; --size: 64px; --ring: var(--accent); width: var(--size); height: var(--size); flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--ring) calc(var(--p) * 1%), color-mix(in srgb, var(--ring) 16%, var(--card)) 0); display: grid; place-items: center; position: relative; }
.ring::before { content: ""; position: absolute; inset: 7px; background: var(--card); border-radius: 50%; }
.ring span { position: relative; font-weight: 700; font-size: .85rem; font-family: "Bricolage Grotesque", sans-serif; }
.ring.sm { --size: 48px; } .ring.sm::before { inset: 5px; } .ring.sm span { font-size: .72rem; }
.ring.lg { --size: 108px; } .ring.lg::before { inset: 11px; } .ring.lg span { font-size: 1.45rem; }

/* ---------- Home: journey band (the bold moment) ---------- */
.journey-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 1.3rem 1.3rem 1.2rem; color: #fff; background: var(--kente), linear-gradient(135deg, #F0563A 0%, #F27A1F 38%, #F7A400 70%, #9DBA12 100%); box-shadow: 0 22px 40px -26px rgba(240, 86, 58, .95); margin-bottom: 1rem; }
.journey-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 210px; height: 210px; border-radius: 50%; border: 26px solid rgba(255,255,255,.14); }
.journey-band h1 { color: #fff; font-size: 1.75rem; margin: 0; }
.journey-band .sub { opacity: .92; font-size: .9rem; }
.jb-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; position: relative; z-index: 1; }
.jb-ring { --p: 0; width: 86px; height: 86px; flex: 0 0 86px; border-radius: 50%; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.28) 0); display: grid; place-items: center; position: relative; }
.jb-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: rgba(120, 40, 10, .25); backdrop-filter: blur(2px); }
.jb-ring span { position: relative; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.45rem; }
.jb-week { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.25rem; font-weight: 700; line-height: 1.15; }
.week-dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: .55rem; }
.week-dots span { height: 7px; border-radius: 4px; background: rgba(255,255,255,.3); }
.week-dots span.past { background: rgba(255,255,255,.75); }
.week-dots span.now { background: var(--card); box-shadow: 0 0 0 2px rgba(255,255,255,.45); }
.jb-stage { display: inline-flex; gap: .4rem; align-items: center; background: rgba(255,255,255,.2); border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; font-weight: 500; margin-top: .45rem; }

.focus-card { position: relative; overflow: hidden; }
.focus-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--ic, var(--accent)); }
.focus-kind { display: inline-flex; gap: .35rem; align-items: center; font-size: .8rem; font-weight: 600; color: var(--ic, var(--accent)); background: var(--ic-soft, var(--accent-soft)); padding: .2rem .65rem; border-radius: 999px; }

.date-tile { flex: 0 0 54px; height: 58px; border-radius: var(--r-md); background: var(--ic-soft, var(--accent-soft)); color: var(--ic, var(--accent-ink)); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.date-tile span { font-size: .72rem; font-weight: 600; }
.date-tile strong { font-size: 1.4rem; font-family: "Bricolage Grotesque", sans-serif; }
.tile-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--ic-soft, var(--accent-soft)); color: var(--ic, var(--accent)); }
.tile-icon.lg { width: 58px; height: 58px; flex-basis: 58px; font-size: 1.55rem; border-radius: 18px; }
.tile-funding  { --ic: var(--sun-ink); --ic-soft: var(--sun-soft); }
.tile-markets  { --ic: var(--coral); --ic-soft: var(--coral-soft); }
.tile-jobs     { --ic: var(--sky); --ic-soft: var(--sky-soft); }
.tile-programs { --ic: var(--violet); --ic-soft: var(--violet-soft); }
.notif-mentor, .notif-message { --ic: var(--berry); --ic-soft: var(--berry-soft); }
.notif-milestone { --ic: var(--sun-ink); --ic-soft: var(--sun-soft); }
.notif-opportunity { --ic: var(--sun-ink); --ic-soft: var(--sun-soft); }
.notif-learning { --ic: var(--sky); --ic-soft: var(--sky-soft); }
.notif-event { --ic: var(--coral); --ic-soft: var(--coral-soft); }
.notif-program { --ic: var(--violet); --ic-soft: var(--violet-soft); }
.notif-security { --ic: var(--ink); --ic-soft: var(--chip); }
.notif-community { --ic: var(--berry); --ic-soft: var(--berry-soft); }
.unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); align-self: center; flex: 0 0 auto; }
.card-faith { background: linear-gradient(150deg, var(--lagoon-soft), var(--card) 70%); }
.card-faith .eyebrow-sm { color: var(--lagoon-ink); }
.scripture { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; line-height: 1.4; font-size: 1.08rem; color: var(--ink); }
.btn-check-circle { color: var(--muted); font-size: 1.4rem; padding: 0; border: 0; background: none; }
.btn-check-circle:hover { color: var(--leaf); }
.btn-check-circle:hover i::before { content: "\F26B"; }

.stat { display: block; text-decoration: none; color: inherit; background: var(--card); border-radius: var(--r-lg); padding: 1rem .7rem; text-align: center; height: 100%; box-shadow: var(--shadow); border-top: 4px solid var(--ic, var(--accent)); }
.stat-n { font-size: 1.7rem; line-height: 1.1; color: var(--ic, var(--accent-ink)); }
.stat-l { font-size: .78rem; color: var(--muted); font-weight: 500; }
a.stat:active { transform: scale(.97); }
.row > :nth-child(4n+1) > .stat:not([class*=" c-"]) { --ic: var(--sky); }
.row > :nth-child(4n+2) > .stat:not([class*=" c-"]) { --ic: var(--berry); }
.row > :nth-child(4n+3) > .stat:not([class*=" c-"]) { --ic: var(--leaf); }
.row > :nth-child(4n+4) > .stat:not([class*=" c-"]) { --ic: var(--sun-ink); }

/* ---------- Chips ---------- */
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: .45rem .9rem; border-radius: 999px; border: 1.5px solid transparent; background: color-mix(in srgb, var(--accent-soft) 85%, var(--card)); color: var(--accent-ink); font-weight: 500; font-size: .85rem; text-decoration: none; cursor: pointer; user-select: none; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.on, .btn-check:checked + .chip { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-check:focus-visible + .chip { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.small-chips .chip { padding: .28rem .65rem; font-size: .78rem; }
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.match-tag { display: inline-flex; gap: 4px; align-items: center; font-size: .75rem; font-weight: 600; color: var(--leaf-ink); background: var(--leaf-soft); padding: .18rem .6rem; border-radius: 999px; }
.seg { gap: 4px; background: color-mix(in srgb, var(--card) 85%, transparent); padding: 5px; border-radius: 999px; display: inline-flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; box-shadow: var(--shadow); scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg .nav-link { border-radius: 999px; color: var(--muted); font-weight: 500; padding: .45rem 1rem; white-space: nowrap; }
.seg .nav-link.active { background: var(--accent); color: #fff; }
.chip-row.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.chip-row.scroll::-webkit-scrollbar { display: none; }
.chip-row.scroll .chip { flex: 0 0 auto; }

/* ---------- Learn ---------- */
.course-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }
.course-card { display: flex; gap: 12px; padding: 12px; background: var(--card); border-radius: var(--r-lg); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.course-card:hover { color: inherit; box-shadow: var(--shadow-lift); }
.course-card:active { transform: scale(.98); }
.course-art { flex: 0 0 68px; height: 68px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: #fff; position: relative; overflow: hidden; }
.course-art::after { content: ""; position: absolute; inset: 0; background: var(--kente); }
.course-body { min-width: 0; flex: 1; }
.art-orange { background: linear-gradient(140deg, var(--coral), #F58A4B); }
.art-amber  { background: linear-gradient(140deg, #E99200, var(--sun)); }
.art-olive  { background: linear-gradient(140deg, var(--violet), #9B7BF2); }
.art-green  { background: linear-gradient(140deg, var(--leaf), #74C23A); }
.art-teal   { background: linear-gradient(140deg, var(--lagoon), #3CC2B6); }
.course-head { position: relative; overflow: hidden; color: #fff; border-radius: var(--r-xl); padding: 1.4rem 1.4rem 1.2rem; margin-bottom: 1rem; }
.course-head::before { content: ""; position: absolute; inset: 0; background: var(--kente); }
.course-head > * { position: relative; }
.course-head h1 { color: #fff; }
.course-head-icon { position: absolute !important; right: -10px; bottom: -26px; font-size: 8rem; opacity: .2; }
.module-nav { padding: 6px; position: sticky; top: calc(var(--topbar-h) + 18px); }
.module-nav a { display: flex; gap: 10px; align-items: center; padding: .6rem; border-radius: var(--r-md); text-decoration: none; color: inherit; }
.module-nav a:hover { background: var(--bg); }
.module-nav a.active { background: var(--accent-soft); }
.mod-state { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .8rem; background: var(--chip); }
.mod-state.done { background: var(--leaf); color: #fff; }
.mod-section { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.mod-h { font-size: 1rem; font-weight: 600; display: flex; gap: .5rem; align-items: center; margin-bottom: .7rem; font-family: "Bricolage Grotesque", sans-serif; }
.reading { font-size: 1.02rem; line-height: 1.75; max-width: 68ch; }
.video-placeholder { background: repeating-linear-gradient(45deg, var(--sky-soft), var(--sky-soft) 12px, var(--sky-soft-2) 12px, var(--sky-soft-2) 24px); border-radius: var(--r-md); aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--sky-ink); text-align: center; padding: 1rem; font-size: .9rem; }
.video-placeholder i { font-size: 2.6rem; }
.quiz-opt { padding: .7rem .9rem .7rem 2.4rem; border: 1.5px solid var(--line); border-radius: var(--r-md); margin-bottom: .45rem; background: var(--card); }
.quiz-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Builder ---------- */
.stepper { list-style: none; padding: 4px 0; margin: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper li { flex: 1 0 auto; min-width: 76px; }
.stepper a { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 500; text-align: center; padding: 4px; position: relative; }
.stepper li:not(:last-child) a::after { content: ""; position: absolute; top: 21px; left: calc(50% + 21px); right: calc(-50% + 21px); height: 3px; border-radius: 2px; background: var(--line-strong); }
.stepper li.done:not(:last-child) a::after { background: var(--leaf); }
.st-dot { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card); border: 2px solid var(--line-strong); font-weight: 600; color: var(--muted); }
.stepper li.done .st-dot { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.stepper li.current .st-dot { border-color: var(--leaf); color: var(--leaf-ink); box-shadow: 0 0 0 5px var(--leaf-soft); }
.stepper li.current a { color: var(--ink); font-weight: 600; }
.fin-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 768px) { .fin-summary { grid-template-columns: repeat(4, 1fr); } }
.fin-summary div { background: var(--leaf-soft); border-radius: var(--r-md); padding: .75rem .85rem; }
.fin-summary span { display: block; font-size: .75rem; color: var(--leaf-ink); font-weight: 500; }
.fin-summary strong { font-size: 1.1rem; font-family: "Bricolage Grotesque", sans-serif; }
.fin-summary strong.neg { color: #B5302A; }

/* ---------- Business plan ---------- */
.plan-doc { padding: 0; overflow: hidden; }
.plan-cover { position: relative; padding: 2rem 2rem 1.5rem; color: #fff; background: var(--kente), linear-gradient(135deg, var(--leaf), #6FB52E 60%, var(--sun)); }
.plan-cover img { filter: brightness(0) invert(1); }
.plan-kicker { margin-top: 1.5rem; font-size: .9rem; font-weight: 600; opacity: .9; }
.plan-cover h1 { font-size: 2.2rem; margin: .2rem 0 .4rem; color: #fff; }
.plan-meta { opacity: .9; font-size: .9rem; }
.plan-section { padding: 1.4rem 2rem; border-bottom: 1px solid var(--line); }
.plan-section h2 { font-size: 1.25rem; margin-bottom: .8rem; color: var(--leaf-ink); }
.plan-section h3 { font-family: "Lexend", sans-serif; font-size: .85rem; font-weight: 600; color: var(--muted); margin: 1rem 0 .25rem; }
.plan-section h3:first-of-type { margin-top: 0; }
.plan-section p { max-width: 72ch; }
.plan-quote { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.2rem; border-left: 5px solid var(--sun); padding-left: 1rem; }
.plan-table th { font-weight: 500; color: var(--muted); width: 55%; }
.plan-foot { padding: 1rem 2rem; font-size: .8rem; color: var(--muted); text-align: center; }
@media (max-width: 575px) { .plan-section, .plan-cover { padding-left: 1.1rem; padding-right: 1.1rem; } .plan-cover h1 { font-size: 1.7rem; } }

/* ---------- Community ---------- */
.composer textarea { resize: none; font-size: 1rem; }
.post-body { word-wrap: break-word; font-size: 1rem; }
.post-actions { display: flex; gap: 4px; margin-top: .7rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.btn-react { border: 0; background: transparent; color: var(--muted); font-weight: 500; padding: .4rem .8rem; border-radius: 999px; }
.btn-react:hover { background: var(--berry-soft); color: var(--berry-ink); }
.btn-react.on { color: var(--berry); }
.btn-react.on i { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.35); } }
.btn-report { border: 0; background: none; padding: 0; font-size: .75rem; color: var(--muted); text-decoration: underline; text-decoration-color: transparent; }
.btn-report:hover { color: var(--coral-ink); text-decoration-color: currentColor; }
.comment { display: flex; gap: 8px; padding: .6rem 0; border-top: 1px dashed var(--line); }
.post-type { display: inline-flex; gap: .3rem; align-items: center; font-size: .78rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px; background: var(--ic-soft); color: var(--ic); }
.circle-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.circle-card { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 1rem; box-shadow: var(--shadow); }
.circle-card:hover { box-shadow: var(--shadow-lift); }

/* ---------- Prayer ---------- */
.prayer-text { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 1.05rem; }
.prayer.answered { background: linear-gradient(150deg, var(--leaf-soft), var(--card) 70%); }
.btn-pray { border: 1.5px solid var(--lagoon-soft); background: var(--lagoon-soft); color: var(--lagoon-ink); border-radius: 999px; font-weight: 600; padding: .35rem .9rem; font-size: .85rem; }
.btn-pray:hover { border-color: var(--lagoon); }
.btn-pray.on { background: var(--lagoon); color: #fff; border-color: var(--lagoon); }

/* ---------- Mentors ---------- */
.mentor-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .mentor-grid { grid-template-columns: repeat(2, 1fr); } }
.mentor-card { background: var(--card); border-radius: var(--r-lg); padding: 1rem; box-shadow: var(--shadow); }

/* ---------- Events & opportunities ---------- */
.event-row, .opp-row { display: flex; align-items: center; gap: 12px; padding: .85rem; background: var(--card); border-radius: var(--r-lg); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.event-row:hover, .opp-row:hover { color: inherit; box-shadow: var(--shadow-lift); }
.event-row:active, .opp-row:active { transform: scale(.98); }
@media (max-width: 575.98px) {
  .opp-row:has(> .text-end) { flex-wrap: wrap; row-gap: 2px; }
  .opp-row > .text-end { order: 3; width: 100%; text-align: left !important; padding-left: 56px; }
  .opp-row > .text-end br { display: none; }
  .opp-row > .text-end .match-tag { margin-left: .4rem; }
}
.event-hero { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.4rem; color: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--kente), linear-gradient(130deg, var(--coral), var(--sun)); }
.event-hero h1 { color: #fff; }
.event-hero > i { font-size: 2.4rem; }
.ev-faith { background: var(--kente), linear-gradient(130deg, var(--lagoon), #34C3B0); }
.ev-funding { background: var(--kente), linear-gradient(130deg, #E28F00, var(--sun)); }
.ev-training, .ev-masterclass { background: var(--kente), linear-gradient(130deg, var(--sky), #5AB2F2); }
.ev-networking, .ev-showcase { background: var(--kente), linear-gradient(130deg, var(--berry), #EF6AA4); }
.ev-mentor { background: var(--kente), linear-gradient(130deg, var(--violet), #9C80F5); }
.flow { list-style: none; padding: 0; margin: 0; display: flex; counter-reset: f; }
.flow li { flex: 1; text-align: center; font-size: .78rem; font-weight: 500; color: var(--muted); position: relative; padding-top: 36px; counter-increment: f; }
.flow li::before { content: counter(f); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--chip); display: flex; align-items: center; justify-content: center; z-index: 1; font-weight: 600; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: 50%; width: 100%; height: 3px; background: var(--chip); }
.flow li.done::before { content: "✓"; background: var(--leaf); color: #fff; }
.flow li.done:not(:last-child)::after { background: var(--leaf); }
.flow li.current { color: var(--ink); font-weight: 600; }
.flow li.current::before { background: var(--accent); color: #fff; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2rem; color: var(--line-strong); cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--sun); }
.star-input input:focus-visible + label { outline: 2px solid var(--sun); border-radius: 4px; }
.opp-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.opp-cats a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: .75rem .3rem; border-radius: var(--r-lg); background: var(--card); text-decoration: none; color: var(--ink); font-size: .78rem; font-weight: 500; box-shadow: var(--shadow); }
.opp-cats a i { font-size: 1.35rem; color: var(--sun-ink); }
.opp-cats a.on { background: var(--sun); color: #3D2800; }
.opp-cats a.on i { color: #3D2800; }
.opp-flow { list-style: none; padding: 0; margin: 1rem 0 0; }
.opp-flow > li { position: relative; padding: 0 0 1.2rem 2.4rem; }
.opp-flow > li::before { content: ""; position: absolute; left: 8px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 4px solid var(--sun); }
.opp-flow > li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 22px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--sun-soft); }
.opp-flow > li:last-child::before { background: var(--leaf); border-color: var(--leaf); }
.opp-flow h2 { font-family: "Lexend", sans-serif; font-size: .85rem; font-weight: 600; color: var(--sun-ink); margin-bottom: .25rem; }

/* Opportunities hub extras */
.btn-save { position: relative; z-index: 2; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--chip); color: var(--muted); font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; transition: transform .1s, background-color .15s, color .15s; }
.btn-save:hover { color: var(--sun-ink); }
.btn-save.on { background: var(--sun-soft); color: var(--sun-ink); }
.btn-save.on i { animation: pop .3s ease; }
.btn-save.lg { width: 46px; height: 46px; font-size: 1.25rem; }
.btn-save:active { transform: scale(.9); }
.status-pill { display: inline-flex; gap: .3rem; align-items: center; font-size: .74rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px; background: var(--ic-soft); color: var(--ic-ink, var(--ic)); }
.opp-search { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .opp-search { grid-template-columns: 1fr 220px; } }
.track { list-style: none; padding: 0; margin: .3rem 0 .6rem; display: flex; }
.track li { min-width: 0; overflow-wrap: anywhere; }
.track li { flex: 1; position: relative; text-align: center; padding-top: 26px; font-size: .74rem; color: var(--muted); font-weight: 500; }
.track li::before { content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--chip); z-index: 1; box-shadow: 0 0 0 3px var(--card); }
.track li:not(:last-child)::after { content: ""; position: absolute; top: 10px; left: 50%; width: 100%; height: 4px; border-radius: 2px; background: var(--chip); }
.track li.done::before, .track li.done:not(:last-child)::after { background: var(--violet); }
.track li.current { color: var(--ink); font-weight: 700; }
.track li.current::before { background: var(--sun); width: 20px; height: 20px; top: 2px; }
.track li.current.win::before { background: var(--leaf); }
.track li.current.end::before { background: var(--muted-2); }
.bar-pair { position: relative; height: 12px; border-radius: 6px; background: var(--chip); overflow: hidden; }
.bar-pair span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.b-app { background: color-mix(in srgb, var(--violet) 45%, transparent); }
.b-win { background: var(--leaf); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: .3rem; }

/* ---------- Readiness / journey / badges ---------- */
.chk { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; border: 2px solid var(--line-strong); background: var(--card); display: inline-flex; align-items: center; justify-content: center; color: transparent; padding: 0; transition: all .15s; }
button.chk:hover { border-color: var(--leaf); }
.chk.on { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.journey { list-style: none; margin: 0; padding: .4rem 1.15rem .9rem; }
.journey li { display: flex; gap: 12px; align-items: center; padding: .5rem 0; position: relative; }
.journey li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 46px; bottom: -10px; width: 3px; border-radius: 2px; background: var(--chip); }
.journey li.done:not(:last-child)::after { background: var(--leaf); }
.j-dot { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--chip); color: var(--muted); z-index: 1; }
.journey li.done .j-dot { background: var(--leaf); color: #fff; }
.journey li.current .j-dot { background: var(--violet); color: #fff; box-shadow: 0 0 0 5px var(--violet-soft); }
.j-label { font-weight: 600; font-size: .9rem; }
.journey li.upcoming .j-label { color: var(--muted); }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; padding: .6rem 1rem 1.1rem; }
.badge-tile { text-align: center; font-size: .74rem; font-weight: 500; color: var(--muted); }
.badge-tile span { width: 58px; height: 58px; margin: 0 auto 6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.45rem; background: var(--chip); color: var(--muted-2); }
.badge-tile.got { color: var(--ink); }
.badge-tile.got span { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(240,86,58,.9); }
.badge-tile:nth-child(3n+2).got span { background: linear-gradient(140deg, var(--violet), var(--berry)); }
.badge-tile:nth-child(3n).got span { background: linear-gradient(140deg, var(--sky), var(--lagoon)); }

/* ---------- Messages ---------- */
.chat { display: grid; grid-template-columns: 1fr; gap: 12px; height: calc(100dvh - var(--topbar-h) - var(--bottomnav-h) - 50px - env(safe-area-inset-bottom) - env(safe-area-inset-top)); min-height: 420px; }
.chat-list { overflow-y: auto; }
.chat-pane { display: none; flex-direction: column; overflow: hidden; }
.chat.has-open .chat-list { display: none; }
.chat.has-open .chat-pane { display: flex; }
@media (min-width: 992px) { .chat { grid-template-columns: 320px 1fr; height: calc(100dvh - var(--topbar-h) - 60px); } .chat.has-open .chat-list, .chat-list { display: block; } .chat-pane { display: flex; } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(180deg, var(--accent-soft), var(--card)); }
.chat-day { align-self: center; font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--card); padding: .2rem .7rem; border-radius: 999px; margin: .5rem 0; }
.bubble { max-width: 80%; padding: .6rem .85rem .45rem; border-radius: 20px; background: var(--card); line-height: 1.45; word-wrap: break-word; box-shadow: 0 1px 2px rgba(30,27,58,.08); }
.bubble time { display: block; font-size: .66rem; opacity: .7; text-align: right; margin-top: 2px; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; border-bottom-left-radius: 6px; }
.chat-input { display: flex; gap: 8px; padding: .7rem; border-top: 1px solid var(--line); background: var(--card); align-items: flex-end; }
.chat-input textarea { resize: none; max-height: 140px; border-radius: 22px; }
.chat-input .btn { width: 46px; height: 46px; padding: 0; flex: 0 0 46px; }

/* ---------- Install prompt ---------- */
.install-banner { display: flex; align-items: center; gap: .8rem; background: var(--banner); color: #fff; border-radius: var(--r-lg); padding: .8rem .9rem; margin-bottom: 1rem; box-shadow: var(--shadow-lift); }
.install-banner img { width: 44px; height: 44px; border-radius: 12px; background: #fff; padding: 4px; }
.install-banner .btn-brand { white-space: nowrap; }
.install-banner .x { color: rgba(255,255,255,.7); border: 0; background: none; font-size: 1.3rem; padding: 0 .2rem; }
.ios-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.ios-steps li { display: flex; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.ios-steps li::before { content: counter(s); width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--sky); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.ios-steps li:last-child { border-bottom: 0; }
.ios-ic { display: inline-flex; width: 30px; height: 30px; border-radius: 8px; background: var(--chip); align-items: center; justify-content: center; color: var(--sky); font-size: 1.05rem; vertical-align: middle; }
[data-installed] .hide-when-installed { display: none !important; }

/* ---------- Auth ---------- */
body.auth { background: var(--bg); }
.auth-wrap { min-height: 100dvh; display: flex; }
.auth-side { flex: 0 0 44%; color: #fff; padding: 3.5rem; align-items: center; position: relative; overflow: hidden; background: var(--kente), linear-gradient(140deg, var(--coral) 0%, #F27A1F 35%, var(--sun) 65%, var(--leaf) 100%); }
.auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 400px; height: 400px; border-radius: 50%; border: 44px solid rgba(255,255,255,.12); }
.auth-kicker { font-weight: 600; font-size: .95rem; opacity: .9; }
.auth-headline { font-family: "Bricolage Grotesque", sans-serif; font-size: 3.9rem; line-height: .98; font-weight: 800; margin: 1rem 0 1.5rem; color: #fff; letter-spacing: -0.035em; }
.auth-lede { font-size: 1.05rem; max-width: 460px; opacity: .95; }
.auth-path { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: 480px; position: relative; z-index: 1; }
.auth-path li { font-size: .8rem; font-weight: 500; padding: .3rem .7rem; background: rgba(255,255,255,.18); border-radius: 999px; }
.auth-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 16px calc(1.5rem + env(safe-area-inset-bottom)); }
.auth-card { width: 100%; max-width: 460px; margin: 0 auto; }
.auth-logo { height: 42px; width: auto; }
.auth-title { font-size: 1.85rem; }
@media (max-width: 991.98px) {
  body.auth { background: var(--bg); }
  .auth-wrap { flex-direction: column; }
  .auth-main { justify-content: flex-start; padding-top: 0; }
  .auth-card > a:first-child { display: none !important; }   /* logo moves into the band */
  .auth-band + .auth-card { position: relative; margin-top: -2.4rem; background: var(--card); border-radius: 26px; padding: 1.4rem 1.2rem; box-shadow: var(--shadow-lift); }
}
.auth-band { position: relative; overflow: hidden; color: #fff; padding: calc(1.2rem + env(safe-area-inset-top)) 20px 3.2rem; margin: 0 -16px 1.2rem; border-radius: 0 0 32px 32px;
  background: var(--kente), linear-gradient(140deg, var(--coral) 0%, #F27A1F 35%, var(--sun) 65%, var(--leaf) 100%); }
.auth-band::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 190px; height: 190px; border-radius: 50%; border: 24px solid rgba(255,255,255,.14); }
.auth-band img { height: 34px; filter: brightness(0) invert(1); }
.auth-band .tag { margin-top: 1.4rem; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.9rem; line-height: 1.05; letter-spacing: -0.03em; }
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.role-opt { display: flex; flex-direction: column; gap: 2px; padding: .8rem .85rem; border: 2px solid transparent; border-radius: var(--r-lg); background: var(--card); cursor: pointer; font-size: .9rem; height: 100%; box-shadow: var(--shadow); }
.role-opt i { font-size: 1.15rem; width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--ic-soft); color: var(--ic); margin-bottom: 4px; }
.role-opt small { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.btn-check:checked + .role-opt { border-color: var(--ic); background: var(--ic-soft); }
.btn-check:checked + .role-opt i { background: var(--ic); color: #fff; }
.btn-check:focus-visible + .role-opt { outline: 3px solid color-mix(in srgb, var(--ic) 50%, transparent); }
.role-grid .btn-check:first-child + .role-opt { grid-column: span 2; flex-direction: row; align-items: center; gap: .75rem; }
.role-grid .btn-check:first-child + .role-opt i { margin: 0; }
.otp-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-size: 1.9rem; display: flex; align-items: center; justify-content: center; }
.otp-inputs { display: flex; gap: 8px; justify-content: space-between; }
.otp-box { width: 100%; max-width: 58px; aspect-ratio: 1 / 1.15; text-align: center; font-size: 1.7rem; font-weight: 700; font-family: "Bricolage Grotesque", sans-serif; border-radius: var(--r-md); padding: 0; }
.otp-box.filled { border-color: var(--accent); background: var(--accent-soft); }
.otp-inputs.is-invalid .otp-box { border-color: #D2323C; }
.otp-inputs.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Onboarding ---------- */
.onboard { background: linear-gradient(180deg, var(--coral-soft), var(--bg) 360px) no-repeat, var(--bg); min-height: 100dvh; }
.onboard-wrap { max-width: 720px; margin: 0 auto; padding: calc(1.2rem + env(safe-area-inset-top)) 16px 3rem; }
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 1rem; border: 2px solid transparent; border-radius: var(--r-lg); background: var(--card); cursor: pointer; font-weight: 500; box-shadow: var(--shadow); }
.choice-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: 0 0 22px; }
.btn-check:checked + .choice { border-color: var(--coral); background: var(--coral-soft); }
.btn-check:checked + .choice .choice-radio { border: 7px solid var(--coral); }
.btn-check:focus-visible + .choice { outline: 3px solid rgba(240,86,58,.45); }

/* ---------- Landing ---------- */
.landing { background: var(--bg); }
.landing-nav { display: flex; align-items: center; padding: calc(.9rem + env(safe-area-inset-top)) 16px .9rem; max-width: 1180px; margin: 0 auto; }
.hero { max-width: 1180px; margin: 0 auto; padding: 1rem 16px 2.5rem; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 992px) { .hero { grid-template-columns: 1.15fr .85fr; padding-top: 3rem; } }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 800; line-height: 1; margin: .8rem 0 1rem; letter-spacing: -0.04em; }
.hero .lead { max-width: 560px; color: var(--text-2); font-size: 1.1rem; }
.hero-pill { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; font-size: .9rem; color: var(--coral-ink); background: var(--coral-soft); padding: .35rem .85rem; border-radius: 999px; }
.hero-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 1.5rem; color: #fff; background: var(--kente), linear-gradient(140deg, var(--coral), var(--sun) 65%, var(--leaf)); box-shadow: 0 30px 60px -30px rgba(240, 86, 58, .8); }
.hero-card .mini-step { color: rgba(255,255,255,.75); }
.mini-step { display: flex; gap: .6rem; align-items: center; padding: .45rem 0; font-weight: 500; font-size: .95rem; }
.mini-step.done, .mini-step.current { color: #fff; }
.pillars { max-width: 1180px; margin: 0 auto; padding: 0 16px 3rem; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.pillar { background: var(--card); border-radius: var(--r-lg); padding: 1.25rem; box-shadow: var(--shadow); }
.pillar i { font-size: 1.45rem; width: 50px; height: 50px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--ic); color: #fff; margin-bottom: .8rem; }
.pillar h3 { font-size: 1.25rem; }
.pillar p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Readable documents (policies, install guide) ---------- */
.doc-page { background: linear-gradient(180deg, var(--accent-soft), var(--bg) 320px) no-repeat, var(--bg); }
.tint-violet { --accent: var(--violet); --accent-soft: var(--violet-soft); --accent-ink: var(--violet-ink); }
.tint-berry { --accent: var(--berry); --accent-soft: var(--berry-soft); --accent-ink: var(--berry-ink); }
.tint-sky { --accent: var(--sky); --accent-soft: var(--sky-soft); --accent-ink: var(--sky-ink); }
.doc-bar { display: flex; align-items: center; gap: .4rem; max-width: 820px; margin: 0 auto; padding: calc(.6rem + env(safe-area-inset-top)) 12px .6rem; }
.doc-wrap { max-width: 820px; margin: 0 auto; padding: 0 16px 2rem; }
.doc { background: var(--card); border-radius: var(--r-xl); padding: 1.6rem 1.3rem; box-shadow: var(--shadow); }
@media (min-width: 768px) { .doc { padding: 2.4rem 2.6rem; } }
.doc h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: .3rem; }
.doc h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; color: var(--accent-ink); scroll-margin-top: 1rem; }
.doc p, .doc li, .doc dd { max-width: 70ch; line-height: 1.7; }
.doc-meta { color: var(--muted); font-size: .88rem; }
.doc-lede { font-size: 1.08rem; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 1.2rem 0 .5rem; }
.doc-toc a { font-size: .8rem; font-weight: 500; padding: .3rem .7rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); text-decoration: none; }
.doc-list dt { font-weight: 600; margin-top: .8rem; }
.doc-list dd { margin: .1rem 0 0; color: var(--text-2); }
.doc-table { font-size: .9rem; }
.doc-table th { font-weight: 600; }
.doc-callout { display: flex; gap: .8rem; align-items: flex-start; background: var(--coral-soft); color: var(--coral-ink); border-radius: var(--r-md); padding: 1rem; margin: 1rem 0; }
.doc-callout i { font-size: 1.3rem; }
.value-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 1.4rem 0; }
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value { border-radius: var(--r-lg); padding: 1rem; background: var(--ic-soft); }
.value i { font-size: 1.4rem; color: var(--ic); }
.value h2 { font-size: 1.05rem !important; margin: .4rem 0 .2rem !important; color: var(--ink) !important; }
.value p { font-size: .85rem; margin: 0; color: var(--text-2); }
.v-sun { --ic: var(--sun-ink); --ic-soft: var(--sun-soft); } .v-berry { --ic: var(--berry); --ic-soft: var(--berry-soft); }
.v-leaf { --ic: var(--leaf); --ic-soft: var(--leaf-soft); } .v-sky { --ic: var(--sky); --ic-soft: var(--sky-soft); }
.do-list, .dont-list { list-style: none; padding: 0; }
.do-list li, .dont-list li { position: relative; padding: .45rem 0 .45rem 2rem; }
.do-list li::before, .dont-list li::before { position: absolute; left: 0; top: .5rem; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: #fff; }
.do-list li::before { content: "✓"; background: var(--leaf); }
.dont-list li::before { content: "✕"; background: var(--coral); }
.doc-foot { max-width: 820px; margin: 0 auto; padding: 0 16px calc(2rem + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; color: var(--muted); }
.doc-foot a { color: var(--muted); }
.report-quote { background: var(--bg); border-left: 4px solid var(--coral); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: .6rem .8rem; font-size: .9rem; margin: 0; }
.phone-mock { width: 210px; margin: 0 auto; border-radius: 34px; padding: 10px; background: var(--banner); box-shadow: var(--shadow-lift); }
.phone-mock .scr { border-radius: 26px; overflow: hidden; background: var(--bg); aspect-ratio: 9/18; display: grid; grid-template-columns: repeat(4, 1fr); align-content: start; gap: 14px 4px; padding: 30px 10px; }
.phone-mock .scr .tile { font-size: .55rem; }
.phone-mock .scr .tile .tile-ic { width: 38px; height: 38px; border-radius: 12px; font-size: 1rem; }
.phone-mock .scr .tile.me .tile-ic { background: #fff; box-shadow: 0 0 0 3px var(--sun), 0 10px 20px -8px rgba(0,0,0,.4); }
.phone-mock .scr .tile.me .tile-ic img { width: 30px; }

/* ---------- Phone-first page (computer visitors) ---------- */
.phone-gate { min-height: 100dvh; background: var(--kente), linear-gradient(140deg, var(--coral) 0%, #F27A1F 35%, var(--sun) 65%, var(--leaf) 100%); background-attachment: fixed; color: #fff; }
.pg-wrap { max-width: 1040px; margin: 0 auto; padding: 2rem 24px 2.5rem; min-height: 100dvh; display: flex; flex-direction: column; }
.pg-head img { filter: brightness(0) invert(1); }
.pg-grid { flex: 1; display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; padding: 2rem 0; }
@media (min-width: 900px) { .pg-grid { grid-template-columns: 1.15fr .85fr; } }
.pg-copy h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 1rem; }
.pg-copy .lead { font-size: 1.15rem; max-width: 34ch; opacity: .96; }
.pg-copy .text-muted, .pg-copy .text-body { color: rgba(255,255,255,.85) !important; }
.pg-steps { list-style: none; padding: 0; margin: 1.6rem 0 1.4rem; display: grid; gap: .9rem; max-width: 460px; }
.pg-steps li { display: flex; gap: .9rem; align-items: flex-start; }
.pg-steps li span:not(.pg-n) { opacity: .88; font-size: .92rem; }
.pg-n { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; background: #fff; color: var(--ic); font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: "Bricolage Grotesque", sans-serif; }
.pg-card { background: var(--card); color: var(--ink); border-radius: var(--r-xl); padding: 1.6rem; text-align: center; box-shadow: 0 40px 70px -35px rgba(60, 20, 0, .7); justify-self: center; width: 100%; max-width: 340px; }
.pg-qr { display: inline-flex; padding: 12px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 2px var(--line); position: relative; min-width: 120px; min-height: 120px; align-items: center; justify-content: center; }
.pg-qr svg { display: block; }
.pg-qr::after { content: ""; position: absolute; width: 46px; height: 46px; border-radius: 12px; background: #fff url(../img/emblem.png) center/34px no-repeat; box-shadow: 0 0 0 3px var(--card); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pg-qr.sm::after { display: none; }
.pg-qr.used svg { opacity: .15; }
.pg-status { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.pg-done { display: flex; gap: .7rem; align-items: center; text-align: left; margin-top: 1rem; background: var(--leaf-soft); color: var(--leaf-ink); border-radius: var(--r-md); padding: .8rem 1rem; }
.pg-done i { font-size: 1.6rem; }
.pg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.pg-foot .text-muted { color: rgba(255,255,255,.85) !important; }
.landing-qr { align-items: center; gap: 1rem; margin-top: 1.6rem; background: var(--card); border-radius: var(--r-lg); padding: .8rem 1.1rem .8rem .8rem; box-shadow: var(--shadow); max-width: 460px; }
.landing-qr .pg-qr { flex: 0 0 auto; padding: 6px; border-radius: 14px; min-width: 0; min-height: 0; }
.landing-qr .pg-qr svg { width: 124px; height: 124px; }

/* ---------- Print (business plan PDF) ---------- */
@media print {
  [data-bs-theme="dark"] { color-scheme: light; --ink: #1E1B3A; --muted: #6B6889; --bg: #fff; --card: #fff; --line: #E7E5F2; --leaf-ink: #2B6E06; --sun: #F7A400; --text-2: #3E3B5C; }
  .topbar, .sidenav, .bottomnav, .no-print, .alert, .install-banner { display: none !important; }
  body, body.app, .shell { background: var(--card) !important; padding: 0 !important; margin: 0 !important; max-width: none; }
  .plan-doc { box-shadow: none !important; }
  .plan-section { break-inside: avoid; }
  .plan-cover { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
