/* 단비랩 AI 가이드 — 🛠️ AI LIFE STUDIO (생활형 AI 도구 7종) 화면 스타일
   index.html 의 style.css 뒤에 붙습니다. 색·글꼴 토큰은 style.css 의 :root 를 그대로 씁니다. */

/* ───────── 첫 화면 진입 카드 ───────── */
.st-teaser {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  margin-top: clamp(24px, 3.5vw, 36px);
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 32px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(420px 220px at 88% 12%, #FFE0C9 0%, rgba(255, 224, 201, 0) 70%),
    radial-gradient(360px 200px at 10% 100%, #E6F6EC 0%, rgba(230, 246, 236, 0) 72%),
    linear-gradient(135deg, #FFFDFB 0%, #FFF3E8 100%);
  border: 1px solid #F6DDCB;
  box-shadow: var(--shadow);
}
.stt-kick {
  margin: 0 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em;
  color: #B4784F; text-transform: uppercase;
}
.st-teaser h2 {
  margin: 0 0 8px; font-size: clamp(19px, 2.6vw, 25px); letter-spacing: -.035em; line-height: 1.35;
}
.stt-lead { margin: 0 0 12px; font-size: 13.2px; color: var(--ink-2); line-height: 1.75; max-width: 560px; }
.stt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.stt-chip {
  font-size: 11.5px; font-weight: 700; color: #6D4A38;
  background: #fff; border: 1px solid #F3DCCB; border-radius: 999px; padding: 5px 11px;
  transition: background .15s, transform .15s;
}
.stt-chip:hover { background: #FFF0E4; transform: translateY(-1px); }
.stt-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #E97F5E, #D2603F); border-radius: 999px; padding: 10px 20px;
  box-shadow: 0 10px 22px -14px rgba(190, 90, 55, .95);
}
.stt-cta span { transition: transform .18s; }
.stt-cta:hover span { transform: translateX(3px); }
.stt-art { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 230px; }
.stp-em {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px;
  background: #fff; font-size: 22px; box-shadow: 0 8px 18px -14px rgba(120, 90, 70, .8);
}
@media (max-width: 640px) {
  .st-teaser { grid-template-columns: 1fr; }
  .stt-art { grid-template-columns: repeat(7, 1fr); max-width: none; }
  .stp-em { width: 100%; height: 38px; border-radius: 12px; font-size: 17px; }
}

/* ───────── 페이지 머리 ───────── */
.st-head { margin-bottom: 18px; }
.st-head .d-sub { max-width: 720px; line-height: 1.75; }
.st-chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.st-pill {
  font-size: 11.5px; font-weight: 700; color: #3F7A64;
  background: #EAF6F0; border: 1px solid #CDE7DB; border-radius: 999px; padding: 4px 11px;
}

/* ───────── 도구 탭 ───────── */
.st-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 0 0 22px; padding: 8px; border-radius: var(--r-md);
  background: #FBF3EC; border: 1px solid var(--line);
}
.st-tab {
  display: flex; align-items: center; gap: 8px; text-align: left;
  border: 1px solid transparent; background: #fff; border-radius: var(--r-sm);
  padding: 9px 10px; cursor: pointer; transition: transform .14s, box-shadow .14s, border-color .14s;
}
.st-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.st-tab.on { border-color: #E9BFA6; background: #FFF4EA; box-shadow: inset 0 0 0 1px #F6D6C3; }
.stt-em { flex: none; font-size: 18px; line-height: 1; }
.stt-tx { display: flex; flex-direction: column; min-width: 0; }
.stt-tx b { font-size: 12.3px; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.stt-tx small { font-size: 10.5px; color: var(--ink-3); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .st-tabs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .st-tabs { grid-template-columns: 1fr; }
  .st-tab { padding: 8px 10px; }
  .stt-tx small { display: none; }
}

/* ───────── 도구 소개 ───────── */
.st-body { display: block; }
.st-what { margin-bottom: 16px; }
.st-what h2 { margin: 0 0 6px; font-size: clamp(18px, 2.4vw, 22px); letter-spacing: -.03em; }
.st-what p { margin: 0; font-size: 13.4px; color: var(--ink-2); line-height: 1.8; max-width: 760px; }
.st-steps {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none;
  counter-reset: ststep;
}
.st-steps li {
  counter-increment: ststep;
  font-size: 11.8px; font-weight: 700; color: #6D5A50;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px;
  display: inline-flex; align-items: center; gap: 7px;
}
.st-steps li::before {
  content: counter(ststep);
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: #FFE7D8; color: #A2593C; font-size: 10.5px; font-weight: 800;
}

/* ───────── 입력 폼 ───────── */
.st-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(16px, 2.4vw, 24px); box-shadow: var(--shadow);
}
.st-formtitle {
  margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--coral-d);
}
.st-field { margin: 0 0 15px; }
.st-lab {
  display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 800; color: #4A4350; letter-spacing: -.01em;
}
.st-lab em { color: var(--coral-d); font-style: normal; }
.st-input {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid #E8DCD1; background: #FFFCF9; border-radius: var(--r-sm);
  padding: 11px 13px; line-height: 1.5; transition: border-color .15s, box-shadow .15s;
}
.st-input::placeholder { color: #B6ACB2; }
.st-input:focus {
  outline: 0; border-color: #E9BFA6; background: #fff;
  box-shadow: 0 0 0 3px rgba(233, 127, 94, .13);
}
.st-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.st-chip {
  font-family: inherit; font-size: 12.5px; font-weight: 700; color: #6C6473;
  background: #FBF5EF; border: 1px solid #EDE2D8; border-radius: 999px;
  padding: 7px 14px; cursor: pointer; transition: background .14s, color .14s, border-color .14s, transform .14s;
}
.st-chip:hover { background: #FFF1E6; transform: translateY(-1px); }
.st-chip.on {
  color: #9B4C31; background: #FFE7D8; border-color: #F3C6AC;
  box-shadow: inset 0 0 0 1px #F8D2BC;
}
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.st-run {
  font-family: inherit; font-size: 14.5px; font-weight: 800; color: #fff; cursor: pointer;
  border: 0; border-radius: 999px; padding: 12px 26px;
  background: linear-gradient(135deg, #E97F5E, #D2603F);
  box-shadow: 0 12px 24px -16px rgba(190, 90, 55, .95);
  transition: transform .14s, box-shadow .14s;
}
.st-run:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -16px rgba(190, 90, 55, .95); }
.st-ghost {
  font-family: inherit; font-size: 12.5px; font-weight: 700; color: #6C6473; cursor: pointer;
  background: #FBF5EF; border: 1px solid #EDE2D8; border-radius: 999px; padding: 11px 16px;
  transition: background .14s;
}
.st-ghost:hover { background: #FFF1E6; }
.st-priv { margin: 12px 0 0; font-size: 11.3px; color: var(--ink-3); line-height: 1.6; }

/* ───────── 결과 ───────── */
.st-out { margin-top: 22px; }
.st-empty {
  background: #FFFDFA; border: 1px dashed #E4D5C7; border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px); text-align: center;
}
.st-empty h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: -.02em; }
.st-empty p { margin: 0 0 14px; font-size: 12.8px; color: var(--ink-2); line-height: 1.7; max-width: 520px; margin-left: auto; margin-right: auto; }
.st-res-head { margin-bottom: 12px; }
.st-res-kick {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em;
  color: #3F7A64; background: #EAF6F0; border-radius: 999px; padding: 3px 10px;
}
.st-sum { margin: 8px 0 0; font-size: 14px; font-weight: 700; color: #4A4350; letter-spacing: -.02em; line-height: 1.6; }

.st-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px 16px; margin-bottom: 12px; box-shadow: 0 6px 18px -18px rgba(90, 63, 48, .55);
}
.st-bhead {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  padding-bottom: 9px; border-bottom: 1px dashed var(--line);
}
.st-bhead b {
  flex: 1; font-size: 12.8px; font-weight: 800; letter-spacing: -.01em; color: #4A4350;
}
.st-copy {
  flex: none; font-family: inherit; font-size: 11.5px; font-weight: 800; color: #8A5A42; cursor: pointer;
  background: #FFF1E6; border: 1px solid #F3D9C6; border-radius: 999px; padding: 5px 11px;
  transition: background .14s;
}
.st-copy:hover { background: #FFE3D0; }
.st-copy-main { color: #fff; background: linear-gradient(135deg, #7FBFA4, #5FA98B); border-color: transparent; }
.st-copy-main:hover { background: linear-gradient(135deg, #74B69B, #529C7E); }

.st-list { margin: 0; padding-left: 20px; }
.st-list li { font-size: 13.6px; line-height: 1.85; color: #403A45; }
ol.st-list { padding-left: 22px; }
ul.st-list { padding-left: 18px; }

.st-pre {
  margin: 0; padding: 12px 14px; border-radius: var(--r-sm);
  background: #FBF6F1; border: 1px solid #F1E6DB;
  font-family: var(--mono); font-size: 12.2px; line-height: 1.75; color: #453E48;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
}

.st-tblwrap { overflow-x: auto; border: 1px solid #F1E6DB; border-radius: var(--r-sm); }
.st-tbl { border-collapse: collapse; width: 100%; min-width: 420px; background: #fff; }
.st-tbl th, .st-tbl td {
  padding: 9px 11px; font-size: 12.4px; line-height: 1.6; text-align: left;
  border-bottom: 1px solid #F5EBE2; vertical-align: top;
}
.st-tbl thead th { background: #FBF3EC; font-weight: 800; color: #6D5A50; white-space: nowrap; }
.st-tbl tbody th { font-weight: 800; color: #4A4350; white-space: nowrap; background: #FFFCF9; }
.st-tbl tr:last-child th, .st-tbl tr:last-child td { border-bottom: 0; }

.st-note { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.75; }
.st-note + .st-note { margin-top: 6px; }

.st-linkchip {
  display: inline-flex; align-items: center; gap: 6px; margin: 2px 6px 12px 0;
  font-size: 12px; font-weight: 800; color: #3F7A64; background: #EAF6F0;
  border: 1px solid #CDE7DB; border-radius: 999px; padding: 7px 14px;
}
.st-linkchip:hover { background: #DFF1E8; }

.st-promptbox { border-color: #CDE7DB; background: linear-gradient(180deg, #F7FCF9 0%, #fff 60%); }
.st-phint { margin: 0 0 10px; font-size: 12.3px; color: var(--ink-2); line-height: 1.7; }
.st-opens { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 11px; }
.st-ol { font-size: 11.5px; font-weight: 800; color: #3F7A64; }
.st-open {
  font-family: inherit; font-size: 11.8px; font-weight: 800; color: #3F7A64; cursor: pointer;
  background: #fff; border: 1px solid #CDE7DB; border-radius: 999px; padding: 6px 12px;
  transition: background .14s;
}
.st-open:hover { background: #EAF6F0; }
.st-openhint { flex: 1 1 100%; font-size: 11px; color: var(--ink-3); }

/* ───────── 팁 · 확장 카드 ───────── */
.st-why {
  margin-top: 18px; padding: 15px 17px; border-radius: var(--r-md);
  background: #FFFBF3; border: 1px solid #F1E4C9;
}
.st-why h3 { margin: 0 0 8px; font-size: 12.8px; font-weight: 800; color: #8A6A2F; letter-spacing: -.01em; }
.st-why .st-list li { font-size: 12.8px; color: #4A4350; }
.st-langnote { margin: 10px 0 0; font-size: 11.3px; color: var(--ink-3); }

.st-more {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
}
.st-more h3 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.025em; }
.st-mlead { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-2); }
.st-gh3 { margin-top: 20px !important; }
.st-books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-book {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 6px 16px -18px rgba(90, 63, 48, .6); transition: transform .15s, box-shadow .15s;
}
.st-book:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stb-em { flex: none; font-size: 19px; line-height: 1.2; }
.stb-tx { display: flex; flex-direction: column; min-width: 0; }
.stb-tx b { font-size: 12.5px; line-height: 1.45; letter-spacing: -.02em; }
.stb-tx small { font-size: 10.8px; color: var(--coral-d); font-weight: 700; margin-top: 3px; }
.stb-go { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.st-guides { display: flex; flex-wrap: wrap; gap: 7px; }
.st-guide {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.3px; font-weight: 700;
  color: #5A5160; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
}
.st-guide:hover { background: #FFF1E6; }

@media (max-width: 760px) {
  .st-books { grid-template-columns: 1fr; }
  .st-block { padding: 13px 13px 14px; }
  .st-list li { font-size: 13px; }
  .st-pre { font-size: 11.6px; padding: 11px 12px; }
  .st-run { width: 100%; justify-content: center; }
}

/* ───────── 책 파는 곳 한 줄 ───────── */
.st-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.st-store {
  font-size: 11.8px; font-weight: 800; color: #7A5744; background: #FFF6EF;
  border: 1px solid #F3DCCB; border-radius: 999px; padding: 6px 12px;
}
.st-store:hover { background: #FFE7D8; }

/* ───────── 쇼츠 대본 — '내 해설 한 줄' 안내 (2026-12-01) ───────── */
.st-shorts-note {
  margin: 14px 0 0; padding: 14px 16px 15px;
  background: #FFF8F0; border: 1px solid #F1DCC6; border-left: 4px solid var(--coral-d, #C8614A);
  border-radius: var(--r-md, 14px);
}
.st-shorts-note .ssn-check {
  margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--coral-d, #C8614A);
}
.st-shorts-note .ssn-check span { margin-right: 4px; }
.st-shorts-note b { display: block; margin: 0 0 5px; font-size: 13.2px; color: #6B3A2A; }
.st-shorts-note p { margin: 0; font-size: 12.6px; line-height: 1.75; color: #5A4A44; }
@media (max-width: 760px) {
  .st-shorts-note { padding: 12px 13px 13px; }
  .st-shorts-note p { font-size: 13px; }
}
