/* =====================================================================
   Landing themes — selected by the admin in Academic › Appearance
   .theme-midnight                  → dark (base styles in landing.css)
   .theme-white                     → White Glass
   .theme-white .theme-sunrise      → Sunrise Glass (warm)
   .theme-white .theme-crystal      → Crystal Glass (pure white page, crystal-clear transparent cards)
   Rules are scoped by class (not body) so the admin live preview can reuse them.
   ===================================================================== */
.lp, .lp-preview { font-family: var(--app-font, "Jakarta", "NotoDeva", system-ui, sans-serif); }

/* ---------- 3D tilt (all themes) — --rx / --ry set by landing.js */
.c-card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.c-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); }
.c-card.soon:hover { transform: none; }

/* colour orbs behind the card grid (give the glass something to refract) */
.cert-zone { position: relative; }
.glass-orbs { display: none; position: absolute; inset: -40px 0; z-index: 0; pointer-events: none; }
.glass-orbs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.glass-orbs i:nth-child(1) { width: 340px; height: 340px; left: 4%;  top: 6%;  background: #c4b5fd; }
.glass-orbs i:nth-child(2) { width: 300px; height: 300px; left: 38%; top: 40%; background: #7dd3fc; }
.glass-orbs i:nth-child(3) { width: 320px; height: 320px; right: 6%; top: 0;   background: #f9a8d4; }
.glass-orbs i:nth-child(4) { width: 260px; height: 260px; right: 24%; bottom: 0; background: #fde68a; }
.cert-zone > .row { position: relative; z-index: 1; }

/* ===================================================================== WHITE GLASS */
body.lp.theme-white { background: #f6f7fc; color: #1e1b4b; }
.theme-white .lp-bg { background:
  radial-gradient(900px 520px at 88% 0%, rgba(167,139,250,.38), transparent 62%),
  radial-gradient(760px 560px at 0% 85%, rgba(56,189,248,.26), transparent 60%),
  radial-gradient(700px 480px at 100% 100%, rgba(251,191,36,.18), transparent 60%),
  linear-gradient(180deg, #fcfbff 0%, #f3f5ff 55%, #fdfcff 100%); }
.theme-white .lp-bg .glow { opacity: .28; filter: blur(90px); }
.theme-white .lp-bg .g1 { background: #a78bfa; } .theme-white .lp-bg .g2 { background: #7dd3fc; opacity: .3; } .theme-white .lp-bg .g3 { background: #fcd34d; opacity: .25; }
.theme-white .lp-bg .w3 { opacity: .1; }

.theme-white .lp-nav { background: rgba(255,255,255,.62); border-bottom: 1px solid rgba(124,58,237,.08); box-shadow: 0 8px 30px -18px rgba(30,27,75,.25); }
.theme-white .lp-brand, .theme-white .lp-brand:hover { color: #1e1b4b; }
.theme-white .lp-brand small { color: #6b6b8a; }
.theme-white .lp-brand img { box-shadow: 0 0 0 3px rgba(167,139,250,.25), 0 8px 22px rgba(124,58,237,.25); }
.theme-white .lp-links a { color: #3f3d63; }
.theme-white .lp-links a:hover { color: #1e1b4b; background: rgba(124,58,237,.08); }
.theme-white .lp-links a.on { color: #fff; }
.theme-white .lp-icon { color: #3f3d63; border-color: rgba(30,27,75,.08); background: rgba(255,255,255,.7); box-shadow: 0 4px 14px -6px rgba(30,27,75,.18); }
.theme-white .lp-icon:hover { color: #1e1b4b; background: #fff; }
.theme-white .lp-mobile a { color: #3f3d63; border-color: rgba(30,27,75,.06); }

.theme-white .hero .eyebrow { color: #6b6b8a; }
.theme-white .hero h1 { color: #1e1b4b; }
.theme-white .hero h1 .grad { background: linear-gradient(95deg, #7c3aed 0%, #db2777 50%, #f59e0b 100%); -webkit-background-clip: text; background-clip: text; }
.theme-white .hero h1 .hi { color: #6b6b8a; }
.theme-white .hero .lead { color: #4b4a6b; }
.theme-white .btn-hero.ghost { color: #1e1b4b; border-color: rgba(30,27,75,.16); background: rgba(255,255,255,.7); backdrop-filter: blur(8px); }
.theme-white .btn-hero.ghost:hover { color: #1e1b4b; border-color: #7c3aed; background: #fff; }
.theme-white .hero-stats div b { color: #1e1b4b; } .theme-white .hero-stats div span { color: #6b6b8a; }

.theme-white .building { opacity: .32; filter: drop-shadow(0 0 30px rgba(167,139,250,.35)); }
.theme-white .pedestal::before { background: radial-gradient(ellipse at center, rgba(167,139,250,.55), rgba(255,255,255,.15) 70%); box-shadow: 0 0 60px rgba(167,139,250,.45); }
.theme-white .ring { border-color: rgba(124,58,237,.25); box-shadow: 0 0 30px rgba(167,139,250,.25); }
.theme-white .cert3d .glass { background: linear-gradient(145deg, rgba(255,255,255,.75), rgba(196,181,253,.45) 60%, rgba(251,207,232,.4)); border-color: rgba(255,255,255,.95); box-shadow: 0 30px 70px -10px rgba(76,29,149,.35), inset 0 0 40px rgba(255,255,255,.5); }
.theme-white .sparkle { background: #a78bfa; box-shadow: 0 0 10px #c4b5fd; }

.theme-white .sec-title h2 { color: #1e1b4b; } .theme-white .sec-title p { color: #6b6b8a; }
.theme-white .cert-search input { background: rgba(255,255,255,.75); border-color: rgba(30,27,75,.1); color: #1e1b4b; box-shadow: 0 8px 24px -14px rgba(30,27,75,.3); }
.theme-white .cert-search input::placeholder { color: #9a98b5; }

/* white frosted cards */
.theme-white .c-card { color: #1e1b4b;
  background: linear-gradient(150deg, rgba(255,255,255,.88), color-mix(in srgb, var(--a2) 10%, rgba(255,255,255,.55)) 100%);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: inset 0 1px 0 #fff, 0 22px 44px -20px color-mix(in srgb, var(--a1) 40%, transparent), 0 2px 8px rgba(30,27,75,.05);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.theme-white .c-card::before { background: radial-gradient(22em 9em at var(--mx, 20%) var(--my, 0%), color-mix(in srgb, var(--a2) 18%, transparent), transparent 70%); }
.theme-white .c-card:hover { color: #1e1b4b; border-color: #fff; box-shadow: inset 0 1px 0 #fff, 0 30px 60px -22px color-mix(in srgb, var(--a1) 50%, transparent), 0 0 0 1px color-mix(in srgb, var(--a2) 25%, transparent); }
.theme-white .c-card .tx span { color: #5b5a7a; }
.theme-white .c-card .tag { background: color-mix(in srgb, var(--a1) 9%, #fff); color: var(--a1); border-color: color-mix(in srgb, var(--a1) 18%, transparent); }
.theme-white .c-card .c-foot { border-top-color: rgba(30,27,75,.07); }
.theme-white .c-card .cta { color: var(--a1); }
.theme-white .c-card .go { color: var(--a1); border-color: color-mix(in srgb, var(--a1) 25%, transparent); background: rgba(255,255,255,.85); }
.theme-white .c-card:hover .go { background: var(--a1); color: #fff; }
.theme-white .c-card.soon .cta { color: #8d8ba8; }
.theme-white .c-card.soon:hover { box-shadow: inset 0 1px 0 #fff, 0 22px 44px -20px color-mix(in srgb, var(--a1) 40%, transparent); }
.theme-white .view-all { color: #1e1b4b; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #a855f7, #ec4899, #f59e0b) border-box; box-shadow: 0 10px 30px -14px rgba(168,85,247,.5); }
.theme-white .view-all:hover { color: #1e1b4b; }

.theme-white .step { background: rgba(255,255,255,.7); border-color: rgba(255,255,255,.95); box-shadow: 0 18px 40px -22px rgba(30,27,75,.35); backdrop-filter: blur(12px); }
.theme-white .step b { color: #1e1b4b; } .theme-white .step p { color: #5b5a7a; } .theme-white .step .n { color: #fff; }
.theme-white .pub-head h1 { color: #1e1b4b; } .theme-white .pub-head p { color: #6b6b8a; } .theme-white .pub-head .text-white { color: #1e1b4b !important; }
.theme-white .pub-card { background: rgba(255,255,255,.85); border: 1px solid #fff; backdrop-filter: blur(14px); box-shadow: 0 30px 70px -30px rgba(30,27,75,.35); }
.theme-white .lp-foot { color: #6b6b8a; border-top-color: rgba(30,27,75,.07); }
.theme-white .lp-foot a { color: #4b4a6b; } .theme-white .lp-foot a:hover { color: #1e1b4b; }

/* ===================================================================== SUNRISE (extends White Glass) */
.theme-sunrise .lp-bg { background:
  radial-gradient(900px 520px at 90% 0%, rgba(251,146,60,.30), transparent 62%),
  radial-gradient(760px 560px at 0% 80%, rgba(244,114,182,.22), transparent 60%),
  radial-gradient(700px 480px at 60% 100%, rgba(250,204,21,.22), transparent 60%),
  linear-gradient(180deg, #fffaf5 0%, #fff4ec 55%, #fffaf3 100%); }
.theme-sunrise .lp-bg .g1 { background: #fdba74; } .theme-sunrise .lp-bg .g2 { background: #f9a8d4; } .theme-sunrise .lp-bg .g3 { background: #fde047; }
body.lp.theme-sunrise { background: #fff8f2; }
.theme-sunrise .hero h1 .grad { background: linear-gradient(95deg, #ea580c 0%, #db2777 55%, #7c3aed 100%); -webkit-background-clip: text; background-clip: text; }
.theme-sunrise .lp-cta, .theme-sunrise .btn-hero.primary { background: linear-gradient(100deg, #ea580c, #f43f5e 50%, #a855f7); box-shadow: 0 12px 30px -8px rgba(234,88,12,.45); }
.theme-sunrise .lp-links a.on { background: linear-gradient(135deg, #ea580c, #f43f5e); box-shadow: 0 6px 20px rgba(234,88,12,.35); }
.theme-sunrise .cert3d .glass { background: linear-gradient(145deg, rgba(255,255,255,.8), rgba(253,186,116,.4) 60%, rgba(249,168,212,.35)); }
.theme-sunrise .pedestal::before { background: radial-gradient(ellipse at center, rgba(251,146,60,.5), rgba(255,255,255,.15) 70%); box-shadow: 0 0 60px rgba(251,146,60,.4); }

/* ===================================================================== CRYSTAL GLASS (extends White Glass)
   Pure white page; colour lives only in blurred light behind the glass, so the cards read as clear crystal. */
body.lp.theme-crystal { background: #ffffff; color: #0f172a; }
.theme-crystal .lp-bg { background: #ffffff; }
.theme-crystal .lp-bg .waves { display: none; }
.theme-crystal .lp-bg .glow { filter: blur(110px); opacity: .32; }
.theme-crystal .lp-bg .g1 { background: #a78bfa; } .theme-crystal .lp-bg .g2 { background: #67e8f9; opacity: .26; } .theme-crystal .lp-bg .g3 { background: #f9a8d4; opacity: .22; }
.theme-crystal .glass-orbs { display: block; }

.theme-crystal .lp-nav { background: rgba(255,255,255,.55); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(15,23,42,.06); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 10px 30px -22px rgba(15,23,42,.25); }
.theme-crystal .lp-brand, .theme-crystal .lp-brand:hover, .theme-crystal .hero h1, .theme-crystal .sec-title h2, .theme-crystal .hero-stats div b { color: #0f172a; }
.theme-crystal .lp-icon, .theme-crystal .btn-hero.ghost, .theme-crystal .cert-search input {
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.85); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 8px 24px -12px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.95); }
.theme-crystal .cert3d .glass { background: linear-gradient(145deg, rgba(255,255,255,.55), rgba(255,255,255,.15)); border-color: rgba(255,255,255,.95);
  box-shadow: 0 30px 70px -20px rgba(15,23,42,.25), inset 0 1px 0 #fff, inset 0 0 30px rgba(255,255,255,.4); backdrop-filter: blur(10px); }
.theme-crystal .building { opacity: .22; }

/* crystal-clear cards */
.theme-crystal .c-card { color: #0f172a;
  background: linear-gradient(135deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.22) 100%);
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 8px 32px rgba(31,38,135,.08), 0 1px 2px rgba(15,23,42,.05), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.35); }
/* light-catching rim: bright top-left edge fading to a faint accent tint */
.theme-crystal .c-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,.15) 38%, rgba(255,255,255,0) 60%, color-mix(in srgb, var(--a2) 45%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* specular highlight that follows the cursor */
.theme-crystal .c-card::before { background:
  radial-gradient(14em 8em at var(--mx, 15%) var(--my, 0%), rgba(255,255,255,.75), transparent 70%),
  radial-gradient(22em 10em at var(--mx, 15%) var(--my, 0%), color-mix(in srgb, var(--a2) 14%, transparent), transparent 75%); }
.theme-crystal .c-card:hover { color: #0f172a; border-color: rgba(255,255,255,.9);
  box-shadow: 0 24px 50px -18px color-mix(in srgb, var(--a1) 32%, transparent), 0 2px 6px rgba(15,23,42,.05), inset 0 1px 0 #fff; }
.theme-crystal .c-card .ic { background: linear-gradient(145deg, color-mix(in srgb, var(--a2) 80%, #fff), var(--a1));
  box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--a1) 55%, transparent), inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 5px rgba(0,0,0,.12); }
.theme-crystal .c-card .tx span { color: #475569; }
.theme-crystal .c-card .tag { background: rgba(255,255,255,.65); color: var(--a1); border: 1px solid color-mix(in srgb, var(--a1) 18%, rgba(255,255,255,.8)); backdrop-filter: blur(6px); }
.theme-crystal .c-card .c-foot { border-top: 1px solid rgba(15,23,42,.06); }
.theme-crystal .c-card .cta { color: var(--a1); }
.theme-crystal .c-card .go { color: var(--a1); background: rgba(255,255,255,.7); border: 1px solid rgba(15,23,42,.08); box-shadow: inset 0 1px 0 #fff; }
.theme-crystal .c-card:hover .go { background: var(--a1); color: #fff; border-color: transparent; }
.theme-crystal .c-card.soon { opacity: .85; } .theme-crystal .c-card.soon .ic { filter: saturate(.55); } .theme-crystal .c-card.soon .cta { color: #94a3b8; }
.theme-crystal .c-card.soon:hover { box-shadow: 0 8px 32px rgba(31,38,135,.08), inset 0 1px 0 rgba(255,255,255,.95); }

.theme-crystal .step, .theme-crystal .pub-card { background: linear-gradient(135deg, rgba(255,255,255,.66), rgba(255,255,255,.3)); border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); box-shadow: 0 8px 32px rgba(31,38,135,.08), inset 0 1px 0 #fff; }
.theme-crystal .view-all { background: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.8)) padding-box, linear-gradient(90deg, #a855f7, #38bdf8, #f472b6) border-box; }
.theme-crystal .lp-foot { background: rgba(255,255,255,.5); backdrop-filter: blur(16px); }

/* ===================================================================== admin live preview */
.lp-preview { position: relative; overflow: hidden; border-radius: 18px; padding: 1.4em; border: 1px solid var(--line, #e7e5f0); transition: background .3s; }
.lp-preview.theme-midnight { background: radial-gradient(500px 260px at 85% 0%, rgba(124,58,237,.35), transparent 60%), linear-gradient(180deg, #070b20, #0a0f2c); color: #e6e8f5; }
.lp-preview.theme-white { background: radial-gradient(500px 260px at 90% 0%, rgba(167,139,250,.38), transparent 62%), radial-gradient(400px 260px at 0% 100%, rgba(56,189,248,.25), transparent 60%), #f8f8fe; color: #1e1b4b; }
.lp-preview.theme-sunrise { background: radial-gradient(500px 260px at 90% 0%, rgba(251,146,60,.32), transparent 62%), radial-gradient(400px 260px at 0% 100%, rgba(244,114,182,.24), transparent 60%), #fffaf4; }
.lp-preview.theme-crystal { background: radial-gradient(180px 180px at 12% 70%, rgba(196,181,253,.65), transparent 70%), radial-gradient(170px 170px at 88% 40%, rgba(249,168,212,.55), transparent 70%), radial-gradient(160px 160px at 50% 95%, rgba(125,211,252,.55), transparent 70%), #ffffff; color: #0f172a; }
.lp-preview .pv-title { font-size: 1.7em; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: .35em; }
.lp-preview.theme-midnight .pv-title .grad { background: linear-gradient(95deg, #c4b5fd, #e879f9 45%, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-preview.theme-white .pv-title .grad { background: linear-gradient(95deg, #7c3aed, #db2777 50%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-preview.theme-sunrise .pv-title .grad { background: linear-gradient(95deg, #ea580c, #db2777 55%, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-preview .pv-sub { font-size: .9em; opacity: .8; margin-bottom: 1em; }
.lp-preview .pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.lp-preview .c-card { min-height: 11.5em; font-size: .86em; }
.theme-option input:checked + .theme-tile, .font-option input:checked + .font-tile { border-color: var(--brand-2, #7c3aed); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2, #7c3aed) 22%, transparent); }
.theme-tile, .font-tile { display: block; border: 1.5px solid var(--line, #e7e5f0); border-radius: 14px; padding: .8rem; cursor: pointer; background: #fff; height: 100%; transition: .2s; }
.theme-tile:hover, .font-tile:hover { border-color: var(--brand-3, #a78bfa); }
.theme-swatch { height: 64px; border-radius: 10px; margin-bottom: .55rem; position: relative; overflow: hidden; }
.theme-swatch i { position: absolute; width: 38%; height: 26px; border-radius: 8px; top: 20px; left: 8%; }
.theme-swatch i + i { left: 54%; }
.sw-white { background: radial-gradient(120px 60px at 90% 0%, #ddd6fe, transparent), #f6f7fc; } .sw-white i { background: rgba(255,255,255,.9); box-shadow: 0 6px 14px -6px rgba(124,58,237,.5); }
.sw-sunrise { background: radial-gradient(120px 60px at 90% 0%, #fed7aa, transparent), #fff7ef; } .sw-sunrise i { background: rgba(255,255,255,.9); box-shadow: 0 6px 14px -6px rgba(234,88,12,.5); }
.sw-midnight { background: radial-gradient(120px 60px at 90% 0%, #6d28d9, transparent), #0a0f2c; } .sw-midnight i { background: rgba(124,58,237,.35); border: 1px solid rgba(167,139,250,.5); }
.sw-crystal { background: radial-gradient(40px 40px at 20% 70%, #c4b5fd, transparent), radial-gradient(40px 40px at 80% 30%, #f9a8d4, transparent), radial-gradient(40px 40px at 55% 90%, #7dd3fc, transparent), #fff; }
.sw-crystal i { background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(6px); box-shadow: 0 4px 12px -4px rgba(31,38,135,.2), inset 0 1px 0 #fff; }
.font-sample { display: block; font-size: 1.05rem; font-weight: 700; margin-top: .25rem; color: #1e1b4b; }
.font-sample small { display: block; font-weight: 400; font-size: .8rem; color: #6b7280; }
.size-scale { display: flex; justify-content: space-between; font-size: .75rem; color: #6b7280; }

/* small screens */
@media (max-width: 575.98px) { .c-card { min-height: 0; } }

/* nav never wraps (large font sizes); brand subtitle hides on narrow screens */
.lp-links a, .lp-brand b, .lp-cta { white-space: nowrap; }
.lp-brand small { white-space: nowrap; }
@media (max-width: 575.98px) { .lp-brand small { display: none; } .lp-cta { padding: .55rem .9rem; font-size: .88rem; } }
.lp-preview .c-card .tag { max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.cert-search i { z-index: 2; pointer-events: none; }   /* stay above the frosted (backdrop-filter) input */
