/* ============================================================
   PAGE     : ERPNext — Managed Cloud ERP
   Namespace: frag-erp / erp-*
   File     : /static/css/shell/mani-erpnext-ltr.css
   Buttons & animations -> mani-globals-ltr.css (mni-btn, mni-ri)
   ============================================================ */

.frag-erp {
    --ink:    #111827;
    --ink2:   #374151;
    --muted:  #6B7280;
    --light:  #9CA3AF;
    --border: #E5E7EB;
    --bg:     #F9FAFB;
    --grn-l:  #ECFDF5;
    --sans:   'Plus Jakarta Sans', system-ui, sans-serif;
    --tr:     .22s ease;

    font-family: var(--sans);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.frag-erp a { text-decoration: none; color: inherit; }

/* ── SEO block (hidden visually, crawlable) ── */
.erp-seo-block {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* ── Shared label ── */
.erp-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

/* ── Section title ── */
.erp-title {
    font-size: 35px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.6px;
    line-height: 1.2;
    margin: 0 0 12px;
}

.erp-sub {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto;
}

/* ============================================================
   HERO
   ============================================================ */
.erp-hero {
    padding: 88px 24px 72px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.erp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
}

.erp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.erp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--blue-l);
    border: 1px solid #BFDBFE;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 28px;
}

.erp-hero-h2 {
    font-size: 40px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -2px;
    line-height: 1.1;
    margin: 0 0 20px;
}

.erp-hero-h2 em {
    font-style: normal;
    color: var(--blue);
}

.erp-hero-lead {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 36px;
}

.erp-hero-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.erp-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--light);
}

.erp-ck { color: var(--green); margin-right: 5px; }

/* ── Stats ── */
.erp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
}

.erp-stat {
    padding: 28px 16px;
    text-align: center;
    border-right: 1px solid var(--border);
    transition: var(--tr);
}

.erp-stat:last-child { border-right: none; }
.erp-stat:hover { background: var(--bg); }

.erp-stat-val {
    font-size: 28px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -1px;
    line-height: 1;
}

.erp-stat-lbl {
    font-size: 13px;
    font-weight: 700;
    color: var(--light);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ============================================================
   VIDEO — inline player (no modal)
   ============================================================ */
.erp-video-wrap {
    padding: 72px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.erp-video-inner { max-width: 800px; margin: 0 auto; }

/* Container shared by thumbnail and iframe */
.erp-inline-player {
    margin-top: 36px;
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    aspect-ratio: 16 / 9;
    position: relative;
    background: var(--ink);
}

/* Thumbnail layer */
.erp-thumb-wrap {
    position: absolute;
    inset: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.erp-thumb-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark scrim over thumbnail */
.erp-thumb-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: #fff;
    background: rgba(0,0,0,.32);
    inset: 0;
    position: absolute;
    justify-content: center;
    transition: background var(--tr);
}

.erp-thumb-wrap:hover .erp-thumb-overlay {
    background: rgba(0,0,0,.48);
}

.erp-play-circle {
    width: 64px;
    height: 64px;
    background: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    animation: erp-pulse-ring 2.5s ease-in-out infinite;
    transition: transform var(--tr);
}

.erp-thumb-wrap:hover .erp-play-circle {
    transform: scale(1.08);
}

@keyframes erp-pulse-ring {
    0%,100% { box-shadow: 0 0 0 0   rgba(37,99,235,.35); }
    50%      { box-shadow: 0 0 0 14px rgba(37,99,235,0);  }
}

.erp-play-label {
    font-size: 13px;
    font-weight: 700;
    opacity: .8;
    letter-spacing: .04em;
}

/* Iframe (hidden until play) */
.erp-inline-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================================
   WHAT IS ERPNEXT
   ============================================================ */
.erp-what-wrap {
    padding: 72px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.erp-what-inner { max-width: 1100px; margin: 0 auto; text-align: center; }

.erp-what-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    text-align: left;
}

.erp-what-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: border-color var(--tr), box-shadow var(--tr);
}

.erp-what-card:hover {
    border-color: #BFDBFE;
    box-shadow: 0 4px 16px rgba(37,99,235,.08);
}

.erp-what-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--blue-l);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 20px;
    margin-bottom: 16px;
}

.erp-what-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 8px;
}

.erp-what-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink2);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   TAX COMPLIANCE
   ============================================================ */
.erp-tax-wrap {
    padding: 72px 24px;
    border-bottom: 1px solid var(--border);
}

.erp-tax-inner { max-width: 1100px; margin: 0 auto; text-align: center; }

.erp-tax-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    text-align: left;
}

.erp-tax-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: border-color var(--tr), box-shadow var(--tr);
}

.erp-tax-card:hover {
    border-color: #BFDBFE;
    box-shadow: 0 4px 16px rgba(37,99,235,.08);
}

.erp-tax-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--blue-l);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 22px;
    margin-bottom: 18px;
}

.erp-tax-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.erp-tax-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 10px;
    line-height: 1.35;
}

.erp-tax-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink2);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   MODULES
   ============================================================ */
.erp-modules-wrap {
    padding: 72px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.erp-mods-head { text-align: center; margin-bottom: 48px; }

.erp-mod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.erp-mod-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: border-color var(--tr), box-shadow var(--tr);
}

.erp-mod-card:hover {
    border-color: #BFDBFE;
    box-shadow: 0 4px 16px rgba(37,99,235,.08);
}

.erp-mod-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--blue-l);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 18px;
    margin-bottom: 14px;
}

.erp-mod-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
}

.erp-mod-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Scroll reveal ── */
.erp-what-card, .erp-mod-card, .erp-tax-card,
.erp-why-card, .erp-stat {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .45s ease, transform .45s ease;
}

.erp-what-card.erp-vis, .erp-mod-card.erp-vis, .erp-tax-card.erp-vis,
.erp-why-card.erp-vis, .erp-stat.erp-vis {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   WHY MANAGELY
   ============================================================ */
.erp-why-wrap {
    padding: 72px 24px;
    border-bottom: 1px solid var(--border);
}

.erp-why-inner { max-width: 1100px; margin: 0 auto; text-align: center; }

.erp-why-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 28px;
    margin-top: 48px;
    text-align: left;
    align-items: start;
}

.erp-why-panel {
    background: var(--ink);
    border-radius: 18px;
    padding: 32px;
    color: #fff;
}

.erp-why-panel h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.erp-why-panel p {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    line-height: 1.75;
    margin: 0 0 24px;
}

.erp-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.erp-kpi {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.erp-kpi strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.erp-kpi span {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.5);
}

.erp-why-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.erp-why-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    transition: border-color var(--tr), box-shadow var(--tr);
}

.erp-why-card:hover {
    border-color: #BFDBFE;
    box-shadow: 0 4px 16px rgba(37,99,235,.08);
}

.erp-why-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--blue-l);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 18px;
    margin-bottom: 14px;
}

.erp-why-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
}

.erp-why-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.erp-cta-wrap {
    padding: 80px 24px;
    text-align: center;
}

.erp-cta-box { max-width: 600px; margin: 0 auto; }

.erp-cta-box h2 {
    font-size: 35px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -1px;
    line-height: 1.15;
    margin: 0 0 14px;
}

.erp-cta-box p {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 32px;
}

.erp-cta-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   WHITE LABEL
   ============================================================ */
.erp-wl-wrap {
    padding: 72px 24px;
    background: var(--blue-l);
    border-top: 1px solid #BFDBFE;
    text-align: center;
}

.erp-wl-inner { max-width: 640px; margin: 0 auto; }

.erp-wl-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}


/* ============================================================
   CUSTOM APPS / GITHUB
   ============================================================ */
.erp-dev-wrap {
    padding: 72px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--white); 
}

.erp-dev-inner { max-width: 1100px; margin: 0 auto; text-align: center; }

.erp-dev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    margin-bottom: 36px;
    text-align: left;
}

.erp-dev-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color var(--tr), box-shadow var(--tr);
}

.erp-dev-card:hover {
    border-color: #BFDBFE;
    box-shadow: 0 8px 24px rgba(37,99,235,.06);
}

.erp-dev-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--blue-l);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    margin: 0 auto 18px;
}

.erp-dev-icon svg {
    width: 26px;
    height: 26px;
}

.erp-dev-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 10px;
}

.erp-dev-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink2);
    line-height: 1.65;
    margin: 0;
}

.erp-dev-btns {
    display: flex;
    justify-content: center;
}

@media (max-width: 900px) {
    .erp-dev-grid { 
        grid-template-columns: 1fr; 
        max-width: 450px; 
        margin-left: auto; 
        margin-right: auto; 
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .erp-mod-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .erp-stats                 { grid-template-columns: repeat(2, 1fr); }
    .erp-stat:nth-child(2)     { border-right: none; }
    .erp-stat:nth-child(3)     { border-top: 1px solid var(--border); }
    .erp-what-grid             { grid-template-columns: 1fr; }
    .erp-tax-grid              { grid-template-columns: 1fr; }
    .erp-why-grid              { grid-template-columns: 1fr; }
    .erp-why-cards             { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .erp-hero                  { padding: 64px 20px 56px; }
    .erp-hero-h2               { font-size: 32px; letter-spacing: -1px; }
    .erp-hero-btns             { flex-direction: column; align-items: center; }
    .erp-mod-grid              { grid-template-columns: 1fr 1fr; }
    .erp-why-cards             { grid-template-columns: 1fr; }
    .erp-title                 { font-size: 28px; }
    .erp-play-circle           { width: 52px; height: 52px; font-size: 18px; }

    .erp-what-wrap,
    .erp-tax-wrap,
    .erp-modules-wrap,
    .erp-why-wrap,
    .erp-video-wrap,
    .erp-cta-wrap,
    .erp-wl-wrap               { padding: 56px 20px; }
}