/* ============================================================
   NODECAR (nodecar.somuna.co.kr) — 독립 제품 홈페이지 전용 추가 스타일
   somuna /_new 디자인 시스템(style.css) 위에 얹는 NODECAR 컴포넌트
   ============================================================ */

/* ---------- NODECAR 워드마크 (헤더/푸터 공용, 테마 무관) ---------- */
.brand-word {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1;
}
.brand-word .mark {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--blue);
}
.brand-word .by {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-left: 2px;
  align-self: flex-end;
  padding-bottom: 2px;
}
.brand-word b { color: var(--blue); font-weight: 700; }
.site-footer .brand-word { font-size: 20px; }

/* 헤더 우측: 소무나 이동 링크 */
.parent-link {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  padding: 9px 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
}
.parent-link:hover { color: var(--text); border-color: var(--stroke-strong); }
@media (max-width: 1080px) { .parent-link { display: none; } }

/* ---------- 신뢰 배지 밴드 ---------- */
.trust-band { border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 0;
}
.trust-item { text-align: center; }
.trust-item .num {
  font-family: var(--mono);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.trust-item .lbl { color: var(--text-2); font-size: 14px; margin-top: 6px; }
@media (max-width: 720px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}

/* ---------- 진단(Diagnosis) 섹션: 폰 + 번호형 스텝 ---------- */
.diag-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: 44px;
}
@media (max-width: 920px) {
  .diag-grid { grid-template-columns: 1fr; gap: 44px; justify-items: center; }
}

.diag-steps { display: flex; flex-direction: column; gap: 14px; }
.diag-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.diag-step:hover { border-color: var(--stroke-strong); background: var(--surface-hover); transform: translateX(4px); }
.diag-step .n {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  border: 1px solid var(--stroke-strong);
  border-radius: 9px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  flex: none;
}
.diag-step h4 { font-size: 18px; margin-bottom: 4px; }
.diag-step p { color: var(--text-2); font-size: 15px; line-height: 1.62; }

/* 진단 폰 화면 (style.css의 .phone 재사용 + 고장코드 화면) */
.dtc-screen { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.dtc-head { display: flex; align-items: center; justify-content: space-between; }
.dtc-head .t { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: inherit; }
.dtc-head .scan { font-family: var(--mono); font-size: 11px; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.dtc-head .scan::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(56,232,198,.6); animation: dtcPulse 1.6s infinite; }
@keyframes dtcPulse { 0%{box-shadow:0 0 0 0 rgba(56,232,198,.55)} 70%{box-shadow:0 0 0 7px rgba(56,232,198,0)} 100%{box-shadow:0 0 0 0 rgba(56,232,198,0)} }
.dtc-list { display: flex; flex-direction: column; gap: 8px; }
.dtc {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--stroke);
}
.dtc .code { font-family: var(--mono); font-size: 13px; font-weight: 700; color: inherit; }
.dtc .desc { font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtc .sev { font-family: var(--mono); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .05em; }
.sev.high { color: #ff6b6b; background: rgba(255,107,107,.14); }
.sev.mid  { color: #ffc14d; background: rgba(255,193,77,.14); }
.sev.low  { color: var(--teal); background: rgba(56,232,198,.14); }
.dtc-foot { margin-top: auto; display: flex; gap: 8px; }
.dtc-foot button {
  flex: 1; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 9px; border-radius: 9px; border: 1px solid var(--stroke-strong);
  background: transparent; color: var(--text-2); cursor: default;
}
.dtc-foot button.primary { background: var(--grad); color: #03121b; border: 0; }

/* ---------- 앱 다운로드 밴드 ---------- */
.dl-band {
  background: var(--grad-soft);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 820px) { .dl-band { grid-template-columns: 1fr; gap: 30px; } }
.dl-band h2 { font-size: clamp(26px, 3.6vw, 40px); }
.dl-band p { color: var(--text-2); margin: 14px 0 26px; font-size: 16px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 12px 20px; border-radius: 13px;
  background: var(--text); color: var(--bg);
  transition: transform .2s ease, opacity .2s ease;
}
html[data-theme="light"] .store-badge { background: #0b1220; color: #fff; }
.store-badge:hover { transform: translateY(-3px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .s { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .s small { font-size: 10.5px; opacity: .72; letter-spacing: .02em; }
.store-badge .s b { font-size: 17px; font-weight: 700; }
.store-note { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); margin-top: 14px; letter-spacing: .03em; }

/* 다운로드(매뉴얼/카탈로그) 카드 — infocar 스타일 */
.dl-docs { display: grid; gap: 12px; }
.dl-doc {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--stroke);
  transition: border-color .2s ease, background .2s ease;
}
.dl-doc:hover { border-color: var(--stroke-strong); background: var(--surface-hover); }
.dl-doc .di { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--grad-soft); color: var(--teal); }
.dl-doc .dt { flex: 1; }
.dl-doc .dt b { display: block; font-size: 15px; }
.dl-doc .dt span { font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }
.dl-doc .dgo { color: var(--text-3); }

/* 폰 목업: page-hero 외 섹션에서도 살짝 떠 보이게 */
.diag-grid .phone-wrap { margin: 0; }

/* ============================================================
   v2 확장 — 콘텐츠 밀도 강화 (쇼케이스 / 전체기능 / 관제 대시보드 / FAQ / 파트너)
   ============================================================ */

/* ---------- 진단 3-폰 쇼케이스 ---------- */
.phone-row {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(10px, 2.4vw, 30px);
  margin: 44px 0 8px;
  perspective: 1400px;
}
.phone-row .phone { width: 248px; height: 510px; border-radius: 38px; }
.phone-row .phone.center { width: 270px; height: 552px; transform: rotateY(0) translateY(-14px); z-index: 2; }
.phone-row .phone.left  { transform: rotateY(14deg) rotateX(3deg); }
.phone-row .phone.right { transform: rotateY(-14deg) rotateX(3deg); }
.phone-row .phone-screen { padding: 18px 15px; gap: 10px; }
@media (max-width: 860px) {
  .phone-row { flex-wrap: wrap; gap: 22px; }
  .phone-row .phone, .phone-row .phone.center { transform: none; width: 250px; height: 512px; }
  .phone-row .phone.center { order: -1; }
}
.scr-h { display:flex; align-items:center; justify-content:space-between; }
.scr-h .tt { font-family: var(--mono); font-size: 12px; letter-spacing:.08em; color: inherit; }
.scr-h .pill { font-family: var(--mono); font-size: 9px; color: var(--teal); border:1px solid rgba(56,232,198,.4); padding:2px 7px; border-radius:99px; }
.scr-sub { font-size: 10px; color: var(--text-3); font-family: var(--mono); letter-spacing:.06em; }
.bar-list { display:flex; flex-direction:column; gap:9px; }
.bar-row { display:grid; grid-template-columns: 56px 1fr auto; gap:8px; align-items:center; }
.bar-row .lab { font-size:10.5px; color: var(--text-2); font-family: var(--mono); }
.bar-row .track { height:7px; border-radius:99px; background: rgba(255,255,255,.06); overflow:hidden; }
.bar-row .fill { height:100%; border-radius:99px; background: var(--grad); }
.bar-row .pct { font-size:10px; font-family: var(--mono); color: inherit; }

/* 모니터링 듀얼 게이지 */
.mini-gauges { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.mg { background: rgba(255,255,255,.04); border:1px solid var(--stroke); border-radius:14px; padding:10px; text-align:center; }
.mg .k { font-size:9px; color: var(--text-3); font-family: var(--mono); letter-spacing:.08em; }
.mg .val { font-family: var(--mono); font-weight:700; font-size:20px; color: inherit; margin-top:2px; }
.mg .val small { font-size:10px; color: var(--text-3); }
.mg .ring { display:block; margin:4px auto 2px; }

/* 운행일지 리스트 */
.log-row { display:grid; grid-template-columns:1fr auto; gap:4px 8px; padding:9px 11px; border-radius:10px; background: rgba(255,255,255,.04); border:1px solid var(--stroke); }
.log-row .d { font-family: var(--mono); font-size:10px; color: var(--teal); }
.log-row .r { font-size:12px; color: inherit; }
.log-row .km { font-family: var(--mono); font-size:11px; color: var(--text-2); text-align:right; }
.log-row .pp { font-size:9.5px; color: var(--text-3); text-align:right; }
.tag-mini { display:inline-flex; align-items:center; gap:5px; font-family: var(--mono); font-size:9px; color: var(--teal); border:1px solid rgba(56,232,198,.35); border-radius:99px; padding:3px 8px; align-self:flex-start; }

/* 탄소 리포트 막대차트 */
.cbar { display:flex; align-items:flex-end; gap:7px; height:110px; padding-top:6px; }
.cbar span { flex:1; border-radius:6px 6px 0 0; background: var(--grad); opacity:.85; }
.big-num { font-family: var(--mono); font-weight:700; font-size:26px; color: inherit; }
.big-num small { font-size:12px; color: var(--text-3); }

/* ---------- 기능 쇼케이스 (교차 이미지+텍스트) ---------- */
.showcase { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,72px); align-items:center; padding: clamp(40px,6vw,72px) 0; }
.showcase + .showcase { border-top: 1px solid var(--stroke); }
.showcase.rev .showcase-media { order: 2; }
@media (max-width: 880px){ .showcase, .showcase.rev { grid-template-columns:1fr; gap:34px; } .showcase.rev .showcase-media{ order:0; } }
.showcase-media { display:flex; justify-content:center; }
.showcase-body .eyebrow { margin-bottom:14px; }
.showcase-body h3 { font-size: clamp(22px,3vw,32px); margin-bottom:14px; }
.showcase-body > p { color: var(--text-2); font-size:16px; margin-bottom:20px; }
.chk { display:flex; flex-direction:column; gap:11px; }
.chk li { display:grid; grid-template-columns:auto 1fr; gap:11px; align-items:start; color: var(--text); font-size:15px; }
.chk li svg { width:21px; height:21px; color: var(--teal); flex:none; margin-top:1px; }

/* ---------- 전체 기능 그리드 (제품의 폭) ---------- */
.svc-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:14px; margin-top:40px; }
@media (max-width:900px){ .svc-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .svc-grid{ grid-template-columns:1fr; } }
.svc-card { padding:22px 20px; border-radius: var(--radius-sm); background: var(--surface); border:1px solid var(--stroke); transition: border-color .25s, background .25s, transform .25s; }
.svc-card:hover { border-color: var(--stroke-strong); background: var(--surface-hover); transform: translateY(-4px); }
.svc-card .si { width:42px; height:42px; border-radius:11px; display:grid; place-items:center; background: var(--grad-soft); color: var(--teal); margin-bottom:14px; }
.svc-card h4 { font-size:16px; margin-bottom:6px; }
.svc-card p { font-size:13px; color: var(--text-2); line-height:1.55; }

/* ---------- 관제 웹 대시보드 목업 ---------- */
.win { width:100%; max-width:560px; border-radius:16px; overflow:hidden; border:1px solid var(--stroke-strong);
  background: linear-gradient(160deg,#0d1424,#070b14); box-shadow: 0 40px 90px rgba(0,0,0,.5), 0 0 80px rgba(0,160,233,.10); }
html[data-theme="light"] .win { background:#fff; box-shadow:0 30px 70px rgba(20,40,80,.16); }
.win-bar { display:flex; align-items:center; gap:7px; padding:11px 14px; border-bottom:1px solid var(--stroke); }
.win-bar i { width:11px; height:11px; border-radius:50%; background: rgba(255,255,255,.18); }
.win-bar i:nth-child(1){ background:#ff5f57; } .win-bar i:nth-child(2){ background:#febc2e; } .win-bar i:nth-child(3){ background:#28c840; }
.win-bar .addr { margin-left:10px; font-family: var(--mono); font-size:11px; color: var(--text-3); }
.win-body { display:grid; grid-template-columns: 120px 1fr; min-height:300px; }
.win-side { border-right:1px solid var(--stroke); padding:14px 10px; display:flex; flex-direction:column; gap:7px; }
.win-side .s { font-family: var(--mono); font-size:10.5px; color: var(--text-3); padding:7px 9px; border-radius:8px; }
.win-side .s.on { color: var(--text); background: var(--grad-soft); }
.win-main { padding:16px; display:flex; flex-direction:column; gap:13px; }
.win-kpis { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.win-kpi { background: rgba(255,255,255,.04); border:1px solid var(--stroke); border-radius:11px; padding:11px 12px; }
html[data-theme="light"] .win-kpi { background:#f4f7fb; }
.win-kpi .k { font-size:9.5px; color: var(--text-3); font-family: var(--mono); letter-spacing:.06em; }
.win-kpi .v { font-family: var(--mono); font-weight:700; font-size:18px; margin-top:3px; }
.win-kpi .v.teal { color: var(--teal); } .win-kpi .v.blue { color: var(--blue); }
.win-chart { height:74px; border:1px solid var(--stroke); border-radius:11px; padding:8px; }
.win-tbl { border:1px solid var(--stroke); border-radius:11px; overflow:hidden; }
.win-tr { display:grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap:8px; padding:9px 12px; font-size:11.5px; align-items:center; }
.win-tr + .win-tr { border-top:1px solid var(--stroke); }
.win-tr.head { color: var(--text-3); font-family: var(--mono); font-size:10px; letter-spacing:.05em; }
.win-tr .veh { font-family: var(--mono); color: var(--text); }
.dot { display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:6px; }
.dot.g{ background:#28c840;} .dot.y{ background:#febc2e;} .dot.r{ background:#ff5f57;}

/* ---------- 통계 강조 밴드 (그라데이션) ---------- */
.metrics { background: var(--grad-soft); border-top:1px solid var(--stroke); border-bottom:1px solid var(--stroke); }
.metrics .trust-grid { padding:48px 0; }

/* ---------- FAQ ---------- */
.faq { max-width:840px; margin:36px auto 0; display:flex; flex-direction:column; gap:12px; }
.faq-item { background: var(--surface); border:1px solid var(--stroke); border-radius: var(--radius-sm); overflow:hidden; }
.faq-item summary { list-style:none; cursor:pointer; padding:18px 22px; font-weight:600; font-size:16px; display:flex; justify-content:space-between; align-items:center; gap:14px; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:'+'; font-family: var(--mono); font-size:22px; color: var(--teal); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .ans { padding:0 22px 20px; color: var(--text-2); font-size:15px; line-height:1.7; }

/* ---------- 파트너 / 인증 스트립 ---------- */
.partners { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:30px; }
.partner { font-family: var(--mono); font-size:13px; letter-spacing:.04em; color: var(--text-2);
  border:1px solid var(--stroke); border-radius:99px; padding:11px 20px; display:inline-flex; align-items:center; gap:9px; }
.partner b { color: var(--text); }
.partner svg { width:16px; height:16px; color: var(--teal); }
