<?php
$page_title       = 'How It Works — EduTrack School Management';
$page_description = 'Learn how EduTrack works — from signing up to managing students, fees, exams, and reports. A step-by-step guide for Ghanaian schools.';
$page_active      = 'how';
include 'includes/header.php';
?>

<style>
/* ── How It Works page styles ── */
.hiw-hero { background: var(--grad-hero); padding: 8rem 0 5rem; position: relative; overflow: hidden; }
.hiw-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23008B91' fill-opacity='0.05'%3E%3Ccircle cx='7' cy='7' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Steps timeline */
.step-block { display: flex; gap: 2.5rem; margin-bottom: 4rem; position: relative; }
.step-block:last-child { margin-bottom: 0; }
.step-line-wrap { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; font-weight: 900; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,139,145,.4); flex-shrink: 0; position: relative; z-index: 1;
}
.step-connector {
  width: 2px; flex: 1; background: linear-gradient(to bottom, rgba(0,139,145,.35), rgba(245,162,0,.08));
  margin: .75rem 0; min-height: 60px;
}
.step-content { padding-top: .5rem; flex: 1; }
.step-content h3 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: .6rem; letter-spacing: -.02em; }
.step-content p { color: var(--slate); line-height: 1.8; margin-bottom: 1rem; }
.step-tip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(0,139,145,.06); border: 1px solid rgba(0,139,145,.18);
  border-radius: 8px; padding: .55rem 1rem; font-size: .82rem; color: var(--teal); font-weight: 500;
}
.step-tip i { font-size: .85rem; }

/* Detail cards */
.detail-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm); height: 100%;
  transition: all .3s;
}
.detail-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0,139,145,.22); }
.detail-card .dc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1rem;
}
.detail-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.detail-card p  { font-size: .875rem; color: var(--slate); line-height: 1.7; }

/* Module guide tabs */
.module-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.module-tab {
  padding: .5rem 1.1rem; border-radius: 8px; font-size: .85rem; font-weight: 600;
  background: var(--bg-subtle); border: 1px solid var(--border); color: var(--slate);
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.module-tab:hover, .module-tab.active {
  background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 2px 10px rgba(0,139,145,.25);
}

.module-panel { display: none; animation: fadeInUp .3s ease; }
.module-panel.active { display: block; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--slate);
}
.checklist li:last-child { border-bottom: none; }
.checklist li i { color: var(--purple); margin-top: 2px; flex-shrink: 0; }

/* FAQ mini */
.faq-mini .faq-item { border-bottom: 1px solid var(--border); }
.faq-mini .faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0; cursor: pointer; font-weight: 600; color: var(--navy); font-size: .95rem; gap: 1rem;
}
.faq-mini .faq-q i { transition: transform .25s; flex-shrink: 0; color: var(--purple); }
.faq-mini .faq-a { display: none; padding-bottom: 1rem; color: var(--slate); font-size: .9rem; line-height: 1.75; }
.faq-mini .faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-mini .faq-item.open .faq-a { display: block; }

/* CTA strip */
.cta-strip {
  background: var(--grad-primary); border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem; text-align: center; position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,.08) 0%, transparent 60%);
}

@media (max-width: 767px) {
  .step-block { flex-direction: column; gap: 1rem; }
  .step-line-wrap { flex-direction: row; align-items: center; gap: 1rem; }
  .step-connector { width: 40px; height: 2px; min-height: auto; flex: none; }
}
</style>

<!-- Hero -->
<section class="hiw-hero">
  <!-- Subtle Unsplash background -->
  <div aria-hidden="true" style="position:absolute;inset:0;background-image:url('https://images.unsplash.com/photo-1497633762265-9d179a990aa6?w=1600&q=55');background-size:cover;background-position:center 40%;opacity:.07;pointer-events:none"></div>
  <!-- Ambient glow orbs -->
  <div aria-hidden="true" style="position:absolute;top:-80px;right:10%;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(0,139,145,.18) 0%,transparent 70%);pointer-events:none" class="anim-float-slow"></div>
  <div aria-hidden="true" style="position:absolute;bottom:-60px;left:5%;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(245,162,0,.10) 0%,transparent 70%);pointer-events:none" class="anim-float-mid"></div>

  <div class="container position-relative" style="z-index:1">
    <div class="breadcrumb-custom mb-4 anim-hero-badge">
      <a href="index.php">Home</a>
      <span class="sep">/</span>
      <span>How It Works</span>
    </div>
    <div class="row align-items-center g-5">
      <div class="col-lg-6">
        <div class="eyebrow mb-3 anim-hero-badge" style="background:rgba(0,139,145,.15);border-color:rgba(76,200,206,.3);color:#4CC8CE">
          <i class="fas fa-route"></i> Step-by-Step Guide
        </div>
        <h1 class="display-2 anim-hero-h1" style="color:#fff;margin-bottom:1.25rem">
          From Sign-up to<br>
          <span style="background:linear-gradient(135deg,#4CC8CE,#F5A200);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text">Full Operation</span>
        </h1>
        <p class="anim-hero-sub" style="color:rgba(255,255,255,.65);font-size:1.1rem;line-height:1.8;max-width:520px;margin-bottom:2rem">
          Getting your school onto EduTrack takes less than a day. This guide walks you through every step — from first contact to running reports, collecting fees, and managing exams.
        </p>
        <div class="d-flex flex-wrap gap-3 anim-hero-ctas">
          <a href="index.php#signup" class="btn-primary-custom">
            <i class="fas fa-rocket"></i> Get Started Free
          </a>
          <a href="#step-overview" class="btn-ghost-custom">
            <i class="fas fa-arrow-down"></i> See the Steps
          </a>
        </div>
      </div>
      <div class="col-lg-6 anim-hero-mockup">
        <!-- Journey overview -->
        <div style="background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:1.75rem">
          <div style="font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.3);margin-bottom:1.25rem">YOUR JOURNEY AT A GLANCE</div>
          <?php
          $milestones = [
            ['fas fa-file-alt','#4CC8CE','Submit Enquiry','~2 minutes'],
            ['fas fa-user-check','#36C5CC','Account Activated','Within 24 hours'],
            ['fas fa-cogs','#34d399','Configure Your School','1–2 hours'],
            ['fas fa-users','#f59e0b','Import Students & Staff','1–3 hours'],
            ['fas fa-check-circle','#4CC8CE','Go Live!','Same day'],
          ];
          foreach ($milestones as $i => [$icon,$color,$label,$time]): ?>
          <div class="d-flex align-items-center gap-3 mb-3 <?= $i<4?'pb-3':'' ?>" style="<?= $i<4?'border-bottom:1px solid rgba(255,255,255,.06)':'' ?>">
            <div style="width:36px;height:36px;border-radius:9px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;flex-shrink:0">
              <i class="<?= $icon ?>" style="color:<?= $color ?>;font-size:.9rem"></i>
            </div>
            <div style="flex:1">
              <div style="color:rgba(255,255,255,.85);font-size:.9rem;font-weight:600"><?= $label ?></div>
            </div>
            <div style="font-size:.78rem;color:rgba(255,255,255,.35);white-space:nowrap"><?= $time ?></div>
          </div>
          <?php endforeach; ?>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- ══ STATS BAR ══ -->
<section style="background:var(--bg-subtle);border-bottom:1px solid var(--border);padding:2rem 0">
  <div class="container">
    <div class="row g-3 text-center">
      <?php
      $stats = [
        ['fas fa-clock','< 1 Day','Average time to go live'],
        ['fas fa-school','50+','Schools already onboarded'],
        ['fas fa-headset','24-Hour','Support response time'],
        ['fas fa-star','30-Day','Free trial, no card needed'],
      ];
      foreach ($stats as [$icon,$num,$label]):
      ?>
      <div class="col-6 col-md-3 reveal">
        <div style="padding:.5rem">
          <div style="width:40px;height:40px;border-radius:10px;background:rgba(0,139,145,.1);display:flex;align-items:center;justify-content:center;margin:0 auto .75rem">
            <i class="<?= $icon ?>" style="color:var(--teal);font-size:1rem"></i>
          </div>
          <div style="font-size:1.35rem;font-weight:900;color:var(--navy);letter-spacing:-.02em"><?= $num ?></div>
          <div style="font-size:.78rem;color:var(--muted);margin-top:.2rem"><?= $label ?></div>
        </div>
      </div>
      <?php endforeach; ?>
    </div>
  </div>
</section>

<!-- ══ MAIN STEPS ══ -->
<section class="section" id="step-overview">
  <div class="container">
    <div class="row g-5">
      <div class="col-lg-8">
        <div class="eyebrow mb-2"><i class="fas fa-list-ol"></i> Onboarding Steps</div>
        <h2 class="section-title-main mb-5">Getting your school set up</h2>

        <!-- Step 1 -->
        <div class="step-block reveal">
          <div class="step-line-wrap">
            <div class="step-num">1</div>
            <div class="step-connector"></div>
          </div>
          <div class="step-content">
            <h3>Submit Your Enquiry</h3>
            <p>
              Start by filling in the short sign-up form on our homepage. You'll provide your school name, contact details, number of students, and preferred plan. There's no payment required at this stage.
            </p>
            <div class="row g-3 mb-3">
              <div class="col-sm-6">
                <div style="background:var(--bg-subtle);border-radius:12px;padding:1rem">
                  <div style="font-size:.78rem;font-weight:700;color:var(--purple);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.5rem">What you provide</div>
                  <ul class="checklist">
                    <li><i class="fas fa-check-circle"></i> School name & town</li>
                    <li><i class="fas fa-check-circle"></i> Your name & role</li>
                    <li><i class="fas fa-check-circle"></i> WhatsApp / phone number</li>
                    <li><i class="fas fa-check-circle"></i> Email address</li>
                    <li><i class="fas fa-check-circle"></i> Approximate student count</li>
                  </ul>
                </div>
              </div>
              <div class="col-sm-6">
                <div style="background:var(--bg-subtle);border-radius:12px;padding:1rem">
                  <div style="font-size:.78rem;font-weight:700;color:var(--purple);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.5rem">What happens next</div>
                  <ul class="checklist">
                    <li><i class="fas fa-check-circle"></i> We review your enquiry</li>
                    <li><i class="fas fa-check-circle"></i> We call or WhatsApp you</li>
                    <li><i class="fas fa-check-circle"></i> We confirm your plan</li>
                    <li><i class="fas fa-check-circle"></i> Your account is created</li>
                    <li><i class="fas fa-check-circle"></i> Login details are sent to you</li>
                  </ul>
                </div>
              </div>
            </div>
            <div class="step-tip"><i class="fas fa-lightbulb"></i> Tip: Use the WhatsApp button for the fastest response — usually within the hour.</div>
          </div>
        </div>

        <!-- Step 2 -->
        <div class="step-block reveal reveal-delay-1">
          <div class="step-line-wrap">
            <div class="step-num">2</div>
            <div class="step-connector"></div>
          </div>
          <div class="step-content">
            <h3>Account Activation & First Login</h3>
            <p>
              Once your account is set up, you'll receive your school code, license key, and a link to your EduTrack dashboard. Log in with the credentials provided and you'll land on the setup wizard.
            </p>
            <div style="background:var(--bg-subtle);border-radius:14px;padding:1.25rem 1.5rem;margin-bottom:1rem">
              <div style="font-size:.82rem;font-weight:700;color:var(--navy);margin-bottom:.75rem">What you'll find on first login:</div>
              <div class="row g-2">
                <?php
                $first_login = [
                  ['fas fa-wand-magic-sparkles','Setup Wizard','Guides you through basic configuration'],
                  ['fas fa-school','School Profile','Enter your school\'s official details'],
                  ['fas fa-palette','Branding','Upload logo, set school colors'],
                  ['fas fa-calendar-alt','Academic Year','Set current term and year'],
                ];
                foreach ($first_login as [$ic,$title,$desc]): ?>
                <div class="col-sm-6">
                  <div style="display:flex;align-items:flex-start;gap:.65rem;background:#fff;border-radius:9px;padding:.75rem;border:1px solid var(--border)">
                    <i class="<?= $ic ?>" style="color:var(--purple);margin-top:2px;flex-shrink:0"></i>
                    <div>
                      <div style="font-size:.82rem;font-weight:700;color:var(--navy)"><?= $title ?></div>
                      <div style="font-size:.78rem;color:var(--muted)"><?= $desc ?></div>
                    </div>
                  </div>
                </div>
                <?php endforeach; ?>
              </div>
            </div>
            <div class="step-tip"><i class="fas fa-shield-alt"></i> Security: Change your default password immediately after first login.</div>
          </div>
        </div>

        <!-- Step 3 -->
        <div class="step-block reveal reveal-delay-2">
          <div class="step-line-wrap">
            <div class="step-num">3</div>
            <div class="step-connector"></div>
          </div>
          <div class="step-content">
            <h3>Configure Your School Structure</h3>
            <p>
              Before adding students, set up your school's academic structure. This takes about 30–60 minutes and only needs to be done once.
            </p>
            <div class="row g-3 mb-3">
              <?php
              $configs = [
                ['fas fa-layer-group','Classes & Streams','Create your classes (JHS 1A, Form 2, etc.) and assign class teachers'],
                ['fas fa-book','Subjects','Add all subjects, assign teachers, set class–subject links'],
                ['fas fa-calendar-check','Academic Calendar','Set term dates, holidays, exam schedules'],
                ['fas fa-money-bill-wave','Fee Structure','Define fee types (tuition, levies, boarding) per class'],
                ['fas fa-user-tie','Staff Setup','Add teachers, administrators, and support staff with roles'],
                ['fas fa-bell','Notifications','Configure SMS/WhatsApp alerts for fees and absences'],
              ];
              foreach ($configs as [$ic,$title,$desc]): ?>
              <div class="col-sm-6">
                <div class="detail-card">
                  <div class="dc-icon" style="background:rgba(0,139,145,.08)"><i class="<?= $ic ?>" style="color:var(--purple)"></i></div>
                  <h4><?= $title ?></h4>
                  <p><?= $desc ?></p>
                </div>
              </div>
              <?php endforeach; ?>
            </div>
            <div class="step-tip"><i class="fas fa-clock"></i> Estimated time: 30–60 minutes for a typical school.</div>
          </div>
        </div>

        <!-- Step 4 -->
        <div class="step-block reveal">
          <div class="step-line-wrap">
            <div class="step-num">4</div>
            <div class="step-connector"></div>
          </div>
          <div class="step-content">
            <h3>Import Students & Assign to Classes</h3>
            <p>
              Add your students individually or bulk-import using an Excel spreadsheet. EduTrack provides a template you can download and fill in.
            </p>
            <div style="background:var(--bg-subtle);border-radius:14px;padding:1.25rem 1.5rem;margin-bottom:1rem">
              <div class="row g-4">
                <div class="col-sm-6">
                  <div style="font-size:.78rem;font-weight:700;color:var(--purple);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.75rem">Option A — Manual Entry</div>
                  <ul class="checklist">
                    <li><i class="fas fa-circle" style="font-size:.4rem;color:var(--purple);margin-top:7px"></i> Go to Students → Add Student</li>
                    <li><i class="fas fa-circle" style="font-size:.4rem;color:var(--purple);margin-top:7px"></i> Fill in student details</li>
                    <li><i class="fas fa-circle" style="font-size:.4rem;color:var(--purple);margin-top:7px"></i> Assign to a class</li>
                    <li><i class="fas fa-circle" style="font-size:.4rem;color:var(--purple);margin-top:7px"></i> Add guardian contacts</li>
                    <li><i class="fas fa-circle" style="font-size:.4rem;color:var(--purple);margin-top:7px"></i> Upload photo (optional)</li>
                  </ul>
                </div>
                <div class="col-sm-6">
                  <div style="font-size:.78rem;font-weight:700;color:var(--blue);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.75rem">Option B — Bulk Import</div>
                  <ul class="checklist">
                    <li><i class="fas fa-circle" style="font-size:.4rem;color:var(--blue);margin-top:7px"></i> Download Excel template</li>
                    <li><i class="fas fa-circle" style="font-size:.4rem;color:var(--blue);margin-top:7px"></i> Fill in student data</li>
                    <li><i class="fas fa-circle" style="font-size:.4rem;color:var(--blue);margin-top:7px"></i> Upload the completed file</li>
                    <li><i class="fas fa-circle" style="font-size:.4rem;color:var(--blue);margin-top:7px"></i> Review & confirm import</li>
                    <li><i class="fas fa-circle" style="font-size:.4rem;color:var(--blue);margin-top:7px"></i> Hundreds of students in minutes</li>
                  </ul>
                </div>
              </div>
            </div>
            <div class="step-tip"><i class="fas fa-file-excel"></i> The bulk import template accepts student name, DOB, gender, guardian name, phone, class, and index number.</div>
          </div>
        </div>

        <!-- Step 5 -->
        <div class="step-block reveal reveal-delay-1">
          <div class="step-line-wrap">
            <div class="step-num">5</div>
            <div class="step-connector"></div>
          </div>
          <div class="step-content">
            <h3>Go Live — Day-to-Day Operations</h3>
            <p>
              You're ready. Your staff can now use EduTrack daily for attendance, fee collection, exam marking, and communication. Here's a typical school day on EduTrack:
            </p>
            <div class="row g-3 mb-3">
              <?php
              $daily = [
                ['7:30 AM','fas fa-clock','Morning check-in','Teachers take attendance on their devices for each class'],
                ['8:00 AM','fas fa-money-bill-alt','Fee desk opens','Bursar collects fees, system issues digital receipts instantly'],
                ['12:00 PM','fas fa-chart-bar','Mid-day summary','Admin reviews attendance and fee reports for the day'],
                ['2:00 PM','fas fa-pen','Score entry','Teachers enter class scores after continuous assessment'],
                ['3:30 PM','fas fa-sms','Auto-alerts','Absent students\' parents receive SMS/WhatsApp notifications'],
                ['End of term','fas fa-file-alt','Report cards','System generates and prints all report cards automatically'],
              ];
              foreach ($daily as [$time,$ic,$title,$desc]): ?>
              <div class="col-12">
                <div style="display:flex;align-items:flex-start;gap:1rem;background:var(--bg-subtle);border-radius:12px;padding:1rem 1.25rem;border-left:3px solid var(--purple)">
                  <div style="text-align:center;min-width:70px">
                    <div style="font-size:.72rem;font-weight:700;color:var(--purple)"><?= $time ?></div>
                    <i class="<?= $ic ?>" style="color:var(--blue);font-size:1.1rem;margin-top:.3rem;display:block"></i>
                  </div>
                  <div>
                    <div style="font-weight:700;color:var(--navy);font-size:.9rem;margin-bottom:.25rem"><?= $title ?></div>
                    <div style="font-size:.85rem;color:var(--slate)"><?= $desc ?></div>
                  </div>
                </div>
              </div>
              <?php endforeach; ?>
            </div>
          </div>
        </div>

        <!-- Step 6 -->
        <div class="step-block reveal reveal-delay-2">
          <div class="step-line-wrap">
            <div class="step-num">6</div>
          </div>
          <div class="step-content">
            <h3>End of Term — Reports & Promotions</h3>
            <p>
              At the end of each term, EduTrack generates comprehensive reports and automates the promotion process.
            </p>
            <div class="row g-3">
              <?php
              $eot = [
                ['fas fa-file-invoice','Report Cards','Generate PDF report cards for every student with grades, attendance, teacher remarks, and GPA'],
                ['fas fa-arrow-circle-right','Promotions','Bulk-promote students to the next class based on grade thresholds or manual review'],
                ['fas fa-chart-pie','Analytics','View school-wide performance charts: class averages, pass rates, attendance trends'],
                ['fas fa-envelope','Parent Communication','Email or WhatsApp report card summaries directly to parents from the system'],
              ];
              foreach ($eot as [$ic,$title,$desc]): ?>
              <div class="col-sm-6">
                <div class="detail-card">
                  <div class="dc-icon" style="background:rgba(0,102,114,.08)"><i class="<?= $ic ?>" style="color:var(--blue)"></i></div>
                  <h4><?= $title ?></h4>
                  <p><?= $desc ?></p>
                </div>
              </div>
              <?php endforeach; ?>
            </div>
          </div>
        </div>

      </div>

      <!-- Sidebar -->
      <div class="col-lg-4">
        <div style="position:sticky;top:90px">

          <!-- Quick nav -->
          <div style="background:var(--bg-subtle);border-radius:var(--radius-lg);padding:1.5rem;margin-bottom:1.5rem;border:1px solid var(--border)">
            <div style="font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:1rem">In this guide</div>
            <?php
            $toc = [
              '#step-overview' => 'Getting Started',
              '#modules'       => 'Module Guides',
              '#roles'         => 'User Roles',
              '#support'       => 'Getting Support',
            ];
            foreach ($toc as $href => $label): ?>
            <a href="<?= $href ?>" style="display:flex;align-items:center;gap:.6rem;padding:.55rem .65rem;border-radius:8px;color:var(--slate);text-decoration:none;font-size:.875rem;font-weight:500;transition:all .2s;margin-bottom:.25rem" onmouseover="this.style.background='rgba(0,139,145,.08)';this.style.color='var(--teal)'" onmouseout="this.style.background='transparent';this.style.color='var(--slate)'">
              <i class="fas fa-angle-right" style="color:var(--purple);font-size:.8rem"></i>
              <?= $label ?>
            </a>
            <?php endforeach; ?>
          </div>

          <!-- Time estimates -->
          <div style="background:#fff;border-radius:var(--radius-lg);padding:1.5rem;margin-bottom:1.5rem;border:1px solid var(--border);box-shadow:var(--shadow-sm)">
            <div style="font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:1rem">Setup Time Estimates</div>
            <?php
            $times = [
              ['School configuration','30–60 min'],
              ['Staff accounts','15–30 min'],
              ['Student import (bulk)','30–60 min'],
              ['Fee structure','20–40 min'],
              ['Subjects & classes','20–30 min'],
              ['Total first-day setup','~3 hours'],
            ];
            foreach ($times as $i => [$task,$time]): ?>
            <div style="display:flex;align-items:center;justify-content:space-between;padding:.5rem 0;<?= $i<5?'border-bottom:1px solid var(--border)':'' ?> <?= $i===5?'padding-top:.75rem;margin-top:.25rem':'' ?>">
              <span style="font-size:.85rem;color:var(--slate);<?= $i===5?'font-weight:700;color:var(--navy)':'' ?>"><?= $task ?></span>
              <span style="font-size:.82rem;font-weight:700;color:<?= $i===5?'var(--purple)':'var(--blue)' ?>"><?= $time ?></span>
            </div>
            <?php endforeach; ?>
          </div>

          <!-- Help box -->
          <div style="background:var(--grad-primary);border-radius:var(--radius-lg);padding:1.5rem;text-align:center">
            <i class="fas fa-headset" style="font-size:2rem;color:rgba(255,255,255,.8);margin-bottom:.75rem;display:block"></i>
            <div style="font-weight:700;color:#fff;margin-bottom:.4rem">Need Help Setting Up?</div>
            <div style="font-size:.82rem;color:rgba(255,255,255,.7);margin-bottom:1.1rem">Our team can guide you through the entire setup via WhatsApp or phone call.</div>
            <a href="https://wa.me/233537793106?text=Hi%2C+I+need+help+setting+up+EduTrack" target="_blank" style="display:inline-flex;align-items:center;gap:.5rem;background:#fff;color:var(--purple);font-weight:700;font-size:.875rem;padding:.65rem 1.4rem;border-radius:9px;text-decoration:none">
              <i class="fab fa-whatsapp" style="color:#25d366"></i> Chat with Us
            </a>
          </div>

        </div>
      </div>
    </div>
  </div>
</section>

<!-- ══ MODULE GUIDES ══ -->
<section class="section" id="modules" style="background:var(--bg-subtle)">
  <div class="container">
    <div class="text-center section-header reveal">
      <div class="eyebrow"><i class="fas fa-cubes"></i> Module Guides</div>
      <h2 class="section-title-main">How each module works</h2>
      <p class="section-subtitle">Click a module below to see a detailed breakdown of its features and how to use it.</p>
    </div>

    <div class="module-tabs" id="moduleTabs">
      <a class="module-tab active" onclick="showModule('students')">Students</a>
      <a class="module-tab" onclick="showModule('fees')">Fees & Payments</a>
      <a class="module-tab" onclick="showModule('attendance')">Attendance</a>
      <a class="module-tab" onclick="showModule('exams')">Exams & Grades</a>
      <a class="module-tab" onclick="showModule('reports')">Reports</a>
      <a class="module-tab" onclick="showModule('staff')">Staff</a>
      <a class="module-tab" onclick="showModule('communication')">Communication</a>
    </div>

    <div id="mod-students" class="module-panel active">
      <div class="row g-4">
        <div class="col-lg-7">
          <h3 style="font-weight:800;color:var(--navy);margin-bottom:1rem">Student Management</h3>
          <p style="color:var(--slate);line-height:1.8;margin-bottom:1.5rem">The student module is the core of EduTrack. It stores every student's academic, personal, and guardian records in one place — accessible from any device.</p>
          <?php
          $student_features = [
            'Student Registration' => 'Full profile with photo, index number, date of birth, gender, nationality, and contact details',
            'Guardian Records' => 'Store father, mother, and/or guardian contacts with automatic linking for SMS/WhatsApp alerts',
            'Class Assignment' => 'Assign students to classes and streams; easily move students between classes',
            'Academic History' => 'Full term-by-term grade history and attendance records from enrolment',
            'Document Store' => 'Upload birth certificates, health records, or other documents per student',
            'Bulk Import/Export' => 'Import hundreds of students from Excel; export filtered lists to CSV/PDF',
          ];
          foreach ($student_features as $title => $desc): ?>
          <div style="margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--border)">
            <div style="font-weight:700;color:var(--navy);font-size:.9rem;margin-bottom:.3rem">
              <i class="fas fa-check-circle" style="color:var(--purple);margin-right:.45rem"></i><?= $title ?>
            </div>
            <div style="font-size:.875rem;color:var(--slate);padding-left:1.4rem"><?= $desc ?></div>
          </div>
          <?php endforeach; ?>
        </div>
        <div class="col-lg-5">
          <div style="background:#fff;border-radius:var(--radius-lg);padding:1.5rem;border:1px solid var(--border);box-shadow:var(--shadow-sm)">
            <div style="font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:1rem">Common Actions</div>
            <?php
            $student_actions = [
              ['fas fa-user-plus','Add a new student','Students → Add Student → fill form'],
              ['fas fa-file-import','Bulk import','Students → Import → download template → upload'],
              ['fas fa-exchange-alt','Move between classes','Student profile → Edit → change class'],
              ['fas fa-search','Search students','Use the search bar on the students list page'],
              ['fas fa-id-card','Print ID card','Student profile → Print ID Card'],
              ['fas fa-graduation-cap','Promote students','End of Term → Promotions → select class → promote'],
            ];
            foreach ($student_actions as [$ic,$action,$how]): ?>
            <div style="display:flex;align-items:flex-start;gap:.75rem;padding:.65rem 0;border-bottom:1px solid var(--border)">
              <div style="width:30px;height:30px;border-radius:7px;background:rgba(0,139,145,.08);display:flex;align-items:center;justify-content:center;flex-shrink:0">
                <i class="<?= $ic ?>" style="color:var(--purple);font-size:.75rem"></i>
              </div>
              <div>
                <div style="font-size:.82rem;font-weight:600;color:var(--navy)"><?= $action ?></div>
                <div style="font-size:.75rem;color:var(--muted)"><?= $how ?></div>
              </div>
            </div>
            <?php endforeach; ?>
          </div>
        </div>
      </div>
    </div>

    <div id="mod-fees" class="module-panel">
      <div class="row g-4">
        <div class="col-lg-7">
          <h3 style="font-weight:800;color:var(--navy);margin-bottom:1rem">Fees & Payments</h3>
          <p style="color:var(--slate);line-height:1.8;margin-bottom:1.5rem">EduTrack's fee module eliminates manual ledgers. The bursar can collect fees, issue digital receipts, and track outstanding balances in real time.</p>
          <?php
          $fee_features = [
            'Fee Structure' => 'Define multiple fee types per class (tuition, levies, uniform, sports) and set amounts per term',
            'Quick Collection' => 'Search for a student, select the fee type, enter the amount, and generate a receipt — all in under 30 seconds',
            'Outstanding Tracking' => 'See exactly who owes what at a glance; filter by class, fee type, or amount range',
            'Receipt Generation' => 'Digital PDF receipts with school logo, date, amount, and teller name; printable on A5 or thermal paper',
            'Payment History' => 'Every payment is logged with a timestamp, teller name, and payment method for auditability',
            'Discounts & Waivers' => 'Apply discounts or full waivers for scholarship students with admin approval',
          ];
          foreach ($fee_features as $title => $desc): ?>
          <div style="margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--border)">
            <div style="font-weight:700;color:var(--navy);font-size:.9rem;margin-bottom:.3rem">
              <i class="fas fa-check-circle" style="color:var(--blue);margin-right:.45rem"></i><?= $title ?>
            </div>
            <div style="font-size:.875rem;color:var(--slate);padding-left:1.4rem"><?= $desc ?></div>
          </div>
          <?php endforeach; ?>
        </div>
        <div class="col-lg-5">
          <div style="background:#fff;border-radius:var(--radius-lg);padding:1.5rem;border:1px solid var(--border);box-shadow:var(--shadow-sm)">
            <div style="font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:1rem">Fee Collection Flow</div>
            <?php
            $fee_steps = ['Open "Collect Fee"','Search student by name or ID','Select fee type and term','Enter amount paid','Add payment method & reference','Generate & print receipt'];
            foreach ($fee_steps as $i => $s): ?>
            <div style="display:flex;align-items:center;gap:.75rem;padding:.6rem 0;<?= $i<5?'border-bottom:1px solid var(--border)':'' ?>">
              <div style="width:24px;height:24px;border-radius:50%;background:var(--grad-primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:800;flex-shrink:0"><?= $i+1 ?></div>
              <span style="font-size:.875rem;color:var(--slate)"><?= $s ?></span>
            </div>
            <?php endforeach; ?>
          </div>
        </div>
      </div>
    </div>

    <div id="mod-attendance" class="module-panel">
      <div class="row g-4">
        <div class="col-lg-7">
          <h3 style="font-weight:800;color:var(--navy);margin-bottom:1rem">Attendance Management</h3>
          <p style="color:var(--slate);line-height:1.8;margin-bottom:1.5rem">Attendance tracking is fast and designed for real classroom conditions. Teachers take attendance on their phone, tablet, or computer — no paper registers needed.</p>
          <?php
          $att_features = [
            'Daily Attendance' => 'Teachers mark Present / Absent / Late / Excused for each student in their class with a single tap',
            'Auto-Notifications' => 'Parents of absent students receive automatic WhatsApp or SMS alerts, reducing truancy',
            'Monthly Reports' => 'Per-student and per-class attendance reports with percentage calculations',
            'Absentee Tracking' => 'Flag students with repeated absences for pastoral intervention',
            'Staff Attendance' => 'Track teacher punctuality and absence separately from student records',
            'Custom Periods' => 'Morning and afternoon sessions can be tracked separately for boarding schools',
          ];
          foreach ($att_features as $title => $desc): ?>
          <div style="margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--border)">
            <div style="font-weight:700;color:var(--navy);font-size:.9rem;margin-bottom:.3rem">
              <i class="fas fa-check-circle" style="color:#10b981;margin-right:.45rem"></i><?= $title ?>
            </div>
            <div style="font-size:.875rem;color:var(--slate);padding-left:1.4rem"><?= $desc ?></div>
          </div>
          <?php endforeach; ?>
        </div>
        <div class="col-lg-5">
          <div style="background:#fff;border-radius:var(--radius-lg);padding:1.5rem;border:1px solid var(--border);box-shadow:var(--shadow-sm)">
            <div style="font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:1rem">Taking Attendance (Teacher)</div>
            <?php
            $att_steps = ['Log in to EduTrack','Go to Attendance → My Class','Select today\'s date','Mark each student\'s status','Submit — done in under 5 minutes!'];
            foreach ($att_steps as $i => $s): ?>
            <div style="display:flex;align-items:center;gap:.75rem;padding:.6rem 0;<?= $i<4?'border-bottom:1px solid var(--border)':'' ?>">
              <div style="width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#10b981,#059669);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:800;flex-shrink:0"><?= $i+1 ?></div>
              <span style="font-size:.875rem;color:var(--slate)"><?= $s ?></span>
            </div>
            <?php endforeach; ?>
          </div>
        </div>
      </div>
    </div>

    <div id="mod-exams" class="module-panel">
      <div class="row g-4">
        <div class="col-lg-7">
          <h3 style="font-weight:800;color:var(--navy);margin-bottom:1rem">Exams & Grading</h3>
          <p style="color:var(--slate);line-height:1.8;margin-bottom:1.5rem">The exams module supports the full Ghanaian assessment cycle — Class Score, Exams Score, and cumulative grading — following GES grading standards.</p>
          <?php
          $exam_features = [
            'Score Entry' => 'Teachers enter class scores and exam scores per subject, per student, online or via CSV upload',
            'GES Grading' => 'Automatic grade calculation using GES 7-point grading scale (A1–F9) or custom school grading',
            'Position Ranking' => 'Automatic class and year-group position calculation',
            'Aggregate Scoring' => 'Compute BECE-style aggregate scores where applicable',
            'Teacher Remarks' => 'Teachers can add per-subject and overall remarks per student',
            'Exam Timetable' => 'Publish and print exam timetables for parents and students',
          ];
          foreach ($exam_features as $title => $desc): ?>
          <div style="margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--border)">
            <div style="font-weight:700;color:var(--navy);font-size:.9rem;margin-bottom:.3rem">
              <i class="fas fa-check-circle" style="color:#f59e0b;margin-right:.45rem"></i><?= $title ?>
            </div>
            <div style="font-size:.875rem;color:var(--slate);padding-left:1.4rem"><?= $desc ?></div>
          </div>
          <?php endforeach; ?>
        </div>
        <div class="col-lg-5">
          <div style="background:#fff;border-radius:var(--radius-lg);padding:1.5rem;border:1px solid var(--border);box-shadow:var(--shadow-sm)">
            <div style="font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:1rem">Grading Scale (GES)</div>
            <?php
            $grades = [['A1','80–100','Excellent'],['B2','70–79','Very Good'],['B3','60–69','Good'],['C4','55–59','Credit'],['C5','50–54','Credit'],['C6','45–49','Credit'],['D7','40–44','Pass'],['E8','35–39','Pass'],['F9','0–34','Fail']];
            foreach ($grades as [$g,$r,$l]): ?>
            <div style="display:flex;align-items:center;gap:.65rem;padding:.4rem 0;border-bottom:1px solid var(--border)">
              <span style="width:30px;height:30px;border-radius:6px;background:<?= $g==='F9'?'#fee2e2':($g[0]==='A'?'#d1fae5':($g[0]==='B'?'#dbeafe':'#fef3c7')) ?>;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.8rem;color:<?= $g==='F9'?'#dc2626':($g[0]==='A'?'#059669':($g[0]==='B'?'#1d4ed8':'#d97706')) ?>"><?= $g ?></span>
              <span style="font-size:.82rem;color:var(--slate);flex:1"><?= $r ?></span>
              <span style="font-size:.78rem;font-weight:600;color:var(--muted)"><?= $l ?></span>
            </div>
            <?php endforeach; ?>
          </div>
        </div>
      </div>
    </div>

    <div id="mod-reports" class="module-panel">
      <div class="row g-4">
        <div class="col-lg-12">
          <h3 style="font-weight:800;color:var(--navy);margin-bottom:1rem">Reports & Analytics</h3>
          <p style="color:var(--slate);line-height:1.8;margin-bottom:1.5rem">EduTrack generates beautiful, branded reports — from individual student report cards to school-wide analytics dashboards.</p>
          <div class="row g-3">
            <?php
            $report_types = [
              ['fas fa-file-pdf','#dc2626','Student Report Card','PDF report card with grades, attendance, position, teacher remarks, and school branding. Printable or shareable via email.'],
              ['fas fa-chart-bar','#006672','Fee Collection Report','Daily, weekly, or monthly fee collection summaries by class, fee type, or teller. Exportable to Excel.'],
              ['fas fa-users','#008B91','Attendance Report','Class-level and school-level attendance trends, absent lists, punctuality rates over any date range.'],
              ['fas fa-trophy','#d97706','Academic Performance','Subject-wise averages, pass/fail rates, top performers, and year-on-year comparison charts.'],
              ['fas fa-exclamation-triangle','#ef4444','Outstanding Fees','List of students with unpaid or partially paid fees, sortable by amount or class.'],
              ['fas fa-user-graduate','#10b981','Graduation & Promotion','Promotion eligibility lists based on grade thresholds or manual admin review.'],
            ];
            foreach ($report_types as [$ic,$color,$title,$desc]): ?>
            <div class="col-md-6 col-lg-4">
              <div class="detail-card">
                <div class="dc-icon" style="background:<?= $color ?>1a"><i class="<?= $ic ?>" style="color:<?= $color ?>"></i></div>
                <h4><?= $title ?></h4>
                <p><?= $desc ?></p>
              </div>
            </div>
            <?php endforeach; ?>
          </div>
        </div>
      </div>
    </div>

    <div id="mod-staff" class="module-panel">
      <div class="row g-4">
        <div class="col-lg-7">
          <h3 style="font-weight:800;color:var(--navy);margin-bottom:1rem">Staff Management</h3>
          <p style="color:var(--slate);line-height:1.8;margin-bottom:1.5rem">Manage all staff members — teachers, administrators, support staff — with role-based access control so each person sees only what they need.</p>
          <?php
          $staff_features = [
            'Staff Profiles' => 'Full profile with qualifications, subjects taught, contact details, emergency contact, and employment date',
            'Role-Based Access' => 'Admin, Headmaster, Teacher, Bursar, and Class Teacher roles — each with appropriate permissions',
            'Class Assignment' => 'Assign form teachers to classes; assign subject teachers per class-subject combination',
            'Staff Attendance' => 'Log and report staff punctuality and absences separately from students',
            'Leave Management' => 'Staff can request leave; admin can approve or reject with leave balance tracking',
            'Payslips (Premium)' => 'Generate basic payslips for staff on the Premium plan',
          ];
          foreach ($staff_features as $title => $desc): ?>
          <div style="margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--border)">
            <div style="font-weight:700;color:var(--navy);font-size:.9rem;margin-bottom:.3rem">
              <i class="fas fa-check-circle" style="color:var(--purple);margin-right:.45rem"></i><?= $title ?>
            </div>
            <div style="font-size:.875rem;color:var(--slate);padding-left:1.4rem"><?= $desc ?></div>
          </div>
          <?php endforeach; ?>
        </div>
        <div class="col-lg-5">
          <div style="background:#fff;border-radius:var(--radius-lg);padding:1.5rem;border:1px solid var(--border);box-shadow:var(--shadow-sm)">
            <div style="font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:1rem">User Roles & Permissions</div>
            <?php
            $roles = [
              ['Super Admin','Full system access; manages settings, users, school profile'],
              ['Headmaster','Reads all data; approves promotions and reports'],
              ['Bursar','Fee collection, receipts, financial reports only'],
              ['Class Teacher','Attendance for their class; score entry for their subjects'],
              ['Subject Teacher','Score entry for assigned subjects only'],
            ];
            foreach ($roles as [$role,$perm]): ?>
            <div style="padding:.7rem 0;border-bottom:1px solid var(--border)">
              <div style="font-size:.82rem;font-weight:700;color:var(--navy);margin-bottom:.2rem"><?= $role ?></div>
              <div style="font-size:.78rem;color:var(--muted)"><?= $perm ?></div>
            </div>
            <?php endforeach; ?>
          </div>
        </div>
      </div>
    </div>

    <div id="mod-communication" class="module-panel">
      <div class="row g-4">
        <div class="col-lg-12">
          <h3 style="font-weight:800;color:var(--navy);margin-bottom:1rem">Communication & Notifications</h3>
          <p style="color:var(--slate);line-height:1.8;margin-bottom:1.5rem">Keep parents informed and reduce absenteeism with automated and manual messaging tools built right into EduTrack.</p>
          <div class="row g-3">
            <?php
            $comm = [
              ['fab fa-whatsapp','#25d366','WhatsApp Alerts','Automated WhatsApp messages to parents for absences, fee reminders, and results. Powered by the Oric Network WhatsApp gateway.'],
              ['fas fa-sms','#006672','SMS Notifications','Standard SMS fallback for parents without WhatsApp. Works with any Ghanaian mobile network (MTN, Vodafone, AirtelTigo).'],
              ['fas fa-bell','#008B91','In-App Announcements','Broadcast school-wide announcements visible to all staff when they log in.'],
              ['fas fa-envelope','#ef4444','Email Reports','Send report card summaries and fee statements directly to parent email addresses from within EduTrack.'],
              ['fas fa-comment-dots','#d97706','Custom Bulk SMS','Send custom messages to all parents, specific classes, or students with outstanding fees.'],
              ['fas fa-chart-line','#10b981','Delivery Reports','See which messages were delivered, failed, or pending for every SMS/WhatsApp blast.'],
            ];
            foreach ($comm as [$ic,$color,$title,$desc]): ?>
            <div class="col-md-6">
              <div class="detail-card">
                <div class="dc-icon" style="background:<?= $color ?>1a"><i class="<?= $ic ?>" style="color:<?= $color ?>"></i></div>
                <h4><?= $title ?></h4>
                <p><?= $desc ?></p>
              </div>
            </div>
            <?php endforeach; ?>
          </div>
        </div>
      </div>
    </div>

  </div>
</section>

<!-- ══ USER ROLES ══ -->
<section class="section" id="roles">
  <div class="container">
    <div class="text-center section-header reveal">
      <div class="eyebrow"><i class="fas fa-users-cog"></i> User Roles</div>
      <h2 class="section-title-main">Who uses EduTrack and how</h2>
      <p class="section-subtitle">Different staff members have tailored experiences based on their role in the school.</p>
    </div>
    <div class="row g-4">
      <?php
      $role_cards = [
        ['fas fa-user-shield','var(--purple)','School Administrator',
         'You have full access to all modules. Set up the school, manage users, view all reports, and control system settings. You are the gatekeeper of EduTrack.',
         ['Full settings access','All reports & analytics','User management','System configuration']],
        ['fas fa-chalkboard-teacher','var(--blue)','Class Teacher',
         'Log in each morning to take attendance. Enter class scores throughout the term. View your class\'s performance and generate your class report at term end.',
         ['Daily attendance','Score entry','Class reports','Exam timetable view']],
        ['fas fa-coins','#d97706','Bursar / Accounts',
         'Collect fees with a fast checkout interface. Issue digital receipts instantly. Track all outstanding balances and generate daily revenue reports.',
         ['Fee collection','Receipt printing','Outstanding reports','Daily financial summary']],
        ['fas fa-user-graduate','#10b981','Headmaster / Principal',
         'View the school dashboard and all reports without editing capabilities. Approve end-of-term promotions and final report cards before they are released.',
         ['School-wide dashboard','Report approval','Promotion sign-off','Read-only access to all data']],
      ];
      foreach ($role_cards as [$ic,$color,$title,$desc,$perms]): ?>
      <div class="col-md-6 col-lg-3 reveal">
        <div class="card-custom text-center">
          <div style="width:64px;height:64px;border-radius:18px;background:<?= $color ?>1a;display:flex;align-items:center;justify-content:center;margin:0 auto 1.25rem">
            <i class="<?= $ic ?>" style="color:<?= $color ?>;font-size:1.5rem"></i>
          </div>
          <h4 style="font-weight:800;color:var(--navy);margin-bottom:.75rem;font-size:1rem"><?= $title ?></h4>
          <p style="font-size:.85rem;color:var(--slate);line-height:1.7;margin-bottom:1.25rem"><?= $desc ?></p>
          <div style="border-top:1px solid var(--border);padding-top:1rem">
            <?php foreach ($perms as $p): ?>
            <div style="display:flex;align-items:center;gap:.5rem;margin-bottom:.4rem;text-align:left">
              <i class="fas fa-check" style="color:<?= $color ?>;font-size:.75rem;flex-shrink:0"></i>
              <span style="font-size:.8rem;color:var(--slate)"><?= $p ?></span>
            </div>
            <?php endforeach; ?>
          </div>
        </div>
      </div>
      <?php endforeach; ?>
    </div>
  </div>
</section>

<!-- ══ SUPPORT ══ -->
<section class="section" id="support" style="background:var(--bg-subtle)">
  <div class="container">
    <div class="text-center section-header reveal">
      <div class="eyebrow"><i class="fas fa-life-ring"></i> Support</div>
      <h2 class="section-title-main">Getting help when you need it</h2>
      <p class="section-subtitle">We're based in Ghana and available during school hours — and beyond — to support your school.</p>
    </div>
    <div class="row g-4">
      <?php
      $support = [
        ['fab fa-whatsapp','#25d366','WhatsApp Support','The fastest way to reach us. Chat with a real person, share screenshots, and get step-by-step guidance in Pidgin, Twi, or English.','https://wa.me/233537793106?text=Hi%2C+I+need+EduTrack+support','Chat on WhatsApp'],
        ['fas fa-phone','var(--blue)','Phone Call','Call us directly during business hours (8am–6pm Mon–Sat). We can walk you through any setup issue over the phone.','tel:+233537793106','Call 0537 793 106'],
        ['fas fa-envelope','var(--purple)','Email Support','For non-urgent issues, send us an email and we\'ll respond within 24 hours with a detailed solution.','mailto:info@oricnetwork.com','Email Us'],
        ['fas fa-graduation-cap','#d97706','On-Site Training','For new schools, we offer on-site training sessions where our team visits your school and trains your staff directly.','index.php#signup','Request Training'],
      ];
      foreach ($support as [$ic,$color,$title,$desc,$href,$cta]): ?>
      <div class="col-md-6 col-lg-3 reveal">
        <div class="card-custom text-center">
          <div style="width:60px;height:60px;border-radius:16px;background:<?= $color ?>1a;display:flex;align-items:center;justify-content:center;margin:0 auto 1rem">
            <i class="<?= $ic ?>" style="color:<?= $color ?>;font-size:1.4rem"></i>
          </div>
          <h4 style="font-size:1rem;font-weight:700;color:var(--navy);margin-bottom:.6rem"><?= $title ?></h4>
          <p style="font-size:.85rem;color:var(--slate);line-height:1.7;margin-bottom:1.25rem"><?= $desc ?></p>
          <a href="<?= $href ?>" target="_blank" style="display:inline-flex;align-items:center;gap:.4rem;font-size:.82rem;font-weight:700;color:<?= $color ?>;text-decoration:none;border:1.5px solid <?= $color ?>33;border-radius:8px;padding:.5rem 1rem;transition:all .2s" onmouseover="this.style.background='<?= $color ?>15'" onmouseout="this.style.background='transparent'">
            <?= $cta ?> <i class="fas fa-arrow-right" style="font-size:.75rem"></i>
          </a>
        </div>
      </div>
      <?php endforeach; ?>
    </div>
  </div>
</section>

<!-- ══ CTA ══ -->
<section class="section">
  <div class="container">
    <div class="cta-strip reveal">
      <div class="position-relative" style="z-index:1">
        <div class="eyebrow mb-3" style="background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.25);color:#fff;display:inline-flex">
          <i class="fas fa-rocket"></i> Ready to start?
        </div>
        <h2 style="font-size:clamp(1.8rem,3.5vw,2.6rem);font-weight:900;color:#fff;letter-spacing:-.025em;margin-bottom:1rem">
          Your school can go live today
        </h2>
        <p style="color:rgba(255,255,255,.75);font-size:1.05rem;max-width:520px;margin:0 auto 2rem;line-height:1.75">
          Fill in the form on our homepage and we'll have your school account ready within 24 hours. Free 30-day trial — no payment details required.
        </p>
        <div class="d-flex flex-wrap gap-3 justify-content-center">
          <a href="index.php#signup" class="btn-primary-custom" style="background:#fff;color:var(--purple);box-shadow:0 4px 20px rgba(0,0,0,.2)">
            <i class="fas fa-paper-plane"></i> Submit Enquiry
          </a>
          <a href="https://wa.me/233537793106?text=Hi%2C+I+want+to+sign+up+my+school+for+EduTrack" target="_blank" class="btn-ghost-custom">
            <i class="fab fa-whatsapp"></i> WhatsApp Us
          </a>
        </div>
      </div>
    </div>
  </div>
</section>

<script>
function showModule(name) {
  document.querySelectorAll('.module-panel').forEach(p => p.classList.remove('active'));
  document.querySelectorAll('.module-tab').forEach(t => t.classList.remove('active'));
  document.getElementById('mod-' + name).classList.add('active');
  event.currentTarget.classList.add('active');
}

// FAQ accordion
document.querySelectorAll('.faq-mini .faq-q').forEach(q => {
  q.addEventListener('click', () => {
    const item = q.parentElement;
    item.classList.toggle('open');
  });
});
</script>

<?php include 'includes/footer.php'; ?>
