/* ================================================================
   EyeCare Funnel — Master Stylesheet
   ================================================================ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:    #1e7fdf;
    --primary-dk: #1560b5;
    --accent:     #f59e0b;
    --accent-dk:  #d97706;
    --dark:       #0d1b2a;
    --dark-2:     #1a2e45;
    --light:      #f4f8fc;
    --white:      #ffffff;
    --text:       #2c3e50;
    --text-muted: #6b7280;
    --success:    #10b981;
    --danger:     #ef4444;
    --border:     #e2e8f0;
    --radius:     12px;
    --radius-lg:  20px;
    --shadow:     0 4px 24px rgba(0,0,0,0.10);
    --shadow-lg:  0 12px 48px rgba(0,0,0,0.18);
    --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dk); }

img { max-width: 100%; height: auto; display: block; }

/* ── Layout ───────────────────────────────────────────────────── */
.ecf-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.ecf-section { padding: 80px 0; }
.ecf-section.ecf-bg-light { background: var(--light); }
.ecf-section.ecf-bg-dark  { background: var(--dark); }
.ecf-section.ecf-bg-gradient {
    background: linear-gradient(135deg, var(--primary-dk) 0%, var(--dark-2) 100%);
}

.ecf-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.ecf-reverse { direction: rtl; }
.ecf-reverse > * { direction: ltr; }

.ecf-section-header { text-align: center; margin-bottom: 52px; }
.ecf-center { text-align: center; }

/* ── Typography ───────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.ecf-lead-text { font-size: 1.1rem; }

.ecf-section-tag {
    display: inline-block;
    background: rgba(30,127,223,0.12);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.ecf-tag-light { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }

.ecf-text-light, .ecf-text-light h2, .ecf-text-light h4, .ecf-text-light p {
    color: var(--white);
}

/* ── Announcement Bar ─────────────────────────────────────────── */
.ecf-announcement-bar {
    background: var(--accent);
    color: var(--dark);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.ecf-bar-cta {
    display: inline-block;
    margin-left: 16px;
    background: var(--dark);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}
.ecf-bar-cta:hover { background: var(--primary); color: var(--white); }

/* ── Buttons ──────────────────────────────────────────────────── */
.ecf-btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    font-weight: 800;
    font-size: 1rem;
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.3;
}
.ecf-btn-primary:hover {
    background: var(--accent-dk);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245,158,11,0.45);
}
.ecf-btn-lg  { padding: 18px 44px; font-size: 1.1rem; }
.ecf-btn-xl  { padding: 20px 52px; font-size: 1.2rem; }
.ecf-btn-full { width: 100%; display: block; }

.ecf-btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    padding: 12px 28px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}
.ecf-btn-secondary:hover { background: var(--primary); color: var(--white); }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.7); }
    50%       { box-shadow: 0 0 0 14px rgba(245,158,11,0); }
}
.ecf-btn-pulse { animation: pulse 2.2s infinite; }

/* ── Carousel ─────────────────────────────────────────────────── */
.ecf-hero { position: relative; overflow: hidden; }

.ecf-carousel { position: relative; overflow: hidden; }

.ecf-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.ecf-slide {
    min-width: 100%;
    min-height: 75vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

/* ── Image-backed slides (your real banner photos) ─────────────── */
.ecf-slide-img {
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
}

/*
 * Fade overlay that mimics the photo → white fade in your banner images.
 * "right" variant: photo is on the left, text sits on the white right side.
 */
.ecf-slide-overlay-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.ecf-overlay-right {
    background: linear-gradient(
        to right,
        transparent 0%,
        transparent 40%,
        rgba(255,255,255,0.75) 58%,
        rgba(255,255,255,0.97) 72%,
        #ffffff 85%
    );
}
.ecf-overlay-left {
    background: linear-gradient(
        to left,
        transparent 0%,
        transparent 40%,
        rgba(255,255,255,0.75) 58%,
        rgba(255,255,255,0.97) 72%,
        #ffffff 85%
    );
}

/* Text panel — positioned on the fade/white side */
.ecf-slide-content {
    position: relative;
    z-index: 2;
    padding: 40px 60px;
    text-align: center!important;
}
.ecf-content-right {
    margin-left: auto;           /* push to right */
    margin-right: 0;
    max-width: 480px;
    text-align: right;
}
.ecf-content-left {
    margin-left: 0;
    margin-right: auto;
    max-width: 480px;
    text-align: left;
}

/* Text colours — dark on light background (white fade area) */
.ecf-content-right h1,
.ecf-content-left  h1  { color: var(--dark); margin: 20px 0 16px; }
.ecf-content-right p,
.ecf-content-left  p   { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 28px; }
.ecf-content-right .ecf-badge,
.ecf-content-left  .ecf-badge {
    background: var(--primary);
    color: var(--white);
    display: inline-block;
}

/* Slide inner — use flexbox so content panel aligns to the correct side */
.ecf-slide-img {
    display: flex;
    align-items: center;
}
.ecf-slide-img .ecf-content-right { padding-right: 80px; }
.ecf-slide-img .ecf-content-left  { padding-left:  80px; }

/* Legacy gradient slides (kept as fallback if no image loads) */
.ecf-slide-1:not(.ecf-slide-img) {
    background: linear-gradient(135deg, rgba(13,27,42,0.88) 0%, #0d3d6e 100%);
}
.ecf-slide-2:not(.ecf-slide-img) {
    background: linear-gradient(135deg, rgba(21,96,181,0.88) 0%, #0a2a4a 100%);
}
.ecf-slide-3:not(.ecf-slide-img) {
    background: linear-gradient(135deg, rgba(16,185,129,0.75) 0%, #042a1c 100%);
}
.ecf-slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.ecf-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
}

.ecf-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}
.ecf-carousel-btn:hover { background: rgba(255,255,255,0.3); }
.ecf-prev { left: 20px; }
.ecf-next { right: 20px; }

.ecf-carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.ecf-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.ecf-dot.active { background: var(--accent); transform: scale(1.3); }

/* ── Image Frames ─────────────────────────────────────────────── */
.ecf-col-image { display: flex; justify-content: center; }

.ecf-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
    width: 100%;
    max-width: 460px;
}

.ecf-image-frame img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.ecf-image-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
}
.ecf-badge-red   { background: var(--danger); color: var(--white); }
.ecf-badge-green { background: var(--success); color: var(--white); }

/* Placeholder SVG illustrations */
.ecf-image-strain img,
.ecf-image-relief img,
.ecf-image-science img {
    background: linear-gradient(135deg, #e8f4fd 0%, #c3ddf8 100%);
    min-height: 300px;
    object-fit: cover;
}

/* ── Check / X Lists ──────────────────────────────────────────── */
.ecf-check-list {
    list-style: none;
    margin: 24px 0;
}
.ecf-check-list li {
    padding: 8px 0 8px 36px;
    position: relative;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
}
.ecf-check-list li:last-child { border-bottom: none; }
.ecf-check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 900;
    font-size: 1.1rem;
}
.ecf-x-list li::before {
    content: '✗';
    color: var(--danger);
}

/* ── Product Grid ─────────────────────────────────────────────── */
.ecf-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.ecf-product-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ecf-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.ecf-card-featured {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #fffbf0 0%, #fff 100%);
}
.ecf-product-badge-top {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--dark);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 50px;
}
.ecf-product-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.ecf-product-card h3 { margin-bottom: 10px; }
.ecf-product-card p  { color: var(--text-muted); font-size: 0.92rem; }
.ecf-product-value {
    display: inline-block;
    margin-top: 14px;
    background: var(--light);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
}

.ecf-total-value {
    text-align: center;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.ecf-total-value p { font-size: 1.2rem; margin-bottom: 8px; }
.ecf-total-value s { opacity: 0.6; }
.ecf-today-price { font-size: 2rem !important; }
.ecf-today-price strong { color: var(--accent); font-size: 2.4rem; }

/* ── Why It Works ─────────────────────────────────────────────── */
.ecf-why-items { margin-top: 24px; }
.ecf-why-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    align-items: flex-start;
}
.ecf-why-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.ecf-why-item h4 { margin-bottom: 6px; }
.ecf-why-item p  { font-size: 0.92rem; opacity: 0.85; }

/* ── Personas ─────────────────────────────────────────────────── */
.ecf-personas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.ecf-persona {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.ecf-persona:hover { transform: translateY(-4px); }
.ecf-persona-img {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
}
.ecf-persona h4 { margin-bottom: 10px; }
.ecf-persona p  { font-size: 0.88rem; color: var(--text-muted); }

/* ── Testimonials ─────────────────────────────────────────────── */
.ecf-testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 24px;
    align-items: start;
}
.ecf-testimonial {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    position: relative;
}
.ecf-testimonial-featured {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #f0f8ff 0%, #fff 100%);
}
.ecf-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 14px; letter-spacing: 2px; }
.ecf-testimonial p { font-size: 0.95rem; font-style: italic; margin-bottom: 20px; }
.ecf-testimonial-author { display: flex; align-items: center; gap: 14px; }
.ecf-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ecf-avatar-1 { background: #fde68a; }
.ecf-avatar-1::after { content: '👩'; }
.ecf-avatar-2 { background: #bfdbfe; }
.ecf-avatar-2::after { content: '👨‍💻'; }
.ecf-avatar-3 { background: #d1fae5; }
.ecf-avatar-3::after { content: '👩‍🦳'; }
.ecf-testimonial-author strong { display: block; font-size: 0.95rem; }
.ecf-testimonial-author span   { font-size: 0.8rem; color: var(--text-muted); }

/* ── Offer Box ────────────────────────────────────────────────── */
.ecf-offer-section { background: var(--light); }

.ecf-offer-box {
    background: var(--white);
    border: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(245,158,11,0.2);
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

.ecf-offer-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--danger);
    color: var(--white);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 24px;
    border-radius: 50px;
}
.ecf-offer-box h2 { margin-bottom: 10px; }
.ecf-offer-sub { color: var(--text-muted); margin-bottom: 32px; }

.ecf-price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.ecf-price-old { font-size: 1.5rem; color: var(--text-muted); }
.ecf-price-new {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.ecf-price-save {
    background: var(--success);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 50px;
}

/* Countdown */
.ecf-countdown-wrap { margin-bottom: 32px; }
.ecf-countdown-label { font-size: 0.9rem; font-weight: 600; color: var(--danger); margin-bottom: 12px; }
.ecf-countdown {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: var(--dark);
    padding: 16px 28px;
    border-radius: var(--radius);
}
.ecf-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}
.ecf-countdown-unit span {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.ecf-countdown-unit small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}
.ecf-countdown-sep { font-size: 1.8rem; font-weight: 900; color: var(--accent); }

.ecf-offer-includes {
    margin: 20px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Trust badges */
.ecf-trust-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 28px 0;
    flex-wrap: wrap;
}
.ecf-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}
.ecf-trust-icon { font-size: 1.6rem; }

/* Payment logos */
.ecf-payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.ecf-pay-logo {
    display: inline-block;
    padding: 6px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}
.ecf-pay-stripe  { color: #635bff; border-color: #635bff33; background: #f5f4ff; }
.ecf-pay-paypal  { color: #003087; border-color: #00308733; background: #f0f4ff; }
.ecf-pay-visa    { color: #1a1f71; border-color: #1a1f7133; }
.ecf-pay-mc      { color: #eb001b; border-color: #eb001b33; }
.ecf-pay-amex    { color: #007bc1; border-color: #007bc133; background: #f0f8ff; }

/* ── Guarantee ────────────────────────────────────────────────── */
.ecf-guarantee-inner {
    display: flex;
    gap: 40px;
    align-items: center;
}
.ecf-guarantee-badge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--success);
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(16,185,129,0.4);
}
.ecf-guarantee-badge small { font-size: 0.6rem; letter-spacing: 0.15em; }
.ecf-guarantee-text h3 { margin-bottom: 12px; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.ecf-faq-inner { max-width: 740px; margin: 0 auto; }
.ecf-faq-list { margin-top: 8px; }

.ecf-faq-item {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.ecf-faq-item[open] { border-color: var(--primary); }

.ecf-faq-item summary {
    font-weight: 700;
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.ecf-faq-item summary::-webkit-details-marker { display: none; }
.ecf-faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.2s;
}
.ecf-faq-item[open] summary::after { transform: rotate(45deg); }

.ecf-faq-item p { padding: 0 24px 20px; color: var(--text-muted); }

/* ── Final CTA ────────────────────────────────────────────────── */
.ecf-final-cta { padding: 100px 0; }
.ecf-final-cta h2 { color: var(--white); margin-bottom: 16px; }
.ecf-final-cta p  { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 32px; }
.ecf-small-text   { font-size: 0.85rem; opacity: 0.7; margin-top: 20px !important; }

/* ── Footer ───────────────────────────────────────────────────── */
.ecf-footer { background: var(--dark-2); padding: 40px 0; }
.ecf-footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 20px; }
.ecf-footer-links a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.ecf-footer-links a:hover { color: var(--white); }
.ecf-disclaimer { max-width: 820px; margin: 0 auto; text-align: center; }
.ecf-disclaimer p { color: rgba(255,255,255,0.4); font-size: 0.78rem; line-height: 1.7; }
.ecf-disclaimer-small { font-size: 0.76rem; color: var(--text-muted); margin-top: 8px; }

/* ================================================================
   CHECKOUT PAGE
   ================================================================ */
.ecf-checkout-body { background: var(--light); }

.ecf-checkout-header {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.ecf-checkout-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ecf-logo { font-weight: 800; font-size: 1.1rem; color: var(--dark); }
.ecf-secure-badge { font-size: 0.85rem; color: var(--success); font-weight: 700; }

.ecf-checkout-main { padding: 48px 0; }

.ecf-checkout-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}

.ecf-checkout-form-col h1 { font-size: 1.8rem; margin-bottom: 8px; }
.ecf-checkout-sub { color: var(--text-muted); margin-bottom: 32px; }

/* Form */
.ecf-form-group { margin-bottom: 20px; }
.ecf-form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.ecf-form-group input[type="email"],
.ecf-form-group input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font);
    transition: border-color 0.2s;
}
.ecf-form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,127,223,0.15);
}
.ecf-form-group small { color: var(--text-muted); font-size: 0.8rem; }

.ecf-stripe-element {
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color 0.2s;
}
.ecf-stripe-element.StripeElement--focus { border-color: var(--primary); }
.ecf-field-error { color: var(--danger); font-size: 0.85rem; margin-top: 6px; }

/* Tabs */
.ecf-payment-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}
.ecf-tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.ecf-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.ecf-tab-content { display: none; padding-top: 8px; }
.ecf-tab-active  { display: block; }

/* Loading spinner */
.ecf-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.3);
    border-top-color: var(--dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Error/Success messages */
.ecf-error-msg {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    color: var(--danger);
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 600;
}
.ecf-success-msg {
    background: #f0fdf4;
    border: 2px solid #86efac;
    color: var(--success);
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Trust mini */
.ecf-checkout-trust {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.ecf-trust-mini {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Order Summary */
.ecf-order-summary {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: sticky;
    top: 100px;
}
.ecf-order-summary h3 { margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 14px; }

.ecf-summary-items { margin-bottom: 16px; }
.ecf-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.ecf-summary-item:last-child { border-bottom: none; }
.ecf-item-val { color: var(--success); font-weight: 700; }

.ecf-summary-divider { height: 2px; background: var(--border); margin: 16px 0; }

.ecf-summary-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.ecf-summary-discount { color: var(--success); font-weight: 700; }
.ecf-summary-final {
    font-weight: 800;
    font-size: 1.1rem;
    border-top: 2px solid var(--dark);
    padding-top: 12px;
    margin-top: 8px;
}
.ecf-price-big { font-size: 1.6rem; color: var(--primary); }

.ecf-summary-guarantee {
    margin-top: 20px;
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 14px;
}
.ecf-summary-guarantee p { font-size: 0.82rem; color: #166534; }
.ecf-summary-guarantee p:first-child { font-weight: 700; margin-bottom: 4px; }

.ecf-checkout-footer {
    background: var(--dark-2);
    padding: 28px 0;
    margin-top: 48px;
}

/* ================================================================
   ACCESS PAGE
   ================================================================ */
.ecf-access-body { background: var(--light); min-height: 100vh; }

.ecf-access-header {
    background: var(--dark);
    padding: 16px 0;
}
.ecf-access-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ecf-access-header .ecf-logo { color: var(--white); text-decoration: none; }
.ecf-access-header .ecf-logo:hover { color: rgba(255,255,255,0.8); }
.ecf-access-badge { font-size: 0.85rem; font-weight: 700; padding: 4px 14px; border-radius: 50px; }
.ecf-badge-green { background: var(--success); color: var(--white); }

.ecf-access-main { padding: 48px 0; }

.ecf-access-welcome {
    text-align: center;
    background: var(--white);
    border: 3px solid var(--success);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(16,185,129,0.15);
}
.ecf-welcome-icon { font-size: 3rem; margin-bottom: 16px; }
.ecf-access-welcome h1 { margin-bottom: 12px; }
.ecf-access-welcome p  { color: var(--text-muted); }

.ecf-access-denied {
    text-align: center;
    background: var(--white);
    border: 3px solid var(--danger);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    max-width: 560px;
    margin: 80px auto;
}
.ecf-denied-icon { font-size: 4rem; margin-bottom: 20px; }
.ecf-access-denied h2 { margin-bottom: 16px; }
.ecf-access-denied p  { color: var(--text-muted); margin-bottom: 24px; }

.ecf-access-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}
.ecf-access-section h2 { margin-bottom: 24px; font-size: 1.4rem; }

.ecf-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.ecf-download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.2s;
}
.ecf-download-card:hover:not(.ecf-unavailable) { border-color: var(--primary); }
.ecf-unavailable { opacity: 0.6; }
.ecf-download-icon { font-size: 2rem; flex-shrink: 0; }
.ecf-download-info h4 { margin-bottom: 8px; font-size: 0.9rem; }
.ecf-btn-download {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 16px;
    border-radius: 50px;
    transition: background 0.2s;
}
.ecf-btn-download:hover { background: var(--primary-dk); color: var(--white); }
.ecf-coming-soon { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

.ecf-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.ecf-video-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.ecf-video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--dark);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
}
.ecf-video-duration { color: var(--accent); font-weight: 700; }

.ecf-video-embed-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.ecf-video-embed-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}
.ecf-video-placeholder {
    background: #f8fafc;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}
.ecf-video-placeholder p { color: var(--text-muted); font-size: 0.9rem; }

.ecf-save-link-notice {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 28px;
}
.ecf-save-link-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.ecf-save-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.ecf-save-link-inner > div { flex: 1; }
.ecf-save-link-inner strong { color: #92400e; font-size: 0.95rem; display: block; margin-bottom: 4px; }
.ecf-save-link-inner p { color: #a16207; font-size: 0.85rem; margin: 0; line-height: 1.5; }
.ecf-copy-btn {
    background: #f59e0b;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
    transition: background 0.2s;
}
.ecf-copy-btn:hover { background: #d97706; }
.ecf-copy-btn.copied { background: var(--success); }
@media (max-width: 560px) {
    .ecf-save-link-inner { flex-wrap: wrap; }
    .ecf-copy-btn { width: 100%; text-align: center; }
}

.ecf-access-footer-note {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-top: 12px;
}
.ecf-access-footer-note p { font-size: 0.85rem; color: var(--text-muted); }

/* ================================================================
   STATS BAR
   ================================================================ */
.ecf-stats-bar {
    background: var(--primary);
    padding: 20px 0;
}
.ecf-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.ecf-stat {
    text-align: center;
    flex: 1;
    min-width: 120px;
}
.ecf-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}
.ecf-stat span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.3;
    display: block;
    margin-top: 4px;
}

/* ================================================================
   HOW IT WORKS — STEPS
   ================================================================ */
.ecf-steps-grid {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}
.ecf-step {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 24px;
    box-shadow: var(--shadow);
    position: relative;
}
.ecf-step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}
.ecf-step-icon { font-size: 2.5rem; margin-bottom: 16px; }
.ecf-step h3 { margin-bottom: 12px; font-size: 1.1rem; }
.ecf-step p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.ecf-step-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}
@media (max-width: 760px) {
    .ecf-step-arrow { display: none; }
    .ecf-steps-grid { gap: 40px; }
}

/* ================================================================
   VIDEO HIGHLIGHT
   ================================================================ */
.ecf-video-highlight {
    margin-top: 64px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.ecf-video-highlight-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
}
.ecf-video-highlight-text .ecf-section-tag { background: rgba(255,255,255,0.2); color: var(--white); }
.ecf-video-highlight-text h3 { color: var(--white); font-size: 1.6rem; margin: 12px 0; }
.ecf-video-highlight-text p  { color: rgba(255,255,255,0.85); }
.ecf-video-highlight-text .ecf-check-list li { color: rgba(255,255,255,0.9); }
.ecf-video-highlight-text .ecf-check-list li::before { color: #a7f3d0; }
@media (max-width: 760px) {
    .ecf-video-highlight-inner { grid-template-columns: 1fr; padding: 32px 24px; }
    .ecf-video-highlight-img { display: none; }
}

/* ================================================================
   OFFER NOTE
   ================================================================ */
.ecf-offer-note {
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: #fff8e1;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 10px 16px;
}

/* ================================================================
   FOOTER BRAND
   ================================================================ */
.ecf-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1rem;
}
.ecf-footer-brand strong { color: var(--white); }
.ecf-footer-brand span  { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* ================================================================
   ADMIN
   ================================================================ */
.ecf-admin h2 { margin: 28px 0 12px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
    .ecf-two-col { grid-template-columns: 1fr; gap: 40px; }
    .ecf-reverse { direction: ltr; }
    .ecf-product-grid { grid-template-columns: repeat(2, 1fr); }
    .ecf-testimonial-grid { grid-template-columns: 1fr; }
    .ecf-personas { grid-template-columns: repeat(2, 1fr); }
    .ecf-checkout-grid { grid-template-columns: 1fr; }
    .ecf-order-summary { position: static; }
    .ecf-slide-content { padding: 32px 32px; }
}

@media (max-width: 960px) {
    /* On tablet, shift text panel inward and reduce fade start */
    .ecf-overlay-right {
        background: linear-gradient(
            to right,
            transparent 0%,
            rgba(255,255,255,0.6) 35%,
            rgba(255,255,255,0.95) 55%,
            #ffffff 70%
        );
    }
    .ecf-content-right { max-width: 380px; padding-right: 40px; }
    .ecf-content-left  { max-width: 380px; padding-left:  40px; }
}

@media (max-width: 640px) {
    .ecf-section { padding: 56px 0; }
    .ecf-slide { min-height: 100svh; }
    .ecf-slide-content { padding: 24px 20px; }

    /* On mobile: full overlay, centre the text */
    .ecf-overlay-right,
    .ecf-overlay-left {
        background: rgba(255,255,255,0.82);
    }
    .ecf-content-right,
    .ecf-content-left {
        max-width: 100%;
        text-align: center;
        padding: 24px 20px;
        margin: 0 auto;
    }
    .ecf-slide-img .ecf-content-right,
    .ecf-slide-img .ecf-content-left { padding: 24px 20px; }
    .ecf-product-grid { grid-template-columns: 1fr; }
    .ecf-personas { grid-template-columns: 1fr 1fr; }
    .ecf-offer-box { padding: 40px 24px; }
    .ecf-price-new { font-size: 3rem; }
    .ecf-countdown { padding: 12px 16px; }
    .ecf-countdown-unit { min-width: 50px; }
    .ecf-countdown-unit span { font-size: 1.8rem; }
    .ecf-guarantee-inner { flex-direction: column; text-align: center; }
    .ecf-trust-row { gap: 16px; }
    .ecf-carousel-btn { width: 40px; height: 40px; font-size: 1rem; }
    .ecf-announcement-bar { font-size: 0.78rem; }
}
