﻿/* ============================================================
   DropPay Marketing — Component Styles
   Tailwind handles layout/spacing/typography utilities.
   This file covers named components that need reuse or
   values Tailwind can't express cleanly.
   ============================================================ */

/* ---- Base ---- */
:root { font-family: 'Inter', sans-serif; }
body, html { scroll-behavior: smooth; background: #F8F8F8; }

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background-color: #6B4EFF;
    background-image:
        radial-gradient(circle at 75% 30%, rgba(255,255,255,.18) 0%, transparent 55%),
        radial-gradient(circle at 20% 70%, rgba(255,255,255,.10) 0%, transparent 50%);
    color: #fff; font-weight: 600; font-size: 14px;
    border: none; border-radius: 8px; cursor: pointer;
    padding: 10px 20px; text-decoration: none;
    transition: background-color 0.15s;
}
.btn-primary:hover {
    background-color: #5A3DE8;
    background-image:
        radial-gradient(circle at 75% 30%, rgba(255,255,255,.22) 0%, transparent 55%),
        radial-gradient(circle at 20% 70%, rgba(255,255,255,.12) 0%, transparent 50%);
}
.btn-white {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: #6B4EFF;
    font-weight: 600; border: none; border-radius: 8px;
    cursor: pointer; text-decoration: none; transition: background 0.15s;
}
.btn-white:hover { background: #F0EDFF; }

/* ---- Nav mega menu ---- */
.mega-bar {
    display: none;
    position: absolute; left: 0; right: 0; z-index: 49;
    background: #fff;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}
.mega-bar.active { display: block; }
.mega-panel { display: none; }
.mega-panel.active { display: flex; align-items: stretch; }
.mega-item {
    flex: 1; display: flex; align-items: center; gap: 12px;
    padding: 16px 24px; text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s;
}
.mega-item + .mega-item { border-left: 1px solid #E2E8F0; }
.mega-item:hover { border-bottom-color: #6B4EFF; }
.mega-item-icon { font-size: 18px; color: #6B4EFF; flex-shrink: 0; }
.mega-item-label { font-size: 13.5px; font-weight: 600; color: #111827; }
.mega-item-sub { font-size: 12px; color: #4D455E; margin-top: 2px; }
.mega-item:hover .mega-item-label { color: #6B4EFF; }
.nav-btn-active { color: #6B4EFF !important; }

/* ---- Mobile menu ---- */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* ---- Keyframes ---- */
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---- Page column ---- */
.mkt-col {
    max-width: 1280px;
    margin: 0 auto;
    background: #fff;
}

/* ---- Section ---- */
.mkt-section {
    padding: 96px 0;
}

.mkt-section--first {
    padding-top: 80px;
}

/* ---- Section heading ---- */
.mkt-section-header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.mkt-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #6B4EFF;
    background: rgba(107, 78, 255, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.mkt-h2 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
    margin: 0;
    text-wrap: balance;
}

/* ---- Inner content width (shared across sections) ---- */
.mkt-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* ---- Feature columns ---- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.feature-card {
    padding-top: 32px;
}

.feature-card__anim {
    height: 260px;
    position: relative;
    margin-bottom: 32px;
    background-image: url('/static/marketing/assets/images/home/featurebg.webp');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.feature-card__anim::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.12);
    border-radius: 12px;
    z-index: 0;
}

.feature-card__anim > * {
    position: relative;
    z-index: 1;
}

.feature-card__body {}

.feature-card__heading {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.feature-card__desc {
    font-size: 15px;
    color: #4D455E;
    line-height: 1.65;
    margin: 0 0 20px;
}

.feature-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-card__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #374151;
}

.feature-card__check {
    color: #6B4EFF;
    flex-shrink: 0;
}

.feature-card__link {
    font-size: 15px;
    font-weight: 600;
    color: #6B4EFF;
    text-decoration: none;
}

/* ---- Why DropPay ---- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 52px 56px;
    max-width: 1100px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.why-icon {
    font-size: 32px;
    color: #6B4EFF;
    line-height: 1;
}

.why-label {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.why-desc {
    font-size: 15px;
    color: #4D455E;
    line-height: 1.7;
    margin: 0;
}

/* ---- Pricing Teaser ---- */
.pricing-teaser { background: #fff; }

.pricing-sub {
    font-size: 15px;
    color: #4D455E;
    text-align: center;
    margin: -32px 0 48px;
}

.pricing-card {
    display: flex;
    gap: 64px;
    align-items: center;
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 48px 56px;
}

.pricing-card__left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.pricing-card__left .btn-primary {
    margin-top: 16px;
    width: fit-content;
}

.pricing-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #6B4EFF;
    background: rgba(107,78,255,0.08);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}

.pricing-from {
    font-size: 13px;
    font-weight: 700;
    color: #4D455E;
    margin: 0;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px;
}

.pricing-amount {
    font-size: 48px;
    font-weight: 800;
    color: #6B4EFF;
    letter-spacing: -1.5px;
}

.pricing-period {
    font-size: 14px;
    color: #4D455E;
    margin: 0;
}

.pricing-yearly {
    font-size: 14px;
    color: #4D455E;
    margin: 0;
}

.pricing-saving {
    font-size: 12px;
    font-weight: 700;
    color: #6B4EFF;
    background: rgba(107,78,255,0.08);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

.pricing-card__right { flex: 1; }

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 32px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #111827;
}

.pricing-check {
    color: #6B4EFF;
    font-size: 16px;
    flex-shrink: 0;
}

.pricing-free-note {
    text-align: center;
    font-size: 14px;
    color: #4D455E;
    margin-top: 24px;
}

.pricing-free-link {
    color: #6B4EFF;
    font-weight: 600;
    text-decoration: none;
}

/* ---- How It Works ---- */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.how-step {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.how-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 4px;
}

.how-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.how-num {
    font-size: 12px;
    font-weight: 700;
    color: #6B4EFF;
    letter-spacing: 0.08em;
}

.how-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin-top: -4px;
}

.how-desc {
    font-size: 15px;
    color: #4D455E;
    line-height: 1.65;
    margin: 0;
}

/* ---- Feature card: split variant (code left, content right) ---- */
.feature-card--split {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    gap: 56px;
    align-items: center;
    padding-top: 0;
}

.feature-card--split .feature-card__anim {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    height: auto;
}

.feature-card__body--split {
    flex: 1;
    min-width: 0;
}

/* ---- Code demo (inside full-width feature card) ---- */
.feature-card__anim--code {
    height: auto;
    min-height: 220px;
    display: flex;
    align-items: stretch;
    padding: 20px;
}

.code-demo {
    display: flex;
    width: 100%;
    gap: 0;
    min-width: 0;
    overflow: hidden;
}

.code-panel {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    background: rgba(10, 6, 26, 0.82);
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.code-panel__label {
    font-size: 12px;
    font-weight: 600;
    color: #7C6FE8;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.code-panel__divider {
    width: 16px;
    flex-shrink: 0;
}

.code-pre {
    font-family: 'Menlo', 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #CBD5E1;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    overflow: hidden;
}

.code-method { color: #60A5FA; font-weight: 700; }
.code-url    { color: #94A3B8; }
.code-key    { color: #A78BFA; }
.code-str    { color: #34D399; }
.code-num    { color: #FB923C; }

.code-inline {
    font-family: 'Menlo', 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    background: rgba(107,78,255,0.1);
    color: #6B4EFF;
    padding: 1px 5px;
    border-radius: 4px;
}

/* ---- Plugin coming soon note ---- */
.feature-plugins-note {
    text-align: center;
    font-size: 13px;
    color: #9CA3AF;
    margin: 32px 0 0;
}

/* ---- Section desc (centered subtitle under mkt-h2) ---- */
.mkt-section-desc {
    font-size: 15px;
    color: #4D455E;
    text-align: center;
    margin: 12px auto 0;
    max-width: 560px;
    line-height: 1.65;
}

/* ---- Global / Exchanges marquee ---- */
.global-section { overflow: hidden; }

.marquee-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    user-select: none;
    -webkit-user-select: none;
}

.marquee-card img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.marquee-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    flex-shrink: 0;
}

.marquee-card--flag {
    padding: 0 12px;
}

.marquee-card__flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.marquee-card__logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.marquee-card__logo--sm {
    height: 18px;
}

.marquee-card__logo--lg {
    height: 34px;
}

.marquee-card__logo--xs {
    height: 21px;
}

.marquee-card__logo--xs-lg {
    height: 22px;
}

/* ---- CTA Section ---- */
.cta-section {
    margin-top: 32px;
    background-image: url('/static/marketing/assets/images/home/cta.webp');
    background-size: cover;
    background-position: right 5%;
    min-height: 480px;
    display: flex;
    align-items: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 6, 30, 0.52) 0%, rgba(10, 6, 30, 0.25) 50%, transparent 100%);
    pointer-events: none;
}

.cta-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 56px;
    position: relative;
    z-index: 1;
}

.cta-content {
    max-width: 400px;
    padding: 80px 0;
}

.cta-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin: 0 0 16px;
    text-wrap: balance;
    line-height: 1.2;
}

.cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px;
    line-height: 1.65;
}

.btn-cta-white {
    display: inline-block;
    background: #fff;
    color: #6B4EFF;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.15s;
}

.btn-cta-white:hover {
    opacity: 0.92;
}

/* ---- Footer ---- */
.mkt-footer {
    background: #fff;
    border-top: 1px solid #E5E7EB;
    padding: 56px 0 0;
}

.mkt-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 56px;
}

.mkt-footer__top {
    display: flex;
    gap: 80px;
    padding: 40px 0 48px;
}

.mkt-footer__brand {
    flex-shrink: 0;
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mkt-footer__logo {
    height: 26px;
    width: auto;
}

.mkt-footer__brand-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #6B7280;
    margin: 0;
}

.mkt-footer__social {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.mkt-footer__social a {
    color: #9CA3AF;
    transition: color 0.15s;
    display: flex;
    align-items: center;
}

.mkt-footer__social a:hover {
    color: #111827;
}

.mkt-footer__social-icon {
    width: 17px;
    height: 17px;
}

.mkt-footer__nav {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.mkt-footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mkt-footer__col-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.mkt-footer__col a {
    font-size: 14px;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.15s;
}

.mkt-footer__col a:hover {
    color: #111827;
}

.mkt-footer__badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 32px 0;
    border-top: 1px solid #E5E7EB;
}

.mkt-footer__badge {
    height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

.mkt-footer__badge--wide {
    height: 64px;
}

.mkt-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #E5E7EB;
}

.mkt-footer__copy {
    font-size: 13px;
    color: #9CA3AF;
    margin: 0;
}

.mkt-footer__legal {
    display: flex;
    gap: 24px;
}

.mkt-footer__legal a {
    font-size: 13px;
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.15s;
}

.mkt-footer__legal a:hover {
    color: #111827;
}

/* ---- Disclaimer (inside footer) ---- */
.mkt-disclaimer {
    border-bottom: 1px solid #E5E7EB;
    padding: 24px 0 40px;
}

.mkt-disclaimer__inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mkt-disclaimer__inner p {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.7;
    margin: 0;
}

.mkt-disclaimer__inner p + p {
    font-size: 11px;
    color: #9CA3AF;
}

/* ---- Nav icon color ---- */
.nav-icon {
    color: #6B4EFF;
}

/* ---- Responsive ---- */
/* ---- Developer teaser ---- */
.dev-teaser {
    display: flex;
    align-items: center;
    gap: 48px;
    background: #F9F7FF;
    border: 1px solid #EDE9FE;
    border-radius: 16px;
    padding: 32px 40px;
}
.dev-teaser__left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.dev-teaser__icon {
    font-size: 36px;
    color: #6B4EFF;
    flex-shrink: 0;
}
.dev-teaser__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B4EFF;
    margin: 0 0 4px;
}
.dev-teaser__heading {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    white-space: nowrap;
}
.dev-teaser__right {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    justify-content: space-between;
}
.dev-teaser__points {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dev-teaser__points span {
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dev-teaser__points i {
    color: #6B4EFF;
    flex-shrink: 0;
}


@media (max-width: 768px) {
    .dev-teaser { flex-direction: column; align-items: flex-start; gap: 24px; padding: 24px; }
    .dev-teaser__right { flex-direction: column; align-items: flex-start; gap: 20px; }
    .dev-teaser__heading { white-space: normal; }
}

@media (max-width: 768px) {
    .feature-grid { grid-template-columns: 1fr; gap: 48px; }
    .feature-card--split { flex-direction: column; gap: 32px; }
    .feature-card--split .feature-card__anim { width: 100%; }
    .feature-card__body--split { flex: unset; width: 100%; }
    .code-demo { flex-direction: column; }
    .code-panel__divider { width: 100%; height: 1px; margin: 0; }
    .why-grid { grid-template-columns: 1fr; gap: 36px; }
    .marquee-track { animation-duration: 20s; }


    /* Pricing card */
    .pricing-card { flex-direction: column; gap: 32px; padding: 32px 24px; }

    /* How it works */
    .how-grid { grid-template-columns: 1fr; gap: 40px; }

    /* CTA */
    .cta-section { background-position: center center; }
    .cta-section::before { background: linear-gradient(to right, rgba(10, 6, 30, 0.62) 0%, rgba(10, 6, 30, 0.3) 60%, transparent 100%); }

    /* Footer */
    .mkt-footer__inner { padding: 0 20px; }
    .mkt-footer__top { flex-direction: column; gap: 32px; padding: 32px 0 36px; }
    .mkt-footer__brand { width: 100%; }
    .mkt-footer__nav { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .mkt-footer__badges { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .mkt-footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
    .mkt-footer__legal { justify-content: center; }
}


/* Blog post tables */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E8E4FF;
}
.post-content table th {
    background: #F5F3FF;
    color: #1A1440;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #E0D9FF;
}
.post-content table td {
    padding: 13px 16px;
    color: #3D3D5C;
    border-bottom: 1px solid #F0EDF8;
    line-height: 1.5;
    vertical-align: top;
}
.post-content table tr:last-child td { border-bottom: none; }
.post-content table tr:nth-child(even) td { background: #FAFAFF; }
.post-content table td:first-child { font-weight: 600; color: #1A1440; }

@media (max-width: 768px) {
    .post-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.faq-item {
    border-bottom: 1px solid #E8E4F3;
}
.faq-item:first-child {
    border-top: 1px solid #E8E4F3;
}
.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #1A1440;
    padding: 20px 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: #6B4EFF;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    font-size: 15px;
    color: #3D3D5C;
    line-height: 1.7;
    padding-bottom: 20px;
    margin: 0;
}
.faq-answer a {
    color: #6B4EFF;
    text-decoration: none;
    font-weight: 500;
}
.faq-answer a:hover {
    text-decoration: underline;
}
