/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a0f;
    --bg2: #12121a;
    --surface: #1a1a26;
    --surface2: #22222f;
    --border: #2a2a3a;
    --text: #e8e8f0;
    --text2: #8888a0;
    --accent: #3b82f6;
    --accent2: #60a5fa;
    --sign-blue: #004b93;
    --radius: 12px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* === Animated grid background === */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* === Hero === */
.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 20px 40px;
}

.hero-content { max-width: 600px; margin: 0 auto; }

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 16px;
}

.logo-sign {
    display: inline-flex;
    background: var(--sign-blue);
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 6px;
    border: 3px solid rgba(255,255,255,0.9);
    letter-spacing: -0.5px;
    box-shadow: 0 4px 24px rgba(0,75,147,0.4);
    line-height: 1.2;
}

.logo-accent { color: #b8d4f0; }

.logo-dot {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text2);
    margin-left: 4px;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text2);
    font-weight: 400;
}

/* === Generator === */
.generator {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.gen-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* Preview */
.preview-wrap {
    position: sticky;
    top: 20px;
}

.preview-stage {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    transition: background-image 0.3s;
}

/* Checkerboard only when transparent bg is active */
.preview-stage.show-checkerboard {
    background-image:
        linear-gradient(45deg, #161622 25%, transparent 25%),
        linear-gradient(-45deg, #161622 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #161622 75%),
        linear-gradient(-45deg, transparent 75%, #161622 75%);
    background-size: 16px 16px;
    background-position: 0 0, 8px 0, 8px -8px, 0 8px;
}

.preview-stage canvas {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.15s ease;
}

/* Style switch animation */
.preview-stage canvas.style-switching {
    transform: scale(0.96);
    opacity: 0.7;
}

/* 4 action buttons: PNG, HD, Kopieer, Deel */
.preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    justify-content: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(59,130,246,0.3); }

.btn-secondary {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }

/* Focus-visible for keyboard accessibility */
.btn:focus-visible,
.style-btn:focus-visible,
.qty-btn:focus-visible,
.random-btn:focus-visible,
.btn-order:focus-visible,
.btn-pay:focus-visible,
.product-card:focus-visible,
.modal-close:focus-visible,
.faq-item summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.control-group > label:first-child {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.label-hint {
    font-weight: 400;
    color: var(--text2);
    text-transform: none;
    letter-spacing: 0;
}

.control-group input[type="text"],
.control-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.control-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.control-group input[type="text"]:focus,
.control-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.control-group input[type="text"]::placeholder {
    color: var(--text2);
    opacity: 0.6;
}

/* Arrow row */
.arrow-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.arrow-row select,
.arrow-row input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.arrow-row select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888a0' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.arrow-row input::placeholder { color: var(--text2); opacity: 0.6; }

.arrow-row select:focus,
.arrow-row input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* Style selector */
.style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 6px;
}

.style-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 6px;
    background: var(--bg2);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text2);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.style-btn:hover { border-color: var(--text2); color: var(--text); }
.style-btn.active { border-color: var(--accent); color: var(--accent2); background: rgba(59,130,246,0.08); }

.style-preview {
    width: 100%;
    height: 24px;
    border-radius: 3px;
    border: 1.5px solid rgba(255,255,255,0.15);
}

.klassiek-prev { background: #004b93; }
.amsterdam-prev { background: linear-gradient(135deg, #003870, #005baa); }
.denhaag-prev { background: #006837; }
.rotterdam-prev { background: #004b49; }
.vintage-prev { background: linear-gradient(135deg, #1a2744, #2a3a5c); }
.retro-prev { background: linear-gradient(135deg, #6B3410, #8a4a1a); }
.modern-prev { background: linear-gradient(135deg, #0f172a, #1e293b); }
.neon-prev { background: linear-gradient(135deg, #0a0a0a, #1a1a1a); border-color: #39FF14 !important; box-shadow: inset 0 0 8px rgba(57,255,20,0.15); }

/* Color inputs */
.control-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.color-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
}

.color-input-wrap input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    background: none;
}

.color-input-wrap input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-input-wrap input[type="color"]::-webkit-color-swatch { border: 1.5px solid rgba(255,255,255,0.15); border-radius: 5px; }

.color-hex {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text2);
    font-family: 'DM Sans', monospace;
}

/* Toggles */
.toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text2);
    cursor: pointer;
    user-select: none;
}

.toggle input { display: none; }

.toggle-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: var(--text2);
    border-radius: 50%;
    transition: all 0.2s;
}

.toggle input:checked + .toggle-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle input:checked + .toggle-slider::after {
    left: 18px;
    background: #fff;
}

/* === Info Section === */
.info-section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    text-align: center;
}

.info-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
}

.info-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59,130,246,0.1);
    color: var(--accent2);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.5;
}

/* === Order Section === */
.order-section {
    margin-top: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.order-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
}

.product-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg2);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.product-card:hover { border-color: var(--text2); }
.product-card.active { border-color: var(--accent); background: rgba(59,130,246,0.06); }

.product-card input[type="radio"] { display: none; }

/* Radio dot indicator */
.radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.product-card.active .radio-dot {
    border-color: var(--accent);
}

.radio-dot::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    transform: scale(0);
    transition: transform 0.15s ease;
}

.product-card.active .radio-dot::after {
    transform: scale(1);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.product-name { font-weight: 700; font-size: 0.95rem; }
.product-size { font-size: 0.8rem; color: var(--text2); }

.product-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--accent2);
    white-space: nowrap;
}

.shipping-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text2);
    margin-bottom: 4px;
}

.btw-note {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text2);
    opacity: 0.7;
    margin-bottom: 14px;
}

.btn-order {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 24px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-order:hover { background: #15803d; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(22,163,74,0.3); }

/* === Checkout Modal === */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text2);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.modal-close:hover { color: var(--text); }

/* Modal preview thumbnail */
.modal-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.modal-preview canvas {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-group input.invalid {
    border-color: #ef4444;
}

/* Country note */
.country-note {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem !important;
    color: var(--text2) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    opacity: 0.7;
}

.country-note svg { flex-shrink: 0; opacity: 0.5; }

.order-summary {
    margin: 20px 0 16px;
    padding: 16px;
    background: var(--bg2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text2);
    padding: 4px 0;
}

.summary-total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.summary-btw {
    font-size: 0.72rem;
    color: var(--text2);
    opacity: 0.6;
    text-align: right;
    margin-top: 4px;
}

/* AV Checkbox */
.av-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text2);
    cursor: pointer;
    user-select: none;
    margin-bottom: 16px;
    line-height: 1.4;
}

.av-checkbox input { display: none; }

.av-check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid var(--border);
    border-radius: 4px;
    margin-top: 1px;
    position: relative;
    transition: all 0.15s;
}

.av-checkbox input:checked + .av-check {
    background: var(--accent);
    border-color: var(--accent);
}

.av-check::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.av-checkbox input:checked + .av-check::after {
    transform: rotate(45deg) scale(1);
}

.av-checkbox a {
    color: var(--accent2);
    text-decoration: none;
}

.av-checkbox a:hover { text-decoration: underline; }

.av-checkbox.invalid .av-check {
    border-color: #ef4444;
}

.btn-pay {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    gap: 8px;
}

.btn-pay:hover { background: #15803d; }
.btn-pay:disabled { background: var(--border); cursor: not-allowed; }

.pay-spinner { display: inline-flex; align-items: center; gap: 8px; }

.pay-methods {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text2);
    margin-top: 10px;
}

.form-error {
    color: #ef4444;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 10px;
    min-height: 1.2em;
}

/* === Social proof === */
.hero-social-proof {
    font-size: 0.85rem;
    color: var(--text2);
    margin-top: 10px;
    opacity: 0.7;
}

/* === Input with button (street name + random) === */
.input-with-btn {
    display: flex;
    gap: 6px;
}

.input-with-btn input[type="text"] {
    flex: 1;
    min-width: 0;
    width: auto;
}

.random-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text2);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.random-btn:hover {
    background: var(--border);
    color: var(--text);
}

/* === Quantity selector === */
.qty-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.qty-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text2);
}

.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.qty-btn:hover {
    background: var(--border);
}

.qty-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    min-width: 24px;
    text-align: center;
}

/* === Gift option === */
.gift-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text2);
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

.gift-toggle input { display: none; }
.gift-icon { font-size: 1rem; opacity: 0.5; transition: opacity 0.2s; }
.gift-toggle:has(input:checked) { color: var(--text); }
.gift-toggle:has(input:checked) .gift-icon { opacity: 1; }

.gift-wrap {
    margin-bottom: 12px;
}

.gift-wrap textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    resize: vertical;
    min-height: 50px;
    transition: border-color 0.2s;
}

.gift-wrap textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* === Coupon row === */
.coupon-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.coupon-row input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    text-transform: uppercase;
}

.coupon-row input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.coupon-apply {
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
}

.coupon-msg {
    font-size: 0.78rem;
    min-height: 1em;
    margin-bottom: 8px;
    color: var(--text2);
}

.coupon-msg.coupon-ok { color: #34d399; }
.coupon-msg.coupon-err { color: #ef4444; }

/* === Summary discount line === */
.summary-discount {
    color: #34d399;
}

.summary-discount .discount-amount {
    color: #34d399;
    font-weight: 600;
}

/* === Keyboard shortcuts hint === */
.shortcuts-hint {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text2);
    opacity: 0.5;
    padding-top: 4px;
}

.shortcuts-hint kbd {
    display: inline-block;
    padding: 1px 5px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.68rem;
}

/* === FAQ Section === */
.faq-section {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.faq-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-item summary {
    padding: 14px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s;
}

.faq-item summary:hover {
    background: var(--surface2);
}

.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text2);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
    padding: 0 18px 14px;
    font-size: 0.88rem;
    color: var(--text2);
    line-height: 1.6;
}

.faq-item a {
    color: var(--accent2);
    text-decoration: none;
}

.faq-item a:hover { text-decoration: underline; }

/* === Footer === */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 12px;
}

.logo-sign-sm {
    font-size: 1.1rem;
    padding: 4px 11px;
    border-width: 2px;
    box-shadow: 0 2px 10px rgba(0,75,147,0.3);
}

.logo-dot-sm {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text2);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent2); }

.footer-contact {
    font-size: 0.8rem;
    color: var(--text2);
}

.footer-contact a {
    color: var(--accent2);
    text-decoration: none;
}

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

.footer-legal {
    margin-top: 6px;
    font-size: 0.72rem;
    opacity: 0.5;
}

/* === Legal Pages === */
.legal-page {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.legal-page h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.legal-page .legal-update {
    font-size: 0.8rem;
    color: var(--text2);
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 8px;
    color: var(--accent2);
}

.legal-page p,
.legal-page li {
    font-size: 0.92rem;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 10px;
}

.legal-page ul,
.legal-page ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-page a {
    color: var(--accent2);
    text-decoration: none;
}

.legal-page a:hover { text-decoration: underline; }

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent2);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.legal-back:hover { text-decoration: underline; }

/* === Responsive === */
@media (max-width: 860px) {
    .gen-layout {
        grid-template-columns: 1fr;
    }

    .preview-wrap {
        position: static;
    }

    .preview-stage {
        padding: 24px;
        min-height: 180px;
    }

    .hero { padding: 40px 20px 24px; }
    .logo-sign { font-size: 1.6rem; padding: 6px 14px; }
    .logo-dot { font-size: 1.3rem; }
    .hero-sub { font-size: 1rem; }
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .style-grid {
        grid-template-columns: 1fr 1fr;
    }

    .control-row {
        grid-template-columns: 1fr;
    }

    .preview-actions {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .shortcuts-hint {
        display: none;
    }
}
