/* HappyPug 소개·정책 페이지가 함께 쓴다. 바깥에서 받아오는 것은 없다.
   뼈대는 우르르(ururu/styles.css)와 같고 색만 이 앱의 것이다.
   색 출처: HappyPug 앱 저장소 app/lib/shared/theme/app_colors.dart (DESIGN.md 기준)
     background #FFF8F0 · surface #FFFFFF · textPrimary #3D2914 · textSecondary #6B5344
     border #E8E0D8 · primary #FF8C42 · primaryDark #E06A20 · primaryLight #FFB380 · success #8BC34A
   글자에 쓰는 강조색은 흰 바탕 대비를 위해 primaryDark 를 쓴다. */
:root {
  color-scheme: light;
  --paper: #FFF8F0;
  --sheet: #FFFFFF;
  --ink: #3D2914;
  --muted: #6B5344;
  --line: #E8E0D8;
  --accent: #E06A20;
  --accent-ink: #E06A20;
  --brand: #FF8C42;
  --wash: rgba(255, 179, 128, .18);
  --tape: rgba(255, 179, 128, .45);
  --walk: #8BC34A;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.8; overflow-wrap: anywhere; }
a { color: var(--ink); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.skip-link { position: absolute; z-index: 2; top: .5rem; left: 1rem; padding: .65rem 1rem; background: var(--ink); color: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); color: white; }
.shell { width: min(100% - 3rem, 1120px); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
/* 브랜드 표식: 발바닥 — 큰 볼록살 하나와 발가락 셋. 앱 아이콘의 주황(primary)을 쓴다. */
.brand-mark { display: inline-block; width: 1.65rem; height: 1.65rem; position: relative; }
.brand-mark::before { content: ""; position: absolute; left: 22%; bottom: 4%; width: 56%; height: 46%; border-radius: 50% 50% 46% 46%; background: var(--brand); }
.brand-mark::after { content: ""; position: absolute; left: 12%; top: 6%; width: 20%; height: 26%; border-radius: 50%; background: var(--brand);
                     box-shadow: .4rem -.12rem 0 var(--brand), .8rem 0 0 var(--brand); }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; font-size: .9rem; }
.site-nav a { padding-block: .45rem; }
.site-nav a[aria-current="page"] { font-weight: 750; text-decoration-thickness: 2px; }
.eyebrow { margin: 0 0 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
h1, h2, h3 { line-height: 1.4; letter-spacing: -.035em; word-break: keep-all; }
p { margin: 0 0 1rem; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; padding-block: 5.5rem; }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); font-weight: 800; margin: 0 0 1.5rem; line-height: 1.28; }
.hero-copy { max-width: 31rem; font-size: 1.08rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 2rem; }
.button { display: inline-block; padding: .8rem 1.3rem; border: 1px solid var(--ink); border-radius: .55rem; background: var(--ink); color: var(--sheet); text-decoration: none; font-weight: 700; }
.button:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--sheet); }
.age-note { margin: 1.3rem 0 0; font-size: .85rem; color: var(--muted); }
.doodle-card { position: relative; margin: 0; padding: 1.8rem; background: var(--sheet); border: 1px solid var(--line); border-radius: .7rem 1.7rem .7rem 1rem; box-shadow: .45rem .55rem 0 var(--line); transform: rotate(2deg); }
.doodle-card::before { content: ""; display: block; position: absolute; width: 5rem; height: 1.4rem; background: var(--tape); border: 1px solid var(--line); top: -.75rem; left: calc(50% - 2.5rem); transform: rotate(-5deg); }
.doodle-word { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: .7rem; }
.doodle-word strong { font-size: 1.8rem; font-family: Georgia, serif; }
.doodle-word span { font-size: .9rem; color: var(--muted); }
.doodle-card svg { display: block; width: 100%; max-height: 230px; margin-block: .5rem; }
.doodle-card figcaption { border-top: 1px solid var(--line); padding-top: .9rem; text-align: center; font-size: .85rem; color: var(--muted); }
.section { padding-block: 3.5rem; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 1rem; }
.section-intro { color: var(--muted); max-width: 40rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.step { padding: 1.5rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--sheet); }
.step-number { font-family: Georgia, serif; font-size: 1.6rem; color: var(--accent); }
.step h3 { font-size: 1.2rem; margin: .9rem 0 .7rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
.local-note { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; background: var(--wash); border: 1px solid var(--line); border-radius: .8rem; padding: 2.2rem; margin-bottom: 3.5rem; }
.local-note h2 { font-size: 1.6rem; margin: 0; }
.local-note p:last-child { margin: 0; }
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; }
.contact-address { font-weight: 650; }
.document-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .95rem; margin-top: 1.25rem; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.8rem 2.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.site-footer p { margin: 0; }
.legal-shell { padding-top: 3.5rem; padding-bottom: 4rem; }
.document-heading h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 1.25rem; }
.source-note { max-width: 54rem; color: var(--muted); font-size: .95rem; }
.source-note a { display: inline-block; margin-top: .3rem; }
.toc { padding: 1rem 1.3rem; margin: 2rem 0; background: var(--sheet); border: 1px solid var(--line); border-radius: .6rem; }
.toc summary { cursor: pointer; font-weight: 700; }
.toc ol { padding-left: 1.5rem; margin: 1rem 0 .25rem; }
.toc li { margin-bottom: .5rem; }
.table-help { color: var(--muted); font-size: .85rem; margin: 0 0 2rem; }
.policy-body { font-size: 1rem; line-height: 1.95; }
.policy-body > p, .policy-body > ul, .policy-body > ol { max-width: 54rem; }
.policy-body h2 { font-size: 1.5rem; margin: 3.5rem 0 1.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.policy-body h3 { font-size: 1.15rem; margin: 2rem 0 1rem; }
.policy-body p { margin-bottom: 1.2rem; }
.policy-body ul, .policy-body ol { padding-left: 1.5rem; }
.policy-body li { margin-bottom: .8rem; padding-left: .15rem; }
.policy-body li > ul, .policy-body li > ol { margin-top: .7rem; }
.policy-body strong { font-weight: 750; }
.policy-body code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; background: var(--wash); border-radius: .2rem; padding: .1rem .3rem; overflow-wrap: anywhere; }
.policy-body hr { margin-block: 2.5rem; border: 0; border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: .5rem; background: var(--sheet); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .94rem; line-height: 1.8; }
table[data-columns="2"] { min-width: 520px; }
table[data-columns="5"], table[data-columns="6"] { min-width: 900px; }
table[data-columns="7"] { min-width: 1120px; }
th, td { text-align: left; vertical-align: top; padding: 1rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 8rem; }
th { font-weight: 750; background: var(--wash); }
th:last-child, td:last-child { border-right: 0; }
tr:last-child td { border-bottom: 0; }
td a { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .shell { width: min(100% - 2.25rem, 1120px); }
  .site-header { padding-block: 1.1rem; gap: .7rem; }
  .site-nav { gap: .2rem 1rem; width: 100%; }
  .hero { grid-template-columns: 1fr; padding-block: 3rem; gap: 3rem; }
  .doodle-card { max-width: 400px; width: calc(100% - 1rem); justify-self: center; margin-bottom: 1rem; }
  .steps, .local-note, .contact { grid-template-columns: 1fr; }
  .steps { gap: .85rem; }
  .section { padding-block: 2.6rem; }
  .local-note { padding: 1.5rem; gap: 1rem; margin-bottom: 2.6rem; }
  .contact { gap: .8rem; }
  .legal-shell { padding-top: 2.5rem; }
  .policy-body { line-height: 1.9; }
  .policy-body h2 { font-size: 1.3rem; margin-top: 2.5rem; }
  .table-scroll { margin-block: 1.2rem; }
}
@media print {
  body { background: white; color: black; }
  .shell { width: 100%; max-width: none; }
  .site-header, .site-footer, .skip-link, .toc, .table-help { display: none; }
  .legal-shell { padding: 0; }
  .table-scroll { overflow: visible; }
  table, table[data-columns] { min-width: 0; font-size: 8pt; }
  th, td { min-width: 0; padding: .4rem; }
  .policy-body { font-size: 10pt; }
  .policy-body h2, .policy-body h3 { break-after: avoid; }
}


/* ── HappyPug 의 장면 ── 모임 카드 한 장과, 내 폰에만 남는 산책 경로. 예시 데이터다. */
.meetup { display: grid; gap: .9rem; }
.meetup-top { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.meetup-when { font-size: .85rem; font-weight: 700; color: var(--accent-ink); }
.meetup-mode { font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--wash); color: var(--ink); }
.meetup-title { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.4; }
.meetup-place { margin: 0; font-size: .9rem; color: var(--muted); }
.pack { display: flex; align-items: center; gap: .5rem; }
.pup { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
       background: var(--wash); border: 2px solid var(--sheet); box-shadow: 0 0 0 1px var(--line); font-size: 1.15rem; }
.pup + .pup { margin-left: -.85rem; }
.pack-count { margin-left: .3rem; font-size: .88rem; font-weight: 700; }
.route { border-top: 1px dashed var(--line); padding-top: .9rem; }
.route svg { display: block; width: 100%; height: auto; }
.route-line { fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.route-dot { fill: var(--walk); }
.route-meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-top: .4rem; }
@media (prefers-reduced-motion: no-preference) {
  /* 기본값은 다 그려진 선이다. 애니메이션이 돌지 않는 곳(인쇄·미리보기)에서도 경로가 보인다. */
  .route-line { stroke-dasharray: 420; animation: walk 2.4s ease-out .4s backwards; }
  @keyframes walk { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
}
blockquote { margin: 0 0 1.2rem; padding: .9rem 1.1rem; background: var(--wash);
             border-left: 4px solid var(--brand); }
blockquote p:last-child { margin-bottom: 0; }

/* ── 자주 묻는 질문 ── 질문 하나가 카드 한 장이다. 면은 .step 과 같은 종이와 선이고,
   색은 위 팔레트 변수만 쓴다. 펼치고 접는 장치 없이 글자로 다 보인다. */
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2rem; }
.faq-item { padding: 1.5rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--sheet); }
.faq-item h3 { font-size: 1.1rem; margin: 0 0 .7rem; }
.faq-item p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) {
  .faq-list { grid-template-columns: 1fr; gap: .85rem; }
}
