/* BrewMate 안내 페이지. 앱 화면과 같은 커피색을 쓴다 — 페이지와 앱이 남처럼 보이면 안 된다.
   뼈대는 하우투 페이지(../howtoo/style.css)와 같고 색만 다르다. */

:root {
  --brew: #6F4E37;
  --brew-dark: #4A3223;
  --brew-soft: #EFE3D5;
  --ink: #2B1D17;
  --muted: #6B564A;
  --line: #E4D8C9;
  --bg: #FBF7F2;
  --card: #FFFFFF;
  --warn: #9A5B12;
  --warn-soft: #F7E9D5;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(43, 29, 23, .04), 0 8px 24px rgba(43, 29, 23, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brew); }

/* ---------- 머리말 ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(251, 247, 242, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
}
header.site .brand img { width: 28px; height: 28px; border-radius: 8px; }
header.site nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 14.5px;
}
header.site nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
header.site nav a:hover,
header.site nav a[aria-current="page"] { color: var(--brew); }

/* 좁은 화면에서 메뉴가 세 줄로 늘어지면 첫 화면이 그만큼 밀린다. 한 줄로 두고 옆으로 넘긴다. */
@media (max-width: 700px) {
  header.site { padding: 10px 16px; gap: 10px; }
  header.site nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 14px;
    margin-left: 0;
    width: 100%;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  header.site nav::-webkit-scrollbar { display: none; }
  .hero { padding: 24px 0 20px; }
}

/* ---------- 뼈대 ---------- */
main.page, main.doc {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 20px 72px;
}
main.doc { max-width: 760px; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 40px;
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 28px; }
}

.kicker {
  display: inline-block;
  background: var(--brew-soft);
  color: var(--brew-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(30px, 5.2vw, 50px);
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 900;
  margin: 0 0 16px;
}
.hero .sub { font-size: 17.5px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }

/* 폰 목업 */
.phone {
  justify-self: center;
  width: min(300px, 78vw);
  padding: 10px;
  background: #2B1D17;
  border-radius: 38px;
  box-shadow: 0 24px 60px rgba(43, 29, 23, .25);
}
.phone img { border-radius: 28px; }

/* 다운로드 배지 */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brew);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--brew);
}
.badge:hover { background: var(--brew-dark); }
.badge.soon {
  background: var(--card);
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}
.badge.ghost { background: var(--card); color: var(--brew); }

/* 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li {
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- 스크린샷 띠 ---------- */
.strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.strip figure {
  margin: 0;
  flex: 0 0 auto;
  width: 208px;
  scroll-snap-align: center;
}
.strip img {
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.strip figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  padding-top: 10px;
}

/* ---------- 구역 ---------- */
.block { padding: 44px 0 8px; }
.block > h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: -.03em;
  font-weight: 900;
  margin: 0 0 10px;
}
.lead { color: var(--muted); font-size: 16.5px; margin: 0 0 22px; max-width: 44em; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card .icon { font-size: 26px; line-height: 1; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 14.8px; }
.card .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--brew-dark);
  background: var(--brew-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.card.wide { grid-column: 1 / -1; display: flex; gap: 18px; align-items: flex-start; }

/* 카드 색조 — 벽처럼 보이지 않게. 커피·크림·우유·캐러멜 */
.tint-brew   { background: linear-gradient(180deg, #F5EDE3, #fff 62%); }
.tint-cream  { background: linear-gradient(180deg, #FBF3E4, #fff 62%); }
.tint-milk   { background: linear-gradient(180deg, #F3F0EB, #fff 62%); }
.tint-caramel{ background: linear-gradient(180deg, #F8E9D6, #fff 62%); }
.tint-leaf   { background: linear-gradient(180deg, #EEF3EC, #fff 62%); }
.tint-sky    { background: linear-gradient(180deg, #EDF2F6, #fff 62%); }

/* ---------- 비교표 ---------- */
.tablewrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.8px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #F5EFE7; font-size: 13.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.yes { color: var(--brew); font-weight: 800; }
td.no { color: var(--muted); }

/* ---------- 알림 상자 ---------- */
.note, .warn {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 18px;
  font-size: 14.8px;
  color: var(--ink);
}
.note { background: var(--brew-soft); border: 1px solid #DCCBB7; }
.warn { background: var(--warn-soft); border: 1px solid #EBCFA3; }
.note b, .warn b { display: block; margin-bottom: 4px; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  padding: 15px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brew); font-weight: 800; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 14.8px; }

/* ---------- 문의 ---------- */
.contact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.03em; }
.contact p { margin: 0 0 14px; color: var(--muted); }
.contact .mail {
  display: inline-block;
  background: var(--brew);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
}

/* ---------- 법적 문서 ---------- */
main.doc h1 { font-size: clamp(26px, 4vw, 34px); padding-top: 32px; }
main.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
main.doc section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
main.doc section h2 { font-size: 17.5px; margin: 0 0 8px; letter-spacing: -.02em; }
main.doc section p { margin: 0 0 10px; font-size: 15px; color: #3A2B23; }
main.doc section ul { margin: 8px 0 0; padding-left: 20px; }
main.doc section li { font-size: 14.8px; color: var(--muted); margin-bottom: 7px; }
main.doc .tablewrap { margin: 8px 0 12px; }
main.doc table { min-width: 0; font-size: 14px; }

/* ---------- 꼬리말 ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 20px 56px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: #F5EFE7;
}
footer.site p { margin: 5px 0; }
footer.site a { color: var(--muted); }
footer.site .fine { font-size: 12.5px; opacity: .8; max-width: 46em; margin: 14px auto 0; }

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3E9DE; --muted: #C0A992; --line: #40312A; --bg: #1A1310; --card: #241A15;
    --brew: #D6B08A; --brew-dark: #E8CBAA; --brew-soft: #3A2C22;
    --warn-soft: #3A2C1A;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
  header.site { background: rgba(26, 19, 16, .85); }
  thead th { background: #2E221B; }
  footer.site { background: #15100D; }
  main.doc section p { color: #DCCDBF; }
  .tint-brew, .tint-cream, .tint-milk, .tint-caramel, .tint-leaf, .tint-sky { background: var(--card); }
  .phone { background: #0B0705; }
  .note { border-color: #4A3A2E; }
  .warn { border-color: #5A4322; }
}
