/* ═══════════════════════════════════════════
   AntiMoisi Funnel — Mobile-First Stylesheet
   ═══════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
    --c1: #0d9488;
    --c1-dark: #0f766e;
    --c1-light: #ccfbf1;
    --c2: #2563eb;
    --c2-light: #dbeafe;
    --red: #dc2626;
    --orange: #f59e0b;
    --green: #16a34a;
    --ink: #111827;
    --muted: #6b7280;
    --light: #9ca3af;
    --surface: #ffffff;
    --surface2: #f9fafb;
    --surface3: #f3f4f6;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.1);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-w: 1100px;
    --max-w-sm: 600px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c1); text-decoration: none; }
a:hover { text-decoration: underline; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ─── Layout ─── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.wrap-sm { max-width: var(--max-w-sm); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-alt { background: var(--surface2); }
.text-center { text-align: center; }

/* ─── Typography ─── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
.subtitle { font-size: 1.1rem; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-green { background: var(--c1-light); color: var(--c1-dark); }
.badge-blue { background: var(--c2-light); color: var(--c2); }
.badge-orange { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: var(--red); }

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px 32px; border: none; border-radius: var(--radius-sm); cursor: pointer;
    font-weight: 700; font-size: 1.1rem; text-align: center; transition: all .2s;
    text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--c1); color: #fff; }
.btn-primary:hover { background: var(--c1-dark); }
.btn-lg { padding: 18px 40px; font-size: 1.2rem; border-radius: var(--radius); }
.btn-block { display: flex; width: 100%; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--muted); }
.btn-outline:hover { border-color: var(--muted); color: var(--ink); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #15803d; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b91c1c; }
.btn-sm { padding: 8px 16px; font-size: .875rem; }
.btn-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13,148,136,.4); }
    50% { box-shadow: 0 0 0 12px rgba(13,148,136,0); }
}

/* ─── Cards ─── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card-shadow { box-shadow: var(--shadow); border: none; }

/* ─── Forms ─── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-input {
    width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface2); font-size: 1rem; transition: border-color .2s;
}
.form-input:focus { outline: none; border-color: var(--c1); box-shadow: 0 0 0 3px rgba(13,148,136,.1); }
.form-input.error { border-color: var(--red); }
.form-error { color: var(--red); font-size: .85rem; margin-top: 4px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c1); flex-shrink: 0; }
.form-check label { font-weight: 400; font-size: .9rem; color: var(--muted); cursor: pointer; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b7280'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ─── Hero Section ─── */
.hero {
    background: linear-gradient(135deg, #042f2e 0%, #134e4a 100%);
    color: #fff; padding: 60px 0 50px; text-align: center;
}
.hero h1 { font-size: 2rem; font-weight: 800; max-width: 600px; margin: 0 auto; }
.hero .subtitle { color: rgba(255,255,255,.8); max-width: 500px; margin: 16px auto 0; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); padding: 6px 16px; border-radius: 20px; font-size: .85rem; margin-bottom: 16px; }
.hero-price { font-size: 2.5rem; font-weight: 800; margin: 24px 0 8px; }
.hero-price-sub { font-size: .95rem; color: rgba(255,255,255,.7); }
.hero .btn { margin-top: 24px; }

/* ─── Before/After ─── */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0; }
.ba-card {
    border-radius: var(--radius); overflow: hidden; text-align: center;
}
.ba-card .ba-img {
    height: 180px; display: flex; align-items: center; justify-content: center;
    font-size: .9rem; color: var(--muted);
}
.ba-card.before .ba-img { background: #fef2f2; }
.ba-card.after .ba-img { background: #f0fdf4; }
.ba-label {
    padding: 10px; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px;
}
.ba-card.before .ba-label { background: #fecaca; color: #991b1b; }
.ba-card.after .ba-label { background: #bbf7d0; color: #166534; }

/* ─── Benefits ─── */
.benefits-grid { display: grid; gap: 16px; margin-top: 30px; }
.benefit-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 20px; background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border);
}
.benefit-icon {
    flex-shrink: 0; width: 44px; height: 44px; background: var(--c1-light);
    color: var(--c1); border-radius: 10px; display: flex; align-items: center;
    justify-content: center; font-size: 1.3rem;
}
.benefit-item h3 { font-size: 1rem; margin-bottom: 4px; }
.benefit-item p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ─── How It Works ─── */
.steps { display: grid; gap: 24px; margin-top: 30px; counter-reset: step; }
.step {
    display: flex; gap: 16px; align-items: flex-start;
}
.step-num {
    flex-shrink: 0; width: 40px; height: 40px; background: var(--c1);
    color: #fff; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 1.1rem;
}
.step h3 { font-size: 1rem; margin-bottom: 4px; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ─── Use Cases ─── */
.use-cases { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.use-case-tag {
    padding: 10px 18px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 30px; font-size: .9rem; font-weight: 500; white-space: nowrap;
}

/* ─── Reviews ─── */
.reviews-grid { display: grid; gap: 16px; margin-top: 24px; }
.review-card { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.review-stars { color: var(--orange); font-size: 1rem; margin-bottom: 8px; }
.review-text { font-size: .95rem; color: var(--ink); line-height: 1.5; font-style: italic; margin-bottom: 10px; }
.review-author { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ─── FAQ ─── */
.faq-list { margin-top: 24px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    padding: 18px 0; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; font-weight: 600; font-size: 1rem; user-select: none;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 0 18px; font-size: .95rem; color: var(--muted); line-height: 1.6; }
.faq-item.open .faq-a { max-height: 500px; }

/* ─── Trust Bar ─── */
.trust-bar {
    display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
    padding: 20px 0; margin-top: 20px;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.trust-icon { font-size: 1.2rem; }

/* ─── Sticky CTA (Mobile) ─── */
.sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    padding: 12px 20px; background: var(--surface);
    box-shadow: 0 -4px 20px rgba(0,0,0,.1); display: flex; gap: 12px; align-items: center;
}
.sticky-cta .sticky-price { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.sticky-cta .btn { flex: 1; padding: 14px; font-size: 1rem; }

/* ─── Checkout ─── */
.checkout-layout { display: grid; gap: 30px; padding: 40px 0; }
.order-summary {
    background: var(--surface2); border-radius: var(--radius); padding: 24px;
    border: 1px solid var(--border); position: sticky; top: 20px;
}
.order-summary h3 { margin-bottom: 16px; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: .95rem; }
.summary-line.total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.1rem; }
.summary-product { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.summary-product-img { width: 60px; height: 60px; background: var(--surface3); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: .7rem; color: var(--muted); }
.qty-control { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn { width: 36px; height: 36px; border: none; background: var(--surface2); cursor: pointer; font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--surface3); }
.qty-val { width: 40px; text-align: center; font-weight: 600; border: none; background: transparent; font-size: 1rem; }
.secure-badge { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px; background: #f0fdf4; border-radius: var(--radius-sm); font-size: .85rem; color: #166534; }

/* ─── Upsell ─── */
.upsell-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--surface2); }
.upsell-card { max-width: 560px; width: 100%; background: var(--surface); border-radius: var(--radius); padding: 40px 30px; box-shadow: var(--shadow-lg); text-align: center; }
.upsell-card h1 { font-size: 1.6rem; line-height: 1.3; }
.upsell-card .subtitle { margin-bottom: 24px; }
.upsell-product { background: var(--surface2); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.upsell-product .product-img { height: 160px; background: var(--surface3); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 1.1rem; margin-right: 8px; }
.price-new { font-size: 2rem; font-weight: 800; color: var(--c1); }
.price-save { display: inline-block; background: #fef3c7; color: #92400e; padding: 4px 10px; border-radius: 6px; font-size: .85rem; font-weight: 600; margin-top: 8px; }
.upsell-benefits { text-align: left; margin: 20px 0; }
.upsell-benefits li { padding: 6px 0; font-size: .95rem; list-style: none; }
.upsell-benefits li::before { content: '✓ '; color: var(--c1); font-weight: 700; }
.upsell-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.upsell-skip { color: var(--muted); font-size: .9rem; cursor: pointer; background: none; border: none; padding: 8px; }
.upsell-skip:hover { color: var(--ink); text-decoration: underline; }

/* ─── Thank You ─── */
.thankyou { text-align: center; padding: 60px 0; }
.thankyou-icon { font-size: 4rem; margin-bottom: 16px; }
.order-recap { text-align: left; margin: 30px auto; max-width: 480px; }
.recap-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.recap-row:last-child { border-bottom: none; }
.recap-label { color: var(--muted); }
.recap-val { font-weight: 600; }

/* ─── Tracking ─── */
.tracking-page { padding: 40px 0; }
.tracking-header { text-align: center; margin-bottom: 40px; }
.status-timeline { position: relative; padding-left: 40px; margin: 30px 0; }
.status-timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-dot {
    position: absolute; left: -40px; top: 2px; width: 32px; height: 32px;
    border-radius: 50%; border: 2px solid var(--border); background: var(--surface);
    display: flex; align-items: center; justify-content: center; font-size: .8rem;
}
.timeline-item.active .timeline-dot { background: var(--c1); border-color: var(--c1); color: #fff; }
.timeline-item.done .timeline-dot { background: var(--green); border-color: var(--green); color: #fff; }
.timeline-item h4 { font-size: 1rem; }
.timeline-item p { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.timeline-item .timeline-date { font-size: .8rem; color: var(--light); margin-top: 4px; }

/* ─── Admin ─── */
.admin-header {
    background: var(--ink); color: #fff; padding: 16px 0;
    display: flex; align-items: center; justify-content: space-between;
}
.admin-header h1 { font-size: 1.2rem; }
.admin-header a { color: rgba(255,255,255,.7); font-size: .9rem; }
.admin-header a:hover { color: #fff; }
.admin-nav { display: flex; gap: 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 24px 0; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-val { font-size: 1.8rem; font-weight: 800; color: var(--c1); }
.stat-label { font-size: .85rem; color: var(--muted); margin-top: 4px; }

.table-wrap { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; padding: 12px 10px; background: var(--surface2); font-weight: 600; font-size: .8rem; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--border); }
td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:hover td { background: var(--surface2); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.status-dot.received { background: var(--c2); }
.status-dot.processing { background: var(--orange); }
.status-dot.shipped { background: var(--c1); }
.status-dot.delivered { background: var(--green); }
.status-dot.cancelled { background: var(--red); }

.filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.filters select, .filters input { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; }

.detail-grid { display: grid; gap: 20px; margin: 20px 0; }

/* ─── Alerts ─── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ─── Footer ─── */
.site-footer { padding: 30px 0; border-top: 1px solid var(--border); text-align: center; margin-top: 40px; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; }
.footer-links a { color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: .8rem; color: var(--light); }

/* ─── Privacy Page ─── */
.content-page { padding: 40px 0; }
.content-page h1 { margin-bottom: 24px; }
.content-page h2 { margin-top: 30px; margin-bottom: 12px; font-size: 1.2rem; }
.content-page p { margin-bottom: 12px; color: var(--muted); }

/* ═══ Desktop (min-width: 768px) ═══ */
@media (min-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .hero { padding: 80px 0 70px; }
    .hero h1 { font-size: 2.8rem; }
    .hero-price { font-size: 3rem; }
    .section { padding: 80px 0; }
    .before-after { gap: 24px; }
    .ba-card .ba-img { height: 240px; }
    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr 1fr; }
    .reviews-grid { grid-template-columns: 1fr 1fr; }
    .checkout-layout { grid-template-columns: 1.1fr .9fr; }
    .sticky-cta { display: none; }
    .upsell-card { padding: 50px 40px; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ═══ Large Desktop ═══ */
@media (min-width: 1024px) {
    .benefits-grid { grid-template-columns: 1fr 1fr 1fr; }
    .reviews-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ─── Pricing Grid ─── */
.pricing-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    max-width: 700px; margin: 30px auto 0;
}

/* ─── Mobile ─── */
@media (max-width: 767px) {
    body { padding-bottom: 80px; }
    .form-row { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 100%; gap: 12px; }
    .hero h1 { font-size: 1.6rem; }
    .section { padding: 40px 0; }
}

/* ─── Prevent horizontal overflow ─── */
*, *::before, *::after { max-width: 100%; }
html, body { overflow-x: hidden; }
.wrap, .wrap-sm { overflow: hidden; }

/* ─── Print ─── */
@media print {
    .sticky-cta, .site-footer, .btn { display: none; }
}
