/* Escolar Pro — indigo + amber (school product) */
:root {
    --ep-bg: #070b16;
    --ep-surface: #10182a;
    --ep-indigo: #3b5bdb;
    --ep-amber: #f59e0b;
    --ep-amber-deep: #d97706;
    --ep-ink: #f8fafc;
    --ep-muted: rgba(226, 232, 240, 0.72);
    --ep-border: rgba(255, 255, 255, 0.1);
    --ep-font: 'Manrope', system-ui, sans-serif;
    --ep-display: 'Sora', system-ui, sans-serif;
}

/* Preloader */
#shk-preloader.ep-preloader {
    background:
        radial-gradient(ellipse 60% 45% at 30% 20%, rgba(59, 91, 219, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 80% 70%, rgba(245, 158, 11, 0.14), transparent 50%),
        #070b16;
}

.ep-pre-inner {
    width: min(520px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    font-family: var(--ep-font);
}

.ep-pre-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    opacity: 0;
    animation: ep-fade 0.45s ease 0.05s forwards;
}

.ep-pre-word {
    font-family: var(--ep-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.ep-pre-stage {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 22px;
    border: 1px solid var(--ep-border);
    background: linear-gradient(165deg, #121a2e, #0a1020);
    overflow: hidden;
}

.ep-pre-card {
    position: absolute;
    left: 12%;
    top: 50%;
    transform: translateY(-50%);
    width: 88px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(145deg, #f59e0b, #d97706);
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    animation: ep-card 2.6s ease forwards;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

.ep-pre-nfc {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.ep-pre-reader {
    position: absolute;
    left: 48%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 72px;
    border-radius: 12px;
    border: 1px solid rgba(59, 91, 219, 0.5);
    background: #0f172a;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.45rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255,255,255,0.65);
}

.ep-pre-reader-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(59, 91, 219, 0.55);
    opacity: 0;
    animation: ep-pulse 2.6s ease forwards;
}

.ep-pre-phone {
    position: absolute;
    right: 10%;
    top: 50%;
    width: 110px;
    padding: 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-50%) scale(0.9);
    opacity: 0;
    animation: ep-phone 2.6s ease forwards;
}

.ep-pre-push {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.06em;
}

.ep-pre-phone p {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}

.ep-pre-status {
    position: relative;
    height: 1.35rem;
    width: 100%;
    text-align: center;
}

.ep-pre-status-line {
    position: absolute;
    inset: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ep-muted);
    opacity: 0;
}

.ep-pre-status-line.is-scan { animation: ep-st-scan 2.6s ease forwards; }
.ep-pre-status-line.is-ok { color: #93c5fd; animation: ep-st-ok 2.6s ease forwards; }
.ep-pre-status-line.is-go { color: #fbbf24; animation: ep-st-go 2.6s ease forwards; }

.ep-pre-bar {
    width: min(220px, 70%);
    height: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

.ep-pre-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--ep-indigo), var(--ep-amber));
    animation: ep-progress 2.4s ease-in-out forwards;
}

@keyframes ep-fade { to { opacity: 1; } }
@keyframes ep-card {
    0% { left: 8%; }
    40% { left: 40%; }
    55% { left: 40%; transform: translateY(-50%) scale(0.95); }
    100% { left: 40%; opacity: 0.35; transform: translateY(-50%) scale(0.9); }
}
@keyframes ep-pulse {
    0%, 35% { opacity: 0; transform: scale(0.6); }
    45% { opacity: 1; transform: scale(1); }
    70%, 100% { opacity: 0; transform: scale(1.4); }
}
@keyframes ep-phone {
    0%, 55% { opacity: 0; transform: translateY(-40%) scale(0.9); }
    70%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
@keyframes ep-st-scan { 0%,8%{opacity:0} 14%,38%{opacity:1} 48%,100%{opacity:0} }
@keyframes ep-st-ok { 0%,42%{opacity:0} 50%,65%{opacity:1} 74%,100%{opacity:0} }
@keyframes ep-st-go { 0%,68%{opacity:0} 76%,95%{opacity:1} 100%{opacity:0} }
@keyframes ep-progress { 0%{width:0} 55%{width:70%} 100%{width:100%} }

/* Page */
.ep-hero,
.ep-section,
.ep-final {
    font-family: var(--ep-font);
    color: var(--ep-ink);
}

.ep-hero {
    position: relative;
    min-height: min(88vh, 860px);
    display: flex;
    align-items: center;
    padding: 9.5rem 1.25rem 4.5rem;
    overflow: hidden;
    background: var(--ep-bg);
}

.ep-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 20%, rgba(59, 91, 219, 0.28), transparent 55%),
        radial-gradient(ellipse 50% 45% at 90% 70%, rgba(245, 158, 11, 0.16), transparent 50%),
        linear-gradient(165deg, #0a1224 0%, #070b16 55%, #050814 100%);
    pointer-events: none;
}

.ep-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
}

.ep-brand-hero {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.ep-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-family: var(--ep-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #111;
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.35);
    flex-shrink: 0;
}

.ep-pre-logo { width: 48px; height: 48px; font-size: 1rem; border-radius: 14px; }

.ep-wordmark {
    display: block;
    font-family: var(--ep-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.ep-kicker {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ep-amber);
}

.ep-headline {
    margin: 0;
    font-family: var(--ep-display);
    font-size: clamp(1.7rem, 4vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 16ch;
}

.ep-sub,
.ep-promise {
    margin: 1rem 0 0;
    max-width: 44ch;
    line-height: 1.55;
    color: var(--ep-muted);
    font-size: 1.05rem;
}

.ep-promise { color: #e2e8f0; font-weight: 500; }

.ep-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
    justify-content: center;
}

.ep-hero-copy .ep-hero-ctas { justify-content: flex-start; }

.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease;
    cursor: pointer;
    font-family: inherit;
}

.ep-btn:active { transform: scale(0.98); }

.ep-btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #111;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.ep-btn-ghost {
    background: rgba(255,255,255,0.04);
    border-color: var(--ep-border);
    color: var(--ep-ink);
}

.ep-signal-stack {
    display: grid;
    gap: 0.75rem;
}

.ep-signal-card {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--ep-border);
    background: rgba(16, 24, 42, 0.85);
    opacity: 0.45;
    transform: translateX(8px);
    transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.ep-signal-card.is-active {
    opacity: 1;
    transform: translateX(0);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.ep-signal-card strong,
.ep-signal-tile h3 {
    display: block;
    font-family: var(--ep-display);
    font-size: 0.98rem;
    margin: 0 0 0.2rem;
}

.ep-signal-card span:last-child,
.ep-signal-tile p {
    color: var(--ep-muted);
    font-size: 0.86rem;
    margin: 0;
}

.ep-signal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: rgba(59, 91, 219, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 91, 219, 0.4);
}

.ep-section {
    padding: 4.5rem 1.25rem;
    background: var(--ep-bg);
}

.ep-section-alt {
    background: linear-gradient(180deg, #0a1222, #070b16);
}

.ep-wrap {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.ep-section-head {
    margin-bottom: 1.75rem;
    max-width: 40rem;
}

.ep-section-head h2 {
    margin: 0.55rem 0 0.65rem;
    font-family: var(--ep-display);
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    line-height: 1.15;
}

.ep-section-head p {
    margin: 0;
    color: var(--ep-muted);
    line-height: 1.55;
}

.ep-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ep-amber);
}

.ep-signal-grid,
.ep-dual-grid,
.ep-features-grid,
.ep-roles-grid {
    display: grid;
    gap: 1rem;
}

.ep-signal-grid { grid-template-columns: repeat(3, 1fr); }
.ep-dual-grid { grid-template-columns: 1fr 1fr; }
.ep-features-grid { grid-template-columns: repeat(3, 1fr); }
.ep-roles-grid { grid-template-columns: repeat(3, 1fr); }

.ep-signal-tile,
.ep-dual-card,
.ep-feature-card,
.ep-role-card {
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid var(--ep-border);
    background: rgba(16, 24, 42, 0.7);
}

.ep-dual-card.is-accent {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.1), rgba(16, 24, 42, 0.85));
}

.ep-dual-card h3,
.ep-feature-card h3,
.ep-role-card h3 {
    margin: 0 0 0.45rem;
    font-family: var(--ep-display);
    font-size: 1.08rem;
}

.ep-dual-card p,
.ep-feature-card p,
.ep-role-card p {
    margin: 0;
    color: var(--ep-muted);
    line-height: 1.5;
    font-size: 0.92rem;
}

.ep-dual-card ul {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: var(--ep-muted);
    line-height: 1.7;
}

.ep-feature-n,
.ep-step-n {
    display: inline-block;
    font-family: var(--ep-display);
    font-weight: 800;
    color: var(--ep-amber);
    margin-bottom: 0.45rem;
}

.ep-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.ep-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--ep-border);
    background: rgba(255,255,255,0.03);
}

.ep-steps strong { display: block; margin-bottom: 0.25rem; }
.ep-steps p { margin: 0; color: var(--ep-muted); }

.ep-final {
    padding: 4.5rem 1.25rem;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(245, 158, 11, 0.18), transparent 60%),
        #0a1224;
}

.ep-final h2 {
    font-family: var(--ep-display);
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    margin: 1rem 0 0.5rem;
}

.ep-final p {
    color: var(--ep-muted);
    max-width: 42ch;
    margin: 0 auto 1.5rem;
}

.ep-final .ep-logo-mark { margin: 0 auto; }

/* Home spotlight */
.ep-home-spotlight {
    padding: 2.5rem 1.25rem;
    background:
        radial-gradient(ellipse 50% 80% at 0% 50%, rgba(59, 91, 219, 0.18), transparent 55%),
        radial-gradient(ellipse 40% 70% at 100% 50%, rgba(245, 158, 11, 0.12), transparent 50%),
        #070b16;
}

.ep-home-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
    border-radius: 24px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    background: rgba(16, 24, 42, 0.75);
}

.ep-home-copy h2 {
    margin: 0.4rem 0 0.5rem;
    font-family: var(--ep-display);
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    line-height: 1.2;
}

.ep-home-copy h2 span { color: #fbbf24; }
.ep-home-copy p { margin: 0; color: var(--ep-muted); max-width: 48ch; line-height: 1.5; }

.ep-home-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .ep-hero-inner,
    .ep-signal-grid,
    .ep-dual-grid,
    .ep-features-grid,
    .ep-roles-grid,
    .ep-home-inner {
        grid-template-columns: 1fr;
    }
    .ep-hero-visual { order: -1; }
    .ep-home-ctas { justify-content: flex-start; }
    .ep-headline { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ep-pre-card,
    .ep-pre-reader-pulse,
    .ep-pre-phone,
    .ep-pre-status-line,
    .ep-pre-progress,
    .ep-pre-brand {
        animation: none !important;
    }
    .ep-pre-brand { opacity: 1; }
    .ep-pre-phone { opacity: 1; transform: translateY(-50%); }
    .ep-pre-progress { width: 100%; }
    .ep-signal-card { opacity: 1; transform: none; }
}
