/* ===== 상생온동네 다운로드 센터 ===== */
:root {
  /* 청녹색 팔레트 (메인 홈페이지와 동일) */
  --night: #0b3d4a;
  --night-2: #0e5566;
  --brand: #0e6b7d;
  --brand-dark: #0a4f5e;
  --brand-soft: #e8f4f6;
  --teal: #12868f;
  --gold: #f2b13d;
  --ink: #111111;
  --body: #4a5a60;
  --mute: #8a9a9f;
  --line: #e2eaec;
  --bg: #ffffff;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 61, 74, .04), 0 10px 30px -14px rgba(11, 61, 74, .14);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", -apple-system, sans-serif;
  font-size: 16px; line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1em; height: 1em; flex: none; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* ===== 상단 ===== */
.top { background: linear-gradient(120deg, var(--night-2), var(--night)); }
.top__inner { display: flex; align-items: center; gap: 14px; height: 64px; }
.top__logo img { width: 88px; }
.top__title { color: #fff; font-weight: 800; font-size: .95rem; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .25); }
.top__home { margin-left: auto; color: #bfe0e5; font-size: .875rem; font-weight: 700; }
.top__home:hover { color: #fff; }

/* ===== 히어로 + 탭 (흰 바탕) ===== */
.hero {
  padding: 56px 0 0; border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 260px at 85% 0%, var(--brand-soft), transparent 70%), #fff;
}
.hero__eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .2em; color: var(--teal); margin-bottom: 12px; }
.hero h1 { color: var(--ink); font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.3; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 14px; }
.hero__lead { font-size: 1rem; max-width: 560px; margin-bottom: 36px; }

.tabs { display: flex; gap: 0; max-width: 560px; }
.tab {
  position: relative; flex: 1;
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 16px 20px 18px; border: 0; background: none; color: var(--mute); font: inherit;
  transition: color .2s;
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; transition: background .2s; }
.tab:hover { color: var(--ink); }
.tab svg { font-size: 1.6rem; }
.tab b { display: block; font-size: 1.05rem; font-weight: 800; }
.tab small { display: block; font-size: .78rem; }
.tab[aria-selected="true"] { color: var(--brand); }
.tab[aria-selected="true"] b { color: var(--ink); }
.tab[aria-selected="true"]::after { background: var(--brand); }
.tab:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }

/* ===== 본문 ===== */
.main { padding: 40px 0 72px; }
.group + .group { margin-top: 48px; }
.group__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.group__head h2 { color: var(--ink); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.group__head .en { font-size: .8rem; font-weight: 800; letter-spacing: .08em; color: var(--mute); margin-left: 4px; }
.group__head p { font-size: .9rem; color: var(--mute); }

.notice {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px;
  padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-size: .85rem; font-weight: 500;
}
.notice svg { font-size: 1.05rem; margin-top: 2px; }

/* 아이콘 색 (청녹 계열 + 포인트 골드) */
.c-navy { background: #e3eef1; color: var(--night); }
.c-orange { background: #fdf3e0; color: #b7791f; }
.c-teal { background: #e3f4f5; color: var(--teal); }
.c-purple { background: #e8f4f6; color: var(--brand); }

/* 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: #f1f5f6; color: var(--body); }
.chips .free { background: #e3f4f5; color: var(--teal); }

/* 다운로드 버튼 */
.dl {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: .95rem;
  transition: background .2s, transform .2s;
}
.dl:hover { background: var(--night); transform: translateY(-1px); }
.dl svg { font-size: 1.1rem; }
.dl--sm { height: 38px; padding: 0 16px; font-size: .85rem; border-radius: 10px; }

/* 큰 카드 (PC 주요 프로그램) */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; }
.card__body { flex: 1; }
.card h3 { color: var(--ink); font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.card__body p { font-size: .88rem; margin-bottom: 12px; }
.card .dl { width: 100%; }
.file { font-size: .72rem; color: var(--mute); text-align: center; margin-top: -8px; font-family: Consolas, monospace; }

/* 목록형 (온패스·역패스) */
.list { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.row { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 16px; padding: 14px 20px; }
.row + .row { border-top: 1px solid var(--line); }
.row__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; }
.row__name b { display: block; color: var(--ink); font-weight: 800; }
.row__name span { font-size: .85rem; color: var(--mute); }
.row .dl { min-width: 112px; }
.is-soon { opacity: .55; }
.soon { min-width: 112px; text-align: center; font-size: .82rem; font-weight: 800; color: var(--mute); border: 1.5px dashed #c9ced8; border-radius: 10px; padding: 8px 0; }

/* 앱 카드 (모바일) */
.app {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px 16px; align-items: center;
  padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.app__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; }
.app h3 { color: var(--ink); font-size: 1.1rem; font-weight: 800; }
.app__info p { font-size: .86rem; }
.stores { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; flex: 1; min-width: 150px;
  padding: 9px 16px; border-radius: 12px; background: var(--night); color: #fff; transition: transform .2s, background .2s;
}
.store:hover { transform: translateY(-1px); background: var(--brand-dark); }
.store svg { font-size: 1.5rem; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 800; font-size: 1rem; }
.store small { font-size: .65rem; font-weight: 500; opacity: .85; }
.store--apk { background: var(--teal); }
.store--apk:hover { background: var(--brand-dark); }

/* ===== 모바일 앱: 사용자별(매니저·라이더·상점) 구성 ===== */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.roles a {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.roles a:hover { border-color: var(--teal); transform: translateY(-2px); }
.roles svg { font-size: 1.6rem; color: var(--brand); margin-bottom: 6px; }
.roles b { color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.roles small { font-size: .8rem; color: var(--mute); }
.roles__no { position: absolute; top: 14px; right: 16px; font-size: .78rem; font-weight: 900; color: var(--teal); letter-spacing: .05em; }

.role { margin-top: 40px; scroll-margin-top: 16px; }
.role__head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 2px solid var(--brand);
}
.role__no {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: .85rem; font-weight: 900;
}
.role__icon { display: none; }
.role__head h2 { color: var(--ink); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.role__head p { font-size: .88rem; color: var(--mute); }

.apps { display: grid; gap: 10px; }
.apps .app { grid-template-columns: 56px 1fr auto; padding: 18px 22px; }
.apps .stores { grid-column: auto; justify-content: flex-end; }
.apps .store { flex: none; min-width: 168px; }

/* 도움말 */
.help {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 56px; padding: 26px 28px; border-radius: var(--radius);
  background: var(--brand-soft); border: 1px solid #cfe5ea;
}
.help h2 { color: var(--ink); font-size: 1.15rem; font-weight: 800; margin-bottom: 2px; }
.help p { font-size: .9rem; }
.help__links { display: flex; flex-wrap: wrap; gap: 8px; }
.help__links a { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid #cfe5ea; color: var(--brand-dark); font-size: .85rem; font-weight: 700; }
.help__links a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.foot { padding: 28px 0 40px; text-align: center; font-size: .8rem; color: var(--mute); border-top: 1px solid var(--line); margin-top: 0; }

/* ===== 반응형 ===== */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .top__title { display: none; }
  .hero { padding-top: 44px; }
  .hero h1 br { display: none; }
  .hero__lead { margin-bottom: 28px; font-size: .92rem; }
  .tabs { gap: 6px; }
  .tab { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; }
  .tab svg { font-size: 1.4rem; }
  .tab b { font-size: .95rem; }
  .main { padding-top: 28px; }
  .grid, .grid--2 { grid-template-columns: 1fr; }
  .card { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 18px; gap: 12px 14px; }
  .card__body { flex: 1 1 0; min-width: 0; }
  .card__body p { margin-bottom: 8px; }
  .card .dl { flex-basis: 100%; }
  .file { flex-basis: 100%; margin-top: -4px; }
  .row { grid-template-columns: 40px 1fr auto; gap: 6px 12px; padding: 14px 16px; }
  .row__icon { width: 40px; height: 40px; grid-row: span 2; }
  .row .chips { grid-column: 2; grid-row: 2; }
  .row .dl, .row .soon { grid-column: 3; grid-row: 1 / span 2; min-width: 0; }
  .row .dl { padding: 0 12px; }
  .row .soon { padding: 8px 10px; }
  .help { padding: 22px 20px; }
  .roles { gap: 6px; }
  .roles a { padding: 14px 12px; }
  .roles svg { font-size: 1.35rem; margin-bottom: 2px; }
  .roles b { font-size: .88rem; }
  .roles small { font-size: .72rem; }
  .roles__no { top: 10px; right: 10px; font-size: .68rem; }
  .role { margin-top: 32px; }
  .role__head h2 { font-size: 1.15rem; }
  .apps .app { grid-template-columns: 52px 1fr; padding: 18px; }
  .apps .stores { grid-column: 1 / -1; justify-content: stretch; }
  .apps .store { flex: 1; min-width: 140px; padding: 9px 12px; gap: 8px; }
  .apps .store span { white-space: nowrap; font-size: .92rem; }
  .apps .store svg { font-size: 1.3rem; }
}
