/* ============================================================
   SwiftPOS — Public / Marketing Pages
   (Register, Pricing, Checkout, Manage, Payment pages)
   SaaS Modern Design Language
   ============================================================ */

/* ── Navbar ───────────────────────────────────────────────── */
.sp-nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--sp-color-border, #e5e7eb);
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 14px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.sp-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}

.sp-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--sp-radius-sm, 8px);
    background: linear-gradient(135deg, var(--sp-color-primary, #6d28d9), var(--sp-color-secondary, #8b5cf6));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.sp-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--sp-color-text-main, #111827);
    letter-spacing: -0.5px;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
}

.sp-logo-text span {
    color: var(--sp-color-primary, #6d28d9);
}

.sp-nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-nav-links a {
    text-decoration: none;
    color: var(--sp-color-text-grey, #4b5563);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.sp-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--sp-color-primary, #6d28d9);
    border-radius: 2px;
    transition: width 0.2s ease;
}

.sp-nav-links a:hover {
    color: var(--sp-color-primary, #6d28d9);
}

.sp-nav-links a:hover::after {
    width: 100%;
}

.sp-nav-cta {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-sp-primary {
    background: linear-gradient(135deg,
        var(--sp-color-primary, #6d28d9) 0%,
        var(--sp-color-secondary, #8b5cf6) 100%);
    color: #fff;
    border: none;
    border-radius: var(--sp-radius-sm, 8px);
    padding: 0.52rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn-sp-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.45s ease;
}

.btn-sp-primary:hover::after {
    left: 100%;
}

.btn-sp-primary:hover {
    opacity: 0.93;
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.4);
}

.btn-sp-outline {
    background: transparent;
    border: 1.5px solid var(--sp-color-border, #e5e7eb);
    border-radius: var(--sp-radius-sm, 8px);
    padding: 0.52rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sp-color-text-main, #111827);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
    cursor: pointer;
}

.btn-sp-outline:hover {
    border-color: var(--sp-color-primary, #6d28d9);
    color: var(--sp-color-primary, #6d28d9);
    background: var(--sp-color-bg-tint, #f5f3ff);
}

/* ── Page content wrapper ─────────────────────────────────── */
.sp-content {
    padding: 2rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Alert messages ───────────────────────────────────────── */
.sp-alert-bar {
    padding: 0.8rem 1.25rem;
    border-radius: var(--sp-radius-sm, 8px);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sp-alert-success { background: #d1fae5; color: #065f46; border-left: 3px solid #10b981; }
.sp-alert-error   { background: #fee2e2; color: #991b1b; border-left: 3px solid #ef4444; }
.sp-alert-warning { background: #fef3c7; color: #92400e; border-left: 3px solid #f59e0b; }
.sp-alert-info    { background: #dbeafe; color: #1e40af; border-left: 3px solid #3b82f6; }

/* ── Footer ───────────────────────────────────────────────── */
.sp-footer {
    border-top: 1px solid var(--sp-color-border, #e5e7eb);
    padding: 2rem;
    text-align: center;
    color: var(--sp-color-text-muted, #9ca3af);
    font-size: 0.8rem;
    background: var(--sp-color-bg-white, #fff);
}

.sp-footer a {
    color: var(--sp-color-primary, #6d28d9);
    text-decoration: none;
    font-weight: 500;
}

.sp-footer a:hover {
    text-decoration: underline;
}

/* ──────────────────────────────────────────────────────────
   REGISTER PAGE
────────────────────────────────────────────────────────── */
.reg-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 68px);
    gap: 0;
}

@media (max-width: 768px) {
    .reg-wrap {
        grid-template-columns: 1fr;
    }
}

/* Hero left side */
.reg-hero {
    background: linear-gradient(135deg,
        var(--sp-color-primary-dark, #5b21b6) 0%,
        var(--sp-color-primary, #6d28d9) 50%,
        var(--sp-color-secondary, #8b5cf6) 100%);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.reg-hero::before {
    content: '';
    position: absolute;
    top: -30%; right: -15%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.reg-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    letter-spacing: -0.02em;
}

.reg-hero p {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.65;
    margin-bottom: 2rem;
}

.reg-perks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0;
    margin: 0;
}

.reg-perks li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.92;
}

.reg-perks .perk-icon {
    width: 30px; height: 30px;
    border-radius: var(--sp-radius-sm, 8px);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Form right side */
.reg-form-wrap {
    background: #fff;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reg-form-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--sp-color-text-main, #111827);
    margin-bottom: 0.3rem;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    letter-spacing: -0.02em;
}

.reg-form-sub {
    color: var(--sp-color-text-grey, #4b5563);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sp-color-text-main, #111827);
    margin-bottom: 0.4rem;
    display: block;
}

.form-input {
    width: 100%;
    padding: 0.72rem 1rem;
    border: 1.5px solid var(--sp-color-border, #e5e7eb);
    border-radius: var(--sp-radius-sm, 8px);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--sp-color-text-main, #111827);
    background: var(--sp-color-bg-light, #f3f4f6);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--sp-color-primary, #6d28d9);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1);
    background: #fff;
}

.form-input.error {
    border-color: var(--sp-color-danger, #ef4444);
}

.form-input::placeholder {
    color: #94a3b8;
}

.btn-register {
    width: 100%;
    padding: 0.88rem;
    background: linear-gradient(135deg,
        var(--sp-color-primary, #6d28d9) 0%,
        var(--sp-color-secondary, #8b5cf6) 100%);
    color: #fff;
    border: none;
    border-radius: var(--sp-radius-sm, 8px);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-register::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.45s ease;
}

.btn-register:hover::after {
    left: 100%;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(109, 40, 217, 0.45);
}

.btn-register:active {
    transform: translateY(0);
}

.trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg,
        var(--sp-color-bg-teal-tint, #f0fdfa),
        #d1fae5);
    color: #065f46;
    padding: 0.4rem 0.95rem;
    border-radius: var(--sp-radius-pill, 500px);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid #a7f3d0;
}

.login-link {
    text-align: center;
    font-size: 0.85rem;
    color: var(--sp-color-text-muted, #9ca3af);
    margin-top: 1.5rem;
}

.login-link a {
    color: var(--sp-color-primary, #6d28d9);
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* ──────────────────────────────────────────────────────────
   PRICING PAGE
────────────────────────────────────────────────────────── */
.pricing-hero {
    text-align: center;
    padding: 4.5rem 1.5rem 2.5rem;
    background: linear-gradient(135deg,
        var(--sp-color-primary-dark, #5b21b6) 0%,
        var(--sp-color-primary, #6d28d9) 55%,
        var(--sp-color-secondary, #8b5cf6) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    bottom: -40%; left: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.pricing-hero h1 {
    font-size: 2.9rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    letter-spacing: -0.03em;
    position: relative;
}

.pricing-hero p {
    font-size: 1.1rem;
    opacity: 0.88;
    max-width: 520px;
    margin: 0 auto 2.25rem;
    line-height: 1.6;
    position: relative;
}

/* Billing cycle tabs */
.cycle-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: var(--sp-radius-sm, 8px);
    padding: 4px;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.cycle-tab {
    padding: 0.45rem 1.15rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.2s ease;
    font-family: inherit;
}

.cycle-tab.active {
    background: #fff;
    color: var(--sp-color-primary, #6d28d9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

/* Plans grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1060px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.plan-card {
    background: #fff;
    border-radius: var(--sp-radius, 16px);
    border: 2px solid var(--sp-color-border, #e5e7eb);
    padding: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.plan-card.popular {
    border-color: var(--sp-color-primary, #6d28d9);
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(109, 40, 217, 0.18);
}

.plan-card.popular:hover {
    transform: scale(1.03) translateY(-6px);
}

.plan-card.popular::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--sp-color-primary, #6d28d9),
        var(--sp-color-secondary, #8b5cf6));
}

.popular-badge {
    position: absolute;
    top: 0; right: 0;
    background: linear-gradient(135deg,
        var(--sp-color-primary, #6d28d9),
        var(--sp-color-secondary, #8b5cf6));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 0 var(--sp-radius, 16px) 0 var(--sp-radius-sm, 8px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--sp-color-text-main, #111827);
    margin-bottom: 0.5rem;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
}

.plan-price-wrap {
    margin: 1.25rem 0;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--sp-color-text-main, #111827);
    line-height: 1;
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
}

.plan-price .sym {
    font-size: 1.45rem;
    vertical-align: top;
    margin-top: 0.3rem;
    display: inline-block;
}

.plan-price .per {
    font-size: 0.82rem;
    color: var(--sp-color-text-muted, #9ca3af);
    font-weight: 500;
    margin-left: 0.25rem;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--sp-color-text-muted, #9ca3af);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
    padding: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.83rem;
    color: var(--sp-color-text-main, #111827);
}

.plan-features .check { color: var(--sp-color-accent, #10b981); font-size: 0.75rem; }
.plan-features .cross { color: #cbd5e1; font-size: 0.75rem; }
.plan-features .locked { color: var(--sp-color-text-muted, #9ca3af); }

/* Plan buttons */
.btn-plan {
    display: block;
    width: 100%;
    padding: 0.82rem;
    border-radius: var(--sp-radius-sm, 8px);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.22s ease;
    font-family: inherit;
}

.btn-plan-primary {
    background: linear-gradient(135deg,
        var(--sp-color-primary, #6d28d9) 0%,
        var(--sp-color-secondary, #8b5cf6) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.3);
}

.btn-plan-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.4);
    color: #fff;
}

.btn-plan-outline {
    background: transparent;
    border: 1.5px solid var(--sp-color-border, #e5e7eb);
    color: var(--sp-color-text-main, #111827);
}

.btn-plan-outline:hover {
    border-color: var(--sp-color-primary, #6d28d9);
    color: var(--sp-color-primary, #6d28d9);
    background: var(--sp-color-bg-tint, #f5f3ff);
}

.limit-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    border-top: 1px solid var(--sp-color-border, #e5e7eb);
    padding-top: 1rem;
    margin-top: 0.5rem;
    color: var(--sp-color-text-muted, #9ca3af);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.limit-badge {
    background: var(--sp-color-bg-tint, #f5f3ff);
    color: var(--sp-color-primary, #6d28d9);
    padding: 0.15rem 0.65rem;
    border-radius: var(--sp-radius-pill, 500px);
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid var(--sp-color-border-tint, #ede9fe);
}

/* FAQ section */
.faq-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

.faq-title {
    font-size: 1.7rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--sp-color-text-main, #111827);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    letter-spacing: -0.02em;
}

.faq-item {
    border: 1.5px solid var(--sp-color-border, #e5e7eb);
    border-radius: var(--sp-radius-sm, 8px);
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: var(--sp-color-border-tint, #ede9fe);
    box-shadow: 0 4px 16px rgba(109, 40, 217, 0.08);
}

.faq-item.open {
    border-color: var(--sp-color-primary, #6d28d9);
}

.faq-q {
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--sp-color-text-main, #111827);
    user-select: none;
}

.faq-item.open .faq-q {
    color: var(--sp-color-primary, #6d28d9);
}

.faq-a {
    padding: 0 1.25rem 1.1rem;
    font-size: 0.875rem;
    color: var(--sp-color-text-grey, #4b5563);
    line-height: 1.65;
    display: none;
}

.faq-item.open .faq-a {
    display: block;
}

.faq-item.open .faq-q i {
    transform: rotate(180deg);
    color: var(--sp-color-primary, #6d28d9);
}

.faq-q i {
    transition: transform 0.25s ease;
    color: var(--sp-color-text-muted, #9ca3af);
    flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .sp-nav {
        padding: 0.75rem 1rem;
    }
    .pricing-hero h1 {
        font-size: 2rem;
    }
    .plan-card.popular {
        transform: scale(1);
    }
    .plan-card.popular:hover {
        transform: translateY(-6px);
    }
    .reg-form-wrap {
        padding: 2.25rem 1.5rem;
    }
    .reg-hero h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 575.98px) {
    .plans-grid {
        padding: 2rem 1rem;
    }
    .faq-section {
        padding: 1.5rem 1rem 3rem;
    }
}
