/* Near me public site. Colors follow lib/theme/app_theme.dart. */
:root {
  --bg: #ffffff;
  --card: #f9fafe;
  --soft: #eee9ff;
  --text: #171c30;
  --muted: #7f8aa2;
  --line: #edf0f5;
  --accent: #8059f4;
  --on-accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11131d;
    --card: #1a1d2b;
    --soft: #262240;
    --text: #eceef5;
    --muted: #9aa3b8;
    --line: #272b3b;
    --accent: #a98ff9;
    --on-accent: #11131d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  word-break: keep-all;
}
a { color: var(--accent); }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 4px 8px; z-index: 1; }

.top, main, .foot { max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { border-radius: 8px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.top nav a, .foot nav a { color: var(--muted); text-decoration: none; }
.top nav a[aria-current], .foot nav a[aria-current] { color: var(--accent); font-weight: 600; }

main { padding-bottom: 48px; }
h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.25; margin: 8px 0 16px; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 4vw, 32px); line-height: 1.3; margin: 0 0 20px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin: 4px 0 6px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; margin: 0; letter-spacing: 0.02em; }
.lead { color: var(--muted); font-size: 17px; max-width: 34em; }
.note { color: var(--muted); font-size: 14px; }

.button {
  display: inline-block; padding: 12px 20px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.button.ghost { background: var(--soft); color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 16px; }
.badge { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--accent); font-size: 13px; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 32px 0 56px; }
.cats { margin: 0; padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.cats div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; justify-items: center; }
.cats img { width: 64px; height: 64px; image-rendering: pixelated; }
.cats figcaption { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; }

.band { padding: 48px 0; border-top: 1px solid var(--line); }
.steps, .cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li, .cards li, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.steps span { color: var(--accent); font-size: 13px; font-weight: 600; }
.steps p, .cards p { margin: 0; color: var(--muted); font-size: 15px; }
.cta { text-align: center; }
.cta p { color: var(--muted); }

.doc-head { padding: 24px 0 8px; max-width: 760px; }
main > section.panel, main > section:not(.hero):not(.band):not(.doc-head) { max-width: 760px; margin-bottom: 20px; }
.panel h2 { font-size: 20px; margin-bottom: 8px; }
.mail { font-size: 20px; font-weight: 600; margin: 4px 0; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }
.doc { max-width: 760px; white-space: pre-wrap; font-size: 15px; }

.foot { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.foot p { margin: 4px 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 16px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .cats { padding: 20px; }
  .cats img { width: 52px; height: 52px; }
  .top { flex-direction: column; align-items: flex-start; }
}
