* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f7f4ee;
    --surface: #ffffff;
    --text: #1f1d1a;
    --muted: #6b665f;
    --line: #ddd6ca;
    --line-strong: #c9bfb0;
    --accent: #1f1d1a;
    --accent-soft: #efe8db;
    --success: #2f6d3b;
    --error: #b23a2b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Georgia', serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0 20px;
    border-bottom: 1px solid var(--line);
}

.logo {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mode-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hidden {
    display: none !important;
}

.hero {
    text-align: center;
    padding: 64px 0 44px;
}

.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 14px;
    font-weight: 700;
}

.hero h2 {
    font-size: 48px;
    line-height: 1.12;
    margin-bottom: 16px;
    font-weight: 600;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto 24px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-points span,
.trust-strip div {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--text);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 13px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.sales-strip,
.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0 0 56px;
}

.sales-strip > div,
.trust-strip {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.sales-strip strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
}

.sales-strip p {
    color: var(--muted);
    font-size: 14px;
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.generator,
.preview-section,
.examples {
    background: var(--surface);
    padding: 32px;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.section-heading p,
.field-note,
.cta-note,
.placeholder,
.example p,
.footer {
    color: var(--muted);
}

fieldset {
    border: none;
    margin-bottom: 24px;
}

legend {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 700;
}

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

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.help,
.field-note {
    font-size: 12px;
}

input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 3px rgba(31, 29, 26, 0.08);
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 13px 14px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.2s ease, background 0.2s ease;
    letter-spacing: 0.03em;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-secondary {
    background: #2f2c28;
    color: #fff;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.status {
    margin-top: 12px;
    font-size: 13px;
    min-height: 20px;
}

.status.error {
    color: var(--error);
}

.status.success {
    color: var(--success);
}

.status.loading {
    color: var(--muted);
}

.preview-container {
    background: #f0eee9;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    margin-bottom: 16px;
    overflow: hidden;
}

.preview-container img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.cta-stack {
    display: grid;
    gap: 10px;
}

.cta-note {
    margin-top: 12px;
    font-size: 13px;
}

.examples {
    margin: 56px 0 20px;
}

.examples h3 {
    font-size: 24px;
    margin-bottom: 28px;
    text-align: center;
}

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

.example {
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px 18px;
    background: #fcfbf8;
}

.example-image {
    font-size: 48px;
    margin-bottom: 14px;
}

.example strong {
    display: block;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 16px;
}

.trust-strip {
    margin-top: 0;
}

.footer {
    text-align: center;
    padding: 36px 0 10px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    margin-top: 56px;
}

@media (max-width: 900px) {
    .sales-strip,
    .trust-strip,
    .example-grid,
    .main-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px 32px;
    }

    .hero {
        padding: 42px 0 32px;
    }

    .hero h2 {
        font-size: 34px;
    }

    .generator,
    .preview-section,
    .examples,
    .sales-strip > div,
    .trust-strip {
        padding: 22px;
    }

    .preview-container {
        min-height: 320px;
    }
}
