/* ============================================================
   YallaPay marketing pages — shared design system
   Used by: /payments, /payments/payment-links
   Matches the homepage design language (index.blade.php)
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

:root {
    --yp-navy-900: #001c3d;
    --yp-navy-700: #00287e;
    --yp-navy: #022869;
    --yp-accent: #6366f1;
    --yp-accent-soft: #a5b4fc;
    --yp-ink: #0f172a;
    --yp-muted: #64748b;
    --yp-border: #e2e8f0;
    --yp-surface: #f8fafc;
    --yp-green: #16a34a;
}

body {
    font-family: 'Inter', 'Nunito', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Product pages use the default white header; neutralise any global
   navy background applied to the layout wrapper on other pages. */
.header-section-area {
    background: #ffffff !important;
    padding-top: 0 !important;
}

/* ===== Type ===== */
.yp-eyebrow {
    display: inline-block;
    color: var(--yp-accent);
    font-size: 12.5px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 14px;
}

.yp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    color: var(--yp-navy-700);
    border: 1px solid #e0e7ff;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}
.yp-chip .iconify { font-size: 16px; }

/* ===== Buttons ===== */
.yp-btn-navy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--yp-navy-900);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15.5px;
    padding: 13px 28px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.yp-btn-navy:hover {
    background: var(--yp-navy-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 28, 61, 0.28);
}

.yp-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--yp-ink) !important;
    font-weight: 700;
    font-size: 15.5px;
    padding: 13px 28px;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.yp-btn-light:hover {
    transform: translateY(-2px);
    color: var(--yp-navy) !important;
}

.yp-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--yp-navy-700) !important;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
}
.yp-link-arrow .iconify { transition: transform 0.2s ease; }
.yp-link-arrow:hover .iconify { transform: translateX(4px); }

/* ===== Light hero ===== */
.yp-hero-light {
    position: relative;
    overflow: hidden;
    padding: 84px 0 72px;
    background:
        radial-gradient(70% 60% at 85% 0%, #eef2ff 0%, transparent 60%),
        radial-gradient(60% 50% at 10% 100%, #f0f9ff 0%, transparent 55%),
        var(--yp-surface);
}
.yp-hero-light h1 {
    color: var(--yp-ink);
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.08;
    margin-bottom: 20px;
}
.yp-hero-light h1 .yp-grad {
    background: linear-gradient(92deg, var(--yp-navy-700), var(--yp-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.yp-hero-lead {
    color: var(--yp-muted);
    font-size: 1.12rem;
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 30px;
}
.yp-hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* ===== Trust chips row ===== */
.yp-trust-chips {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.yp-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid var(--yp-border);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 650;
    color: #475569;
}
.yp-trust-chip .iconify { color: var(--yp-green); font-size: 14px; }

/* ===== Sections ===== */
.yp-section { padding: 90px 0; }
.yp-section-white { background: #ffffff; }
.yp-section-gray { background: var(--yp-surface); }

.yp-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 54px;
}
.yp-section-head h2 {
    color: var(--yp-ink);
    font-size: 2.35rem;
    font-weight: 700;
    letter-spacing: -1.2px;
    margin-bottom: 14px;
}
.yp-section-head p {
    color: var(--yp-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ===== Feature tiles ===== */
.yp-feature { padding: 22px 18px 10px; }
.yp-feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--yp-surface);
    border: 1px solid var(--yp-border);
    color: var(--yp-navy-700);
    font-size: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.yp-feature h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--yp-ink);
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}
.yp-feature p {
    color: var(--yp-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== Benefit cards (bordered feature tiles) ===== */
.yp-benefit {
    background: #ffffff;
    border: 1px solid var(--yp-border);
    border-radius: 18px;
    padding: 28px 26px;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.yp-benefit:hover {
    transform: translateY(-4px);
    border-color: #c7d2fe;
    box-shadow: 0 20px 45px -18px rgba(2, 40, 105, 0.18);
}
.yp-benefit-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: var(--yp-navy-700);
    font-size: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.yp-benefit h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--yp-ink);
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}
.yp-benefit p {
    color: var(--yp-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== Alternating product rows ===== */
.yp-split { padding: 44px 0; }
.yp-split-tag {
    color: var(--yp-navy-700);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}
.yp-split h3 {
    color: var(--yp-ink);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
}
.yp-split-desc {
    color: var(--yp-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 22px;
}
.yp-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.yp-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 550;
    color: #334155;
}
.yp-checklist .iconify { color: var(--yp-green); font-size: 17px; flex-shrink: 0; }
.yp-split-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== Mockup shell + mini components (match homepage) ===== */
.yp-shell {
    background: #ffffff;
    border: 1px solid var(--yp-border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 30px 60px -22px rgba(2, 40, 105, 0.22);
    max-width: 400px;
    margin: 0 auto;
}
.yp-shell-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}
.yp-shell-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}
.yp-shell-dots span:nth-child(1) { background: #f87171; }
.yp-shell-dots span:nth-child(2) { background: #fbbf24; }
.yp-shell-dots span:nth-child(3) { background: #34d399; }
.yp-shell-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--yp-ink);
    letter-spacing: -0.2px;
    margin-bottom: 14px;
}

.yp-mini {
    background: var(--yp-surface);
    border: 1px solid var(--yp-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.yp-mini-label { font-size: 12.5px; font-weight: 600; color: var(--yp-muted); }

.yp-field {
    background: #fff;
    border: 1px solid var(--yp-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 550;
}
.yp-field b { color: var(--yp-ink); font-weight: 650; }

.yp-applepay {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px;
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
}
.yp-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.yp-divider::before, .yp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--yp-border);
}
.yp-cardfield {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--yp-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--yp-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.yp-cardfield-brands { display: flex; gap: 6px; font-size: 20px; }
.yp-paybtn {
    width: 100%;
    background: var(--yp-navy-700);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
}
.yp-brandrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 24px;
    margin-top: 2px;
}

.yp-linkpill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--yp-border);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--yp-navy-700);
    font-size: 12.5px;
    font-weight: 600;
    min-width: 0;
}
.yp-linkpill .iconify { flex-shrink: 0; }
.yp-linkpill-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.yp-linkpill-copy { color: var(--yp-muted); }

/* Floating "paid" toast on hero mockups */
.yp-toast {
    position: absolute;
    right: -14px;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--yp-border);
    border-radius: 12px;
    padding: 11px 16px;
    box-shadow: 0 18px 40px -12px rgba(2, 40, 105, 0.28);
}
.yp-toast-check {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #dcfce7;
    color: var(--yp-green);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.yp-toast-label { font-size: 11.5px; font-weight: 600; color: var(--yp-muted); line-height: 1.2; }
.yp-toast-amount { font-size: 14px; font-weight: 750; color: var(--yp-ink); }

/* ===== Numbered step cards ===== */
.yp-steps {
    display: grid;
    grid-template-columns: 1fr 44px 1fr 44px 1fr;
    align-items: stretch;
}
.yp-step-card {
    background: #ffffff;
    border: 1px solid var(--yp-border);
    border-radius: 18px;
    padding: 26px 24px;
    text-align: center;
}
.yp-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c7d2fe;
    font-size: 22px;
}
.yp-step-num {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--yp-navy-700);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.yp-step-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--yp-ink);
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}
.yp-step-card p {
    color: var(--yp-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== Slim developer strip ===== */
.yp-devstrip {
    background:
        radial-gradient(70% 120% at 90% 0%, rgba(99, 102, 241, 0.25) 0%, transparent 60%),
        var(--yp-navy-900);
    border-radius: 22px;
    padding: 44px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.yp-devstrip h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.6px;
    margin-bottom: 6px;
}
.yp-devstrip p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    margin-bottom: 0;
}

/* ===== Final CTA band ===== */
.yp-cta-wrap { padding: 40px 0 100px; }
.yp-cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(140deg, var(--yp-navy-700) 0%, var(--yp-navy-900) 80%);
    border-radius: 26px;
    padding: 74px 30px;
}
.yp-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.yp-cta h2 {
    position: relative;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1.4px;
    margin-bottom: 14px;
}
.yp-cta p {
    position: relative;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    margin-bottom: 30px;
}
.yp-cta .yp-btn-light { position: relative; }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .yp-hero-light { padding: 56px 0 60px; }
    .yp-hero-light h1 { font-size: 2.5rem; letter-spacing: -1.4px; }
    .yp-hero-visual { margin-top: 48px; }

    .yp-section { padding: 70px 0; }
    .yp-section-head h2 { font-size: 1.9rem; }

    .yp-split { padding: 32px 0; text-align: center; }
    .yp-split .yp-checklist li { justify-content: center; }
    .yp-split-actions { justify-content: center; }
    .yp-split-visual { margin-top: 36px; }

    .yp-steps {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .yp-step-arrow { padding: 12px 0; transform: rotate(90deg); }

    .yp-devstrip { padding: 36px 30px; justify-content: center; text-align: center; }
}

@media (max-width: 575.98px) {
    .yp-hero-light { padding: 40px 0 50px; }
    .yp-hero-light h1 { font-size: 2rem; letter-spacing: -1px; }
    .yp-hero-lead { font-size: 1rem; }
    .yp-hero-actions a { width: 100%; justify-content: center; }

    .yp-section { padding: 56px 0; }
    .yp-section-head { margin-bottom: 38px; }
    .yp-section-head h2 { font-size: 1.6rem; letter-spacing: -0.8px; }

    .yp-toast { right: 4px; bottom: 20px; padding: 9px 13px; }
    .yp-cta { padding: 54px 22px; border-radius: 20px; }
    .yp-cta h2 { font-size: 1.8rem; }
}
