/* ═══════════════════════════════════════════════════════════════
   PDGT Hub · public pages (landing + login), 2026 refresh
   Loaded after tahoe-ds.css (and tahoe-landing.css on the landing page).
   Same look as css/sh-refresh.css inside the app: pastel background,
   frosted-glass cards, purple→pink accent, navy dark mode.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --accent-grad: linear-gradient(135deg, #5B4BE8 0%, #8A3FE0 60%, #C0389B 100%);
  --hero-grad: linear-gradient(150deg, #3F2FD0 0%, #7A3FE0 50%, #C0389B 85%, #FF6B5B 120%);
  --accent-shadow: 0 12px 24px rgba(138, 63, 224, 0.30);
  --accent-ink: #5B3FE6;

  --pub-bg:
    radial-gradient(circle at 0% 0%, #D9D2FF 0, rgba(217, 210, 255, 0) 42%),
    radial-gradient(circle at 100% 0%, #FFD6EA 0, rgba(255, 214, 234, 0) 38%),
    radial-gradient(circle at 75% 100%, #CFEAFF 0, rgba(207, 234, 255, 0) 45%),
    #F4F3FB;
  --pub-card: rgba(255, 255, 255, 0.72);
  --pub-card-solid: rgba(255, 255, 255, 0.92);
  --pub-card-sh: 0 10px 30px rgba(91, 76, 200, 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  --pub-line: #F0F0F3;
  --pub-field: #FFFFFF;
  --pub-field-bdr: #E5E5EA;
  --pub-t1: #1D1D1F;
  --pub-t2: #3A3A3C;
  --pub-t3: #6E6E73;
  --pub-link: #4B48C8;

  --subj-1103: linear-gradient(135deg, #7C8CFF, #4B5BE8);
  --subj-1203: linear-gradient(135deg, #3DDC84, #16A889);
  --subj-2203: linear-gradient(135deg, #FFD15C, #F29F05);
  --subj-2303: linear-gradient(135deg, #FF7FA0, #E23D6B);
  --subj-1303: linear-gradient(135deg, #FFB547, #FF6B5B);
  --subj-5103: linear-gradient(135deg, #22D1B2, #1E8BF0);
  --subj-5533: linear-gradient(135deg, #B26CFF, #FF5FA2);
  --subj-7013: linear-gradient(135deg, #22D3EE, #0891B2);
  --subj-7113: linear-gradient(135deg, #A3E635, #4D7C0F);
  --subj-3203: linear-gradient(135deg, #FB923C, #C2410C);
  --subj-3503: linear-gradient(135deg, #F472B6, #BE185D);
}

[data-theme="dark"] {
  --accent-ink: #B9A8FF;
  --pub-bg:
    radial-gradient(circle at 0% 0%, rgba(108, 92, 255, 0.45) 0, rgba(108, 92, 255, 0) 42%),
    radial-gradient(circle at 100% 0%, rgba(224, 84, 156, 0.32) 0, rgba(224, 84, 156, 0) 38%),
    radial-gradient(circle at 75% 100%, rgba(30, 139, 240, 0.28) 0, rgba(30, 139, 240, 0) 45%),
    #0E0C1A;
  --pub-card: rgba(255, 255, 255, 0.07);
  --pub-card-solid: rgba(34, 30, 56, 0.94);
  --pub-card-sh: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  --pub-line: rgba(255, 255, 255, 0.07);
  --pub-field: rgba(255, 255, 255, 0.06);
  --pub-field-bdr: rgba(255, 255, 255, 0.12);
  --pub-t1: #F5F5F7;
  --pub-t2: #D1D1D6;
  --pub-t3: #A1A1AA;
  --pub-link: #B9A8FF;
}

[data-subj="1103"] { --subj-grad: var(--subj-1103); }
[data-subj="1203"] { --subj-grad: var(--subj-1203); }
[data-subj="2203"] { --subj-grad: var(--subj-2203); }
[data-subj="2303"] { --subj-grad: var(--subj-2303); }
[data-subj="1303"] { --subj-grad: var(--subj-1303); }
[data-subj="5103"] { --subj-grad: var(--subj-5103); }
[data-subj="5533"] { --subj-grad: var(--subj-5533); }
[data-subj="7013"] { --subj-grad: var(--subj-7013); }
[data-subj="7113"] { --subj-grad: var(--subj-7113); }
[data-subj="3203"] { --subj-grad: var(--subj-3203); }
[data-subj="3503"] { --subj-grad: var(--subj-3503); }

.sh-logo {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6C5CFF, #E0549C); color: #fff;
  box-shadow: 0 6px 16px rgba(160, 75, 240, 0.35);
}
.sh-logo .material-symbols-rounded { font-size: 22px; }
/* The app icon as the brand mark: the image carries its own background. */
.sh-logo:has(.sh-logo-img) { background: none; overflow: hidden; box-shadow: 0 6px 16px rgba(45, 40, 132, 0.35); }
.sh-logo-img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ══════════════════════ LOGIN ══════════════════════ */
html:has(body.sh-login) { background: #F4F3FB; }
[data-theme="dark"]:has(body.sh-login) { background: #0E0C1A; }
/* tahoe-ds.css locks <html> to one screen on phones (<=768px) for the app
   shell, which scrolls inside its own panel. Sign-in, sign-up and admin
   sign-in are ordinary pages: undo that lock or anything below the first
   screen (most of the sign-up form) cannot be reached. */
@media (max-width: 768px) {
  html:has(body.sh-login) { height: auto; min-height: 100dvh; overflow-y: auto; overflow-x: hidden; }
}

body.sh-login {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--font); color: var(--pub-t1);
  background: var(--pub-bg); background-attachment: fixed;
  overflow-x: hidden;
}
body.sh-login [hidden] { display: none !important; }

.lg { position: relative; display: flex; min-height: 100vh; min-height: 100dvh; }

/* left: gradient story panel */
.lg-side {
  position: relative; overflow: hidden; isolation: isolate;
  flex: 0 0 min(560px, 44vw); box-sizing: border-box;
  display: flex; flex-direction: column;
  padding: max(48px, env(safe-area-inset-top)) 56px max(40px, env(safe-area-inset-bottom)) max(56px, env(safe-area-inset-left));
  background: var(--hero-grad); color: #fff;
}
.lg-orb { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.lg-orb.o1 { right: -120px; top: -120px; width: 380px; height: 380px; background: rgba(255, 255, 255, 0.08); }
.lg-orb.o2 { left: -80px; bottom: -140px; width: 320px; height: 320px; background: rgba(255, 255, 255, 0.07); }
.lg-brand { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; }
.lg-brand .sh-logo { background: rgba(255, 255, 255, 0.2); box-shadow: none; }
.lg-h { margin: 70px 0 12px; font-size: clamp(30px, 3.2vw, 40px); font-weight: 700; letter-spacing: -1.2px; line-height: 1.1; color: #fff; }
.lg-sub { margin: 0; max-width: 400px; font-size: 16px; line-height: 1.5; color: #EDE6FF; }

.lg-chips { position: relative; flex: 1; min-height: 230px; margin: 28px 0 20px; }
.lg-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 14px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 600; color: #fff;
}
.lg-chip i { width: 18px; height: 18px; border-radius: 6px; background: var(--subj-grad); }
.lg-chip:nth-child(1) { left: 0; top: 6%; transform: rotate(-4deg); }
.lg-chip:nth-child(2) { left: 40%; top: 28%; transform: rotate(3deg); }
.lg-chip:nth-child(3) { left: 6%; top: 52%; transform: rotate(2deg); }
.lg-chip:nth-child(4) { left: 46%; top: 74%; transform: rotate(-3deg); }
.lg-foot { margin: 0; font-size: 13px; color: #EDE6FF; }

/* right: form */
.lg-main {
  position: relative; flex: 1 1 0; min-width: 0; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: max(72px, calc(env(safe-area-inset-top) + 60px)) max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) 24px;
}
.lg-tools { position: absolute; z-index: 5; top: max(20px, env(safe-area-inset-top)); right: max(24px, env(safe-area-inset-right)); display: flex; align-items: center; gap: 8px; }
.lg-tools .tb-theme {
  margin: 0; width: 38px; height: 38px; border-radius: 12px; color: var(--pub-t2);
  background: var(--pub-card); box-shadow: var(--pub-card-sh);
}
.lg-tools .sh-lang-switch { margin: 0; }

.lg-card {
  width: 100%; max-width: 400px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 16px;
  padding: 34px 32px; border-radius: 26px;
  background: var(--pub-card); box-shadow: var(--pub-card-sh);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transition: opacity 0.2s ease;
}
html.auth-checking .lg-card { opacity: 0; }
.lg-title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.6px; color: var(--pub-t1); }
.lg-lead { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--pub-t3); }

.lg-card form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.lg-card .field { margin: 0; }
.lg-card .field-lbl { margin: 0 0 6px 2px; font-size: 13px; font-weight: 600; color: var(--pub-t2); }
.lg-card .field-icon { left: 14px; color: #8E8E93; }
.lg-card .field-wrap .field-input {
  height: 50px; min-height: 50px; width: 100%; box-sizing: border-box;
  padding-left: 44px; border-radius: 14px; border: 0;
  background: var(--pub-field); box-shadow: inset 0 0 0 1px var(--pub-field-bdr);
  font-size: 16px; color: var(--pub-t1);
}
.lg-card .field-wrap .field-input:focus { outline: none; box-shadow: inset 0 0 0 2px #8A7BFF, 0 0 0 4px rgba(108, 92, 255, 0.15); }
.lg-card .pw-toggle {
  position: absolute; right: 6px; width: 38px; height: 38px; border: 0; border-radius: 10px;
  background: none; color: var(--pub-link); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lg-card .pw-toggle:hover { background: rgba(108, 92, 255, 0.08); }
.lg-card .pw-toggle .material-symbols-rounded { font-size: 20px; }

.lg-card .submit-btn {
  margin: 4px 0 0; height: 52px; border: 0; border-radius: 14px;
  background: var(--accent-grad); box-shadow: var(--accent-shadow);
  font-size: 16px; font-weight: 600; color: #fff;
}
.lg-card .alert { margin: 0; border-radius: 14px; font-size: 13px; }

.lg-alt { margin: 0; text-align: center; font-size: 14px; color: var(--pub-t3); }
.lg-alt a, .lg-help a, .lg-card .support a { color: var(--pub-link); font-weight: 600; text-decoration: none; }

.lg-help {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 14px; border-radius: 14px;
  background: rgba(37, 211, 102, 0.10); font-size: 13px; line-height: 1.4; color: var(--pub-t2); text-align: center;
}
.lg-help a.lg-help-num { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.lg-help-wa { flex: none; width: 18px; height: 18px; color: #25D366; }

.lg-card .login-after { margin: 0; gap: 6px; }
.lg-card .login-after .support { margin: 0; color: var(--pub-t3); font-size: 13px; }

.lg-legal {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px;
  font-size: 12px; color: var(--pub-t3);
}
.lg-legal span, .lg-legal a { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; }
.lg-legal a:hover { color: var(--pub-link); }
.lg-legal .material-symbols-rounded { font-size: 15px; }

/* iPad portrait and phones: the gradient panel becomes a header above the form */
@media (max-width: 900px) {
  .lg { flex-direction: column; }
  .lg-side {
    flex: none; padding: max(22px, calc(env(safe-area-inset-top) + 14px)) 24px 64px max(24px, env(safe-area-inset-left));
  }
  .lg-h { margin: 34px 0 8px; font-size: 30px; }
  .lg-sub { font-size: 15px; }
  .lg-chips, .lg-foot { display: none; }
  .lg-main { justify-content: flex-start; margin-top: -44px; padding-top: 0; }
  /* the buttons now sit on the gradient header */
  .lg-tools { top: max(18px, calc(env(safe-area-inset-top) + 10px)); right: max(18px, env(safe-area-inset-right)); }
  .lg-tools .tb-theme { background: rgba(255, 255, 255, 0.2); box-shadow: none; color: #fff; }
}
@media (max-width: 480px) {
  .lg-side { padding-left: 20px; padding-right: 20px; }
  .lg-h { font-size: 26px; letter-spacing: -0.8px; }
  .lg-main { padding-left: 16px; padding-right: 16px; }
  .lg-card { padding: 26px 20px; border-radius: 22px; background: var(--pub-card-solid); }
}

/* ══════════════════════ SIGN-UP + ADMIN (same shell as login) ══════════════════════ */
body.sh-login { --ok: #1F9D55; --bad: #E5484D; }
[data-theme="dark"] body.sh-login { --ok: #4ADE80; --bad: #FF7A7A; }

/* left panel: perk list instead of the floating chips */
.lg-perks { list-style: none; flex: 1; margin: 34px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lg-perks li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: #fff; }
.lg-perks .material-symbols-rounded {
  width: 34px; height: 34px; flex: none; border-radius: 10px; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.lg-foot { display: flex; align-items: center; gap: 6px; }
.lg-foot .material-symbols-rounded { font-size: 16px; }

body.sh-signup .lg-card { max-width: 440px; }

/* two-step indicator */
.su-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.su-steps li {
  display: flex; align-items: center; gap: 8px; padding-top: 10px;
  border-top: 3px solid var(--pub-field-bdr); font-size: 12px; font-weight: 600; color: var(--pub-t3);
}
.su-steps li b {
  width: 20px; height: 20px; flex: none; border-radius: 50%; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pub-field-bdr); color: var(--pub-t2);
}
.su-steps li.on { border-top-color: #8A3FE0; color: var(--pub-t1); }
.su-steps li.on b { background: var(--accent-grad); color: #fff; }

/* price card */
.su-plan {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 16px 18px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #4B3FE0 0%, #7A3FE0 55%, #C0389B 100%);
  box-shadow: 0 10px 22px rgba(110, 60, 220, 0.25);
}
.su-plan::before {
  content: ""; position: absolute; z-index: -1; right: -50px; top: -60px;
  width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.10);
}
.su-plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.su-plan-name { font-size: 14px; font-weight: 600; color: #EDE6FF; }
.su-plan-price { font-size: 26px; font-weight: 700; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.su-plan-desc { margin: 0; font-size: 12.5px; line-height: 1.5; color: #F1EBFF; }

/* status tick inside a field + the hint line under it */
.lg-card .field-status {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 15px; font-weight: 700; line-height: 1; color: var(--pub-t3); pointer-events: none;
}
.lg-card .field-status.ok { color: var(--ok); }
.lg-card .field-status.bad { color: var(--bad); }
.lg-card .field-wrap:has(.field-status) .field-input { padding-right: 40px; }
.lg-card .field-wrap:has(.pw-toggle) .field-input { padding-right: 48px; }
.lg-card .field-hint { margin: 6px 0 0 2px; font-size: 12px; line-height: 1.4; color: var(--pub-t3); }
.lg-card .field-hint.ok { color: var(--ok); }
.lg-card .field-hint.bad { color: var(--bad); }

/* ToyyibPay note */
.su-note {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: rgba(108, 92, 255, 0.08); font-size: 12.5px; line-height: 1.5; color: var(--pub-t2);
}
[data-theme="dark"] .su-note { background: rgba(156, 140, 255, 0.10); }
.su-note .material-symbols-rounded { flex: none; font-size: 18px; color: var(--accent-ink); }

.lg-card .submit-btn:disabled { opacity: 0.5; box-shadow: none; cursor: not-allowed; }
.lg-card .submit-btn .spinner { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }

/* finished-payment view */
.su-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 2px; text-align: center; }
.su-done-ring {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(118, 118, 128, 0.14); color: var(--pub-t2); font-size: 28px; font-weight: 700;
}
.su-done-ring.ok { background: linear-gradient(135deg, #3DDC84, #16A889); color: #fff; box-shadow: 0 10px 22px rgba(22, 168, 137, 0.30); }
.su-done .lg-lead { margin: 0; }
.su-done .submit-btn { width: 100%; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }

/* admin: a deeper panel so staff can tell it apart from the student sign-in */
body.sh-admin .lg-side { background: linear-gradient(155deg, #15123A 0%, #2A2280 55%, #5B3FE6 100%); }
body.sh-admin .lg-h em { font-style: normal; color: #C9BEFF; }

@media (max-width: 900px) {
  .lg-perks, .lg-foot { display: none; }
}
@media (max-width: 480px) {
  .su-plan-price { font-size: 22px; }
}

/* ══════════════════════ LANDING ══════════════════════ */
html[data-page="landing"] { background: #F4F3FB; }
html[data-page="landing"][data-theme="dark"] { background: #0E0C1A; }

/* menu bar */

/* buttons */

/* content sheet: no separate panel any more, sections sit on the background */

/* ── hero ── */
/* Who it is for: OUM PGDT students */

/* ── section heads (left aligned, like the app) ── */

/* ── feature cards ── */

/* ── subjects + price ── */

/* ── kept sections, re-skinned ── */

/* ── responsive ── */
@media (max-width: 540px) {
  /* shrink the preview cards as one picture; the negative margins hand the
     space back so nothing pokes out sideways */
}

/* ══ Type: Plus Jakarta Sans for headings, Inter for everything else ══ */
:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-b: var(--font);
  --font-d: var(--font);
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}
/* Plus Jakarta Sans on large titles only */
:is(h1, .hm-title, .pf-banner-name, .nh-banner-title, .gm-feature-title, .result-title,
    .pl-h1, .pl-sec-title, .lp-sec-title, .lg-h, .lg-title, .ttl) {
  font-family: var(--font-head);
  font-weight: 700;
}
/* every smaller heading: Inter semibold, slightly tight */
:is(h2, h3, h4, .sec-title, .win-h, .modal-title, .tips-title, .tips-detail-title,
    .ex-sec-head h2, .xp-card-h, .pl-sem-h, .lp-feat-t, .gp-count, .xp-name, .pf-lvl-title,
    .hm-sec-head h2, .nh-content h2, .gm-record-title):not(.pl-sec-title):not(.lp-sec-title):not(.result-title):not(.nh-banner-title):not(.gm-feature-title):not(.lg-title) {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* iPhone landscape: keep content clear of the notch side. */
@media (orientation: landscape) {
  body.sh-login {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    box-sizing: border-box;
  }
}

/* Policy links: consent line above the sign-up button, and a row under the card */
.su-consent { margin: 2px 0 0; font-size: 13px; line-height: 1.55; color: var(--pub-t3); }
.su-consent a, .lg-policies a { color: var(--pub-link); text-decoration: none; }
.su-consent a:hover, .lg-policies a:hover { text-decoration: underline; }
.lg-policies {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px;
  margin-top: 10px; font-size: 12.5px;
}
