/* =============================================
   SCHOOL ERP PAGE — Warm Editorial (matches apex-style.css v3)
   Loaded only by school-erp.php
   ============================================= */

.erp-page { background: var(--cream); color: var(--ink); }
.erp-page h1, .erp-page h2, .erp-page h3, .erp-page h4 { color: var(--fg); }

/* Shared bits */
.erp-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 24px;
    font-family: var(--font-mono); font-size: 12px; font-weight: 500;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--fg-2);
}
.erp-kicker i { color: var(--hi); font-size: 12px; }
.erp-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ping 2s infinite; }
.erp-h2 { font-size: clamp(40px, 6.2vw, 100px); font-weight: 500; line-height: .95; letter-spacing: -0.05em; margin-bottom: 22px; }
.erp-lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; color: var(--fg-2); max-width: 680px; }
.erp-section { position: relative; padding: clamp(90px, 11vw, 160px) 0; background: var(--cream); }
.erp-bg-soft { background: var(--cream-2); }

/* ── HERO ── */
.erp-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 170px 0 0;
    background: var(--cream);
}
.erp-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(90deg, rgba(17,17,16,.06) 1px, transparent 1px);
    background-size: 25% 100%; background-position: 12.5% 0;
}
.erp-hero .container { position: relative; z-index: 3; }
.erp-hero-text { text-align: left; max-width: 900px; }
.erp-hero h1 { font-size: clamp(50px, 8.6vw, 150px); font-weight: 500; line-height: .88; letter-spacing: -0.058em; margin-bottom: 30px; }
.erp-hero p.erp-lead { margin: 0 0 30px; }
.erp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.erp-chips span {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 15px; border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--line-2);
    font-size: 14px; font-weight: 500; color: var(--ink);
}
.erp-chips i { color: var(--accent-ink); font-size: 12px; }
.erp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.erp-hero-points { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-2); }
.erp-hero-points i { color: var(--accent-ink); margin-right: 6px; }

/* Screenshot in a browser frame */
.erp-shot-wrap { position: relative; z-index: 3; max-width: 1180px; margin: 80px auto 0; padding: 0 12px; }
.erp-browser {
    position: relative; z-index: 1;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: var(--ink);
    border: 1px solid var(--ink); border-bottom: none;
    box-shadow: 0 -30px 80px -30px rgba(17,17,16,.45);
}
.erp-browser-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: var(--ink-2); }
.erp-browser-bar .d { width: 10px; height: 10px; border-radius: 50%; }
.erp-browser-url {
    flex: 1; max-width: 420px; margin-left: 14px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(242,238,230,.08);
    font-family: var(--font-mono); font-size: 11.5px; color: rgba(242,238,230,.6);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.erp-browser-url i { color: var(--accent); margin-right: 6px; }
.erp-browser img { display: block; width: 100%; height: auto; }

.erp-float {
    position: absolute; z-index: 3;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px 12px 12px;
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 24px 50px -18px rgba(17,17,16,.4);
    font-size: 13px; color: var(--fg-2);
    animation: erpFloat 6s ease-in-out infinite;
}
.erp-float strong { display: block; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.erp-float .ic { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; background: var(--ink) !important; color: var(--cream); }
.erp-float.f2 .ic { background: var(--accent) !important; color: var(--ink); }
.erp-float.f1 { left: -28px; top: 30%; }
.erp-float.f2 { right: -28px; top: 10%; animation-delay: -3s; }
.erp-float.f3 { right: -28px; top: 44%; animation-delay: -1.4s; }
@keyframes erpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── ENQUIRY STRIP ── */
.erp-enquiry { position: relative; padding: 64px 0; background: var(--accent); color: var(--ink); }
.erp-enquiry h2 { margin-bottom: 8px; font-size: clamp(30px, 3.2vw, 48px); color: var(--ink); }
.erp-enquiry p { margin: 0; color: rgba(17,17,16,.75); }
.erp-enquiry-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; }
.erp-enquiry-form input {
    width: 100%; padding: 16px 20px; border-radius: 999px;
    border: 1px solid rgba(17,17,16,.25); background: rgba(255,255,255,.35);
    color: var(--ink); font-family: inherit; font-size: 15px;
    transition: background-color .3s, border-color .3s;
}
.erp-enquiry-form input::placeholder { color: rgba(17,17,16,.6); }
.erp-enquiry-form input:focus { outline: none; border-color: var(--ink); background: rgba(255,255,255,.7); }
.erp-enquiry-form button { border: none; white-space: nowrap; --btn-bg: var(--ink); --btn-fg: var(--cream); --btn-fill: var(--cream); --btn-fill-fg: var(--ink); }

/* ── AI CARDS ── */
.erp-card {
    height: 100%;
    padding: 34px 30px;
    border-radius: var(--radius-xl);
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform .8s var(--ease-out), background-color .5s, color .5s;
}
.erp-card:hover { transform: translateY(-8px); background: var(--ink); color: var(--cream); }
.erp-card:hover h3 { color: var(--cream); }
.erp-card:hover p { color: rgba(242,238,230,.7); }
.erp-card .ic { width: 54px; height: 54px; margin-bottom: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--ink); color: var(--cream); transition: background-color .5s, color .5s, transform .8s var(--ease-out); }
.erp-card:hover .ic { background: var(--accent); color: var(--ink); transform: rotate(-12deg); }
.erp-card .tagline { margin-bottom: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.erp-card:hover .tagline { color: var(--accent); }
.erp-card h3 { margin-bottom: 12px; font-size: 24px; letter-spacing: -0.035em; transition: color .5s; }
.erp-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--fg-2); transition: color .5s; }

.erp-ai-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    margin-top: 56px; padding: 30px 36px; border-radius: var(--radius-xl);
    background: var(--ink); color: var(--cream);
}
.erp-ai-cta p { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -0.03em; color: var(--cream); }
.erp-ai-cta .btn-primary { --btn-bg: var(--accent); --btn-fg: var(--ink); --btn-fill: var(--cream); }

/* ── MODULE TABS ── */
.erp-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.erp-tab {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 22px; border-radius: 999px; cursor: pointer;
    background: transparent; border: 1px solid var(--line-2);
    font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
    transition: background-color .4s, color .4s, border-color .4s;
}
.erp-tab:hover { border-color: var(--ink); }
.erp-tab.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.erp-tab .count { padding: 2px 8px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; background: var(--wash); color: var(--fg-2); }
.erp-tab.active .count { background: var(--accent); color: var(--ink); }
.erp-panel { display: none; }
.erp-panel.active { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; animation: erpFade .6s var(--ease-out); }
@keyframes erpFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.erp-mod {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 24px; border-radius: 18px;
    background: var(--paper); border: 1px solid var(--line);
    transition: transform .6s var(--ease-out), border-color .4s;
}
.erp-mod:hover { transform: translateY(-4px); border-color: var(--ink); }
.erp-mod .ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; background: var(--cream-2); color: var(--ink); transition: background-color .4s, color .4s; }
.erp-mod:hover .ic { background: var(--accent); }
.erp-mod h4 { margin: 3px 0 6px; font-size: 18px; letter-spacing: -0.025em; }
.erp-mod p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-2); }

/* ── STEPS ── */
.erp-steps { position: relative; }
.erp-step { position: relative; padding: 0 12px; text-align: left; }
.erp-step .num {
    position: relative; z-index: 2;
    width: 72px; height: 72px; margin: 0 0 26px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif); font-style: italic; font-size: 36px; font-weight: 400;
    background: var(--accent); color: var(--ink);
}
.erp-step h4 { margin-bottom: 10px; font-size: clamp(24px, 2.2vw, 34px); }
.erp-step p { font-size: 15.5px; line-height: 1.7; color: var(--fg-2); }
.erp-steps-line { position: absolute; top: 36px; left: 10%; right: 10%; height: 1px; z-index: 1; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); }

/* ── WHY + DEMO ── */
.erp-why-list { display: grid; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.erp-why-list li {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 0; border-bottom: 1px solid var(--line-2);
    font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.03em; color: var(--ink);
    transition: padding .5s var(--ease-out);
}
.erp-why-list li:hover { padding-left: 10px; }
.erp-why-list li i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; background: var(--accent); color: var(--ink); }

.erp-demo {
    position: relative; overflow: hidden;
    padding: clamp(32px, 4vw, 52px);
    border-radius: var(--radius-xl);
    background: var(--ink); color: var(--fg);
}
.erp-demo::after { content: ''; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,77,26,.55), transparent 65%); filter: blur(10px); }
.erp-demo > * { position: relative; z-index: 1; }
.erp-demo h3 { margin-bottom: 10px; font-size: clamp(28px, 2.6vw, 40px); color: var(--fg); }
.erp-demo p { font-size: 15.5px; color: var(--fg-2); }
.erp-demo .erp-kicker, .erp-demo .erp-kicker i { color: var(--accent); }
.erp-cred { margin: 24px 0 26px; padding: 18px 22px; border-radius: 16px; background: var(--wash); border: 1px solid var(--line); }
.erp-cred-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--fg-3); }
.erp-cred-row code { padding: 3px 10px; border-radius: 6px; font-family: var(--font-mono); color: var(--fg); background: var(--wash); user-select: all; overflow-wrap: anywhere; }
.erp-cred-note { color: var(--fg); }
.erp-demo .btn-primary { --btn-bg: var(--accent); --btn-fg: var(--ink); --btn-fill: var(--cream); }

/* ── PRICING ── */
.erp-price { overflow: hidden; border-radius: 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(17,17,16,.35); }
.erp-price-head { padding: 44px 34px; text-align: center; background: var(--accent); color: var(--ink); }
.erp-price-head .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(17,17,16,.75); }
.erp-price-head .value { margin: 12px 0; font-family: var(--font-display); font-size: clamp(64px, 8vw, 120px); font-weight: 500; line-height: .9; letter-spacing: -0.06em; color: var(--ink); }
.erp-price-head .value small { font-family: var(--font-body); font-size: 16px; font-weight: 500; letter-spacing: 0; color: rgba(17,17,16,.75); }
.erp-price-head .note { font-size: 14.5px; color: var(--ink); }
.erp-price-body { padding: 36px 40px 40px; }
.erp-price-list { columns: 2; column-gap: 30px; margin: 0 0 30px; padding: 0; list-style: none; }
.erp-price-list li { padding: 7px 0; break-inside: avoid; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink); }
.erp-price-list li i { margin-right: 10px; font-size: 11px; color: var(--accent-ink); }
.erp-page .erp-price-note-text { color: var(--fg-2); }

/* ── APP ── */
.erp-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.erp-app-item {
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    padding: 24px 20px; border-radius: 18px;
    background: var(--paper); border: 1px solid var(--line);
    font-size: 15px; font-weight: 500; color: var(--ink);
    transition: background-color .5s, color .5s, transform .6s var(--ease-out);
}
.erp-app-item:hover { background: var(--ink); color: var(--cream); transform: translateY(-4px); }
.erp-app-item i { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; background: var(--cream-2); color: var(--ink); transition: background-color .4s; }
.erp-app-item:hover i { background: var(--accent); }

/* ── FINAL CTA ── */
.erp-final {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(60px, 9vw, 130px) 40px;
    border-radius: 32px;
    background: var(--ink);
    color: var(--fg);
    text-align: center;
}
.erp-final::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: 900px; height: 900px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,77,26,.45), rgba(255,77,26,.1) 60%, transparent); }
.erp-final h2 { margin-bottom: 18px; font-size: clamp(42px, 7vw, 120px); line-height: .9; color: var(--fg); }
.erp-final p { margin-bottom: 34px; font-size: 18px; color: var(--fg-2); }
.erp-final .btn-white { --btn-bg: var(--accent); --btn-fg: var(--ink); --btn-fill: var(--cream); }
.erp-final-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin-top: 30px; font-family: var(--font-mono); font-size: 14px; }
.erp-final-contact a { color: var(--fg); }
.erp-final-contact a:hover { color: var(--accent); }
.erp-final-contact i { margin-right: 8px; color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 1199px) {
    .erp-float.f1 { left: 0; }
    .erp-float.f2, .erp-float.f3 { right: 0; }
}
@media (max-width: 991px) {
    .erp-hero { padding-top: 130px; }
    .erp-float { display: none; }
    .erp-enquiry-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .erp-enquiry-form button { grid-column: 1 / -1; justify-content: center; }
    .erp-panel.active { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .erp-steps-line { display: none; }
}
@media (max-width: 576px) {
    .erp-enquiry-form { grid-template-columns: 1fr; }
    .erp-panel.active { grid-template-columns: 1fr; }
    .erp-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .erp-price-list { columns: 1; }
    .erp-price-body { padding: 28px 22px; }
    .erp-final { padding: 50px 22px; border-radius: 22px; }
    .erp-browser-url { display: none; }
}
