/* 스모크트레이스 웹사이트 공통 스타일. 디자인 기준: design/design.md, 시안: design/ui.pen */

:root {
  --bg: #FAFCFB;
  --surface: #FFFFFF;
  --sage: #EAF2EC;
  --ink: #203C30;
  --muted: #596E61;
  --green: #285E48;
  --green-strong: #1E4A38;
  --line: #DCE5DF;
  --accent: #A85135;
  --warm: #FBF1EC;
  --brand: #18513A;
  --amber: #E8A33D;
  --sticker: #FF6A2B;
  --sticker-ink: #1F1A17;
  --on-brand: #FFFFFF;
  --on-brand-muted: #D7E6DC;
  --frame: #101820;
  --shadow: 0 24px 48px rgba(32, 60, 48, 0.16);
  --font: Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --page: 1120px;
  --gutter: 80px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1A15;
    --surface: #16231C;
    --sage: #1C2E25;
    --ink: #E8F0EB;
    --muted: #A7B8AD;
    --green: #8FD0AE;
    --green-strong: #B2E2C7;
    --line: #2A3C32;
    --accent: #F0A487;
    --warm: #2B211C;
    --shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -48px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; z-index: 20; }
.skip-link:focus { top: 12px; }

.container { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* 머리말 */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.brand span, .btn { white-space: nowrap; }
.label-short { display: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--green); font-weight: 700; }

/* 버튼·배지 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn--primary { background: var(--green); color: var(--bg); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: var(--green); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--play { background: var(--ink); color: var(--bg); }
/* 머리말의 Play 버튼은 링크라서 .site-nav a의 회색·hover 색을 덮어쓴다. */
.site-nav a.btn--play, .site-nav a.btn--play:hover { color: var(--bg); font-size: 14px; font-weight: 700; }
.btn--play:hover, .btn--primary:hover { filter: brightness(1.12); }
.btn[aria-disabled="true"] { cursor: default; }
.btn svg { width: 16px; height: 16px; flex: none; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--sage); color: var(--ink); font-size: 14px; font-weight: 600; }
.chip::before { content: "✓"; color: var(--green); font-weight: 800; }

/* 폰 화면 */
.phone { width: 260px; flex: none; padding: 9px; border-radius: 40px; background: var(--frame); box-shadow: var(--shadow); }
.phone img { width: 100%; aspect-ratio: 720 / 1419; object-fit: cover; object-position: top; border-radius: 31px; background: #FAFCFB; }
.phone--small { width: 200px; padding: 7px; border-radius: 32px; }
.phone--small img { border-radius: 25px; }
.widget { border-radius: 22px; box-shadow: 0 14px 32px rgba(32, 60, 48, 0.18); }
figure { margin: 0; }
figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 500; text-align: center; }

/* 홈 · 히어로 */
.hero { padding: 72px 0 64px; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero__text { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.035em; }
.lead-strong { display: block; color: var(--green); }
.lead-inline { display: inline; }
.hero__lead { color: var(--muted); font-size: 18px; }
.hero__visual { position: relative; min-height: 600px; }
.hero__visual::before { content: ""; position: absolute; left: 7%; top: 6%; width: min(480px, 90%); aspect-ratio: 1; border-radius: 50%; background: var(--sage); }
.hero__visual .phone { position: absolute; }
.hero__visual .phone:nth-of-type(1) { left: 6%; top: 0; transform: rotate(-4deg); }
.hero__visual .phone:nth-of-type(2) { right: 0; top: 40px; transform: rotate(3deg); }
.hero__widget { position: absolute; left: 0; bottom: 0; width: min(340px, 64%); }

/* 홈 · 기능 섹션 */
.section { padding: 88px 0; }
.section--surface { background: var(--surface); }
.feature { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
.feature--reverse .feature__text { order: 2; }
.feature__text { display: grid; gap: 18px; }
.section-title { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; }
.section-title .lead-strong--accent { color: var(--accent); }
.section-title--spaced { margin-top: 10px; }
.section-desc { color: var(--muted); font-size: 17px; }
.points { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; font-weight: 500; line-height: 1.55; }
.points li::before { content: "✓"; color: var(--green); font-weight: 800; }
.feature__visual { display: flex; justify-content: center; gap: 24px; }
.feature__visual--panel { flex-direction: column; align-items: center; gap: 20px; padding: 40px; border-radius: 32px; background: var(--sage); }
.feature__visual--panel .widget { width: min(420px, 100%); }
.centered { display: grid; justify-items: center; gap: 16px; max-width: 760px; margin: 0 auto; text-align: center; }
.nag-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 36px auto 0; padding: 0; list-style: none; }
.nag-chips li { padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 600; }
.nag-chips .hot { background: var(--sticker); border: 2px solid var(--sticker-ink); color: var(--sticker-ink); font-weight: 700; }
.nag-chips .own { color: var(--green); border: 1.5px solid var(--green); }
.small-note { margin-top: 20px; color: var(--muted); font-size: 14px; text-align: center; }
.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 230px)); justify-content: center; gap: 28px; margin-top: 40px; padding: 0; list-style: none; }
.styles .phone { width: 100%; }
.styles figcaption { color: var(--ink); font-size: 15px; font-weight: 600; }
.notice { display: flex; align-items: flex-start; gap: 10px; width: fit-content; max-width: 100%; margin: 36px auto 0; padding: 14px 20px; border-radius: 16px; background: var(--warm); color: var(--ink); font-size: 15px; font-weight: 500; }
.notice::before { content: "ⓘ"; color: var(--accent); font-weight: 800; }

/* 홈 · 개인정보 띠 */
.privacy-band { padding: 96px 0; background: var(--brand); color: var(--on-brand); }
.privacy-band .eyebrow, .privacy-band .lead-strong { color: var(--amber); }
.privacy-band .section-title { color: var(--on-brand); }
.privacy-band .section-desc { color: var(--on-brand-muted); }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; }
.promises li { display: grid; align-content: start; gap: 10px; padding: 24px; border-radius: 22px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); }
.promises .icon { font-size: 22px; line-height: 1; color: var(--amber); }
.promises h3 { font-size: 18px; color: var(--on-brand); }
.promises p { color: var(--on-brand-muted); font-size: 14px; line-height: 1.65; }
.band-link { display: flex; justify-content: center; margin-top: 40px; }
.band-link .btn { background: #FFFFFF; color: var(--brand); }

/* 홈 · 알아 두세요, 마무리 */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
.card { display: grid; align-content: start; gap: 10px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 18px; }
.card p { color: var(--muted); font-size: 15px; }
.closing { display: grid; justify-items: center; gap: 20px; padding: 40px 0 104px; text-align: center; }
.closing img { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 16px 32px rgba(24, 81, 58, 0.25); }
.closing h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.closing p { color: var(--muted); font-weight: 500; }

/* 푸터 */
.site-footer { padding: 48px 0; background: var(--sage); }
.site-footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer__about { display: grid; gap: 10px; max-width: 420px; }
.site-footer__about p { color: var(--muted); font-size: 14px; }
.site-footer__links { display: flex; gap: 56px; flex-wrap: wrap; }
.site-footer__links h2 { font-size: 13px; letter-spacing: 0; margin-bottom: 10px; }
.site-footer__links ul { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; font-size: 14px; }
.site-footer__links a, .site-footer__links span { color: var(--muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* 하위 페이지 머리 띠 */
.page-band { padding: 56px 0 44px; background: var(--sage); }
.page-band h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; }
.page-band__desc { margin-top: 14px; color: var(--muted); font-size: 18px; }
.topics { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.topics a { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.topics a:hover { border-color: var(--green); }
.topics .icon { color: var(--green); font-size: 20px; line-height: 1; }

/* 목차가 있는 2열 본문 */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; padding: 48px 0 72px; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.toc__title { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.toc ol, .toc-mobile ol { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }
.toc a, .toc-mobile a { display: block; padding: 7px 10px; border-radius: 9px; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.toc a:hover, .toc-mobile a:hover { background: var(--sage); color: var(--green); }
.toc-mobile { display: none; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.toc-mobile summary { cursor: pointer; font-size: 15px; font-weight: 700; }

/* 사용법 */
.steps { display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 96px; }
.step--text { grid-template-columns: minmax(0, 1fr); }
.step__head { display: flex; align-items: center; gap: 12px; }
.step__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--bg); font-size: 16px; font-weight: 800; flex: none; }
.step h2 { font-size: 24px; font-weight: 800; }
.step__body { display: grid; gap: 14px; align-content: start; }
.step__body > p { color: var(--muted); }
.step ol { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.step ol li::marker { color: var(--green); font-weight: 800; }
.step__shots { display: flex; gap: 16px; align-items: flex-start; }
.step__shots--stack { flex-direction: column; }
.step__shots .phone { width: 190px; padding: 7px; border-radius: 30px; }
.step__shots .phone img { border-radius: 24px; }
.step__shots .widget { width: 300px; }
.faq { display: grid; gap: 12px; padding-top: 24px; scroll-margin-top: 96px; }
.faq > h2 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.faq details { padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 17px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "⌄"; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.contact { display: flex; align-items: flex-start; gap: 16px; margin-top: 28px; padding: 24px; border-radius: 22px; background: var(--warm); }
.contact::before { content: "✉"; color: var(--accent); font-size: 24px; line-height: 1.2; }
.contact h2 { font-size: 17px; letter-spacing: 0; }
.contact p { color: var(--muted); font-size: 15px; }

/* 개인정보처리방침 */
.lede { display: flex; align-items: flex-start; gap: 14px; margin-top: 20px; padding: 18px 22px; border-radius: 18px; background: var(--surface); font-size: 17px; font-weight: 600; line-height: 1.6; }
.lede::before { content: "🛡"; font-size: 22px; line-height: 1.2; }
.meta { margin-top: 12px; color: var(--muted); font-size: 15px; font-weight: 500; }
.labels-wrap { padding-top: 36px; }
.labels-wrap > h2 { color: var(--muted); font-size: 14px; letter-spacing: 0.02em; }
.labels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.labels a { display: grid; align-content: start; gap: 6px; height: 100%; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.labels a:hover { border-color: var(--green); }
.labels .icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sage); color: var(--green); font-size: 20px; margin-bottom: 4px; }
.labels .label-name { color: var(--muted); font-size: 13px; font-weight: 600; }
.labels .label-value { font-size: 16px; font-weight: 800; line-height: 1.4; }
.labels .label-link { color: var(--green); font-size: 12px; font-weight: 600; }
.policy { display: grid; gap: 40px; }
.policy > p { font-size: 16px; line-height: 1.75; }
.article { display: grid; gap: 14px; padding-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.article:last-of-type { border-bottom: 0; padding-bottom: 0; }
.article h2 { font-size: 22px; font-weight: 800; }
.article p, .article li { line-height: 1.75; }
.article ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.article ul li::marker { color: var(--green); }
.box { padding: 16px 20px; border-radius: 16px; background: var(--sage); }
.box strong { display: block; color: var(--green); font-size: 15px; margin-bottom: 4px; }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 15px; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--sage); color: var(--green); font-size: 14px; }
tbody th { width: 200px; font-weight: 700; }
.policy-foot { color: var(--muted); font-size: 14px; }

/* 태블릿 */
@media (max-width: 1080px) {
  :root { --gutter: 40px; }
  .topics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .labels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .styles { grid-template-columns: repeat(2, minmax(0, 230px)); }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero__inner, .feature, .feature--reverse { grid-template-columns: minmax(0, 1fr); }
  .feature--reverse .feature__text { order: 0; }
  .hero__visual { min-height: 560px; max-width: 560px; width: 100%; margin: 0 auto; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .toc { display: none; }
  .toc-mobile { display: block; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step__shots { justify-content: center; flex-wrap: wrap; }
}

/* 모바일 */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .site-header__inner { min-height: 60px; }
  .brand { font-size: 16px; }
  .brand img { width: 28px; height: 28px; border-radius: 8px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 14px; font-weight: 600; }
  .site-nav .nav-feature, .site-nav .btn--play { display: none; }
  .site-header__inner { gap: 12px; }
  .label-long { display: none; }
  .label-short { display: inline; }
  .hero { padding: 36px 0 40px; }
  .hero__lead { font-size: 16px; }
  .hero .buttons { display: grid; }
  .hero__visual { min-height: 420px; }
  .hero__visual::before { left: 2%; top: 7%; width: 88%; }
  .hero__visual .phone { width: 46%; padding: 6px; border-radius: 26px; }
  .hero__visual .phone img { border-radius: 21px; }
  .hero__visual .phone:nth-of-type(1) { left: 2%; }
  .hero__widget { width: 62%; }
  .section, .privacy-band { padding: 52px 0; }
  .feature { gap: 28px; }
  .feature__visual { gap: 10px; }
  .feature__visual .phone { width: 46%; padding: 6px; border-radius: 26px; }
  .feature__visual .phone img { border-radius: 21px; }
  .feature__visual--panel { padding: 16px; border-radius: 24px; }
  .section-desc { font-size: 16px; }
  .nag-chips { justify-content: flex-start; gap: 8px; }
  .nag-chips li { font-size: 14px; padding: 9px 14px; }
  .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .notice { font-size: 14px; }
  .promises { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 28px; }
  .promises li { padding: 18px; }
  .closing { padding: 24px 0 56px; }
  .closing img { width: 80px; height: 80px; border-radius: 20px; }
  .site-footer { padding: 32px 0; }
  .site-footer__links { gap: 28px; }
  .page-band { padding: 32px 0 24px; }
  .page-band__desc { font-size: 15px; }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics a { padding: 12px; font-size: 14px; }
  .labels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .labels a { padding: 12px; }
  .labels .icon { width: 34px; height: 34px; font-size: 16px; }
  .step { padding: 20px; gap: 16px; border-radius: 22px; }
  .step h2 { font-size: 20px; }
  .step__shots .phone { width: calc(50% - 8px); }
  .step__shots .widget { width: 100%; }
  .lede { font-size: 15px; padding: 16px; }
  .article h2 { font-size: 18px; }
  .article p, .article li, table { font-size: 15px; }
  tbody th { width: 96px; }
  th, td { padding: 10px 12px; }
}
