@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #F6F7F5; --surface: #FFFFFF; --sunk: #EEF1EE; --fg: #14201B; --muted: #5C6A63; --line: #DCE3DE;
  --brand: #0E6B4F; --brand-ink: #FFFFFF; --brand-soft: #E1F2EA;
  --high: #C2342B; --high-soft: #FBE7E5; --medium: #C26A12; --medium-soft: #FCEEDC;
  --low: #8A7A0C; --low-soft: #F6F1D5; --check: #4F6275; --check-soft: #E7ECF1;
  --radius: 16px; --shadow: 0 1px 2px rgba(15, 30, 22, .05), 0 12px 32px rgba(15, 30, 22, .07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1311; --surface: #151C19; --sunk: #1B2420; --fg: #E8EFEB; --muted: #9BAAA2; --line: #26322D;
    --brand: #3CC690; --brand-ink: #062015; --brand-soft: #143528;
    --high: #FF7A70; --high-soft: #3A1C1A; --medium: #F2A55A; --medium-soft: #3A2814;
    --low: #E3CF58; --low-soft: #332E12; --check: #9FB4C8; --check-soft: #1F2A35;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; text-decoration: none; color: var(--fg); }
.brand i { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; }
.brand i::after { content: ""; width: 11px; height: 6px; border-left: 3px solid var(--brand-ink); border-bottom: 3px solid var(--brand-ink); transform: rotate(-45deg) translate(1px, -1px); }
.nav nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
@media (max-width: 560px) { .nav nav a.link { display: none; } }

.btn { appearance: none; border: 0; cursor: pointer; border-radius: 12px; padding: 12px 18px; font-weight: 700; font-size: 15px; background: var(--sunk); color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: default; }

/* hero */
.hero { padding: 48px 0 24px; }
.hero .wrap { display: grid; gap: 32px; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: .95fr 1.05fr; align-items: start; } .hero { padding: 64px 0 40px; } }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 5px 12px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.lede { color: var(--muted); font-size: 18px; margin: 16px 0 22px; max-width: 34em; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.points li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E6B4F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* checker card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.checker { display: grid; gap: 20px; scroll-margin-top: 80px; }
.step h2 { font-size: 16px; font-weight: 750; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.step h2 b { width: 22px; height: 22px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 12px; display: grid; place-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--bg); }
.chips input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chips input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.sub-options { margin-top: 12px; display: grid; gap: 8px; background: var(--sunk); border-radius: 12px; padding: 12px; font-size: 14.5px; }
.sub-options label.inline { display: flex; gap: 8px; align-items: center; font-weight: 600; }
input[type=text], input[type=email], textarea { width: 100%; font: inherit; font-size: 15px; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
textarea { min-height: 150px; resize: vertical; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs button { flex: 1; border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 10px; padding: 9px; font-weight: 700; cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 22px 16px; text-align: center; color: var(--muted); cursor: pointer; background: var(--bg); }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop b { color: var(--fg); display: block; font-size: 16px; margin-bottom: 4px; }
.files { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.files figure { margin: 0; width: 64px; position: relative; }
.files img { width: 64px; height: 88px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); display: block; }
.files figcaption { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 2px; }
.files button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--fg); color: var(--bg); font-size: 12px; line-height: 20px; cursor: pointer; padding: 0; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.linkish { background: none; border: 0; color: var(--brand); font-weight: 600; cursor: pointer; padding: 0; font-size: 14px; }
.notice { font-size: 13.5px; color: var(--muted); background: var(--sunk); border-radius: 10px; padding: 10px 12px; }
.error { color: var(--high); font-weight: 600; font-size: 14.5px; }
.progress { display: grid; gap: 8px; }
.bar { height: 10px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .3s ease; }

/* report */
.report { padding: 8px 0 40px; scroll-margin-top: 70px; }
.report-head { display: grid; gap: 14px; }
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.counts div { border-radius: 12px; padding: 10px 12px; }
.counts b { display: block; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.counts span { font-size: 13.5px; font-weight: 600; }
.c-high { background: var(--high-soft); color: var(--high); } .c-medium { background: var(--medium-soft); color: var(--medium); }
.c-low { background: var(--low-soft); color: var(--low); } .c-check { background: var(--check-soft); color: var(--check); }
@media (max-width: 520px) { .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.findings { display: grid; gap: 12px; margin-top: 18px; }
.finding { display: grid; grid-template-columns: 76px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.finding.notile { grid-template-columns: 1fr; }
.finding .thumb { width: 76px; height: 104px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; object-position: top; cursor: zoom-in; background: var(--sunk); }
.finding .body { display: grid; gap: 7px; min-width: 0; }
.badge { justify-self: start; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.quote { font-weight: 700; font-size: 16px; background: linear-gradient(transparent 58%, var(--high-soft) 58%); }
.finding .why { color: var(--muted); font-size: 14.5px; }
.basis { font-size: 13px; color: var(--muted); }
.alt { background: var(--brand-soft); border-radius: 10px; padding: 9px 11px; font-size: 14.5px; display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.alt span::before { content: "바꿔 쓰기  "; font-weight: 800; color: var(--brand); }
.vote { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.vote button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 8px; padding: 3px 9px; font-size: 13px; cursor: pointer; }
.vote button[aria-pressed=true] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.empty { text-align: center; padding: 26px; color: var(--muted); }

/* sections */
section.block { padding: 56px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 800; }
.intro { color: var(--muted); margin-top: 10px; max-width: 40em; }
.grid3 { display: grid; gap: 14px; margin-top: 26px; }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tile h3 { font-size: 18px; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile .num { font-size: 13px; font-weight: 800; color: var(--brand); margin-bottom: 8px; }
.sources { margin-top: 20px; display: grid; gap: 8px; padding-left: 18px; color: var(--muted); }
.price .amount { font-size: 30px; font-weight: 800; margin: 6px 0; font-variant-numeric: tabular-nums; }
.price .amount small { font-size: 15px; color: var(--muted); font-weight: 600; }
.price ul { padding-left: 18px; color: var(--muted); font-size: 15px; display: grid; gap: 4px; margin: 10px 0 16px; }
.price.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.faq { margin-top: 20px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 17px; }
.faq p { color: var(--muted); padding-bottom: 16px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: grid; gap: 8px; }
footer nav { display: flex; gap: 16px; }

dialog { width: min(460px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(8, 14, 11, .5); }
dialog h3 { font-size: 20px; margin-bottom: 8px; }
dialog form { display: grid; gap: 10px; }
dialog .row { justify-content: flex-end; }
dialog.zoom { width: min(720px, calc(100% - 24px)); padding: 10px; }
dialog.history { width: min(560px, calc(100% - 32px)); }
.history-list { display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; }
.history-list button { display: grid; gap: 4px; text-align: left; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font: inherit; cursor: pointer; }
.history-list button:hover { border-color: var(--brand); }
.history-list .meta { font-size: 13px; color: var(--muted); }
.history-list .sum { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog.zoom img { width: 100%; display: block; border-radius: 10px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; max-width: calc(100% - 32px); z-index: 20; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bar span { transition: none; } }
