/* 리퀘오(REQEO) 화면. base.css 변수 위에 랜딩·충전·로그인 스타일만 더한다. */

.rq-page { background: #fff; }

.rq-hero {
    padding: 92px 0 76px;
    border-bottom: 1px solid var(--sm-line);
    background: radial-gradient(1200px 420px at 50% -120px, #eef2ff 0%, #ffffff 70%);
    text-align: center;
}

.rq-eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 5px 12px;
    border: 1px solid #d8ddf7;
    border-radius: 999px;
    background: #fff;
    color: #3b47a8;
    font-size: 12px;
    letter-spacing: .06em;
}

.rq-hero h1 {
    word-break: keep-all;
    margin: 0 0 18px;
    font-size: 44px;
    line-height: 1.22;
    letter-spacing: -.02em;
}

.rq-lead {
    margin: 0 0 30px;
    color: var(--sm-muted);
    font-size: 17px;
    line-height: 1.7;
}

.rq-search {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 620px;
    margin: 0 auto 26px;
}

.rq-search input {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
    border: 1px solid var(--sm-line);
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
}

.rq-search input:focus { outline: 2px solid #c7d0ff; border-color: #b9c4ff; }

.rq-search button {
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: var(--sm-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.rq-hero-actions { display: flex; justify-content: center; gap: 10px; }

.rq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    border: 1px solid var(--sm-line);
    border-radius: 10px;
    background: #fff;
    color: var(--sm-text);
    font-size: 15px;
    font-weight: 600;
}
.rq-btn:hover { text-decoration: none; border-color: #c9ccd6; }
.rq-btn--primary { border-color: var(--sm-accent); background: var(--sm-accent); color: #fff; }
.rq-btn--primary:hover { background: #1f47d6; }
.rq-btn--wide { width: 100%; padding: 14px 20px; font-size: 16px; }
.rq-btn[disabled] { opacity: .55; cursor: not-allowed; }
/* 버튼 기능별 색. ui-system.css 의 공통 버튼 규칙보다 우선하도록 body 를 붙이고, 색만으로 구분하지 않게 아이콘을 함께 쓴다. */
/* 아이콘 크기·선은 SVG 속성에 둔다. 1시간 캐시로 예전 CSS 가 남아도 아이콘이 커지지 않는다. */
.rq-btn-icon { flex: 0 0 auto; }
body .rq-btn--charge { background: var(--ui-btn-charge-bg); border-color: var(--ui-btn-charge-line); color: var(--ui-btn-charge-ink); }
body .rq-btn--charge:hover { background: var(--ui-btn-charge-bg-hover); border-color: var(--ui-btn-charge-ink); color: var(--ui-btn-charge-ink); }
body .rq-btn--record { background: var(--ui-paper); border-color: var(--ui-btn-record-line); color: var(--ui-btn-record-ink); }
body .rq-btn--record .rq-btn-icon { color: var(--ui-btn-record-icon); }
body .rq-btn--record:hover { background: var(--ui-btn-record-bg-hover); border-color: var(--ui-btn-record-ink); color: var(--ui-btn-record-ink); }

.rq-section { padding: 66px 0; }
.rq-section--muted { border-top: 1px solid var(--sm-line); background: #fafbfd; }
.rq-section h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.01em; }
.rq-section .rq-lead { margin-bottom: 28px; font-size: 15px; text-align: left; }

.rq-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.rq-card {
    padding: 22px;
    border: 1px solid var(--sm-line);
    border-radius: 14px;
    background: #fff;
}
.rq-card-kicker { color: #6b7280; font-size: 12px; letter-spacing: .04em; }
.rq-card h3 { margin: 8px 0 8px; font-size: 17px; }
.rq-card p { margin: 0 0 14px; color: var(--sm-muted); font-size: 14px; }
.rq-card a { font-size: 14px; font-weight: 600; }

/* 홈 급상승 구역: 줄마다 순위·이름·증감. 고정 폭 없이 줄바꿈으로 좁은 화면을 따른다. */
.rq-trend-list { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.rq-trend-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-width: 0; padding: 14px 18px; border: 1px solid var(--sm-line); border-radius: 14px; background: #fff; overflow-wrap: anywhere; }
.rq-trend-rank { min-width: 1.6em; font-weight: 800; }
.rq-trend-list a { flex: 1 1 0; min-width: 0; font-size: 16px; font-weight: 600; }
.rq-trend-delta { color: var(--sm-accent); font-weight: 800; }
.rq-trend-more { margin: 16px 0 0; }
.rq-trend-more a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }

.rq-dev { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.rq-dev > div { padding: 20px; border: 1px solid var(--sm-line); border-radius: 14px; background: #fff; }
.rq-dev h3 { margin: 0 0 8px; font-size: 16px; }
.rq-dev p { margin: 0; color: var(--sm-muted); font-size: 14px; }
.rq-dev code { padding: 2px 6px; border-radius: 6px; background: #f2f4f8; color: #333; font-size: 13px; }

.rq-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: rq-step; }
.rq-steps li { position: relative; padding: 22px 22px 22px 66px; border: 1px solid var(--sm-line); border-radius: 14px; background: #fff; counter-increment: rq-step; }
.rq-steps li::before { content: counter(rq-step); position: absolute; left: 22px; top: 20px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sm-accent); color: #fff; font-weight: 800; font-size: 14px; }
.rq-steps strong, .rq-points strong { display: block; margin-bottom: 4px; font-size: 16px; }
.rq-steps p, .rq-points p { margin: 0; color: var(--sm-muted); font-size: 14px; }
.rq-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin: 26px 0 0; padding: 0; list-style: none; }
.rq-points li { padding-top: 14px; border-top: 2px solid var(--sm-text); }
.rq-help-link { margin: 32px 0 0; color: var(--sm-muted); font-size: 14px; }

/* 충전 */
.rq-charge {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 56px 20px 80px;
}
.rq-charge h1 { margin: 0 0 6px; font-size: 26px; }
.rq-charge-balance { margin: 0 0 24px; color: var(--sm-muted); }
.rq-charge-balance strong { color: var(--sm-text); font-size: 18px; }

.rq-amounts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}
.rq-amounts li { list-style: none; }
.rq-amount {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid var(--sm-line);
    border-radius: 12px;
    cursor: pointer;
}
.rq-amount input { position: absolute; opacity: 0; pointer-events: none; }
.rq-amount:has(input:checked) { border-color: var(--sm-accent); background: #f4f6ff; box-shadow: inset 0 0 0 1px var(--sm-accent); }
.rq-amount:has(input:focus-visible) { outline: 2px solid var(--sm-accent-dark); outline-offset: 2px; }
.rq-amount-price { font-weight: 700; }
.rq-amount-point { color: var(--sm-muted); font-size: 13px; }
.rq-amount-check { position: absolute; top: 10px; right: 12px; display: none; padding: 1px 8px; border-radius: 999px; background: var(--sm-accent); color: #fff; font-size: 12px; font-weight: 600; }
.rq-amount:has(input:checked) .rq-amount-check { display: inline-block; }
.rq-amount-tag { align-self: flex-start; margin-top: 6px; padding: 1px 8px; border: 1px solid #a8d8cb; border-radius: 999px; background: #e9f6f2; color: var(--ui-btn-charge-ink); font-size: 12px; font-weight: 600; }

.rq-charge-summary { margin: 0 0 22px; color: var(--sm-muted); font-size: 14px; }
.rq-charge-summary strong { color: var(--sm-text); }

.rq-methods { display: grid; gap: 8px; margin: 0 0 18px; }
.rq-methods label, .rq-terms label { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.rq-methods .rq-method { align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--sm-line); border-radius: 10px; cursor: pointer; }
.rq-methods .rq-method:has(input:checked) { border-color: var(--sm-accent); background: #f4f6ff; }
.rq-methods .rq-method:has(input:focus-visible) { outline: 2px solid var(--sm-accent-dark); outline-offset: 2px; }
.rq-methods .rq-method input { flex: 0 0 auto; margin: 0; }
.rq-method-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rq-method-text small { color: var(--sm-muted); font-size: 12px; }
.rq-terms { display: grid; gap: 8px; margin: 0 0 22px; color: var(--sm-muted); }
.rq-note { margin: 14px 0 0; color: #8a8f99; font-size: 12px; }

.rq-alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f4c7c7; border-radius: 10px; background: #fff6f6; color: #a12b2b; font-size: 14px; }

/* 홈 결과물 중심 구성(HOME-01·02, DESIGN-01·02). 색·모서리는 base.css 변수만 쓰고, 미디어는 크기를 먼저 잡아 화면이 밀리지 않게 한다. */
.rq-hero--split { text-align: left; padding: 64px 0 56px; }
.rq-hero--split .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px; align-items: center; }
.rq-hero--split h1 { font-size: 38px; }
.rq-hero--split .rq-search { margin: 0 0 16px; }
.rq-hero--split .rq-hero-actions { justify-content: flex-start; flex-wrap: wrap; }
.rq-hero-preview { margin: 0; }
.rq-hero-preview figcaption { margin-top: 8px; color: var(--sm-muted); font-size: 13px; }
.rq-media { display: block; width: 100%; height: auto; aspect-ratio: auto; border: 1px solid var(--sm-line); border-radius: var(--sm-radius); background: var(--sm-soft); }
.rq-media-error { margin: 8px 0 0; color: #a12b2b; font-size: 13px; }
.rq-text-btn { padding: 0; border: 0; background: none; color: var(--sm-accent); text-decoration: underline; }
.rq-section--tight { padding: 32px 0; }
.rq-muted { color: var(--sm-muted); }
.rq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.rq-chips a { display: inline-block; min-height: 40px; padding: 8px 16px; border: 1px solid var(--sm-line); border-radius: 999px; background: #fff; color: var(--sm-text); font-size: 14px; }
.rq-resume { display: grid; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.rq-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--sm-line); border-radius: 999px; font-size: 12px; color: var(--sm-muted); }
.rq-cards--result { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.rq-card--result { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.rq-card-media { margin: 0 0 8px; }
.rq-card--result h3 { margin: 0; }
.rq-card-facts { display: grid; gap: 4px; margin: 0; font-size: 14px; }
.rq-card-facts div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
.rq-card-facts dt { color: var(--sm-muted); }
.rq-card-facts dd { margin: 0; }
.rq-card-foot { margin: 0 !important; font-size: 12px !important; }
.rq-card--result .rq-btn { align-self: flex-start; margin-top: auto; }
.rq-btn--small { padding: 8px 14px; font-size: 14px; }
.rq-home .rq-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rq-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.rq-section--cta { text-align: center; }
.rq-section--cta .rq-hero-actions { justify-content: center; }
@media (max-width: 900px) {
    .rq-hero--split .inner, .rq-two { grid-template-columns: minmax(0, 1fr); }
    .rq-home .rq-steps { grid-template-columns: minmax(0, 1fr); }
    .rq-hero--split h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 충전 화면 두 단 구성(BILL-02): 왼쪽 상품·결제수단, 오른쪽 주문 요약. 좁은 화면에서는 위아래로 쌓는다. */
.rq-charge--wide { max-width: 1040px; }
.rq-charge-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 32px; align-items: start; }
.rq-charge-h { margin: 18px 0 10px; font-size: 16px; }
.rq-charge-group { min-width: 0; margin: 0; padding: 0; border: 0; }
legend.rq-charge-h { padding: 0; font-weight: 700; }
.rq-charge-need { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #c9d4ff; border-radius: 10px; background: #f4f6ff; font-size: 14px; }
.rq-order { position: sticky; top: 84px; padding: 4px 20px 20px; border: 1px solid var(--sm-line); border-radius: 12px; background: #fff; }
.rq-order-list { display: grid; gap: 8px; margin: 0 0 14px; }
.rq-order-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.rq-order-list dt { color: var(--sm-muted); }
.rq-order-list dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.rq-order-sep { padding-top: 8px; border-top: 1px solid var(--sm-line); }
.rq-order-total { align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--sm-line); }
.rq-order-total dd strong { font-size: 22px; }
.rq-order-details { margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--sm-line); border-radius: 10px; background: #fafbfe; color: var(--sm-muted); font-size: 12px; }
.rq-order-details summary { cursor: pointer; color: var(--sm-text); font-size: 13px; font-weight: 600; }
.rq-order-details p { margin: 8px 0 0; line-height: 1.55; }
.rq-terms { border: 0; padding: 0; }
.rq-terms legend { margin-bottom: 6px; color: var(--sm-text); font-weight: 600; font-size: 14px; }
.rq-btn--wide { width: 100%; }
/* 모바일 하단 고정 결제 바: 요약이 화면 아래로 밀려도 금액과 결제 버튼을 바로 쓸 수 있게 한다. */
.rq-charge-bar { display: none; }
.rq-charge-bar-amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.rq-result-return { margin: 24px 0 0; padding: 18px; border: 1px solid var(--sm-line); border-radius: 12px; text-align: left; }
.rq-result-return h2 { margin: 0 0 6px; font-size: 17px; }
@media (max-width: 860px) {
    .rq-charge-layout { grid-template-columns: minmax(0, 1fr); }
    .rq-order { position: static; }
    .rq-charge--wide { padding-bottom: 96px; }
    .rq-charge-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--sm-line);
        background: #fff;
        box-shadow: 0 -4px 16px rgba(23, 36, 58, .08);
    }
    .rq-charge-bar .rq-btn { flex: 0 0 auto; }
    /* 하단 바와 같은 동작을 하므로 요약 안의 버튼은 숨긴다(중복 클릭 방지). */
    .rq-order > button[data-rq-pay] { display: none; }
}

/* 요금 안내(BILL-01) */
.rq-pricing { width: 100%; max-width: 920px; margin: 0 auto; padding: 56px 20px 80px; }
.rq-pricing h1 { margin: 0 0 8px; font-size: 28px; }
.rq-pricing h2 { margin: 36px 0 12px; font-size: 19px; }
.rq-steps-list, .rq-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.rq-table-wrap { overflow-x: auto; }
.rq-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.rq-table caption { caption-side: bottom; padding-top: 8px; text-align: left; color: var(--sm-muted); font-size: 12px; }
.rq-table th, .rq-table td { padding: 10px 8px; border-bottom: 1px solid var(--sm-line); text-align: right; white-space: nowrap; }
.rq-table thead th { color: var(--sm-muted); font-weight: 600; }
.rq-table th[scope="row"] { text-align: left; }
.rq-faq { display: grid; gap: 14px; margin: 0; }
.rq-faq dt { font-weight: 700; }
.rq-faq dd { margin: 4px 0 0; color: var(--sm-muted); }

/* 결과 */
.rq-result { width: 100%; max-width: 560px; margin: 0 auto; padding: 72px 20px 90px; text-align: center; }
.rq-result h1 { margin: 0 0 12px; font-size: 24px; }
.rq-result p { color: var(--sm-muted); }
.rq-result-point { color: var(--sm-text) !important; font-size: 32px; font-weight: 700; }
.rq-result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }

/* 로그인 */
.rq-google { margin: 18px 0 0; }
.rq-google-slot { display: flex; justify-content: center; min-height: 44px; }
.rq-or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: #9aa0ab; font-size: 12px; }
.rq-or::before, .rq-or::after { content: ""; flex: 1; height: 1px; background: var(--sm-line); }

@media (max-width: 640px) {
    .rq-hero { padding: 60px 0 52px; }
    .rq-hero h1 { font-size: 32px; }
    .rq-lead { font-size: 15px; }
    .rq-search { flex-direction: column; }
    .rq-search button { padding: 13px 20px; }
    .rq-hero-actions { flex-wrap: wrap; }
    .rq-section { padding: 48px 0; }
    .rq-section h2 { font-size: 21px; }
    .rq-steps, .rq-points { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .rq-points { gap: 22px; }
    .rq-amounts { grid-template-columns: minmax(0, 1fr); }
    .rq-methods { flex-wrap: wrap; }
    .rq-charge, .rq-result { padding-top: 36px; }
    .rq-result-actions { flex-wrap: wrap; }
}

@media (min-width: 641px) and (max-width: 900px) {
    .rq-steps { grid-template-columns: minmax(0, 1fr); }
}

/* 작업별 안내 첫 화면(2026-10-27): 왼쪽 제목·설명·버튼, 오른쪽 대표 결과물 */
.rq-use-hero--media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 28px; align-items: start; margin-bottom: 8px; }
.rq-use-hero-media { margin: 0; padding: 10px; border: 1px solid #e1e6f0; border-radius: 14px; background: #f6f8fc; }
.rq-use-hero-media .rq-media { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: 10px; background: #fff; }
.rq-use-hero-media figcaption { margin-top: 8px; font-size: 13px; }
@media (max-width: 860px) { .rq-use-hero--media { grid-template-columns: minmax(0, 1fr); gap: 12px; } .rq-use-hero-media .rq-media { max-height: 56vh; } }
