@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;700;800&display=swap');
:root {
    color-scheme: dark;
    font-family: Outfit, "Noto Sans KR", system-ui, sans-serif;
    --bg: #09090b;
    --surface: #15151a;
    --surface-2: #35343a;
    --text: #ececf1;
    --text-2: #c5c1bd;
    --border: #353538;
    --border-2: #55545a;
    --accent: #f59e0b;
    color: var(--text);
    background: var(--bg);
    font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(1060px, 92%); margin: auto; padding-bottom: 4rem; }
nav { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
nav a { color: var(--text-2); text-decoration: none; }
header { padding: clamp(1rem, 4vw, 3rem) 0 1.4rem; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -.065em; margin: 0; }
h2 { font-size: 1.2rem; margin: 0 0 1.2rem; }
p { line-height: 1.65; color: var(--text-2); }
.workspace { display: grid; grid-template-columns: minmax(235px, .6fr) minmax(0, 1.4fr); gap: 1rem; }
.controls, .preview, .plan { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: clamp(18px, 3vw, 32px); }
.controls label { display: block; margin: 1rem 0 .45rem; }
.controls p { font-size: .9rem; }
input, select, button { font: inherit; }
input[type=number], select { width: 100%; border: 1px solid var(--border-2); padding: 10px; border-radius: 7px; background: var(--bg); color: var(--text); }
button:where(:not([class^="site-"], [class^="site-"] *)) { background: var(--surface-2); color: var(--text); border: 0; border-radius: 8px; padding: .65rem 1rem; cursor: pointer; }
button:where(:not([class^="site-"], [class^="site-"] *)):disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
@media(max-width:680px) { .workspace { grid-template-columns: 1fr; } }
.controls { min-width: 0; }
.controls input[type=file] { width: 100%; max-width: 100%; min-width: 0; }
header h1, header p { word-break: keep-all; overflow-wrap: anywhere; }
header h1 { text-wrap: balance; }
@media screen and (max-width: 680px) {
    header { padding: 1.2rem 0 .65rem; }
    header h1 { font-size: clamp(2rem, 8vw, 2.55rem); line-height: 1.2; }
    header p { margin: .7rem 0; }
}

/* ---- 사이트 모습에 맞춤 (2026-12-01): 글꼴을 실제로 불러오고, 제목과 카드, 입력, 단추를 다른 앱과 같은 말투로 ---- */
:root { --text-3: #8b8b96; --surface-3: #24242c; --accent-dim: rgba(245, 158, 11, .12); --accent-line: rgba(245, 158, 11, .45); --line: rgba(255, 255, 255, .08); }
body { font-family: Outfit, "Noto Sans KR", system-ui, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
main { width: min(1080px, calc(100% - 32px)); }
nav { padding: 18px 0 4px; border-bottom: 0; }
nav a { font: 500 13px/1.4 Outfit, "Noto Sans KR", sans-serif; color: var(--text-3); letter-spacing: .01em; }
nav a:hover { color: var(--accent); }
header { padding: clamp(18px, 4vw, 40px) 0 clamp(16px, 2.5vw, 26px); }
header h1, h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; color: var(--text); }
header p { font-size: clamp(.95rem, 1.6vw, 1.05rem); max-width: 46em; color: var(--text-2); margin: .8rem 0 0; }
h2 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
h3 { font-size: .98rem; font-weight: 700; color: var(--text); }
.controls, .preview, .plan { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .25); }
.plan + .plan, .workspace + .plan, .plan + .workspace, section + section { margin-top: 16px; }
label { color: var(--text-2); font-size: .92rem; font-weight: 500; }
.controls label { margin: 1.1rem 0 .4rem; }
input:not([type]), input[type=text], input[type=search], input[type=email], input[type=url], input[type=tel], input[type=date], input[type=time], input[type=datetime-local], input[type=month], input[type=number], input[type=password], select, textarea {
    font: inherit; font-size: 1rem; color: var(--text); background: #0f0f13; border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 12px; min-height: 44px; max-width: 100%; transition: border-color .15s;
}
textarea { line-height: 1.5; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-dim); }
input::placeholder, textarea::placeholder { color: #6b6b76; }
input[type=range], input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
input[type=range] { width: 100%; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; vertical-align: -3px; }
input[type=file] { font-size: .9rem; color: var(--text-2); max-width: 100%; }
input[type=file]::file-selector-button { font: 600 .92rem/1 Outfit, "Noto Sans KR", sans-serif; color: #1a1206; background: var(--accent); border: 0; border-radius: 10px; padding: 12px 16px; margin-right: 12px; cursor: pointer; }
input[type=file]::file-selector-button:hover { filter: brightness(1.07); }
button:where(:not([class^="site-"], [class^="site-"] *)) { font-weight: 600; border-radius: 10px; min-height: 42px; padding: .6rem 1rem; background: var(--surface-3); border: 1px solid rgba(255, 255, 255, .08); transition: background .15s, border-color .15s; }
button:where(:not([class^="site-"], [class^="site-"] *)):hover:not(:disabled) { background: #2e2e38; border-color: rgba(255, 255, 255, .16); }
button:where(:not([class^="site-"], [class^="site-"] *))[aria-pressed="true"], button:where(:not([class^="site-"], [class^="site-"] *)).active, button:where(:not([class^="site-"], [class^="site-"] *)).on, button:where(:not([class^="site-"], [class^="site-"] *)).primary { background: var(--accent-dim); border-color: var(--accent-line); color: var(--accent); }
button:where(:not([class^="site-"], [class^="site-"] *)).primary { background: var(--accent); color: #1a1206; border-color: transparent; }
details > summary { cursor: pointer; color: var(--text-2); font-weight: 600; padding: 6px 0; }
details > summary:hover { color: var(--text); }
a:where(:not([class^="site-"], [class^="site-"] *)) { color: #fbbf24; text-underline-offset: 3px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--text-3); font-weight: 600; font-size: .82rem; }
footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--text-3); line-height: 1.7; }
footer a { color: var(--text-2); }
code, kbd, pre { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media screen and (max-width: 680px) {
    header h1 { font-size: clamp(1.7rem, 7.4vw, 2.2rem); }
    .controls, .preview, .plan { border-radius: 14px; padding: 16px; }
    button:where(:not([class^="site-"], [class^="site-"] *)) { min-height: 44px; }
}

/* 구석 단추 자리: 폰에서는 계정, 언어, 테마 단추가 사이트 링크와 겹치지 않게 링크를 그 아래 줄로 */
@media screen and (max-width: 560px) { nav { padding-top: 58px; } }

/* 밝은 테마의 입력 칸과 강조 단추: 어두운 칸 바탕과 어두운 글자 단추가 그대로 남지 않게 */
:root[data-theme="light"] :is(input:not([type]), input[type=text], input[type=search], input[type=email], input[type=url], input[type=tel], input[type=date], input[type=time], input[type=datetime-local], input[type=month], input[type=number], input[type=password], select, textarea) { background: #fff; color: #18181b; border-color: #d4d4d8; color-scheme: light; }
:root[data-theme="light"] button.primary, :root[data-theme="light"] input[type=file]::file-selector-button { color: #fff; }
