/* BRnote 홈페이지 공통 스타일 — 색은 앱과 같음 (design/brnote/README.md) */
:root {
  --forest: #123B33;
  --forest-2: #1C4A41;
  --amber: #E9B45A;
  --paper: #F6F4EE;
  --card: #FFFFFF;
  --ink: #18231F;
  --muted: #5B6661;
  --line: #E2DED4;
  --mint: #DCEAE3;
  --radius: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--forest); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* 머리말 */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 244, 238, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; color: var(--ink); font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--mint); }
.nav a[aria-current="page"] { background: var(--forest); color: var(--paper); }

/* 첫 화면 */
.hero { background: var(--forest); color: var(--paper); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.eyebrow { color: var(--amber); font-weight: 600; letter-spacing: .02em; margin: 0 0 12px; font-size: 15px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.22; margin: 0 0 20px; letter-spacing: -.02em; font-weight: 800; }
.hero .lead { font-size: 19px; color: #D8E2DD; margin: 0 0 32px; max-width: 30em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.pills li { border: 1px solid rgba(246,244,238,.28); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-bottom: 72px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; border-radius: 14px; padding: 14px 22px; font-size: 16px; }
.btn-amber { background: var(--amber); color: var(--forest); }
.btn-ghost { color: var(--paper); border: 1px solid rgba(246,244,238,.4); }
.btn-ghost:hover { background: rgba(246,244,238,.08); }
.badge-soon { font-size: 14px; color: #BFD0C8; }
.hero-shots { position: relative; height: 560px; align-self: end; }
.hero-shots .phone { position: absolute; width: 260px; bottom: -40px; }
.hero-shots .phone:first-child { left: 4%; bottom: -10px; z-index: 2; }
.hero-shots .phone:last-child { right: 4%; bottom: -70px; }

.phone { border-radius: 30px; border: 6px solid #0B2722; box-shadow: 0 24px 60px rgba(0,0,0,.28); background: #fff; overflow: hidden; }
.phone img { width: 100%; height: auto; }

/* 구역 */
section { padding: 96px 0; }
section[id], .doc h2 { scroll-margin-top: 72px; }
@media (max-width: 640px) { section[id], .doc h2 { scroll-margin-top: 100px; } }
section.alt { background: #EFECE3; }
.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; margin: 0 0 12px; letter-spacing: -.015em; color: var(--forest); }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }

/* 세 가지 약속 */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.promise .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--forest); color: var(--amber); font-weight: 800; margin-bottom: 16px; }
.promise h3 { margin: 0 0 8px; font-size: 21px; color: var(--forest); }
.promise p { margin: 0; color: var(--muted); }

/* 기능 */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-text { order: 2; }
.feature .phone { width: 280px; margin: 0 auto; }
.feature h3 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.35; margin: 0 0 14px; color: var(--forest); letter-spacing: -.01em; }
.feature .tag { display: inline-block; font-size: 14px; font-weight: 700; color: var(--forest); background: var(--mint); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.feature p { margin: 0 0 16px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin: 8px 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.checks b { color: var(--ink); }

/* 기능 묶음 카드 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 18px; color: var(--forest); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* 서버 */
.server { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.server .shot { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(18,59,51,.12); overflow: hidden; background: #fff; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.platforms li { background: var(--forest); color: var(--paper); border-radius: 999px; padding: 6px 16px; font-size: 15px; font-weight: 600; }

/* 개인정보 띠 */
.privacy-band { background: var(--forest); color: var(--paper); }
.privacy-band .section-head h2 { color: var(--paper); }
.privacy-band .section-head p { color: #C9D6D0; }
.privacy-band .grid .card { background: var(--forest-2); border-color: rgba(246,244,238,.12); }
.privacy-band .grid .card h3 { color: var(--amber); }
.privacy-band .grid .card p { color: #D8E2DD; }
.privacy-band a { color: var(--amber); }

/* 자주 묻는 질문 */
.faq { max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--forest); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* 꼬리말 */
.site-footer { background: #0D2C26; color: #BFD0C8; padding: 56px 0 40px; font-size: 15px; }
.site-footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.site-footer img { height: 24px; width: auto; margin-bottom: 12px; }
.site-footer .slogan { color: var(--amber); margin: 0; }
.site-footer nav a { color: var(--paper); text-decoration: none; margin-right: 20px; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .fine { border-top: 1px solid rgba(246,244,238,.12); padding-top: 24px; font-size: 13px; line-height: 1.8; }
.site-footer .fine p { margin: 0; }
.site-footer a.mail { color: var(--paper); }

/* 약관 문서 */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 24px 96px; }
.doc .crumb { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.doc .crumb a { color: var(--muted); }
.doc h1 { font-size: clamp(28px, 4vw, 38px); color: var(--forest); margin: 0 0 8px; letter-spacing: -.015em; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 21px; color: var(--forest); margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc .toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin-bottom: 8px; }
.doc .toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 32px; }
.doc .toc a { text-decoration: none; }
.doc .toc a:hover { text-decoration: underline; }
mark.blank { background: #FBE7C2; color: #7A4B00; border-radius: 4px; padding: 0 4px; font-weight: 700; }

/* 좁은 화면 */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; gap: 8px; }
  .cta { padding-bottom: 8px; }
  .hero-shots { height: 400px; }
  .hero-shots .phone { width: 190px; }
  .hero-shots .phone:first-child { left: calc(50% - 180px); }
  .hero-shots .phone:last-child { right: calc(50% - 180px); }
  .feature, .server { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-text { order: 0; }
  .feature .phone { width: 240px; }
  .promises, .grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .feature { margin-bottom: 72px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav { justify-content: flex-start; margin-left: -10px; }
  .nav a { padding: 6px 10px; font-size: 14px; }
  .hero-shots { height: 330px; }
  .hero-shots .phone { width: 160px; border-width: 4px; border-radius: 22px; }
  .hero-shots .phone:first-child { left: 0; }
  .hero-shots .phone:last-child { right: 0; }
  .doc { padding: 40px 16px 72px; }
  .doc .toc ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
