:root {
  --bg: #f5f7fa; --card: #ffffff; --ink: #162230; --muted: #566577; --line: #e2e8f0;
  --brand: #0b6e78; --brand-ink: #ffffff; --brand-soft: #e5f3f4; --accent: #ef5f2f; --accent-ink: #fff;
  --warn: #fff4e2; --warn-ink: #7a4300; --good: #17794a; --shadow: 0 1px 2px rgba(16,32,48,.05), 0 8px 24px rgba(16,32,48,.06);
  --radius: 16px; --hero-a: #e3f3f4; --hero-b: #f5f7fa;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1319; --card: #151e28; --ink: #eaf0f6; --muted: #a3b0bf; --line: #263341;
    --brand: #38bcc8; --brand-ink: #04191c; --brand-soft: #123039; --accent: #ff8a5c; --accent-ink: #1c0c04;
    --warn: #3a2a12; --warn-ink: #ffd08f; --good: #5dd39e; --shadow: none; --hero-a: #11303a; --hero-b: #0d1319;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 "Noto Sans KR", -apple-system, "Malgun Gothic", sans-serif; -webkit-font-smoothing: antialiased; word-break: keep-all; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* 헤더 */
header.top { background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 21px; text-decoration: none; color: var(--ink); letter-spacing: -0.03em; }
.logo b { color: var(--brand); }
nav.menu { display: flex; align-items: center; gap: 22px; }
nav.menu a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
nav.menu a:hover { color: var(--ink); }
nav.menu a.cta { color: var(--brand-ink); background: var(--brand); padding: 8px 16px; border-radius: 999px; font-weight: 700; }
@media (max-width: 560px) { nav.menu a:not(.cta) { display: none; } }

/* 랜딩 히어로 */
.hero { background: linear-gradient(180deg, var(--hero-a), var(--hero-b)); padding: 72px 0 56px; text-align: center; }
.hero .eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand); background: var(--card); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); margin: 0 0 18px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--muted); max-width: 600px; margin: 0 auto 30px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero.small { padding: 40px 0 24px; text-align: left; background: none; }
.hero.small h1 { font-size: clamp(26px, 4.5vw, 38px); }
.hero.small p.lead { margin: 0; max-width: 640px; }

/* 섹션 */
section.block { padding: 56px 0 8px; }
section.block > h2 { font-size: clamp(22px, 3.6vw, 30px); margin: 0 0 8px; text-align: center; }
section.block > p.sub { color: var(--muted); text-align: center; margin: 0 auto 30px; max-width: 560px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feat .ic { font-size: 30px; display: block; margin-bottom: 10px; }
.feat h3 { margin: 0 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 15.5px; }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 24px; }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* 카드·폼 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 16px; font-size: 20px; }
.start { max-width: 860px; margin: 0 auto; border: 2px solid var(--brand); }
.start h2 { font-size: 24px; margin-bottom: 4px; }
.start .sub { color: var(--muted); margin: 0 0 20px; font-size: 15.5px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
label.f { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
input, select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; min-height: 48px; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; min-height: 0; width: 100%; height: 100%; cursor: pointer; }
.seg span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; background: var(--bg); cursor: pointer; }
.seg input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.stepper { display: flex; gap: 8px; align-items: center; }
.stepper button { width: 48px; height: 48px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 22px; cursor: pointer; }
.stepper input { text-align: center; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 14px; padding: 15px 28px; font: inherit; font-weight: 800; font-size: 17px; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.05); }
.btn.lg { padding: 18px 34px; font-size: 18px; }
.btn.block { display: block; width: 100%; text-align: center; margin-top: 22px; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); padding: 10px 16px; font-weight: 700; font-size: 14.5px; }
.btn.sec { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn.sm { padding: 10px 16px; font-size: 14.5px; border-radius: 12px; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 7px; line-height: 1.55; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sp { justify-content: space-between; }
.hidden { display: none !important; }

/* 단계 표시·접이식 */
.progress { display: flex; gap: 8px; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.progress span { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.progress span.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
details.basic { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
details.basic summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
details.basic summary::-webkit-details-marker { display: none; }
details.basic summary small { color: var(--brand); font-weight: 600; }
details.basic[open] summary { margin-bottom: 16px; }
.q { margin-bottom: 26px; }
.q:last-of-type { margin-bottom: 0; }
.q .t { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.q .d { color: var(--muted); font-size: 14px; margin-bottom: 10px; }

/* 결과 */
.summary { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: var(--brand-soft); border-radius: 14px; padding: 16px; }
.stat small { color: var(--muted); display: block; font-size: 14px; }
.stat b { font-size: 22px; letter-spacing: -0.02em; }
.alert { background: var(--warn); color: var(--warn-ink); padding: 13px 16px; border-radius: 12px; margin-bottom: 12px; font-size: 15px; }
.alert.ok { background: var(--brand-soft); color: var(--good); }
.flight { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; cursor: pointer; background: var(--bg); }
.flight:hover { border-color: var(--brand); }
.flight.sel { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; background: var(--brand-soft); }
.flight .price { font-size: 22px; font-weight: 800; }
.badge { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); margin-right: 5px; font-weight: 700; vertical-align: middle; }
.badge.b2 { background: var(--brand); color: var(--brand-ink); }
.badge.pop { background: #e8e1ff; color: #4a2fb5; }
.badge.hid, .badge.loc { background: #dff5e7; color: #176a3f; }
.badge.tou { background: #ffe9d6; color: #994a00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.pop { background: #2b2552; color: #cbbfff; } :root:not([data-theme="light"]) .badge.hid, :root:not([data-theme="light"]) .badge.loc { background: #163c29; color: #9be3b7; } :root:not([data-theme="light"]) .badge.tou { background: #4a2d12; color: #ffc89a; } }
.bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; margin: 8px 0 14px; background: var(--line); }
.bar i { display: block; }
.legend { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); font-size: 15px; }
.legend span::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 8px; background: var(--c); }
.day h3 { margin: 0 0 8px; font-size: 19px; }
.day h3 small { color: var(--muted); font-weight: 400; font-size: 15px; margin-left: 6px; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.item .tm { color: var(--muted); font-size: 14px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.item .nm { font-weight: 700; }
.item .ds { font-size: 15px; color: var(--muted); }
.item .lk { margin-top: 4px; }
.item .lk a { font-size: 13.5px; margin-right: 12px; white-space: nowrap; }
.item .cs { font-size: 14.5px; text-align: right; white-space: nowrap; color: var(--muted); }
@media (max-width: 560px) { .item { grid-template-columns: 52px 1fr; } .item .cs { grid-column: 2; text-align: left; } }
.dest-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.dest-grid a { display: block; padding: 20px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.dest-grid a:hover { transform: translateY(-2px); border-color: var(--brand); }
.dest-grid a b { display: block; font-size: 18px; }
.dest-grid a small { color: var(--muted); font-size: 14px; }
.dest-grid .em { font-size: 32px; display: block; margin-bottom: 4px; }
.faq h3 { font-size: 17px; margin: 20px 0 4px; }
.faq h3:first-of-type { margin-top: 0; }
.faq p { margin: 0; color: var(--muted); }
footer { color: var(--muted); font-size: 14px; padding: 40px 0 70px; margin-top: 40px; border-top: 1px solid var(--line); }
footer p { margin: 4px 0; }
main > h2.sec { font-size: 24px; margin: 32px 0 14px; }
@media print { header.top, .no-print, footer, form, .progress, details.basic, .hero { display: none !important; } body { background: #fff; color: #000; } .card { border: 0; box-shadow: none; } }

.prose { padding-top: 40px; padding-bottom: 20px; }
.prose h1 { font-size: clamp(28px, 5vw, 38px); margin: 0 0 12px; }
.prose .lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.prose h2 { font-size: 21px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose code { background: var(--brand-soft); padding: 1px 6px; border-radius: 6px; font-size: 14px; }
footer a { color: var(--muted); }

.crumbs { font-size: 14px; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }

/* 유튜브 카드 · 재생 모달 */
.vgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.trank { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.trank .th { display: flex; flex-direction: column; }
.trank .th small { color: var(--muted); font-size: 13.5px; }
.trank > a { font-size: 14.5px; font-weight: 700; text-decoration: none; }
.vcard { display: flex; flex-direction: column; gap: 6px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: inherit; }
.vthumb { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--line); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vthumb i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 28px; background: rgba(0,0,0,.28); }
.vcard:hover .vthumb i { background: rgba(0,0,0,.45); }
.vcard .vt { font-weight: 700; font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .vm { font-size: 12.5px; color: var(--muted); }
.vmodal { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: grid; place-items: center; z-index: 50; padding: 16px; }
.vbox { position: relative; width: min(900px, 100%); }
.vframe { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.vframe iframe { width: 100%; height: 100%; border: 0; display: block; }
.vclose { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 18px; cursor: pointer; }

/* 날씨·환율 카드 */
.xcard h2 small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.xtable { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 15px; }
.xtable th, .xtable td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.xtable thead th { color: var(--muted); font-size: 13px; font-weight: 600; }
.xtable tbody th { font-weight: 700; white-space: nowrap; }
.xtable tr.best { background: var(--brand-soft); }
.xtips { margin: 0 0 8px; padding-left: 20px; }
.xtips li { margin: 4px 0; }
.xconv { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-top: 12px; }
.xconv label { flex: 1; min-width: 130px; font-size: 13px; font-weight: 700; display: block; }
.xconv input { margin-top: 6px; }
.xconv span { padding-bottom: 14px; color: var(--muted); }
