.cover-letter-page {
    background: #fffbf5;
}

.cover-letter-page-shell {
    background: #fffbf5;
    color: #1c1917;
}

.cover-hero {
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, #fef7ed 0%, #fffbf5 56%, #ffffff 100%);
}

.cover-hero__header {
    max-width: 820px;
    margin: 0 auto 2rem;
    text-align: center;
}

.cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.125rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    border: 1px solid #e7e5e4;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #57534e;
    font-size: 0.875rem;
    font-weight: 500;
}

.cover-badge span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.cover-hero h1 {
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    max-width: 900px;
    margin: 0 auto 1rem;
    color: #1c1917;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
}

.cover-hero__header p {
    max-width: 760px;
    margin: 0 auto;
    color: #57534e;
    font-size: 1rem;
    line-height: 1.75;
}

.cover-tool {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.cover-form,
.cover-result {
    min-width: 0;
    border: 1px solid #e7e5e4;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
}

.cover-form {
    padding: 1.25rem;
}

.form-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.4375rem 0.75rem;
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.08);
    color: #9a3412;
    font-size: 0.8125rem;
    font-weight: 600;
}

.cover-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}

.cover-form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
    margin-bottom: 0.875rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.375rem;
    color: #1c1917;
    font-size: 0.8125rem;
    font-weight: 700;
}

.form-field label span {
    color: #dc2626;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    min-height: 44px;
    padding: 0.6875rem 0.875rem;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    background: #fafafa;
    color: #1c1917;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.875rem;
    line-height: 1.45;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field textarea {
    min-height: 132px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: #f97316;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.field-help,
.field-error {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
}

.field-help {
    color: #78716c;
}

.field-error {
    color: #b91c1c;
    font-weight: 600;
}

.cover-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
}

.sample-btn,
.cover-submit,
.icon-btn {
    min-height: 44px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sample-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px dashed #d6d3d1;
    background: #ffffff;
    color: #57534e;
    font-size: 0.875rem;
}

.sample-btn:hover {
    border-style: solid;
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.08);
    color: #c2410c;
}

.cover-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.cover-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 22px rgba(249, 115, 22, 0.42);
}

.cover-submit:disabled {
    cursor: not-allowed;
    opacity: 0.68;
    transform: none;
}

.cover-result {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: linear-gradient(135deg, #fffcf9 0%, #ffffff 100%);
}

.result-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e7e5e4;
}

.result-label {
    display: inline-flex;
    margin-bottom: 0.375rem;
    color: #ea580c;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.result-toolbar .result-heading {
    margin: 0;
    color: #1c1917;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.35;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    border: 1px solid #e7e5e4;
    background: #ffffff;
    color: #57534e;
}

.icon-btn:hover:not(:disabled) {
    border-color: #f97316;
    background: #f97316;
    color: #ffffff;
}

.icon-btn:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.result-empty,
.result-loading {
    display: flex;
    flex: 1;
    min-height: 460px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    font-size: 1.5rem;
}

.result-empty p,
.result-loading p {
    max-width: 420px;
    margin: 0;
    color: #57534e;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.result-output {
    padding-top: 1rem;
}

.output-section {
    margin-bottom: 1rem;
}

.output-section:last-child {
    margin-bottom: 0;
}

.output-section h3 {
    margin: 0 0 0.5rem;
    color: #1c1917;
    font-size: 0.875rem;
    font-weight: 800;
}

.output-section p {
    margin: 0;
    color: #57534e;
    line-height: 1.7;
}

.letter-paper {
    max-height: 520px;
    overflow-y: auto;
    padding: 1.25rem;
    border-left: 4px solid #f97316;
    border-radius: 8px;
    background: #ffffff;
    color: #292524;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.9375rem;
    line-height: 1.82;
    white-space: pre-wrap;
    box-shadow: inset 0 0 0 1px #f5f5f4;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-list span {
    display: inline-flex;
    align-items: center;
    padding: 0.3125rem 0.625rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: #9a3412;
    font-size: 0.75rem;
    font-weight: 700;
}

.tip-list,
.check-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #57534e;
    line-height: 1.75;
}

.tip-list li,
.check-list li {
    margin-bottom: 0.375rem;
}

.content-link {
    color: #c2410c;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-link:hover {
    color: #9a3412;
}

.related-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.related-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.75rem 0.875rem;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    background: #ffffff;
    color: #1c1917;
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.35;
}

.related-links a:hover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.08);
    color: #c2410c;
}

.cover-section {
    padding: 4rem 0;
    background: #ffffff;
}

.cover-section--alt {
    background: #fef7ed;
}

.container.narrow {
    max-width: 900px;
}

.cover-section h2 {
    margin: 0 0 1rem;
    color: #1c1917;
    font-family: "Bricolage Grotesque", "Inter", sans-serif;
    font-size: clamp(1.625rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.18;
}

.cover-section > .container > p,
.cover-section .narrow > p {
    margin: 0 0 1.25rem;
    color: #57534e;
    font-size: 1rem;
    line-height: 1.8;
}

.steps-grid,
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
    padding: 1.25rem;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.info-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    background: #f97316;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 800;
}

.info-card h3 {
    margin: 0 0 0.5rem;
    color: #1c1917;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.info-card p {
    margin: 0;
    color: #57534e;
    font-size: 0.875rem;
    line-height: 1.7;
}

.comparison-table {
    overflow-x: auto;
    margin-top: 1.5rem;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    background: #ffffff;
}

.comparison-table table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e7e5e4;
    text-align: left;
    font-size: 0.875rem;
    vertical-align: top;
}

.comparison-table th {
    background: #fff7ed;
    color: #1c1917;
    font-weight: 800;
}

.comparison-table td {
    color: #57534e;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.example-letter {
    padding: 1.5rem;
    border-left: 4px solid #f97316;
    border-radius: 8px;
    background: #ffffff;
    color: #292524;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.82;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.example-letter p {
    margin: 0 0 1rem;
}

.example-letter p:last-child {
    margin-bottom: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.faq-item {
    padding: 1rem 1.25rem;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    background: #ffffff;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
}

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

.faq-item summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-size: 0.75rem;
    font-weight: 900;
    color: #a8a29e;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
    color: #f97316;
}

.faq-item h3 {
    margin: 0;
    padding-right: 1rem;
    color: #1c1917;
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.5;
}

.faq-item p {
    margin: 0.875rem 0 0;
    color: #57534e;
    font-size: 0.875rem;
    line-height: 1.75;
}

@media (max-width: 992px) {
    .cover-tool {
        grid-template-columns: 1fr;
    }

    .result-empty,
    .result-loading {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .cover-hero {
        padding: 2rem 0 3rem;
    }

    .cover-form-grid,
    .cover-form-grid--three,
    .steps-grid,
    .tips-grid,
    .related-links {
        grid-template-columns: 1fr;
    }

    .cover-actions,
    .result-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .sample-btn,
    .cover-submit {
        width: 100%;
    }

    .result-actions {
        justify-content: flex-start;
    }

    .cover-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .cover-badge {
        align-items: flex-start;
        border-radius: 12px;
        text-align: left;
    }

    .cover-form,
    .cover-result {
        padding: 1rem;
    }

    .letter-paper,
    .example-letter {
        padding: 1rem;
        font-size: 0.875rem;
    }
}
