
/* ==========================================================================
   STRICT SEPARATION: Landing Page vs Logged-In App
   ========================================================================== */
body.home-on .app,
body.home-on #login,
body.home-on [class*="dialog-overlay"],
body.home-on [class*="modal-backdrop"] {
  display: none !important;
}

body:not(.home-on) #landing {
  display: none !important;
}

body:not(.in) .app {
  display: none !important;
}

/* ==========================================================================
     COLOR MODES & THEMES (Day / Night + 6 Modes)
     ========================================================================== */
  :root {
    --page-bg: #fbfcfa;
    --card-bg: #ffffff;
    --card-subtle: #f5f7f5;
    --text: #18231e;
    --text-muted: #55655e;
    --border: #d3ddd7;
    --border-dark: #b6c4bc;
    --accent: #14573f;
    --accent-hover: #0e3f2e;
    --btn-text: #ffffff;
    --brown: #8c532b;
    --brown-hover: #754422;
    --row-hover: rgba(20,87,63,0.04);
    --radius: 8px;
  }
  :root[data-mode="forest"] { --accent: #14573f; --accent-hover: #0e3f2e; }
  :root[data-mode="ocean"]  { --accent: #1d4e89; --accent-hover: #153c6c; }
  :root[data-mode="teal"]   { --accent: #0f6b6b; --accent-hover: #0b4e4e; }
  :root[data-mode="burgundy"]{ --accent: #7a2638; --accent-hover: #581a28; }
  :root[data-mode="clay"]   { --accent: #a4502d; --accent-hover: #7d3a1d; }
  :root[data-mode="graphite"]{ --accent: #33424d; --accent-hover: #212c33; }

  :root[data-theme="dark"] {
    --page-bg: #121816;
    --card-bg: #1a2220;
    --card-subtle: #151c1a;
    --text: #e8eeea;
    --text-muted: #9aaaa2;
    --border: #2c3834;
    --border-dark: #3a4a44;
    --btn-text: #0b1410;
    --row-hover: rgba(255,255,255,0.04);
  }
  :root[data-theme="dark"][data-mode="forest"] { --accent: #34d399; --accent-hover: #10b981; }
  :root[data-theme="dark"][data-mode="ocean"]  { --accent: #60a5fa; --accent-hover: #3b82f6; }
  :root[data-theme="dark"][data-mode="teal"]   { --accent: #2dd4bf; --accent-hover: #14b8a6; }
  :root[data-theme="dark"][data-mode="burgundy"]{ --accent: #f472b6; --accent-hover: #ec4899; }
  :root[data-theme="dark"][data-mode="clay"]   { --accent: #fb923c; --accent-hover: #f97316; }
  :root[data-theme="dark"][data-mode="graphite"]{ --accent: #94a3b8; --accent-hover: #64748b; }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body {
    background: var(--page-bg);
    color: var(--text);
    font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
  }

  .lp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ==========================================================================
     HEADER & AUTHENTIC CONTROLS (UNCROWDED)
     ========================================================================== */
  .lp-head {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
    height: 68px;
    display: flex;
    align-items: center;
  }
  .lp-nav {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .lp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
  }
  .lp-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #0a6b3a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
  }
  .lp-brand-text b {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 800;
    display: block;
    line-height: 1.05;
    letter-spacing: -0.01em;
  }
  .lp-brand-text small {
    font-size: 10.5px;
    color: var(--text-muted);
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* Right Actions: .mode, .thm, Sign in, Register a school */
  .lp-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* Mode & Theme circular buttons matching screenshots */
  .mode {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    box-sizing: border-box;
    transition: background 0.15s, border-color 0.15s;
  }
  .mode:hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  }
  .mode i {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    border: 1.5px solid var(--card-bg);
  }

  .thm {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--accent);
    box-sizing: border-box;
    transition: background 0.15s, border-color 0.15s;
  }
  .thm:hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  }

  /* Buttons */
  .lp-btn {
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 18px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
  }
  .lp-btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
  }
  .lp-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .lp-btn-primary {
    background: var(--brown);
    color: #ffffff;
  }
  .lp-btn-primary:hover {
    background: var(--brown-hover);
    filter: brightness(1.05);
  }

  /* Popover Menu for Modes */
  .mode-pop {
    position: fixed;
    top: 68px;
    right: 180px;
    z-index: 700;
    width: 238px;
    padding: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  }
  .mode-pop[hidden] { display: none !important; }
  .mode-pop b {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 10px 8px;
  }
  .mode-pop button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: none;
    text-align: left;
    transition: background 0.12s;
  }
  .mode-pop button:hover { background: var(--row-hover); }
  .mode-pop button[aria-checked="true"] {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    font-weight: 700;
    color: var(--accent);
  }
  .mode-pop .sw {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex: none;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
  }
  .mode-pop .sw-forest { background: #14573f; }
  .mode-pop .sw-ocean { background: #1d4e89; }
  .mode-pop .sw-teal { background: #0f6b6b; }
  .mode-pop .sw-burgundy { background: #7a2638; }
  .mode-pop .sw-clay { background: #a4502d; }
  .mode-pop .sw-graphite { background: #33424d; }
  .mode-pop .tick { margin-left: auto; color: var(--accent); opacity: 0; font-weight: 800; }
  .mode-pop button[aria-checked="true"] .tick { opacity: 1; }

  /* ==========================================================================
     PAGE 1: 100vh HERO (ORIGINAL AUTHENTIC COPY & NO DOCUMENTS ON SCREEN 1)
     ========================================================================== */
  .clean-hero {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: radial-gradient(circle at 50% 25%, color-mix(in srgb, var(--accent) 5%, transparent) 0%, transparent 70%);
  }
  .hero-content {
    max-width: 820px;
    text-align: center;
    margin: 0 auto;
  }
  .clean-hero h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(34px, 5.2vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 22px;
  }
  .hero-copy {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 34px;
  }
  .hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
  }
  .hero-buttons .lp-btn {
    padding: 13px 28px;
    font-size: 15px;
    border-radius: 9px;
  }

  /* Original Assurance box */
  .lp-assurance {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    color: var(--text-muted);
    padding: 14px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    line-height: 1.5;
    text-align: left;
    max-width: 640px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  }
  .lp-assurance svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
  }

  /* ==========================================================================
     PAGE 2: LIVE DOCUMENTS SHOWCASE (STARTS HERE ON 2ND PAGE)
     ========================================================================== */
  .section-documents {
    padding: 60px 24px 80px;
    background: var(--card-subtle);
    border-top: 1px solid var(--border);
  }
  .doc-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Clean Document Tabs */
  .doc-tabs-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .doc-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .doc-tab:hover {
    border-color: var(--accent);
  }
  .doc-tab.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
  }

  /* Authentic Sample Tabs inside Report Card */
  .lp-sample-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .lp-sample-tabs button {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
  }
  .lp-sample-tabs button:hover {
    border-color: var(--accent);
  }
  .lp-sample-tabs button.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  /* Document Panes */
  .doc-pane { display: none; }
  .doc-pane.active { display: block; }

  /* ==========================================================================
     STRICT 1-PAGE A4 REPORT FORM (EXACT 210mm x 297mm STANDARD)
     Safe horizontal viewport centering (Eliminates Left Word Clipping)
     ========================================================================== */
  .a4-page-viewport {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px 0 32px;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .a4-sheet {
    width: 100%;
    max-width: 820px;
    min-width: 0;
    margin: 0 auto;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
    padding: 24px 28px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8.5pt;
    line-height: 1.25;
    border-radius: 4px;
  }
  .rep-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 4px;
  }
  .table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  /* Top Tricolor Bar */
  .rep-top-bar {
    display: flex;
    height: 3.5px;
    width: 100%;
    margin-bottom: 5px;
    flex-shrink: 0;
  }
  .rep-top-bar i:nth-child(1) { flex: 1; background: #0a6b3a; }
  .rep-top-bar i:nth-child(2) { flex: 1; background: #be1e2d; }
  .rep-top-bar i:nth-child(3) { flex: 1; background: #000000; }

    /* School Header - Strictly Centered */
  .rep-hd {
    text-align: center !important;
    margin-bottom: 4px;
    flex-shrink: 0;
    width: 100%;
  }
  .rep-hd h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13.5pt;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #0a6b3a !important;
    margin: 0 0 2px 0;
    text-transform: uppercase;
    text-align: center !important;
  }
  .rep-hd .s3 {
    font-size: 7.5pt;
    color: #222 !important;
    font-weight: 500;
    margin-bottom: 2px;
    text-align: center !important;
  }
  .rep-hd .s2 {
    font-size: 9pt;
    font-weight: 700;
    color: #111 !important;
    letter-spacing: 0.01em;
    text-align: center !important;
  }
  .rep-hd .tmyr {
    font-size: 8.5pt;
    font-weight: 600;
    color: #444 !important;
    text-align: center !important;
  }

  .rep-rule {
    height: 1.5px;
    background: #0a6b3a;
    width: 100%;
    margin: 3px 0 5px;
    flex-shrink: 0;
  }

  /* LEARNER DETAILS (ARRANGEMENT 2: LEARNER NAME FIRST) */
  .who-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 6px 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid #7d9686;
    background: #fbfdfc;
    flex-shrink: 0;
  }
  .who-row .col-left { text-align: left; }
  .who-row .col-center { text-align: center; }
  .who-row .col-right { text-align: right; }
  .who-row .lb {
    display: block;
    font-size: 6.8pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4a5c52;
  }
  .who-row b {
    display: block;
    font-size: 9.5pt;
    font-weight: 800;
    color: #000;
    line-height: 1.15;
  }
  .who-row b.gr {
    color: #0a6b3a;
  }

  /* Marks Table */
  .rep-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2px;
    flex-shrink: 0;
    font-size: 7.8pt;
  }
  .rep-table th, .rep-table td {
    border: 1px solid #7d9686;
    padding: 2.2px 4px;
    text-align: center;
    line-height: 1.15;
  }
  .rep-table th {
    background: #eaf3ed;
    color: #0a3d21;
    font-size: 7.2pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
  .rep-table td.subj {
    text-align: left;
    font-weight: 700;
    color: #111;
  }
  .rep-table tr.tot-row {
    background: #eaf3ed;
    font-weight: 800;
    border-top: 1.5px solid #0a6b3a;
  }
  .rep-table tr.tot-row td {
    font-weight: 800;
    color: #0a3d21;
  }

  /* Arrow Legend (Right Aligned above Two Boxes) */
  .alg {
    text-align: right;
    font-size: 6.8pt;
    color: #444;
    margin: 2px 0 4px;
    padding-right: 2px;
    flex-shrink: 0;
  }
  .alg .arw-up { color: #0a6b3a; font-weight: 800; }
  .alg .arw-dn { color: #be1e2d; font-weight: 800; }
  .alg .arw-eq { color: #111; font-weight: 800; }

  /* Two Boxes Side-by-Side: Strictly 2 equal columns always */
  .two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 5px;
    flex-shrink: 0;
  }
  @media (max-width: 680px) {
    .two {
      grid-template-columns: 1fr !important;
      gap: 10px;
    }
  }
  .bx {
    border: 1.5px solid #0a6b3a;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
  }
  .bx h5 {
    margin: 0 0 3px;
    padding: 3.5px 8px;
    font-size: 7.6pt;
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .02em;
    background: #0a6b3a;
    color: #fff;
    flex-shrink: 0;
  }
  .bx table {
    margin: 0 6px 3px;
    width: calc(100% - 12px);
    border-collapse: collapse;
  }

  /* Class Performance Table (Left Box) */
  table.kv.perf {
    margin-bottom: 2px;
  }
  table.kv.perf td {
    padding: 2.2px 0;
    font-size: 7.2pt;
    border-bottom: 1px solid #e4efe9;
    vertical-align: middle;
    color: #000;
    line-height: 1.25;
  }
  table.kv.perf tr:last-child td { border-bottom: 0; }
  table.kv.perf td:first-child {
    width: 44%;
    color: #5b6b62;
    padding-right: 6px;
  }
  table.kv.perf td b {
    color: #15311f;
    font-weight: 700;
  }

  /* Grade Key Table (Right Box) */
  table.kv.key {
    margin-bottom: 2px;
  }
  table.kv.key th {
    background: #d9e8df;
    color: #0a6b3a;
    font-size: 6.8pt;
    text-align: left;
    padding: 2.5px 4px;
    font-weight: 800;
    border-bottom: 1px solid #b8d4c4;
  }
  table.kv.key td {
    font-size: 6.8pt;
    padding: 1.6px 4px;
    border-bottom: 1px solid #e4efe9;
    color: #111;
    line-height: 1.2;
  }
  table.kv.key tr:last-child td { border-bottom: 0; }
  table.kv.key th:nth-child(1), table.kv.key td:nth-child(1) { width: 14%; font-weight: 800; }
  table.kv.key th:nth-child(2), table.kv.key td:nth-child(2) { width: 25%; white-space: nowrap; }
  table.kv.key th:nth-child(3), table.kv.key td:nth-child(3) { width: 11%; }
  table.kv.key th:nth-child(4), table.kv.key td:nth-child(4) { width: 50%; }

  /* Exam Comparison Bar Graph Component (.xcmp) */
  .xcmp {
    --xh: 52px;
    border: 1.5px solid #0a6b3a;
    background: #f6faf7;
    margin: 0 0 5px;
    flex-shrink: 0;
  }
  .xcmp h5 {
    margin: 0;
    padding: 2.5px 7px;
    font-size: 7.8pt;
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .02em;
    background: #0a6b3a;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
  }
  .xcmp .xnote {
    font-size: 6.5pt;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: #d5e8db;
  }
  .xch { padding: 0 7px 3px; }
  .xgr, .xlr {
    display: flex;
    gap: 12px;
  }
  .xgr { padding-top: 6px; }
  .xy {
    flex: none;
    width: 20px;
    height: var(--xh);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    font-size: 6pt;
    color: #555;
    line-height: 1;
    padding-right: 3px;
  }
  .xpl {
    position: relative;
    flex: 1;
    height: var(--xh);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 1px solid #7d9686;
    min-width: 0;
  }
  .xpl s {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #dbe8df;
    z-index: 0;
  }
  .xpl i {
    position: relative;
    z-index: 1;
    display: block;
    width: 65%;
    max-width: 44px;
    min-height: 2px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .xpl i.now { background: #0a6b3a; }
  .xpl i.old { background: #a9c9b5; }
  .xpl i b {
    font-size: 6.8pt;
    font-weight: 800;
    line-height: 1;
    margin-top: 2px;
    color: #fff;
  }
  .xpl i.old b { color: #08381e; }
  .xpl u {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    font-size: 6.8pt;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
  }
  .xu { color: #0a6b3a; }
  .xd { color: #be1e2d; }
  .xe { color: #1565c0; }
  .xn { color: #666; }
  .xlr { margin-top: 2px; }
  .xlr .xy { height: auto; }
  .xls {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 6.5pt;
    color: #333;
    line-height: 1.25;
  }
  .xls span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .xls b {
    display: block;
    font-size: 7.2pt;
    color: #0a3d21;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Remarks & Notice Titles & Boxes matching image (Safe padding) */
  h4.sh {
    margin: 5px 0 2px;
    padding-left: 2px;
    font-size: 7.6pt;
    color: #0a6b3a;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    flex-shrink: 0;
  }
  .tb {
    border: 1px solid #555;
    padding: 4px 6px;
    font-size: 7.2pt;
    line-height: 1.35;
    background: #fff;
    color: #000;
    flex-shrink: 0;
  }
  .tb.nt {
    background: #eef4f0;
  }

  /* Flex Spacer to ensure clean 1-page fit */
  .rep-fill {
    flex: 1 1 auto;
    min-height: 2px;
  }

  /* Signatures Row */
  .rep-sig-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 3px 10px 0;
    flex-shrink: 0;
    border-top: 1px dashed #a0b2a7;
    margin-top: 3px;
  }
  .sig-col {
    text-align: center;
    width: 170px;
  }
  .sig-name {
    font-family: 'Brush Script MT', cursive, sans-serif;
    font-size: 13pt;
    color: #0a3d21;
    line-height: 1;
    margin-bottom: -2px;
  }
  .sig-line {
    border-bottom: 1.2px solid #000;
    margin: 1px 0 2px;
  }
  .sig-title {
    font-size: 7pt;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    letter-spacing: 0.04em;
  }
  .sig-date {
    font-size: 6.5pt;
    color: #666;
  }

  /* Report Form Footer: PALM CBC REPORTS (Safe padding) */
  .rep-ft {
    font-size: 6.8pt;
    font-weight: 700;
    color: #0a6b3a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 2px 0 0;
    padding-left: 1px;
    flex-shrink: 0;
    text-align: left;
  }
    .rep-bot {
    height: 2px;
    background: #0a6b3a;
    width: 100% !important;
    margin: 8px 0 3px 0 !important;
    flex-shrink: 0;
  }

  /* ==========================================================================
     PANE 2: EXAM BROADSHEET TABLE
     ========================================================================== */
  .sheet-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  }
  .sheet-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }
  .sheet-card th, .sheet-card td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }
  .sheet-card th {
    background: var(--card-subtle);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .sheet-card td.left { text-align: left; }
  .sheet-card tr:hover td { background: var(--row-hover); }

  /* ==========================================================================
     PANE 3: SUBJECT ANALYSIS TABLE
     ========================================================================== */
  .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  @media (max-width: 860px) {
    .grid-2 { grid-template-columns: 1fr; }
  }

  /* ==========================================================================
     COMMON SECTION HEADINGS & STYLES FOR FULL LANDING PAGE
     ========================================================================== */
  .lp-section {
    padding: 64px 0;
  }
  .lp-section-head {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
  }
  .lp-section-head h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 12px;
  }
  .lp-section-head p {
    font-size: 16.5px;
    color: var(--text-muted);
    line-height: 1.55;
  }

  /* ------------------------------------------------------------
     WORKFLOW SECTION (#workflow)
     ------------------------------------------------------------ */
  .lp-workflow-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 36px;
    align-items: center;
  }
  .lp-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .lp-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.15s, border-color 0.15s;
  }
  .lp-step:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
  }
  .lp-step-num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .lp-step h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
  }
  .lp-step p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.45;
  }

  /* Dashboard Mockup in Workflow */
  .lp-dash-preview {
    background: var(--card-bg);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  }
  .lp-dash-topbar {
    background: var(--card-subtle);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
  }
  .lp-dash-dots {
    display: flex;
    gap: 5px;
  }
  .lp-dash-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-dark);
  }
  .lp-dash-body {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 220px;
  }
  .lp-dash-sidebar {
    background: var(--card-subtle);
    border-right: 1px solid var(--border);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .lp-dash-sidebar span {
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--text-muted);
  }
  .lp-dash-sidebar span.active {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    font-weight: 700;
  }
  .lp-dash-main {
    padding: 18px;
  }
  .lp-dash-main h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
  }
  .lp-dash-stat {
    flex: 1;
    background: var(--card-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
  }
  .lp-dash-stat small {
    font-size: 10.5px;
    color: var(--text-muted);
    display: block;
    text-transform: uppercase;
    font-weight: 700;
  }
  .lp-dash-stat b {
    font-size: 17px;
    font-family: 'Bricolage Grotesque', sans-serif;
    color: var(--accent);
  }

  /* ------------------------------------------------------------
     ROLES SECTION (#schools)
     ------------------------------------------------------------ */
  .lp-roles-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  }
  .lp-roles-table th, .lp-roles-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
  }
  .lp-roles-table th {
    background: var(--card-subtle);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1.5px solid var(--border-dark);
  }
  .lp-roles-table tr:last-child td {
    border-bottom: none;
  }
  .lp-role-name b {
    display: block;
    font-size: 15px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2px;
  }
  .lp-role-name small {
    font-size: 12px;
    color: var(--text-muted);
  }
  .lp-role-scope {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
  }
  .lp-role-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.45;
  }

  /* ------------------------------------------------------------
     TRUST & STANDARDS (#proof)
     ------------------------------------------------------------ */
  .lp-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .lp-trust-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  }
  .lp-trust-item h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
  }
  .lp-trust-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
  }

  /* ------------------------------------------------------------
     CALL TO ACTION BOX (#start)
     ------------------------------------------------------------ */
  .lp-cta-clean {
    padding: 56px 0 72px;
  }
  .lp-cta-clean-box {
    background: var(--card-bg);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 40px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  }
  .lp-cta-clean-text h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
  }
  .lp-cta-clean-text p {
    font-size: 15.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
  }
  .lp-cta-clean-faq {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
  }
  .lp-cta-clean-faq:hover {
    text-decoration: underline;
  }

  /* ==========================================================================
     FOOTER AT END OF PAGE (CONTAINS PRIVACY & MOVED LINKS)
     ========================================================================== */
  .lp-footer-clean {
    border-top: 1px solid var(--border);
    background: var(--card-bg);
    padding: 24px 20px;
    font-size: 13.5px;
    color: var(--text-muted);
  }
  .lp-footer-row {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
  }
  .lp-footer-links-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .lp-footer-links-row a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
  }
  .lp-footer-links-row a:hover {
    color: var(--accent);
  }
  .lp-footer-links-row .sep {
    color: var(--border-dark);
  }

  @media (max-width: 900px) {
    .lp-workflow-grid { grid-template-columns: 1fr; }
    .lp-trust-grid { grid-template-columns: 1fr; }
    .lp-cta-clean-box { padding: 28px 24px; }
  }
  /* Responsive adaptations for PC, Tablet, Phone, and Small Screens */
  @media (max-width: 768px) {
    .section-documents {
      padding: 36px 12px 48px;
    }
    .a4-sheet {
      padding: 16px 14px 14px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }
    .who-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
    }
    .who-row .col-center, .who-row .col-right {
      text-align: left;
    }
    .rep-table {
      min-width: 580px;
    }
    .rep-sigs {
      flex-direction: column;
      gap: 18px;
      align-items: center;
    }
    .rep-sig-block {
      width: 100%;
      max-width: 260px;
    }
  }
  @media (max-width: 480px) {
    .a4-sheet {
      padding: 14px 10px 12px;
    }
    .doc-tabs-bar {
      gap: 6px;
    }
    .doc-tab {
      padding: 8px 12px;
      font-size: 13px;
    }
    .lp-sample-tabs button {
      padding: 5px 10px;
      font-size: 12px;
    }
  }