/* ========================= EMAIL API — PAGE-LEVEL OVERRIDES ========================= */
:root {
    --ch-color:     #2563EB;
    --ch-color-dark:#1d4ed8;
    --ch-color-rgb: 37, 99, 235;
    --email-amber:  #F59E0B;
}

.btn-gradient:hover {
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.feature-card:hover {
    border-color: #2563EB !important;
}

.feature-icon {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #1d4ed8 !important;
}

.price-card.featured {
    border: 2px solid #2563EB !important;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12) !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(37, 99, 235, 0.06) !important;
    color: #1d4ed8 !important;
}

/* ========================= HERO — LIVE DELIVERY CONSOLE ========================= */
.email-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0b1220;
}

.email-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 620px 500px at 15% 20%, rgba(37, 99, 235, 0.35) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 90% 80%, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
}

.email-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 90px 32px 60px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.email-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(96, 141, 255, 0.35);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #a9c2ff;
    margin-bottom: 24px;
}

.email-badge-dot {
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    animation: emailPulse 2s infinite;
}

@keyframes emailPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.email-hero-content h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(34px, 4.6vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.16;
    margin-bottom: 20px;
}

.email-hero-content h1 span {
    background: linear-gradient(135deg, #60a5fa, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.email-hero-desc {
    font-size: 16.5px;
    color: #a7b3c9;
    line-height: 1.75;
    max-width: 540px;
    margin-bottom: 32px;
}

.email-hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 46px;
    flex-wrap: wrap;
}

.email-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2563EB, #1d4ed8);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 22px rgba(37, 99, 235, 0.45);
}

.email-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.55);
    color: #fff;
}

.email-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.25);
    text-decoration: none;
    transition: all 0.3s;
}

.email-btn-secondary:hover {
    border-color: #60a5fa;
    color: #a9c2ff;
    background: rgba(37, 99, 235, 0.12);
}

.email-hero-stats {
    display: flex;
    gap: 40px;
}

.email-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.email-stat-num {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.email-stat-label {
    font-size: 12.5px;
    color: #7c8aa5;
}

/* --- Hero visual: live console mockup (pure HTML/CSS, no image/svg) --- */
.email-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-console {
    width: 100%;
    max-width: 420px;
    background: rgba(17, 25, 40, 0.85);
    border: 1px solid rgba(96, 141, 255, 0.25);
    border-radius: 20px;
    padding: 22px;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.email-console-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.email-console-dots {
    display: flex;
    gap: 6px;
}

.email-console-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3a4863;
}

.email-console-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #4ade80;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.email-console-live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: emailPulse 1.4s infinite;
}

.email-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    animation: emailRowIn 0.6s ease forwards;
}

.email-row:nth-child(2) { animation-delay: 0.15s; }
.email-row:nth-child(3) { animation-delay: 0.35s; }
.email-row:nth-child(4) { animation-delay: 0.55s; }
.email-row:nth-child(5) { animation-delay: 0.75s; }

@keyframes emailRowIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.email-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.email-row-icon.blue   { background: rgba(37, 99, 235, 0.22); color: #93b4ff; }
.email-row-icon.amber  { background: rgba(245, 158, 11, 0.22); color: #fcd34d; }
.email-row-icon.green  { background: rgba(74, 222, 128, 0.18); color: #86efac; }

.email-row-body {
    flex: 1;
    min-width: 0;
}

.email-row-subject {
    font-size: 12.5px;
    font-weight: 600;
    color: #e6ebf5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-row-meta {
    font-size: 10.5px;
    color: #6b7994;
    margin-top: 2px;
}

.email-row-status {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.email-row-status.delivered { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.email-row-status.sending   { background: rgba(96, 141, 255, 0.15); color: #93b4ff; }

.email-row-status.sending .email-dot-anim {
    display: inline-block;
    animation: emailPulse 1s infinite;
}

.email-console-bar {
    margin-top: 14px;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.email-console-bar-fill {
    height: 100%;
    width: 78%;
    border-radius: 10px;
    background: linear-gradient(90deg, #2563EB, #F59E0B);
    animation: emailBarGrow 2.4s ease-in-out infinite alternate;
}

@keyframes emailBarGrow {
    from { width: 55%; }
    to   { width: 92%; }
}

.email-console-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 10.5px;
    color: #6b7994;
}

/* ========================= RESPONSIVE — HERO ========================= */
@media (max-width: 991px) {
    .email-hero-inner { grid-template-columns: 1fr; padding: 120px 24px 50px; text-align: center; }
    .email-hero-badge { margin-left: auto; margin-right: auto; }
    .email-hero-desc { margin-left: auto; margin-right: auto; }
    .email-hero-actions { justify-content: center; }
    .email-hero-stats { justify-content: center; }
    .email-console { max-width: 440px; margin: 0 auto; }
}
@media (max-width: 767px) {
    .email-hero-inner { padding: 100px 20px 40px; }
    .email-hero-content h1 { font-size: 30px; }
    .email-hero-desc { font-size: 14.5px; }
    .email-hero-stats { flex-wrap: wrap; gap: 16px; justify-content: center; }
}

/* ========================= BENTO — EMAIL TYPES WE POWER ========================= */
.email-bento-section {
    padding: 90px 0;
    background: #fff;
}

.email-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

.email-bento-card {
    border-radius: 22px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    color: #fff;
}

.email-bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
}

.email-bento-card.large {
    grid-column: span 2;
    grid-row: span 2;
    padding: 40px 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
}

.email-bento-card.small {
    grid-column: span 2;
    min-height: 150px;
}

.email-bento-card.b1,
.email-bento-card.b2,
.email-bento-card.b3,
.email-bento-card.b4,
.email-bento-card.b5 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.email-bento-card.b1 { background-image: linear-gradient(150deg, rgba(29, 78, 216, 0.9), rgba(37, 99, 235, 0.85) 60%, rgba(59, 130, 246, 0.8)), url('../images/gmail-background.webp'); }
.email-bento-card.b2 { background-image: linear-gradient(150deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88)), url('../images/newsletter.webp'); }
.email-bento-card.b3 { background-image: linear-gradient(150deg, rgba(180, 83, 9, 0.9), rgba(245, 158, 11, 0.82)), url('../images/custom-mes.webp'); }
.email-bento-card.b4 { background-image: linear-gradient(150deg, rgba(4, 120, 87, 0.9), rgba(16, 185, 129, 0.82)), url('../images/sent-report.webp'); }
.email-bento-card.b5 { background-image: linear-gradient(150deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88)), url('../images/free-software.webp'); }

.email-bento-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    color: #fff;
}

.email-bento-card.large .email-bento-icon {
    width: 62px;
    height: 62px;
    font-size: 26px;
}

.email-bento-card h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.email-bento-card.large h4 {
    font-size: 1.4rem;
}

.email-bento-card p {
    font-size: 0.87rem;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
}

@media (max-width: 991px) {
    .email-bento-grid { grid-template-columns: repeat(2, 1fr); }
    .email-bento-card.large { grid-column: span 2; min-height: 260px; }
    .email-bento-card.small { grid-column: span 2; }
}
@media (max-width: 575px) {
    .email-bento-grid { grid-template-columns: 1fr; }
    .email-bento-card.large,
    .email-bento-card.small { grid-column: span 1; }
}

/* ========================= DELIVERABILITY METRICS STRIP ========================= */
.email-metrics-strip {
    background: linear-gradient(90deg, #0b1220, #111a2e 55%, #0b1220);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.email-metrics-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 500px 300px at 50% 0%, rgba(37, 99, 235, 0.25), transparent 70%);
}

.email-metrics-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.email-metric-block {
    flex: 1;
    min-width: 180px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.email-metric-block:last-child { border-right: none; }

.email-metric-num {
    font-family: 'Sora', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.email-metric-label {
    font-size: 0.82rem;
    color: #93a0bd;
    margin-top: 8px;
    font-weight: 500;
}

@media (max-width: 767px) {
    .email-metric-block { border-right: none; min-width: 45%; }
    .email-metric-num { font-size: 1.9rem; }
}
