/* 구역71 — 야전 장비함.
   토큰 값은 앱 lib/core/theme.dart AppPalette 를 그대로 옮겼다(사이트만의 색 없음).
   클래스 구조는 products/dokkaebi/assets/styles.css 를 빌렸다. */
:root {
  color-scheme: dark;
  --bg: #1a1e15;          /* uiBg — 화면 바탕 */
  --bg-deep: #12150f;     /* bgDeep */
  --slot: #1e2418;        /* 빈 칸·우물 */
  --panel: #3e4a32;       /* 장비함 판 */
  --panel-hi: #5a6848;
  --panel-lip: #262d1f;   /* 판 아랫단(그림자) */
  --surface: #333c29;     /* card — 버튼형 카드 */
  --surface-soft: #2e3726;/* well — 판 안쪽 칸 */
  --line: #3e4a32;
  --ink: #e4e0cc;         /* uiText */
  --ink-dim: #c8c4ac;     /* textDim */
  --muted: #a9a487;       /* textMute */
  --khaki: #c9b98a;       /* 스텐실 이름표·보조 버튼 */
  --khaki-lip: #9e8f63;
  --accent: #d9b64a;      /* stencil — 주 행동 */
  --accent-lip: #a8872c;
  --on-accent: #1a1e15;   /* onLight — 카키·노랑 위 글자 */
  --danger: #b03030;
  --danger-lip: #7a1e1e;
  --shadow: 0 14px 36px rgb(10 12 8 / 55%);
  --radius: 4px;
  --panel-radius: 6px;
  --font-display: "Black Han Sans", "IBM Plex Sans KR", sans-serif;
  --font-stencil: "Black Ops One", "Black Han Sans", "IBM Plex Sans KR", sans-serif;
  --font-body: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgb(62 74 50 / 45%), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── 이름표: 카키 판에 스텐실 글자 (앱의 "DEPLOY · 출격") ── */
.tag {
  display: inline-block;
  background: var(--khaki);
  color: var(--on-accent);
  font-family: var(--font-stencil);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.14em;
  padding: 6px 10px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.tag-danger {
  background: var(--danger);
  color: var(--ink);
}

/* ── 헤더 ── */
.site-header {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand-name {
  display: grid;
  line-height: 1.05;
}

.brand-name b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
}

.brand-name small {
  font-family: var(--font-stencil);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  color: var(--ink-dim);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

/* ── 판(panel): 아랫단 그림자 + 모서리 볼트 두 개 ── */
.panel {
  position: relative;
  background: var(--panel);
  border-radius: var(--panel-radius);
  box-shadow: 0 6px 0 var(--panel-lip);
  padding: 22px;
}

.panel::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 14px;
  width: 22px;
  height: 7px;
  background:
    radial-gradient(circle at 3.5px 3.5px, var(--panel-lip) 3px, transparent 3.5px),
    radial-gradient(circle at 18.5px 3.5px, var(--panel-lip) 3px, transparent 3.5px);
}

/* ── 히어로 ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 40px;
  padding: 48px 0 56px;
}

.hero-copy .tag {
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6.4vw, 64px);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .motto {
  font-size: clamp(17px, 2.3vw, 20px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

.hero p.lead {
  color: var(--ink-dim);
  font-size: clamp(15px, 2vw, 17px);
  max-width: 560px;
  margin: 0 0 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--slot);
  color: var(--ink-dim);
  border: 1px solid var(--panel);
  border-radius: var(--radius);
  padding: 5px 12px;
  font-size: 13px;
  margin-bottom: 22px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-shot {
  justify-self: center;
  width: min(300px, 100%);
}

.phone {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 6px solid var(--slot);
  outline: 1px solid var(--panel);
  box-shadow: var(--shadow);
  background: var(--bg-deep);
}

/* ── 버튼: 아랫단 그림자, 누르면 내려앉는다 ── */
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 24px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  transition: transform 90ms cubic-bezier(0.33, 1, 0.68, 1), box-shadow 90ms cubic-bezier(0.33, 1, 0.68, 1);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 5px 0 var(--accent-lip);
}

.btn-ghost {
  background: var(--khaki);
  color: var(--on-accent);
  box-shadow: 0 5px 0 var(--khaki-lip);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--accent-lip);
}

.btn-ghost:active {
  box-shadow: 0 1px 0 var(--khaki-lip);
}

/* ── 섹션 ── */
section {
  padding: 44px 0;
}

section + section {
  border-top: 1px dashed var(--panel);
}

.section-head {
  margin-bottom: 22px;
}

.section-head .tag {
  margin-bottom: 12px;
}

section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(25px, 3.4vw, 32px);
  line-height: 1.25;
  margin: 0 0 8px;
}

section p.section-lead {
  color: var(--ink-dim);
  max-width: 640px;
  margin: 0;
}

/* ── 위험 띠: 죽으면 전부 잃는다 ── */
.warning {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--slot);
  border-left: 6px solid var(--danger);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 26px;
  color: var(--ink);
  font-weight: 600;
}

/* ── 한 판의 흐름 ── */
.loop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.loop-step {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 var(--panel-lip);
  padding: 18px;
}

.loop-step .num {
  display: block;
  font-family: var(--font-stencil);
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 10px;
}

.loop-step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  margin: 0 0 6px;
}

.loop-step p {
  color: var(--ink-dim);
  font-size: 14px;
  margin: 0;
}

/* ── 화면 ── */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
}

.shots figure {
  margin: 0;
  scroll-snap-align: start;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 4px solid var(--slot);
  outline: 1px solid var(--panel);
}

.shots figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.shots figcaption b {
  font-family: var(--font-stencil);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--khaki);
  margin-right: 6px;
}

/* ── 기능 ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  margin: 14px 0 8px;
}

.feature-card p {
  color: var(--ink-dim);
  font-size: 14.5px;
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.chips span {
  background: var(--surface-soft);
  border-radius: 3px;
  padding: 3px 9px;
  font-size: 13px;
  color: var(--ink);
}

/* ── 시작하기 전에 ── */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.principle {
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.principle strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 4px;
}

.principle span {
  color: var(--ink-dim);
  font-size: 14px;
}

/* ── 지원 ── */
.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.15;
  margin: 12px 0 8px;
}

.faq-list details {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 3px 0 var(--panel-lip);
  padding: 14px 18px;
  margin-bottom: 12px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
}

.faq-list p {
  color: var(--ink-dim);
  margin: 10px 0 0;
  font-size: 14.5px;
}

.contact-card {
  text-align: center;
}

.contact-card a {
  font-family: var(--font-stencil);
  font-size: clamp(16px, 3.4vw, 20px);
  letter-spacing: 0.04em;
  word-break: break-all;
}

.support-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.support-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-dim);
}

.support-form select,
.support-form input,
.support-form textarea {
  background: var(--slot);
  border: 1px solid var(--panel-lip);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
}

.support-form button {
  justify-self: start;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--accent-lip);
  padding: 12px 26px 11px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 90ms cubic-bezier(0.33, 1, 0.68, 1), box-shadow 90ms cubic-bezier(0.33, 1, 0.68, 1);
}

.support-form button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--accent-lip);
}

.support-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-note {
  color: var(--ink-dim);
  font-size: 14px;
  margin: 0 0 18px;
}

#form-status {
  font-size: 14px;
  color: var(--ink-dim);
  min-height: 1.2em;
  margin: 0;
}

/* ── 방침 ── */
.policy {
  max-width: 820px;
}

.policy h2 {
  font-size: clamp(20px, 2.8vw, 24px);
  margin: 34px 0 10px;
}

.policy p,
.policy li {
  color: var(--ink);
  font-size: 15px;
}

.policy ul {
  padding-left: 1.25em;
}

.policy li + li {
  margin-top: 4px;
}

.meta-date {
  display: inline-block;
  color: var(--ink-dim);
  font-size: 14px;
  background: var(--slot);
  border-radius: var(--radius);
  padding: 4px 10px;
}

/* ── 푸터 ── */
footer {
  border-top: 1px dashed var(--panel);
  margin-top: 20px;
  padding: 28px 16px 44px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer a {
  color: var(--ink-dim);
}

/* Breadcrumb — 화면 표시와 BreadcrumbList 스키마를 1:1로 맞춘다. */
.breadcrumb { font-size: 13px; line-height: 1.5; }
.breadcrumb ol {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; opacity: .6; margin-right: 6px; }
.breadcrumb a { color: inherit; }

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 28px;
  }
  .hero-shot {
    width: min(260px, 80%);
  }
  .site-nav {
    gap: 14px;
  }
  .panel {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .support-form button { transition: none; }
}
