/* Craftwerk Public Website — Amber accent + warm neutrals */
/* Inherits CSS variables from style.css */

/* ── Site Layout ───────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}
.site-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.site-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
}
.site-logo span { color: var(--accent); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.site-nav a:hover { color: var(--text); }

.site-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    padding-top: 64px;
    flex: 1;
}

.site-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Footer ────────────────────────────────────────── */

.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    margin-top: 80px;
}
.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}
.footer-brand {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}
.footer-brand span { color: var(--accent); }
.footer-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
}
.footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── Hero Section ──────────────────────────────────── */

.hero {
    padding: 96px 0 64px;
    text-align: center;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 span { color: var(--accent); }
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-actions .btn { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }

/* ── Features Grid ─────────────────────────────────── */

.features {
    padding: 64px 0;
}
.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Pricing Section ───────────────────────────────── */

.pricing-section {
    padding: 64px 0;
}
.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.pricing-header {
    background: var(--accent);
    color: #fff;
    padding: 32px;
    text-align: center;
}
.pricing-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}
.pricing-price .currency { font-size: 1.2rem; font-weight: 600; }
.pricing-original {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1.1rem;
    margin-right: 8px;
}
.pricing-sale-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 8px;
}
.pricing-body {
    padding: 32px;
}
.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}
.pricing-features li {
    padding: 8px 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.pricing-features li::before {
    content: "\2713";
    color: var(--success);
    font-weight: 700;
    flex-shrink: 0;
}
.pricing-cta .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: var(--radius);
}

/* Comparison */
.pricing-comparison {
    max-width: 700px;
    margin: 48px auto 0;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
}
.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
}
.comparison-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.comparison-table .check { color: var(--success); font-weight: 700; }
.comparison-table .cross { color: var(--text-muted); }

/* ── Checkout ──────────────────────────────────────── */

.checkout-section { padding: 64px 0; }
.checkout-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.checkout-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-light);
}
.checkout-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}
.checkout-body { padding: 32px; }
.checkout-summary {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}
.checkout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    padding: 4px 0;
}
.checkout-row.total {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}
.checkout-discount { color: var(--success); }
.promo-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.promo-row .form-input { flex: 1; }
.promo-status {
    font-size: 0.82rem;
    margin-top: 4px;
}
.promo-status.success { color: var(--success); }
.promo-status.error { color: var(--danger); }

/* ── Payment Result Pages ──────────────────────────── */

.result-section {
    padding: 96px 0;
    text-align: center;
}
.result-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
}
.result-icon.success { color: var(--success); }
.result-icon.failure { color: var(--danger); }
.result-section h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.result-section p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.result-details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 480px;
    margin: 0 auto 32px;
    text-align: left;
}

/* ── FAQ ───────────────────────────────────────────── */

.faq-section { padding: 64px 0; }
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-category {
    margin-bottom: 32px;
}
.faq-category h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
    background: var(--bg-card);
}
.faq-question {
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-elevated); }
.faq-question .arrow {
    font-size: 0.75rem;
    transition: transform 0.2s;
    color: var(--text-muted);
}
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.faq-item.open .faq-answer {
    padding: 0 20px 16px;
    max-height: 500px;
}

/* ── Page (static content) ─────────────────────────── */

.page-section {
    padding: 64px 0;
}
.page-content {
    max-width: 720px;
    margin: 0 auto;
}
.page-content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text);
}
.page-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text);
}
.page-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}
.page-content ul, .page-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}
.page-content li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
}
.page-content a { color: var(--accent); }
.page-content a:hover { text-decoration: underline; }

/* ── Download Page ─────────────────────────────────── */

.download-section { padding: 64px 0; text-align: center; }
.download-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    box-shadow: var(--shadow-md);
}
.download-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.download-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}
.download-version {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}
.download-version-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
}
.download-file-size {
    font-size: 0.88rem;
    color: var(--text-muted);
}
.download-btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.05rem;
    margin-bottom: 24px;
}
.download-notes {
    text-align: left;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}
.download-notes h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.download-notes p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-line;
}
.system-reqs {
    text-align: left;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}
.system-reqs h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.system-reqs li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 4px 0;
}

/* ── Contacts ──────────────────────────────────────── */

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: border-color var(--transition);
}
.contact-card:hover { border-color: var(--accent); }
.contact-icon { font-size: 1.5rem; margin-bottom: 12px; }
.contact-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.contact-card p, .contact-card a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ── Mobile Navigation ─────────────────────────────── */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
}

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .site-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .site-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        gap: 12px;
        z-index: 99;
        box-shadow: var(--shadow-md);
    }

    .hero { padding: 64px 0 48px; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }

    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .pricing-price { font-size: 2rem; }
    .site-header-inner { padding: 0 16px; }
    .site-container { padding: 0 16px; }
}

/* ── Cookie Banner ────────────────────────────────── */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
    padding: 16px 24px;
}
.cookie-banner-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cookie-banner-inner p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}
.cookie-banner-inner a { color: var(--accent); }

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ── Checkout Consent ─────────────────────────────── */

.checkout-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.5;
}
.checkout-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--accent);
}
.checkout-consent a { color: var(--accent); }
