/* ═══════════════════════════════════════════════════════════════════════════
   DureClaw design layer — "warm technical editorial"
   site.css(기존 컴포넌트) 뒤에 로드되어 토큰·타이포·내비·푸터·홈을 덮어쓴다.

   한글 타이포 원칙
   - 본문 Pretendard 17px / 줄간격 1.75 / 최소 글자 14px
   - 제목은 자간을 좁히고(-0.03em) 줄간격 1.25–1.3
   - word-break: keep-all — 어절 중간에서 끊지 않는다
   - 여백은 clamp() 로 화면에 비례 — 큰 화면에서도 휑하지 않게 그리드가 늘어난다
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* palette — 따뜻한 종이 + 먹색 + 크랩 코랄 */
  --paper:      #fbfaf7;
  --paper-2:    #f4f1ea;
  --paper-3:    #ece7dc;
  --line:       #e5dfd2;
  --line-2:     #d5ccba;
  --ink:        #17160f;
  --ink-2:      #47433b;
  --ink-3:      #857f73;
  --accent:     #e4572e;
  --accent-ink: #b8401c;
  --accent-soft:#fdeee8;
  --teal:       #0e8f80;
  --teal-soft:  #e3f4f1;
  --night:      #14130f;
  --night-2:    #1f1d18;

  /* type */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-body: clamp(16px, 0.25vw + 15.2px, 17.5px);
  --fs-small: 14.5px;
  --fs-h1: clamp(40px, 5.4vw + 12px, 78px);
  --fs-h2: clamp(28px, 2.6vw + 14px, 46px);
  --fs-h3: clamp(19px, 0.6vw + 15px, 23px);
  --lh-body: 1.75;

  /* space */
  --gutter: clamp(20px, 5vw, 56px);
  --wrap: 1240px;
  --section: clamp(72px, 9vw, 132px);
  --radius: 18px;
  --radius-sm: 12px;

  /* legacy token aliases (site.css 컴포넌트가 쓰는 이름 → 새 팔레트) */
  --bg: var(--paper);
  --bg2: var(--paper-2);
  --bg3: var(--paper-3);
  --border: var(--line);
  --border2: var(--line-2);
  --text: var(--ink);
  --text2: var(--ink-2);
  --text3: var(--ink-3);
  --white: var(--ink);
  --cyan: var(--accent);
  --cyan2: var(--accent-ink);
  --green: var(--teal);
  --green2: #0b7064;
}

/* ── base ─────────────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: -0.005em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
code, pre, kbd, .mono { font-family: var(--font-mono); letter-spacing: 0; word-break: break-all; }
:where(p, li) code {
  font-size: 0.86em; background: var(--paper-3); border: 1px solid var(--line);
  border-radius: 6px; padding: 0.1em 0.4em;
}
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

.container, .wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  max-width: none;
  margin-inline: auto;
  padding: 0;
}

/* ── nav ──────────────────────────────────────────────────────────────── */
nav {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 64px; gap: 24px; }
.nav-logo { font-family: var(--font-sans); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); }
.nav-logo span { color: var(--accent); }
.nav-links { gap: clamp(18px, 2.2vw, 32px); margin-left: auto; }
.nav-links a { font-size: 15px; letter-spacing: -0.01em; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-gh {
  background: var(--ink); color: var(--paper); border: 0; border-radius: 999px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; padding: 8px 16px; letter-spacing: -0.01em;
}
.nav-gh:hover { background: var(--accent); color: #fff; }
@media (max-width: 900px) {
  .nav-inner { padding: 12px 0 10px; }
  .nav-links { margin-left: 0; gap: 22px; }
  .nav-links a { font-size: 15px; }
  .nav-links a.active { box-shadow: none; color: var(--accent); }
}

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--font-sans); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .sub { font-weight: 500; font-size: 14px; opacity: .7; }
.btn svg { width: 18px; height: 18px; flex: none; }
/* 예전 클래스 호환 */
.dl-btn { min-height: 48px; border-radius: 999px; font-family: var(--font-sans); font-size: 15.5px; padding: 0 22px; background: var(--ink); border: 0; color: var(--paper); }
.dl-btn:hover { background: var(--accent); }
.dl-btn .dl-sub { font-size: 14px; }

/* ── type helpers ─────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.h2 { font-size: var(--fs-h2); line-height: 1.24; letter-spacing: -0.035em; font-weight: 800; color: var(--ink); }
.h2 .serif, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lede { font-size: clamp(17px, 0.5vw + 15px, 20px); line-height: 1.75; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--ink-3); }

.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 52em; }
.band { padding-block: var(--section); }
.band + .band { padding-top: 0; }
.band.tint { background: var(--paper-2); padding-top: var(--section); border-block: 1px solid var(--line); }

/* ═══ HOME ═══════════════════════════════════════════════════════════════ */

/* hero */
.h-hero { position: relative; padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.h-hero::before {
  /* 은은한 도트 그리드 + 코랄 광원 */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(228,87,46,.10), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(23,22,15,.08) 1px, transparent 1.2px) 0 0 / 26px 26px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.h-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); box-shadow: 0 1px 2px rgba(23,22,15,.04);
}
.h-badge b { background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 2px 9px; font-weight: 700; font-size: 14px; }
.h-title {
  margin: 22px 0 22px; font-size: var(--fs-h1); line-height: 1.16; letter-spacing: -0.045em; font-weight: 800; color: var(--ink);
}
.h-title em { font-style: normal; color: var(--accent); }
.h-sub { font-size: clamp(18px, 0.7vw + 15px, 22px); line-height: 1.7; color: var(--ink-2); max-width: 30em; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }
.h-note { margin-top: 18px; font-size: 14.5px; color: var(--ink-3); }
.h-note a { color: var(--ink-2); text-underline-offset: 3px; }
.h-art { position: relative; }
.h-art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(23,22,15,.10)); }
.h-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(36px, 4vw, 56px); }
.h-chips span {
  font-size: 14px; font-weight: 500; color: var(--ink-2); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px;
}
@media (max-width: 960px) {
  .h-hero-grid { grid-template-columns: 1fr; }
  .h-art { order: -1; max-width: 560px; margin-inline: auto; }
}

/* install cards */
.install-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.i-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 34px);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.i-card:hover { border-color: var(--line-2); box-shadow: 0 18px 40px -24px rgba(23,22,15,.28); transform: translateY(-2px); }
.i-card.primary { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.i-step { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-3); }
.i-card.primary .i-step { color: var(--accent-ink); }
.i-title { display: flex; align-items: center; gap: 12px; font-size: var(--fs-h3); font-weight: 750; letter-spacing: -0.03em; line-height: 1.3; }
.i-title .ico { font-size: 26px; line-height: 1; }
.i-desc { color: var(--ink-2); font-size: 16px; line-height: 1.75; flex: 1; }
.i-card .btn { width: 100%; }
.cmd {
  display: flex; align-items: center; gap: 10px;
  background: var(--night); color: #e9e4d8; border-radius: var(--radius-sm); padding: 12px 12px 12px 16px;
}
.cmd code { flex: 1; font-size: 14px; line-height: 1.6; color: #e9e4d8; background: none; border: 0; padding: 0; }
.cmd code .k { color: #ffb59a; }
.cmd .copy-btn {
  flex: none; font: 600 14px var(--font-sans); letter-spacing: 0; color: var(--night);
  background: #e9e4d8; border: 0; border-radius: 8px; padding: 8px 12px; cursor: pointer;
}
.cmd .copy-btn:hover { background: #fff; }
.cmd .copy-btn.copied { background: var(--teal); color: #fff; }
.install-alt { margin-top: 22px; font-size: 15px; color: var(--ink-3); }
.install-alt code { font-size: 14px; }
.install-alt a { color: var(--ink-2); font-weight: 600; text-underline-offset: 3px; }

/* roles */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.role { padding: clamp(26px, 2.6vw, 40px); display: grid; gap: 12px; align-content: start; }
.role + .role { border-left: 1px solid var(--line); }
.role-k { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--accent); line-height: 1; }
.role h3 { font-size: var(--fs-h3); font-weight: 750; letter-spacing: -0.03em; line-height: 1.3; }
.role p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 820px) {
  .roles { grid-template-columns: 1fr; }
  .role + .role { border-left: 0; border-top: 1px solid var(--line); }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.step-art { background: #fff; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); }
.step-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.step:hover .step-art img { transform: scale(1.03); }
.step-body { padding: clamp(22px, 2.2vw, 30px); display: grid; gap: 10px; align-content: start; }
.step-no { counter-increment: step; font-size: 14px; font-weight: 700; color: var(--accent-ink); letter-spacing: .04em; }
.step-no::before { content: "STEP 0" counter(step); }
.step h3 { font-size: var(--fs-h3); font-weight: 750; letter-spacing: -0.03em; line-height: 1.3; }
.step p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); grid-template-rows: none; }
  .step-art { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; }
  .step-art { aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* split (image + text) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.split.flip .split-art { order: 2; }
.split-art { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.split-art img { width: 100%; height: auto; display: block; }
.split h2 { margin: 14px 0 18px; }
.checks { list-style: none; padding: 0; margin: 26px 0 28px; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.checks li::before {
  content: ""; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e8f80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks li strong { display: block; color: var(--ink); font-weight: 700; font-size: 17px; margin-bottom: 2px; }
.text-link { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.text-link:hover { color: var(--accent-ink); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .split-art { order: 0; }
}

/* personas */
.personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.persona { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 2.4vw, 32px); display: grid; gap: 14px; align-content: start; }
.persona-ico { font-size: 28px; line-height: 1; }
.persona h3 { font-size: var(--fs-h3); font-weight: 750; letter-spacing: -0.03em; line-height: 1.3; }
.persona .ctx { font-size: 15px; color: var(--ink-3); margin-top: -6px; }
.persona .before, .persona .after { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15.5px; line-height: 1.7; }
.persona .before { background: var(--paper-2); color: var(--ink-2); }
.persona .after { background: var(--teal-soft); color: #0b5b52; }
.persona .before b, .persona .after b { display: block; font-size: 14px; letter-spacing: .02em; margin-bottom: 4px; }

/* demo */
.demo-frame { background: var(--night); border-radius: calc(var(--radius) + 6px); padding: clamp(10px, 1.2vw, 16px); box-shadow: 0 40px 80px -40px rgba(23,22,15,.5); }
.demo-frame .bar { display: flex; gap: 7px; padding: 4px 6px 12px; }
.demo-frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3730; }
.demo-frame img { width: 100%; display: block; border-radius: 10px; }

/* more */
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.more a {
  display: grid; gap: 8px; align-content: start; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color .2s, transform .2s;
}
.more a:hover { border-color: var(--ink); transform: translateY(-2px); }
.more .t { font-weight: 750; font-size: 18px; letter-spacing: -0.02em; display: flex; justify-content: space-between; }
.more .t::after { content: "→"; color: var(--accent); }
.more .d { font-size: 15px; color: var(--ink-2); line-height: 1.65; }

/* closing CTA */
.closing { background: var(--night); color: #f3efe6; border-radius: calc(var(--radius) + 8px); padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.closing::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(228,87,46,.35), transparent 65%); }
.closing h2 { font-size: var(--fs-h2); line-height: 1.24; letter-spacing: -0.035em; font-weight: 800; }
.closing p { color: #bfb8aa; margin-top: 12px; font-size: 17px; }
.closing .acts { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.closing .btn-primary { background: #f3efe6; color: var(--night); }
.closing .btn-primary:hover { background: var(--accent); color: #fff; }
.closing .btn-ghost { color: #f3efe6; border-color: #4a463d; }
.closing .btn-ghost:hover { border-color: #f3efe6; }
@media (max-width: 860px) { .closing { grid-template-columns: 1fr; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: var(--section); }
.footer-left, .footer-links a { font-size: 14.5px; }
.footer-links a { color: var(--ink-2); }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .rise.d1 { animation-delay: .06s; } .rise.d2 { animation-delay: .14s; } .rise.d3 { animation-delay: .22s; } .rise.d4 { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ═══ SUB PAGES — 기존 컴포넌트 가독성 보정 ═════════════════════════════ */
.page-hero { padding: clamp(48px, 6vw, 88px) 0 clamp(24px, 3vw, 40px); }
.page-hero h1 { font-family: var(--font-sans); font-size: clamp(34px, 3vw + 18px, 56px); letter-spacing: -0.04em; line-height: 1.2; font-weight: 800; }
.page-hero p { font-size: clamp(17px, 0.5vw + 15px, 19px); line-height: 1.75; max-width: 40em; }
.page-hero .crumb { font-size: 14.5px; }
.section { margin-bottom: var(--section); }
.section-title { font-family: var(--font-sans); font-size: clamp(24px, 1.6vw + 16px, 34px); letter-spacing: -0.035em; line-height: 1.3; font-weight: 800; }
.section-num { font-family: var(--font-sans); font-size: 14px; color: var(--accent); }
.section p { line-height: 1.75; }
/* 기존 카드 제목류가 쓰던 Syne → Pretendard */
[class*="-title"], [class*="-name"], .how-num, .fw-who, .cl-card-ver { font-family: var(--font-sans) !important; letter-spacing: -0.02em; }
/* 코드·터미널류는 계속 고정폭 */
.term, .how-code, .oneliner-cmd, .step-cmd, .install-cmd code, .demo-cmd, .api-path, td code { font-family: var(--font-mono) !important; }
.term { font-size: 14px; line-height: 1.75; }
.section table { font-size: 15px !important; line-height: 1.65; }
.section th, .section td { padding: 12px 14px !important; }

/* ── 다듬기 ───────────────────────────────────────────────────────────── */
/* 일러스트의 흰 바탕을 종이색에 녹인다 (흰 네모 박스처럼 보이지 않게) */
.h-art img { mix-blend-mode: multiply; filter: none; }
/* 히어로 바로 뒤 섹션은 위 여백을 줄인다 — 히어로 아래 여백과 겹치지 않게 */
.h-hero + .band { padding-top: clamp(16px, 2.5vw, 40px); }
/* 마지막 섹션 여백과 푸터 여백이 이중으로 쌓이지 않게 */
main + .lb-bg + footer, main ~ footer { margin-top: 0; }
/* 회색 띠(tint) 섹션 뒤의 섹션은 위 여백을 되살린다 */
.band.tint + .band { padding-top: var(--section); }

/* 애니메이션(.rise)이 .h-art 에 레이어를 만들어 img 의 multiply 가 배경과 섞이지 못했다 →
   블렌드는 .h-art 자체에 건다 */
.h-art { mix-blend-mode: multiply; }
.h-art img { mix-blend-mode: normal; }

/* 큰 화면에서는 본문 폭을 넓혀 좌우가 휑하지 않게 */
@media (min-width: 1600px) { :root { --wrap: 1360px; } }

/* 3장 카드: 넓으면 3열, 중간 폭은 2열 + 마지막 카드 가로 전체(빈칸 없이), 좁으면 1열 */
.install-grid, .personas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .install-grid, .personas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-grid > :last-child, .personas > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .install-grid, .personas { grid-template-columns: 1fr; }
}
/* 역할 3칸은 태블릿까지 가로 유지 */
@media (max-width: 820px) and (min-width: 641px) {
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .role + .role { border-left: 1px solid var(--line); border-top: 0; }
}
/* 모바일: 지원 환경 칩은 한 줄 가로 스크롤 */
@media (max-width: 640px) {
  .h-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .h-chips::-webkit-scrollbar { display: none; }
  .h-chips span { white-space: nowrap; }
}

/* 서브 페이지 플랫폼 카드: 글자가 커진 만큼 고정 4열 대신 화면에 맞춰 열 수를 정한다 */
.platform-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)) !important; }
.platform-card .term, .platform-card .term * { overflow-wrap: anywhere; word-break: break-all; }
.platform-card { min-width: 0; }

/* ═══ 활용 사례 (/use-cases/) ══════════════════════════════════════════ */
/* 대상 카드 4개 — 넓으면 4열, 중간 2×2, 좁으면 1열 (빈칸 없이) */
.audience-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
@media (max-width: 1100px) { .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .audience-grid { grid-template-columns: 1fr; } }
.aud {
  display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.aud:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(23,22,15,.35); }
.aud-art { aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.aud-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aud-body { padding: clamp(20px, 2vw, 26px); display: grid; gap: 10px; align-content: start; }
.aud-k { font-size: 14px; font-weight: 700; color: var(--accent-ink); letter-spacing: .02em; }
.aud h3 { font-size: var(--fs-h3); font-weight: 750; letter-spacing: -0.03em; line-height: 1.3; }
.aud p { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; }
.aud .metric-mini { margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 15px; color: var(--ink-2); }
.aud .metric-mini b { display: block; font-size: 24px; letter-spacing: -0.03em; color: var(--ink); line-height: 1.2; }
.aud .go { font-weight: 650; font-size: 15px; color: var(--ink); }
.aud .go::after { content: " →"; color: var(--accent); }

/* 근거 배지 */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 4px 12px; letter-spacing: -0.01em; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.measured { background: var(--teal-soft); color: #0b6f63; }
.badge.real { background: var(--accent-soft); color: var(--accent-ink); }
.badge.scenario { background: var(--paper-3); color: var(--ink-2); }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.legend > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.legend p { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 860px) { .legend { grid-template-columns: 1fr; } }

/* 실측 숫자 띠 */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.metric { padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 6px; align-content: start; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric b { font-size: clamp(30px, 2.4vw + 14px, 44px); line-height: 1.1; letter-spacing: -0.04em; font-weight: 800; color: var(--ink); }
.metric b small { font-size: .5em; letter-spacing: -0.01em; margin-left: 2px; color: var(--ink-2); }
.metric span { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 960px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric + .metric { border-left: 0; }
  .metric:nth-child(even) { border-left: 1px solid var(--line); }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .metrics { grid-template-columns: 1fr; }
  .metric:nth-child(even) { border-left: 0; }
  .metric + .metric { border-top: 1px solid var(--line); }
}

/* 대상 페이지 히어로 */
.uc-hero { padding: clamp(40px, 5vw, 80px) 0 clamp(32px, 4vw, 56px); }
.uc-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.uc-hero h1 { font-size: clamp(36px, 3.4vw + 16px, 64px); line-height: 1.18; letter-spacing: -0.045em; font-weight: 800; margin: 14px 0 18px; }
.uc-hero .crumb { font-size: 15px; color: var(--ink-3); text-decoration: none; }
.uc-hero .crumb:hover { color: var(--accent-ink); }
.uc-hero-art { mix-blend-mode: multiply; }
.uc-hero-art img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .uc-hero-grid { grid-template-columns: 1fr; } .uc-hero-art { order: -1; max-width: 560px; } }

/* 사례 카드 */
.cases { display: grid; gap: clamp(16px, 1.8vw, 24px); }
.uc-card {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.uc-card.no-media { grid-template-columns: 1fr; }
.uc-main { padding: clamp(24px, 2.6vw, 38px); display: grid; gap: 16px; align-content: start; }
.uc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.uc-card h3 { font-size: clamp(21px, 0.8vw + 16px, 26px); font-weight: 780; letter-spacing: -0.035em; line-height: 1.3; }
.uc-flow { display: grid; gap: 12px; }
.uc-flow > div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.uc-flow dt, .uc-flow .k { font-size: 14px; font-weight: 700; color: var(--ink-3); padding-top: 2px; }
.uc-flow strong { color: var(--ink); }
.node-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.node-chips span { font-size: 14px; font-weight: 550; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; color: var(--ink-2); }
.uc-nums { display: flex; flex-wrap: wrap; gap: 10px; }
.uc-nums div { background: var(--teal-soft); border-radius: var(--radius-sm); padding: 10px 14px; min-width: 120px; }
.uc-nums b { display: block; font-size: 22px; letter-spacing: -0.03em; color: #0b5b52; line-height: 1.25; }
.uc-nums span { font-size: 14px; color: #2c6b63; }
.uc-card.scenario .uc-nums div { background: var(--paper-2); }
.uc-note { font-size: 15px; color: var(--ink-3); line-height: 1.7; border-left: 3px solid var(--line-2); padding-left: 12px; }
.source { font-size: 14.5px; color: var(--ink-3); }
.source a { color: var(--ink-2); font-weight: 600; text-underline-offset: 3px; }
.uc-media { background: var(--night); display: grid; align-content: center; padding: clamp(12px, 1.4vw, 18px); }
.uc-media img { width: 100%; height: auto; display: block; border-radius: 10px; }
.uc-media figcaption { color: #bfb8aa; font-size: 14px; margin-top: 10px; line-height: 1.6; }
.uc-media.light { background: var(--paper-2); }
.uc-media.light figcaption { color: var(--ink-3); }
@media (max-width: 960px) { .uc-card { grid-template-columns: 1fr; } }

/* 필요한 구성 */
.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.kit > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.kit b { font-size: 17px; letter-spacing: -0.02em; }
.kit span { font-size: 15.5px; color: var(--ink-2); line-height: 1.65; }
/* 고민 3가지 — 3열 카드 (목록이 한쪽으로 쏠려 빈 공간이 생기지 않게) */
.pains { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.pains li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.2vw, 30px); display: grid; gap: 8px; align-content: start; }
.pains li::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 6px; }
.pains strong { font-size: var(--fs-h3); font-weight: 750; letter-spacing: -0.03em; line-height: 1.35; }
.pains span { font-size: 16px; color: var(--ink-2); line-height: 1.75; }
@media (max-width: 860px) { .pains { grid-template-columns: 1fr; } }
/* 다른 대상 3장 — 3열, 좁으면 1열 (2열에서 한 칸이 비지 않게) */
.audience-grid.others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .audience-grid.others { grid-template-columns: 1fr; } }
/* 범례 배지는 칸 너비로 늘어나지 않게 */
.legend .badge, .uc-top .badge { justify-self: start; }
/* 좁은 화면: 사례 흐름의 라벨(상황·DureClaw로는)을 본문 위로 — 본문 폭을 확보 */
@media (max-width: 560px) {
  .uc-flow > div { grid-template-columns: 1fr; gap: 2px; }
  .uc-nums div { min-width: 0; flex: 1 1 calc(50% - 10px); }
}
/* 사례 묶음 소제목 (회사·조직처럼 사례가 많은 페이지) */
.case-group { display: flex; align-items: center; gap: 10px; font-size: clamp(19px, 0.6vw + 15px, 22px); font-weight: 750; letter-spacing: -0.03em; margin: clamp(20px, 2.4vw, 36px) 0 2px; }
.case-group:first-child { margin-top: 0; }
.case-group span { font-size: 14px; font-weight: 700; color: var(--ink-3); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; }
/* 세로로 긴 시연 화면(예: RPA 계산기)이 카드를 늘리지 않게 높이 상한 */
.uc-media img { max-height: 440px; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; }
