/* --- GC Ads Public Pages --- */

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--sp-md) 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--duration-normal) ease, padding var(--duration-normal) ease;
}
.site-header.scrolled {
    border-bottom-color: var(--c-border-light);
    padding: var(--sp-sm) 0;
}

.site-logo {
    font-size: var(--fs-h4);
    font-weight: var(--fw-bold);
    color: var(--c-navy);
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    gap: var(--sp-xl);
}
.nav-link {
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--c-text-secondary);
    transition: color var(--duration-fast) ease;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--c-text-primary); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--c-navy);
    border-radius: 1px;
}

.header-actions {
    display: flex;
    gap: var(--sp-sm);
    align-items: center;
}
.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 1023px) {
    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--c-bg-white);
        flex-direction: column;
        padding: var(--sp-4xl) var(--sp-xl) var(--sp-xl);
        gap: var(--sp-lg);
        box-shadow: var(--shadow-xl);
        transition: right var(--duration-slow) var(--ease-out);
        z-index: var(--z-modal);
    }
    .site-nav.open { right: 0; }
    .site-nav .nav-link { font-size: var(--fs-body); }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 24px;
        padding: 4px 0;
        z-index: calc(var(--z-modal) + 1);
    }
    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--c-navy);
        border-radius: 1px;
        transition: var(--transition-base);
    }
    .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .header-actions .btn-secondary { display: none; }
}

/* === HERO === */
.hero {
    padding: calc(var(--sp-5xl) + 64px) 0 var(--sp-5xl);
    text-align: center;
}
.hero h1 {
    font-size: var(--fs-hero);
    line-height: 1.1;
    margin-bottom: var(--sp-lg);
    color: var(--c-navy);
}
.hero .subtitle {
    font-size: var(--fs-h5);
    color: var(--c-text-secondary);
    max-width: 640px;
    margin: 0 auto var(--sp-xl);
    line-height: var(--lh-body);
}
@media (max-width: 1023px) {
    .hero { padding: calc(var(--sp-4xl) + 64px) 0 var(--sp-3xl); }
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: var(--sp-3xl);
}
.section-header h2 {
    margin-bottom: var(--sp-md);
    color: var(--c-navy);
}
.section-header p {
    font-size: var(--fs-h6);
    color: var(--c-text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* === FEATURE CARDS === */
.feature-card {
    padding: var(--sp-xl);
    border-radius: var(--radius-lg);
    background: var(--c-bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--c-bg-main);
    margin-bottom: var(--sp-md);
    font-size: 24px;
}
.feature-card h3 {
    margin-bottom: var(--sp-sm);
    font-size: var(--fs-h5);
}
.feature-card p {
    color: var(--c-text-secondary);
    font-size: var(--fs-small);
    line-height: var(--lh-body);
}

/* === STEPS (How it works) === */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-xl);
    position: relative;
}
.step-item { text-align: center; }
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--g-primary);
    color: var(--c-text-on-dark);
    font-family: var(--font-mono);
    font-weight: var(--fw-bold);
    font-size: var(--fs-h5);
    margin-bottom: var(--sp-md);
}
.step-item h3 { font-size: var(--fs-body); margin-bottom: var(--sp-xs); }
.step-item p { font-size: var(--fs-small); color: var(--c-text-secondary); }

@media (max-width: 1023px) {
    .steps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .steps-grid { grid-template-columns: 1fr; }
}

/* === COMPARISON TABLE === */
.comparison-table {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--c-bg-white);
}
.comparison-table table { min-width: 640px; }
.comparison-table th, .comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--c-border-light);
}
.comparison-table th {
    background: #F8F8F8;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-small);
}
.comparison-table .highlight {
    background: rgba(34,54,49,0.04);
    font-weight: var(--fw-semibold);
    color: var(--c-deep-green);
}

/* === PAYMENT CARDS === */
.method-card {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl);
    transition: var(--transition-base);
}
.method-card:hover {
    border-color: var(--c-navy);
    box-shadow: var(--shadow-md);
}
.method-header {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    margin-bottom: var(--sp-lg);
}
.method-header .icon {
    font-size: 32px;
}
.method-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-md) var(--sp-xl);
    margin-bottom: var(--sp-lg);
    padding-bottom: var(--sp-lg);
    border-bottom: 1px solid var(--c-border-light);
}
.detail-item .label {
    font-size: var(--fs-caption);
    color: var(--c-text-secondary);
    display: block;
}
.detail-item .value {
    font-weight: var(--fw-semibold);
    font-family: var(--font-mono);
}
.method-features p {
    font-size: var(--fs-small);
    color: var(--c-text-secondary);
    padding: 4px 0;
}

/* === FLOWCHART === */
.flowchart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-md);
    flex-wrap: wrap;
    padding: var(--sp-xl) 0;
}
.flow-step {
    text-align: center;
    flex: 0 0 auto;
    max-width: 140px;
}
.flow-step .step-icon {
    width: 40px;
    height: 40px;
    background: var(--g-primary);
    color: var(--c-text-on-dark);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: var(--fw-bold);
    margin-bottom: var(--sp-sm);
}
.flow-step p { font-size: var(--fs-caption); color: var(--c-text-secondary); }
.flow-arrow {
    color: var(--c-text-disabled);
    font-size: var(--fs-h4);
}
@media (max-width: 640px) {
    .flow-arrow { transform: rotate(90deg); }
    .flowchart { flex-direction: column; }
}

/* === FAQ === */
.faq-item {
    border-bottom: 1px solid var(--c-border-light);
    padding: var(--sp-lg) 0;
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: var(--fw-semibold);
    gap: var(--sp-md);
}
.faq-question::after {
    content: '+';
    font-size: var(--fs-h4);
    color: var(--c-text-secondary);
    transition: transform var(--duration-fast) ease;
    flex-shrink: 0;
}
.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-out);
    color: var(--c-text-secondary);
    font-size: var(--fs-small);
    line-height: var(--lh-body);
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: var(--sp-md);
}

/* === TRUST INDICATORS === */
.trust-row {
    display: flex;
    justify-content: center;
    gap: var(--sp-2xl);
    flex-wrap: wrap;
    padding: var(--sp-xl) 0;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    font-size: var(--fs-small);
    color: var(--c-text-secondary);
}
.trust-badge .icon { font-size: 20px; }

/* === CTA SECTION === */
.cta-section {
    text-align: center;
    padding: var(--sp-4xl) 0;
}
.cta-section h2 {
    margin-bottom: var(--sp-md);
    color: var(--c-navy);
}
.cta-section p {
    color: var(--c-text-secondary);
    margin-bottom: var(--sp-xl);
    font-size: var(--fs-h6);
}

/* === FOOTER === */
.site-footer {
    border-top: 1px solid var(--c-border-light);
    padding: var(--sp-3xl) 0 var(--sp-xl);
    background: var(--c-bg-white);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--sp-2xl);
    margin-bottom: var(--sp-2xl);
}
.footer-brand p { margin-top: var(--sp-sm); }
.footer-links h6, .footer-feedback h6 {
    margin-bottom: var(--sp-md);
    color: var(--c-text-primary);
}
.footer-links a {
    display: block;
    font-size: var(--fs-small);
    color: var(--c-text-secondary);
    padding: 4px 0;
    transition: color var(--duration-fast) ease;
}
.footer-links a:hover { color: var(--c-text-primary); }

.footer-feedback form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}
.footer-feedback .input,
.footer-feedback .textarea {
    font-size: var(--fs-small);
    padding: 10px 12px;
}

.footer-bottom {
    padding-top: var(--sp-lg);
    border-top: 1px solid var(--c-border-light);
    text-align: center;
}

@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* === DOCS PAGE (override: no animations, tight spacing) === */
.page-docs {
    background: var(--c-bg-white);
}
.docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--sp-2xl);
    padding-top: calc(64px + var(--sp-xl)); /* below fixed header */
    min-height: 100vh;
}
.docs-sidebar {
    position: sticky;
    top: calc(64px + var(--sp-xl));
    height: fit-content;
}
.docs-sidebar a {
    display: block;
    padding: 8px 12px;
    font-size: var(--fs-small);
    color: var(--c-text-secondary);
    border-left: 2px solid transparent;
    transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}
.docs-sidebar a:hover,
.docs-sidebar a.active {
    color: var(--c-text-primary);
    border-left-color: var(--c-navy);
}
.docs-content { padding-bottom: var(--sp-3xl); }
.docs-content section { margin-bottom: var(--sp-3xl); }
.docs-content h1 { font-size: var(--fs-h2); margin-bottom: var(--sp-md); }
.docs-content h3 { margin-top: var(--sp-xl); margin-bottom: var(--sp-sm); }
.docs-content p { margin-bottom: var(--sp-md); color: var(--c-text-secondary); line-height: var(--lh-body); }
.docs-content ul { margin-bottom: var(--sp-md); }
.docs-content li {
    padding: 6px 0 6px 20px;
    color: var(--c-text-secondary);
    font-size: var(--fs-small);
    position: relative;
}
.docs-content li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--c-text-disabled);
}

@media (max-width: 1023px) {
    .docs-layout { grid-template-columns: 1fr; }
    .docs-sidebar { position: relative; top: 0; }
}

/* === PAGE BACKGROUND VARIANTS === */
.page-main { background: var(--c-bg-main); }
.page-whywe { background: var(--c-bg-pink); }
.page-better { background: var(--c-bg-blue); }
.page-pay { background: var(--c-bg-peach); }
