.faq-page .header h1 {
    font-size: clamp(1.6em, 4.5vw, 2.5em);
    text-wrap: balance;
    line-height: 1.6;
}
:lang(ko) .faq-page .header h1 {
    font-size: clamp(1.4em, 4.5vw, 2.6em);
}
:lang(ja) .faq-page .header h1 {
    font-size: clamp(1.3em, 4.5vw, 2.6em);
}
:lang(zh-hans) .faq-page .header h1 {
    font-size: clamp(1.7em, 4.5vw, 2.6em);
    text-wrap: wrap;
}
:lang(zh-hant) .faq-page .header h1 {
    font-size: clamp(1.6em, 4.5vw, 2.6em);
}


.faq-page .header p {
    font-size: clamp(0.9em, 2.5vw, 1.2em);
    text-wrap: balance;
}
:lang(zh-hans) .faq-page .header p,
:lang(zh-hant) .faq-page .header p {
    font-size: clamp(0.95em, 3.5vw, 1.3em);
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.toc-card {
    margin: 16px 0 32px;
    padding: 16px clamp(20px, 3vw, 30px);
    border-radius: 16px;
    background: var(--card-bg, #fff);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    counter-reset: toc;
}

.toc-list li a {
    color: var(--text-color);
    display: block;
    padding: clamp(5px, 1.5vw, 10px) clamp(10px, 1.5vw, 12px) clamp(5px, 1.5vw, 10px) 40px;
    line-height: 1.45;
    text-decoration: none;
    border-radius: 12px;
    position: relative;
    font-weight: 500;
    font-size: clamp(0.85em, 2.5vw, 1em);
}
:lang(zh-hans) .toc-list li a,
:lang(zh-hant) .toc-list li a {
    font-size: clamp(0.8em, 2.5vw, 1.15em);
}

.toc-list li a::before {
    counter-increment: toc;
    content: counter(toc) ".";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--muted, #666);
}

.toc-list li a:hover { 
    background: var(--cursor-hover-color); 
}
.toc-list li a:focus-visible {
    outline: 2px solid var(--primary, #ff6a3d);
    outline-offset: 2px;
    background: var(--cursor-hover-color);
}


.theory-section {
    margin: clamp(10px, 5vw, 30px);
    margin-bottom: 40px;
    padding: clamp(20px, 3.5vw, 30px);
    background: var(--result-section-bg);
    border-radius: 15px;
    border-top: 5px solid var(--section-title-border);
}

/* #difference {
    border-top-color: #4a90e2;
}

#stages {
    border-top-color: #50c878;
}

#usage {
    border-top-color: #f39c12;
}

#faq {
    border-top-color: #9b59b6;
} */

#difference, #stages, #usage, #faq {
    border-top-color: var(--section-title-border);
}

.theory-section h2 {
    color: var(--text-color);
    font-size: clamp(1.45em, 5vw, 2.2em);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.7;
    border-bottom: 2px solid var(--border-color);
}
:lang(en) .theory-section h2 {
    font-size: clamp(1.4em, 3.5vw, 2em);
}
:lang(ja) .theory-section h2 {
    font-size: clamp(1.35em, 5vw, 2.2em);
}

.theory-section h3 {
    color: var(--text-color);
    font-size: clamp(1.2em, 2.5vw, 1.6em);
    margin: 20px 0 20px 0;
    font-weight: 600;
}

.theory-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: clamp(0.85em, 2.5vw, 1.1em);
}
:lang(ja) .theory-section p {
    font-size: clamp(0.79em, 2.5vw, 1.1em);
}




.compare{
    width:100%;
    border-collapse:collapse;
    background:var(--card-bg);
    border:1px solid var(--border-color);
    border-radius:15px;
    overflow:hidden;
    table-layout:fixed;
}

/* 헤더: 좌/우 컬럼 배경을 기존 색감으로 */
.compare thead th{
    padding: clamp(8px, 2.5vw, 12px);
    line-height:1.6;
    text-wrap:balance;
    font-weight:700;
    font-size: clamp(0.85em, 2.5vw, 1.1em);
    text-align:center;
    border-bottom:1px solid var(--border-color);
}
:lang(en) .compare thead th{
    font-size: clamp(0.78em, 2.5vw, 1.1em);
}
.compare thead th:first-child{
    background: rgba(255,107,107,0.1);           /* comparison-others */
    border-right:1px solid var(--border-color);
}
.compare thead th:last-child{
  background: rgba(107,255,107,0.1);           /* comparison-ours   */
}

.compare a {
    color: var(--link-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

/* 셀 공통 */
.compare td{
    padding: clamp(8px, 2.5vw, 10px);
    line-height:1.6;
    text-wrap:balance;
    text-align:center;
    color: var(--text-color);
    font-size: clamp(0.75em, 2.5vw, 0.95em);
    border-bottom:1px solid var(--border-color);
}
/* 좌/우 열 배경(데스크톱) */
.compare tbody td:first-child{
    background: rgba(255,107,107,0.06);
    border-right:1px solid var(--border-color);
}
.compare tbody td:last-child{
    background: rgba(107,255,107,0.06);
}

/* 마지막 행 보더 제거 */
.compare tbody tr:last-child td{ border-bottom:0 }

.compare.responsive-table { 
    margin-bottom: clamp(16px, 3vw, 32px);
}



.faq-answer ul {
    margin: 15px 0;
    padding-left: 25px;
}

.faq-answer li {
    margin: 10px 0;
    line-height: 1.7;
}

.faq-answer strong {
    color: var(--primary-color);
}












.stage-guide, .usage-guide {
    display: grid;
    gap: clamp(20px, 2.5vw, 30px);
    margin: 30px 0;
}

.stage-item {
    background: var(--share-section-bg);
    padding: 10px clamp(10px, 2.5vw, 25px) clamp(10px, 2.5vw, 20px);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.theory-section .stage-item h3, .theory-section .usage-item h3 {
    color: var(--how-it-works-h3-color);
    margin-bottom: clamp(10px, 5vw, 30px);
    text-wrap: balance;
    text-align: center;
    line-height: 1.6;
}


.stage-item ul {
    padding-left: 20px;
    margin: 15px 0;
}

.stage-item li {
    margin-bottom: 15px;
    font-size: clamp(0.75em, 2.5vw, 1.05em);
}
:lang(zh-hans) .stage-item li,
:lang(zh-hant) .stage-item li {
    font-size: clamp(0.8em, 3vw, 1.1em);
}




/* 활용 가이드 스타일 - FAQ와 동일한 구조 */
.usage-guide {
    display:grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: clamp(10px, 2.5vw, 16px);
    margin-bottom: 30px;
}

.guide-step{
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: clamp(12px, 2vw, 16px);
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.guide-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.guide-question{
    margin: 10px 0 !important;
    font-weight: 700;
    line-height: 1.4;
    text-wrap: balance;
    font-size: clamp(0.9em, 3.5vw, 1.2em) !important;
    text-align: center;
}

.usage-guide .guide-answer{
    max-height: none;
    /* padding: clamp(0px, 2vw, 12px) clamp(0px, 2.5vw, 20px); */
    text-wrap: balance;
    text-align: center;
}

.divider {
    height: 5px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 15px 0;
}

.faq-section {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
}

.faq-item {
    background: transparent;
    border: none;
    border-radius: 0;
}

.theory-section .faq-question {
    color: var(--text-color);
    margin: 0;
    font-size: clamp(0.8em, 3.5vw, 1.2em);
    padding: clamp(12px, 2.5vw, 25px);
    font-weight: 500 !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
:lang(en)  .theory-section .faq-question {
    font-size: clamp(0.8em, 2.5vw, 1.15em);
    line-height: 1.6;
}
:lang(zh-hans)  .theory-section .faq-question,
:lang(zh-hant)  .theory-section .faq-question {
    font-size: clamp(0.7em, 3.5vw, 1.3em);
    line-height: 1.6;
}

.faq-question:hover {
    background: var(--section-title-border);
    color: white;
}

.guide-icon, .faq-icon {
    font-size: 0.7em;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.faq-answer.active {
    padding: clamp(15px, 2.5vw, 25px);
}

.guide-answer p, .faq-answer p  {
    color: var(--text-color);
    line-height: 2;
    margin: 0;
    font-size: clamp(0.8em, 2.5vw, 1.1em);
}

.guide-step.active .guide-icon, .faq-step.active .faq-icon {
    transform: rotate(180deg);
}


@media (min-width: 720px) {
    .toc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}