/* OrderPOS 마케팅 사이트
 *
 * 색·타이포는 실제 앱(owner_pos_app)의 DESIGN_SYSTEM.md 토큰을 그대로 가져왔다.
 * 사이트만을 위한 색을 새로 만들지 않는다 — 앱 화면과 같은 인상을 유지하는 게 목적이다.
 *   brand   #35523E / pressed #2A4232  (딥 그린 — 주 CTA·선택 상태 한 역할로만)
 *   canvas  #F5F0E6                     (크림 warmWhite)
 *   surface #FFFFFF · ink #1A1815 · muted #67615A · line #E7E4DF
 *   sage    #7C9A6D                     (말차 악센트)
 *   시맨틱  warning #9A6200 · critical #B42318 · success #26734D
 * 앱이 라이트 고정이라 이 사이트도 다크 모드 전환을 두지 않는다.
 */

:root {
  --brand: #35523e;
  --brand-pressed: #2a4232;
  --on-brand: #f5f0e6;
  --sage: #7c9a6d;
  --canvas: #f5f0e6;
  --surface: #ffffff;
  --tonal: #f3f1ed;
  --ink: #1a1815;
  --muted: #67615a;
  --line: #e7e4df;
  --warning: #9a6200;
  --critical: #b42318;
  --success: #26734d;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(26 24 21 / 6%), 0 8px 24px rgb(26 24 21 / 5%);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.65 "SUIT", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

a { color: var(--brand); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.wrap { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

/* ── 헤더 ── */
.site-header {
  background: var(--brand);
  color: var(--on-brand);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-brand);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand img { border-radius: 8px; display: block; }
.site-nav { display: flex; gap: 18px; font-size: 14px; }
.site-nav a { color: var(--on-brand); opacity: .82; text-decoration: none; }
.site-nav a:hover { opacity: 1; text-decoration: underline; }

/* 앱 주문 보드 AppBar 의 워터라인 헤더를 웹으로 옮긴 것. 물결은 오버레이라 세로 공간을 먹지 않는다. */
.wave { display: block; width: 100%; height: 18px; margin-top: -1px; fill: var(--brand); }

/* ── 히어로 ── */
.hero { padding: 56px 0 40px; }
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero .lead { margin: 0 0 10px; font-size: 18px; color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--tonal);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-pressed); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); }

/* ── 섹션 ── */
section { padding: 40px 0; }
h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 27px);
  letter-spacing: -0.025em;
  font-weight: 700;
}
.section-note { margin: 0 0 24px; color: var(--muted); max-width: 62ch; }

/* ── 주문 흐름 ── */
.flow { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.flow li {
  flex: 1 1 150px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow);
}
.flow .step {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.flow strong { display: block; font-size: 16px; margin-bottom: 4px; }
.flow p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ── 기능 카드 ── */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 16.5px; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ── 범위 밖 목록 ── */
.scope {
  background: var(--tonal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.scope ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.scope li { margin-bottom: 4px; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.faq-list summary { cursor: pointer; font-weight: 650; letter-spacing: -0.01em; }
.faq-list details[open] summary { margin-bottom: 8px; }
.faq-list p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ── 문의 폼 ── */
.support-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.support-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.support-form select,
.support-form input,
.support-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink);
}
.support-form textarea { resize: vertical; }
.support-form button {
  align-self: flex-start;
  font: inherit;
  font-weight: 650;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  background: var(--brand);
  color: var(--on-brand);
  cursor: pointer;
}
.support-form button:hover { background: var(--brand-pressed); }
.support-form button:disabled { opacity: .55; cursor: not-allowed; }
#form-status { font-size: 14px; min-height: 1.3em; margin: 0; }
#form-status[data-state="ok"] { color: var(--success); }
#form-status[data-state="error"] { color: var(--critical); }
.form-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); max-width: 60ch; line-height: 1.6; }

/* ── 브레드크럼 ── */
.breadcrumb { font-size: 13px; padding-top: 18px; }
.breadcrumb ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .55; }
.breadcrumb a { color: var(--muted); }

/* ── 푸터 ── */
.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  font-size: 13.5px;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0 0 6px; }

@media (max-width: 560px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero { padding: 40px 0 30px; }
}
