/* =============================================================================
   fred.my — gaya laman (laman utama, /akaun, /help, 404)
   Header & footer: /shared/chrome.css. Tema cerah/gelap: html[data-theme].
   ========================================================================== */

:root {
    color-scheme: light dark;
    --bg: light-dark(#f5f7fb, #070b16);
    --bg-2: light-dark(#eef2f9, #0b1222);
    --surface: light-dark(#ffffff, #0f1729);
    --surface-solid: light-dark(#ffffff, #0f1729);
    --surface-2: light-dark(#f1f5f9, rgba(255, 255, 255, .05));
    --border: light-dark(rgba(15, 23, 42, .09), rgba(255, 255, 255, .09));
    --border-strong: light-dark(rgba(15, 23, 42, .18), rgba(255, 255, 255, .2));
    --text: light-dark(#0b1220, #e9eef9);
    --text-muted: light-dark(#475569, #a7b2c7);
    --text-faint: light-dark(#64748b, #8391ab);
    --brand: light-dark(#2563eb, #4f8bff);
    --brand-ink: light-dark(#1d4ed8, #9cb9ff);
    --brand-soft: light-dark(rgba(37, 99, 235, .09), rgba(124, 166, 255, .14));
    --violet: light-dark(#7c3aed, #a78bfa);
    --green: light-dark(#047857, #34d399);
    --wa: #25d366;
    --shadow-1: light-dark(0 1px 2px rgba(8, 12, 30, .06), 0 1px 2px rgba(0, 0, 0, .5));
    --shadow-2: light-dark(0 14px 34px -18px rgba(8, 12, 30, .28), 0 14px 34px -16px rgba(0, 0, 0, .7));
    --shadow-3: light-dark(0 30px 70px -30px rgba(8, 12, 30, .38), 0 30px 70px -24px rgba(0, 0, 0, .8));
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 24px;
    --font-display: var(--fm-display, "Outfit", system-ui, sans-serif);
    --font-body: var(--fm-font, "Jakarta", system-ui, sans-serif);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--fm-bar-h, 64px) + 64px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, picture { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--brand-ink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; margin: 0; color: var(--text); }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }
@media (max-width: 480px) { .container { padding: 0 16px; } }

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 26px; height: 26px; }

/* ---- Butang ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font: 650 15px/1.1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px var(--brand); }
.btn--wa { background: var(--wa); color: #05301a; box-shadow: 0 10px 24px -12px rgba(37, 211, 102, .9); }
.btn--outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--light { background: #fff; color: #0b1220; }
.btn--glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn--glass:hover { background: rgba(255, 255, 255, .18); }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; } }

/* A quiet, editorial hero; content stays visible while transforms animate. */
.hero { position: relative; margin-top: 0; padding: 62px 0 42px; overflow: clip; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 12% 0, light-dark(#edf3ff, #101d35), transparent 65%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero__content { animation: hero-arrive .55s ease-out both; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 12px; font-weight: 650; letter-spacing: .035em; color: var(--text-muted); }
.pill__dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #0c9470; box-shadow: 0 0 0 4px light-dark(#d9f2e9, #153b37); }
.hero__title { max-width: 680px; margin-top: 14px; font-size: clamp(2.75rem, 1.6rem + 3.7vw, 4.6rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.06; text-wrap: balance; }
.hero__title span { display: block; padding-bottom: .06em; color: var(--brand-ink); }
.hero__role { margin-top: 20px; font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); font-weight: 600; line-height: 1.5; color: var(--text); }
.hero__bio { display: grid; gap: 11px; max-width: 590px; margin-top: 16px; color: var(--text-muted); font-size: 15.5px; line-height: 1.8; }
.hero__bio strong { color: var(--text); font-weight: 650; }
.tags { display: flex; flex-wrap: wrap; list-style: none; gap: 8px; margin: 22px 0 0; padding: 0; }
.tags li { padding: 5px 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text-muted); font-size: 11.5px; font-weight: 600; line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn--wa { background: light-dark(#116b4d, #80ddb5); color: light-dark(#fff, #092b1f); box-shadow: none; }
.hero .btn { min-height: 48px; border-radius: 10px; font-size: 14px; }
.hero__figure { min-width: 0; animation: hero-arrive .7s ease-out both; }
.portrait { position: relative; width: 100%; max-width: 380px; margin: 0 0 0 auto; padding: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 18px 48px -32px rgba(12,28,58,.38); }
.portrait__img { overflow: hidden; aspect-ratio: 4/4.65; border-radius: 18px; background: var(--surface-2); }
.portrait__img picture, .portrait__img img { display: block; width: 100%; height: 100%; }
.portrait__img img { object-fit: cover; object-position: center 36%; }
.portrait__cap { position: static; padding: 16px 13px 12px; color: var(--text); }
.portrait__cap b { display: flex; align-items: center; gap: 7px; font: 650 16px/1.5 var(--font-display); }
.portrait__cap b .icon { width: 15px; height: 15px; color: var(--brand-ink); }
.portrait__cap small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11.5px; line-height: 1.6; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; gap: 0; margin: 44px 0 0; padding: 25px 0 0; border-top: 1px solid var(--border-strong); }
.stat { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 4px 24px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__ico { margin-bottom: 5px; color: var(--brand-ink); }
.stat__ico .icon { width: 19px; height: 19px; }
.stat__val { color: var(--text); font: 650 29px/1.3 var(--font-display); letter-spacing: -.025em; }
.stat__lbl { color: var(--text-muted); font-size: 12px; line-height: 1.6; }
@keyframes hero-arrive { from { transform: translateY(9px); } to { transform: translateY(0); } }
@media (max-width: 960px) {
    .hero { padding-top: 38px; }
    .hero__grid { grid-template-columns: minmax(0,1fr) minmax(0,.72fr); gap: 30px; }
    .hero__title { font-size: clamp(2.3rem,5vw,3.5rem); }
    .hero__bio { font-size: 14px; }
    .portrait__cap { padding: 12px 9px; }
}
@media (max-width: 680px) {
    .hero { padding: 28px 0 32px; }
    .hero__grid { grid-template-columns: 1fr; gap: 28px; }
    .hero__figure { order: 1; }
    .hero__title { font-size: clamp(2.75rem,10vw,3.8rem); }
    .hero__bio { max-width: none; font-size: 15px; }
    .portrait { max-width: 340px; margin: 0 auto; }
    .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 0; margin-top: 32px; }
    .stat { padding: 0 16px; }
    .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
    .stat__val { font-size: 26px; }
}
@media (max-width: 380px) { .cta-row .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .hero__content, .hero__figure { animation: none; } }


/* ---- Navigasi halaman: pil terapung melekit di bawah bar ------------------ */
.page-nav { position: sticky; top: calc(var(--fm-bar-h, 64px) + 10px); z-index: 50; display: flex; justify-content: center; margin: 14px auto 0; padding: 0 16px; pointer-events: none; }
.page-nav ul { pointer-events: auto; list-style: none; margin: 0; padding: 5px; display: flex; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
    border: 1px solid var(--border); box-shadow: 0 12px 30px -18px rgba(15, 23, 42, .35); }
.page-nav ul::-webkit-scrollbar { display: none; }
.page-nav a { display: block; padding: 9px 16px; border-radius: 999px; color: var(--text-muted); font-weight: 650; font-size: 14px; text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.page-nav a:hover { color: var(--text); background: var(--surface-2); }
.page-nav a.is-active { color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); box-shadow: 0 8px 18px -10px rgba(79, 70, 229, .9); }
@media (max-width: 640px) {
    .page-nav { top: calc(var(--fm-bar-h, 60px) + 8px); margin-top: 10px; padding: 0 10px; justify-content: flex-start; }
    .page-nav a { padding: 8px 13px; font-size: 13.5px; }
}

/* ---- Bahagian ----------------------------------------------------------- */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section__head { max-width: 680px; margin-bottom: 34px; }
.section__head--center { text-align: center; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }
.section__title { margin-top: 10px; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 800; }
.section__desc { margin-top: 12px; color: var(--text-muted); font-size: 17px; }
@media (max-width: 640px) { .section { padding: 52px 0; } .section__head { margin-bottom: 24px; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }

/* Platform (Chatlane, Fredo) */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.platform { position: relative; overflow: hidden; padding: 28px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.platform:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.platform::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--glow, rgba(37, 99, 235, .14)); filter: blur(10px); }
.platform--amber { --glow: rgba(245, 158, 11, .16); --tone: #f59e0b; }
.platform--violet { --glow: rgba(124, 58, 237, .16); --tone: #7c3aed; }
.platform--green { --glow: rgba(16, 185, 129, .16); --tone: #059669; }
.platform--sky { --glow: rgba(14, 165, 233, .16); --tone: #0284c7; }
.platform--teal { --glow: rgba(15, 118, 110, .16); --tone: #0f766e; }
.platform--pink { --glow: rgba(219, 39, 119, .15); --tone: #db2777; }
.platform--rose { --glow: rgba(225, 29, 72, .15); --tone: #e11d48; }
.platform__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--tone, #2563eb), color-mix(in srgb, var(--tone, #2563eb) 55%, #000)); box-shadow: 0 12px 24px -12px var(--tone, #2563eb); }
.platform__ico .icon { width: 28px; height: 28px; }
.platform h3 { font-size: 24px; }
.platform p { color: var(--text-muted); }
.platform__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-ink); }
.platform__note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-faint); }
@media (max-width: 760px) { .platforms { grid-template-columns: 1fr; } .platform { padding: 22px; } }
/* Tema setiap aplikasi daripada app.json (/shared/app-theme.css menetapkan --fm-tone) */
.platform[class*="fm-app-"] { --tone: var(--fm-tone); --glow: color-mix(in srgb, var(--fm-tone) 16%, transparent); }
.platform[class*="fm-app-"] .platform__go { color: var(--fm-tone-ink); }
.platform__ico.has-img { background: none; overflow: hidden; }
.platform__ico.has-img img { width: 100%; height: 100%; display: block; }

/* Sorotan */
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hl { overflow: hidden; display: flex; flex-direction: column; }
.hl__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.hl__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hl:hover .hl__media img { transform: scale(1.04); }
.hl__body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.hl__tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .06em; }
.hl h3 { font-size: 20px; }
.hl p { color: var(--text-muted); font-size: 15px; }
@media (max-width: 960px) { .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .highlights { grid-template-columns: 1fr; } }

/* Projek */
.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project { height: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.project:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.project__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--tone-soft, var(--brand-soft)); color: var(--tone-ink, var(--brand-ink)); }
.project__txt { min-width: 0; flex: 1; display: grid; gap: 3px; }
.project__txt b { font-weight: 700; line-height: 1.3; }
.project__txt small { color: var(--text-muted); font-size: 14px; line-height: 1.45; }
.project__arrow { color: var(--text-faint); }
.tone-amber { --tone-soft: light-dark(rgba(245, 158, 11, .14), rgba(251, 191, 36, .14)); --tone-ink: light-dark(#b45309, #fbbf24); }
.tone-violet { --tone-soft: light-dark(rgba(124, 58, 237, .11), rgba(167, 139, 250, .15)); --tone-ink: light-dark(#6d28d9, #c4b5fd); }
.tone-green { --tone-soft: light-dark(rgba(16, 185, 129, .12), rgba(52, 211, 153, .14)); --tone-ink: light-dark(#047857, #6ee7b7); }
.tone-sky { --tone-soft: light-dark(rgba(14, 165, 233, .12), rgba(56, 189, 248, .14)); --tone-ink: light-dark(#0369a1, #7dd3fc); }
.tone-red { --tone-soft: light-dark(rgba(239, 68, 68, .1), rgba(248, 113, 113, .14)); --tone-ink: light-dark(#b91c1c, #fca5a5); }
.tone-rose { --tone-soft: light-dark(rgba(225, 29, 72, .1), rgba(251, 113, 133, .14)); --tone-ink: light-dark(#be123c, #fda4af); }
.tone-teal { --tone-soft: light-dark(rgba(15, 118, 110, .12), rgba(45, 212, 191, .14)); --tone-ink: light-dark(#0f766e, #5eead4); }
.tone-pink { --tone-soft: light-dark(rgba(236, 72, 153, .1), rgba(244, 114, 182, .14)); --tone-ink: light-dark(#be185d, #f9a8d4); }
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .projects { grid-template-columns: 1fr; } }

/* NGO & kepakaran */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.panel { padding: 26px; }
.panel h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 18px; }
.panel h3 .icon { color: var(--brand-ink); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.row__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--brand-ink); border: 1px solid var(--border); flex: none; }
.row b { display: block; font-weight: 700; line-height: 1.3; }
.row small { color: var(--text-muted); font-size: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 650; font-size: 14.5px; }
.chips .icon { color: var(--brand-ink); }
.note { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); font-size: 14.5px; }
.note .icon { color: #ec4899; margin-top: 3px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .panel { padding: 20px; } }

/* Pendidikan */
.timeline { list-style: none; margin: 6px 0 0; padding: 0 0 0 6px; display: grid; gap: 18px; }
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: -22px; width: 2px; background: var(--border); }
.tl:last-child::before { display: none; }
.tl::after { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.tl b { display: block; font-weight: 700; }
.tl p { color: var(--text-muted); font-size: 14.5px; }
.tl__meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.tl__meta span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; font-weight: 650; color: var(--text-muted); }
.tl__meta .is-now { background: light-dark(rgba(16, 185, 129, .12), rgba(52, 211, 153, .14)); color: var(--green); }
.panel__sub { color: var(--text-muted); margin: -10px 0 18px; font-size: 14.5px; }

/* Sosial */
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.social { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 700; transition: transform .15s, border-color .15s, box-shadow .15s; }
.social:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.social__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c, #334155); flex: none; }
.social__ico .icon { width: 19px; height: 19px; }
.social small { display: block; font-weight: 500; color: var(--text-faint); font-size: 12.5px; }
.s-fb { --c: #1877f2; } .s-x { --c: #0f1419; } .s-ig { --c: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); } .s-li { --c: #0a66c2; }
.s-tt { --c: #111; } .s-yt { --c: #ff0000; } .s-th { --c: #101010; } .s-dc { --c: #5865f2; }
@media (max-width: 960px) { .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .social { padding: 12px; gap: 10px; } }

/* Hubungi */
.contact { position: relative; overflow: hidden; border-radius: 28px; padding: 48px; color: #fff; background: radial-gradient(60% 90% at 100% 0%, rgba(139, 92, 246, .55), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(37, 99, 235, .6), transparent 60%), #0b1220; box-shadow: var(--shadow-3); }
.contact h2 { color: #fff; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); max-width: 720px; }
.contact p { margin-top: 14px; color: rgba(255, 255, 255, .82); max-width: 640px; font-size: 17px; }
.contact .cta-row { margin-top: 26px; }
.share { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.share a { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none; font-weight: 650; }
.share a:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 640px) { .contact { padding: 30px 22px; border-radius: 22px; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--text-faint); }
.faq details[open] summary .icon { transform: rotate(90deg); }
.faq details p { padding: 0 20px 18px; color: var(--text-muted); }

/* Muncul semasa tatal (hanya bila JS aktif) */
/* main.js menambah .reveal-ready hanya bila pemerhati aktif — tanpa JS kandungan terus kelihatan. */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0s); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
/* Selepas muncul, kembalikan peralihan hover asal kad (tanpa kelewatan) */
.reveal-ready .card[data-reveal].is-visible, .reveal-ready .forum-band[data-reveal].is-visible { transition: transform .2s, box-shadow .2s, border-color .15s, opacity .6s; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; } }


/* 404 */
.err { padding: 90px 0 110px; text-align: center; }
.err__code { font: 800 clamp(4rem, 3rem + 6vw, 7rem)/1 var(--font-display); background: linear-gradient(100deg, var(--brand), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err p { color: var(--text-muted); margin: 12px auto 26px; max-width: 520px; }
.err .cta-row { justify-content: center; }

@media print { .page-nav { display: none !important; } [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* Restrained section navigation and motion that respects user preferences. */
.page-nav { margin-top: 18px; }
.page-nav ul { padding: 4px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-1); backdrop-filter: none; }
.page-nav a { padding: 8px 15px; border-radius: 8px; font-size: 12px; }
.page-nav a.is-active { background: var(--brand-ink); color: var(--surface); box-shadow: none; }
.page-nav__mobile { display: none; }
@media(max-width:640px) {
 .page-nav { top: calc(var(--fm-sticky-top,var(--fm-bar-h,60px)) + 8px); z-index: 950; }
 .page-nav > ul { display: none; }
 .page-nav__mobile { display: block; width: 100%; pointer-events: auto; position: relative; }
 .page-nav__mobile > summary { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; }
 .page-nav__mobile > summary > span { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .card, .btn, .page-nav a { transition: none; } }

/* ---- FredMY (aplikasi Windows) & forum di laman utama ---- */
.fredmy-band { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(24px, 4vw, 44px);
    border-radius: var(--r-lg); color: #fff; background: radial-gradient(80% 120% at 0% 0%, #3b82f6 0%, transparent 60%), radial-gradient(70% 120% at 100% 100%, #7c3aed 0%, transparent 60%), #1e1b4b;
    box-shadow: var(--shadow-3); isolation: isolate; }
.fredmy-band::after { content: ""; position: absolute; inset: -30%; z-index: -1; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .08), transparent 40%); animation: fredmy-spin 14s linear infinite; }
@keyframes fredmy-spin { to { transform: rotate(360deg); } }
.fredmy-band .eyebrow, .fredmy-band .section__title, .fredmy-band .section__desc { color: #fff; }
.fredmy-band .section__desc { opacity: .88; }
.fredmy-band__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.fredmy-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); }
.fredmy-band .btn--primary { background: #fff; color: #1e1b4b; }
.fredmy-band__apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fredmy-band__apps a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 18px; text-decoration: none; color: #fff; text-align: center;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); transition: transform .25s, background .25s; }
.fredmy-band__apps a:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .18); }
.fredmy-band__apps img { border-radius: 13px; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5); }
.fredmy-band__apps span { font: 650 12.5px/1.25 var(--font-body); }
.forum-band { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 18px 22px; border-radius: var(--r-md); text-decoration: none; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s; }
.forum-band:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.forum-band__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.forum-band b { display: block; font: 700 17px var(--font-display); }
.forum-band small { color: var(--text-muted); font-size: 14px; }
.forum-band__go { margin-left: auto; color: var(--brand-ink); }
@media (max-width: 860px) { .fredmy-band { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .fredmy-band__apps { grid-template-columns: repeat(2, 1fr); } .fredmy-band__act .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .fredmy-band::after { animation: none; } }
