/* ============================================
   momQ PSEO Content Page Styles
   Based on Figma design (node 160:709)
   ============================================ */

:root {
    --color-main: #D9272D;
    --color-main-bright: #F73737;
    --color-text-dark: #333333;
    --color-text-default: #444444;
    --color-border: #E8E8E8;
    --color-bg-white: #FFFFFF;
    --color-bg-label: #F4F4F4;
    --color-bg-faq-answer: #F6F5F5;
    --color-bg-tab-border: #F7F7F7;
}

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

body {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-bg-white);
    color: var(--color-text-default);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Page Wrapper - 360px 고정 (피그마 기준 모바일 해상도) */
.page-wrapper {
    width: 360px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
}

/* Title Section */
.title-section {
    padding: 12px 16px 0;
}

.title-box {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
    padding-left: 4px;
    padding-right: 4px;
}

.title-box .visual-h1 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text-dark);
    letter-spacing: -0.36px;
}

/* Hero Image */
.hero-image-section {
    padding: 16px 16px 0;
}

.hero-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 24px;
}

/* Content Area - 좌우 20px 패딩 (360 - 20*2 = 320px 콘텐츠) */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 16px 20px 0;
}

/* Section Heading */
.section-heading {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 15px;
}

.heading-diamond {
    color: var(--color-main-bright);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.28px;
    line-height: 1.4;
}

.section-heading h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-default);
    letter-spacing: -0.36px;
    line-height: 1.4;
}

/* Summary Table - 328px (본문 320px보다 넓게, 피그마 기준) */
.summary-table {
    width: calc(100% + 8px);
    margin-left: -4px;
    margin-right: -4px;
    border-top: 1px solid var(--color-border);
    overflow: hidden;
}

.table-head {
    display: flex;
    background-color: var(--color-bg-label);
    border-bottom: 1px solid var(--color-border);
}

.table-head .table-cell {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-default);
    text-align: center;
    letter-spacing: -0.28px;
    padding: 10px 0;
    line-height: normal;
}

.table-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.table-cell {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-default);
    text-align: center;
    letter-spacing: -0.28px;
    padding: 12px 8px;
    line-height: 1.4;
}

.table-cell--label {
    width: 88px;
    flex-shrink: 0;
}

.table-cell--content {
    flex: 1;
}

/* Text Content */
.text-content {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-default);
    line-height: 1.4;
    letter-spacing: -0.28px;
}

/* 피그마: whitespace-pre-wrap 방식 — 빈 줄은 <p>&nbsp;</p>로 표현 */

/* Labeled Items */
.labeled-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.labeled-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.label-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
}

.label-tag span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-label);
    border-radius: 4px;
    padding: 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-default);
    letter-spacing: -0.3px;
    line-height: 1.4;
    max-height: 20px;
}

.labeled-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-default);
    line-height: 1.4;
    letter-spacing: -0.28px;
}

/* 빈 줄: <p>&nbsp;</p> 사용 */

/* Ordered/Unordered Lists inside content */
.text-content ol,
.text-content ul,
.labeled-text ol,
.labeled-text ul {
    margin-left: 21px;
    padding: 0;
}

.text-content ol {
    list-style: decimal;
}

.text-content ul {
    list-style: disc;
}

.labeled-text ol {
    list-style: decimal;
}

.labeled-text ul {
    list-style: disc;
}

.text-content li,
.labeled-text li {
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: -0.28px;
    color: var(--color-text-default);
}

/* Checklist Card */
.checklist-card {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background-color: var(--color-bg-white);
    padding: 0 16px;
}

.checklist-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 4px;
}

.checklist-item--bordered {
    border-bottom: 1px solid var(--color-border);
}

.checklist-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-default);
    line-height: 1.4;
    letter-spacing: -0.28px;
}

/* FAQ Section */
.faq-section .section-heading {
    margin-bottom: 16px;
}

.faq-item:first-child .faq-question {
    padding-top: 0;
}

/* FAQ 리스트 - 328px (본문 320px보다 넓게, 피그마 기준) */
.faq-list {
    display: flex;
    flex-direction: column;
    width: calc(100% + 8px);
    margin-left: -4px;
    margin-right: -4px;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 4px;
    width: 100%;
    text-align: left;
}

.faq-question-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-default);
    line-height: 1.4;
    letter-spacing: -0.28px;
    padding-left: 1.3em;
    text-indent: -1.3em;
}

.faq-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-arrow::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-text-default);
    border-bottom: 2px solid var(--color-text-default);
    transform: rotate(45deg);
    margin-top: -4px;
}

.faq-item--open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    background-color: var(--color-bg-faq-answer);
    border-top: 1px solid var(--color-border);
    padding: 12px 16px;
}

.faq-item--open .faq-answer {
    display: block;
}

.faq-answer p {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-default);
    line-height: 1.4;
    letter-spacing: -0.28px;
}

/* CTA Button - 328px 영역 (px-16) */
.cta-section {
    display: flex;
    justify-content: center;
    padding: 20px 16px;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    max-width: 328px;
    height: 44px;
    background-color: var(--color-main-bright);
    border-radius: 8px;
    padding: 12px 20px;
    overflow: hidden;
}

.cta-button span {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-bg-white);
    letter-spacing: -0.14px;
    line-height: 1.4;
    white-space: nowrap;
}

.cta-arrow {
    font-size: 16px;
}

/* Source Section - 피그마: text-indent 20px, 전체폭 360px */
.source-section {
    padding: 0 0 16px;
}

.source-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-default);
    line-height: 1.4;
    letter-spacing: -0.28px;
    text-indent: 20px;
}

.source-text a {
    text-decoration: underline;
}

/* Footer Image */
.footer-image-section {
    width: 100%;
}

.footer-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

