/* ==========================================================================
   Support My Creator: Design System
   ========================================================================== */

:root {
    --coral: #ff6b4a;
    --coral-dark: #e8532f;
    --plum: #5b218a;
    --plum-dark: #3f1663;
    --ink: #201434;
    --ink-soft: #4a4157;
    --muted: #756c85;
    --cream: #fff8f3;
    --cream-deep: #fbeee4;
    --white: #ffffff;
    --line: #ece3f0;
    --success: #1c9d6b;
    --danger: #e14b4b;
    --gradient: linear-gradient(135deg, var(--coral), var(--plum));
    --shadow-sm: 0 2px 10px rgba(32, 20, 52, 0.06);
    --shadow-md: 0 10px 30px rgba(32, 20, 52, 0.1);
    --shadow-lg: 0 20px 50px rgba(32, 20, 52, 0.16);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --max-width: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

h1,
h2,
h3,
h4 {
    font-family: "Poppins", "Inter", sans-serif;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--ink);
}

h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}
h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}
h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1em;
    color: var(--ink-soft);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--coral-dark);
    background: rgba(255, 107, 74, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 1rem;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 14px 26px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease;
    text-align: center;
}
.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--ink);
    border: 1.5px solid var(--line);
}
.btn-secondary:hover {
    border-color: var(--coral);
    color: var(--coral-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
}
.btn-ghost:hover {
    color: var(--coral-dark);
}

.btn-block {
    width: 100%;
}
.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ---------------- Nav ---------------- */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo img {
    height: 30px;
    width: auto;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 500;
    font-size: 0.96rem;
}
.nav-links a {
    color: var(--ink-soft);
    transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--coral-dark);
}
.nav-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: 2px;
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 74px;
        left: 16px;
        right: 16px;
        background: var(--white);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        gap: 16px;
        z-index: 50;
    }
}

/* ---------------- Hero ---------------- */
.hero {
    padding: 60px 0 80px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}
.hero h1 {
    margin-bottom: 0.6em;
}
.hero-sub {
    font-size: 1.15rem;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 1.6rem;
    flex-wrap: wrap;
}
.hero-note {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.hero-visual {
    position: relative;
}
.hero-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px;
    max-width: 380px;
    margin: 0 auto;
}
.hero-card .creator-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
}
.hero-card .creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-card .amount-row {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}
.hero-card .amount-chip {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 12px;
    background: var(--cream-deep);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--plum-dark);
}
.hero-card .amount-chip.selected {
    background: var(--gradient);
    color: #fff;
}
.hero-float {
    position: absolute;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-float.float-1 {
    top: -18px;
    right: -10px;
}
.hero-float.float-2 {
    bottom: -16px;
    left: -20px;
}

/* ---------------- Sections ---------------- */
section {
    padding: 70px 0;
}
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.section-head p {
    font-size: 1.05rem;
}

.bg-white {
    background: var(--white);
}
.bg-cream {
    background: var(--cream);
}
.bg-ink {
    background: var(--ink);
    color: #fff;
}
.bg-ink h2,
.bg-ink h3 {
    color: #fff;
}
.bg-ink p {
    color: #cfc4dd;
}

/* ---------------- Grid / Cards ---------------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 26px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #fff;
    font-size: 1.3rem;
}
.feature-card h3 {
    margin-bottom: 0.4em;
}
.feature-card p {
    margin-bottom: 0;
    font-size: 0.96rem;
}

.step-card {
    text-align: center;
    padding: 10px;
}
.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-family: "Poppins", sans-serif;
}

.stat-card {
    text-align: center;
}
.stat-num {
    font-family: "Poppins", sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--coral);
}
.stat-label {
    color: var(--muted);
    font-size: 0.92rem;
}

/* ---------------- Pricing ---------------- */
.price-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 34px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    text-align: center;
}
.price-card.featured {
    border: 2px solid var(--coral);
    position: relative;
}
.price-card .price-num {
    font-family: "Poppins", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0;
}
.price-card .price-num span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
}
.price-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
}
.price-list li {
    padding: 8px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.price-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: 700;
}

/* ---------------- Testimonial ---------------- */
.quote-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}
.quote-card p {
    font-style: italic;
    color: var(--ink);
}
.quote-person {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.quote-person img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.quote-person .name {
    font-weight: 600;
    font-size: 0.92rem;
}
.quote-person .role {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ---------------- CTA band ---------------- */
.cta-band {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    color: #fff;
}
.cta-band h2 {
    color: #fff;
}
.cta-band p {
    color: rgba(255, 255, 255, 0.9);
}
.cta-band .btn-secondary {
    background: #fff;
    color: var(--plum-dark);
    border: none;
}

/* ---------------- Footer ---------------- */
.footer {
    border-top: 1px solid var(--line);
    padding: 50px 0 30px;
    background: var(--white);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 14px;
}
.footer-col a {
    display: block;
    padding: 6px 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
}
.footer-col a:hover {
    color: var(--coral-dark);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-brand img {
    height: 26px;
}
.footer-tagline {
    max-width: 280px;
    font-size: 0.9rem;
}

/* ---------------- Forms / Fields ---------------- */
.field,
select.field,
textarea.field {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--white);
    font-family: inherit;
    font-size: 0.96rem;
    color: var(--ink);
    transition: border-color 0.15s ease;
}
.field:focus,
select.field:focus,
textarea.field:focus {
    outline: none;
    border-color: var(--coral);
}
textarea.field {
    resize: vertical;
    min-height: 80px;
}
label.field-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
    display: block;
}
.form-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 560px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------- Creator profile page ---------------- */
.profile-header {
    background: var(--gradient);
    padding: 28px 0 100px;
    color: #fff;
    text-align: center;
}
.profile-cover {
    aspect-ratio: 1280 / 474;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-header-content {
    position: relative;
    z-index: 1;
    margin-top: -72px;
}
.profile-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid #fff;
    overflow: hidden;
    margin: 0 auto 18px;
    box-shadow: var(--shadow-lg);
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-header h1 {
    color: #fff;
    margin-bottom: 0.2em;
}
.profile-handle {
    opacity: 0.85;
    font-size: 0.98rem;
    margin-bottom: 0.6em;
}
.profile-bio {
    max-width: 520px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
}
.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}
@media (max-width: 640px) {
    .profile-header {
        padding-top: 20px;
    }
    .profile-cover {
        aspect-ratio: auto;
        height: 180px;
        border-radius: 22px;
    }
    .profile-header-content {
        margin-top: -48px;
    }
}

.profile-body {
    margin-top: -70px;
    padding-bottom: 80px;
}
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 30px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}
.panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
}
.panel h2,
.panel h3 {
    margin-bottom: 0.5em;
}
.supporter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.supporter-row:last-child {
    border-bottom: none;
}
.supporter-row .avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.supporter-row .msg {
    font-size: 0.88rem;
    color: var(--muted);
}
.supporter-row .amt {
    margin-left: auto;
    font-weight: 700;
    color: var(--coral-dark);
}

/* ---------------- Checkout / tip panel ---------------- */
.checkout-panel {
    max-width: 480px;
    width: 100%;
}
.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.amount-option {
    padding: 14px 0;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--cream);
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--ink);
}
.amount-option:hover {
    border-color: var(--coral);
}
.amount-option.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}
.step-heading {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--ink);
}
.payment-mock {
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    background: var(--cream);
}
.payment-mock-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.88rem;
    color: var(--muted);
}
.payment-brand-icons {
    display: flex;
    gap: 6px;
    margin-left: auto;
}
.payment-brand-icons span {
    width: 30px;
    height: 20px;
    border-radius: 4px;
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 700;
}
.demo-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff4e5;
    border: 1px solid #ffd9a0;
    color: #8a5a00;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.85rem;
    margin-bottom: 18px;
}
.checkout-actions {
    margin-top: 8px;
}
.tips-note {
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
}
.message-box {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
}
.message-box.success {
    background: #e7f7ef;
    color: var(--success);
}
.message-box.error {
    background: #fbeaea;
    color: var(--danger);
}
.hidden {
    display: none !important;
}

.center-screen {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

/* ---------------- Signup form page ---------------- */
.signup-wrap {
    max-width: 540px;
    margin: 0 auto;
}
.signup-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}
@media (max-width: 560px) {
    .signup-card {
        padding: 26px;
    }
}

/* ---------------- Simple content pages (legal) ---------------- */
.legal-content {
    max-width: 720px;
    margin: 0 auto;
}
.legal-content h2 {
    margin-top: 2em;
}
.legal-content ul {
    color: var(--ink-soft);
}
.legal-updated {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* ---------------- Toggle switch ---------------- */
.toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: 12px;
}
.toggle-row .toggle-copy {
    flex: 1;
}
.toggle-row .toggle-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    display: block;
}
.toggle-row .toggle-desc {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 2px 0 0;
}
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
    margin-top: 2px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d8cfe0;
    border-radius: 100px;
    transition: background 0.15s ease;
}
.switch .slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.switch input:checked + .slider {
    background: var(--gradient);
}
.switch input:checked + .slider::before {
    transform: translateX(18px);
}

/* ---------------- Momentum / milestone ---------------- */
.momentum-box {
    text-align: center;
    padding: 28px 20px;
    background: var(--cream);
    border-radius: var(--radius-md);
}
.momentum-box .momentum-emoji {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.progress-track {
    width: 100%;
    height: 10px;
    background: var(--line);
    border-radius: 100px;
    overflow: hidden;
    margin: 14px 0 8px;
}
.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 100px;
}

/* ---------------- FAQ ---------------- */
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}
.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    font-size: 1.02rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--coral);
}
.faq-item[open] summary::after {
    content: "−";
}
.faq-item p {
    margin-top: 10px;
}

/* ---------------- Utilities ---------------- */
.text-center {
    text-align: center;
}
.mt-0 {
    margin-top: 0;
}
.muted {
    color: var(--muted);
}
