/* 클릭샘 앱 다운로드 랜딩 (/app/manager, /app/parent) */

:root {
  --p:      #00BFA5;
  --p-d:    #00A896;
  --p-l:    #E0F5F2;
  --p-xl:   #F0FEFA;
  --navy:   #0F172A;
  --slate:  #475569;
  --body:   #334155;
  --muted:  #64748B;
  --border: #E2E8F0;
  --bg:     #F8FAFC;
}

#ca-wrap {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
#ca-wrap *, #ca-wrap *::before, #ca-wrap *::after { box-sizing: border-box; }
#ca-wrap h1 { margin: 0; font-weight: 900; }
#ca-wrap p { margin: 0; }
#ca-wrap a { text-decoration: none; color: inherit; }

/* ── 헤더 ── */
.ca-top {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
}
.ca-top-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ca-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--navy);
  flex-shrink: 0;
}
.ca-logo img { height: 28px; width: auto; }
.ca-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  flex: 1;
  overflow-x: auto;
}
.ca-nav a,
.ca-nav .ca-nav-active {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
}
.ca-nav a:hover { background: var(--p-xl); color: var(--p-d); }
.ca-nav .ca-nav-active { color: var(--p-d); font-weight: 800; }
.ca-top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ca-btn-ghost {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--p-d);
  border: 1px solid var(--p);
  background: #fff;
}
.ca-btn-ghost:hover { background: var(--p-xl); }
.ca-btn-fill {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 700;
  color: #fff;
  background: var(--p);
  border: 1px solid var(--p);
}
.ca-btn-fill:hover { background: var(--p-d); }

/* ── 탭 (토글 스위치) ── */
.ca-tabs-bar {
  display: flex;
  justify-content: center;
  padding: 28px 24px 0;
}
.ca-tabs-switch {
  display: flex;
  align-items: stretch;
  width: 420px;
  max-width: 100%;
  background: #F0EBE3;
  border-radius: 999px;
  padding: 5px;
  gap: 4px;
}
.ca-tab {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--slate);
  background: transparent;
  border: none;
  transition: all .18s;
  white-space: nowrap;
}
.ca-tab:hover { color: var(--navy); }
.ca-tab.is-active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.ca-tab-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  color: var(--navy);
}
.ca-tab-ic svg { width: 16px; height: 16px; }
.ca-tab--mgr.is-active .ca-tab-ic {
  background: #0F172A;
  color: #fff;
}
.ca-tab--par.is-active .ca-tab-ic {
  background: var(--p);
  color: #fff;
}
.ca-tab--par.is-active {
  color: var(--p-d);
}

/* ── 메인 카드 ── */
.ca-main {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 24px 48px;
  width: 100%;
}
.ca-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  padding: 10px 14px;
  border-bottom: none;
}
.ca-browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
}
.ca-browser-url {
  margin-left: 8px;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
}
.ca-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 20px 20px;
  padding: 48px 32px 36px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
}
.ca-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ca-card-icon svg { width: 36px; height: 36px; }
.ca-card--manager .ca-card-icon {
  background: #334155;
  color: #fff;
}
.ca-card--parent .ca-card-icon {
  background: var(--p);
  color: #fff;
}
.ca-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.ca-card h1 {
  font-size: 2rem;
  color: var(--navy);
  letter-spacing: -.5px;
  margin-bottom: 12px;
}
.ca-desc {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 28px;
}
.ca-store-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto 28px;
}
.ca-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  transition: all .15s;
}
.ca-store-ic { font-size: 1.1rem; line-height: 1; display: flex; align-items: center; }
.ca-store-ic--apple svg { width: 18px; height: 18px; color: var(--navy); }
.ca-store--ios.is-soon .ca-store-ic--apple svg { color: var(--muted); }
.ca-store--ios {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--navy);
}
.ca-store--ios.is-soon {
  opacity: .55;
  cursor: default;
}
.ca-store--ios.is-soon small {
  font-size: .75rem;
  font-weight: 600;
  margin-left: 4px;
}
.ca-card--manager .ca-store--play {
  background: var(--p);
  border: 1.5px solid var(--p);
  color: #fff;
}
.ca-card--manager .ca-store--play:hover { background: var(--p-d); border-color: var(--p-d); }
.ca-card--parent .ca-store--play {
  background: var(--p);
  border: 1.5px solid var(--p);
  color: #fff;
}
.ca-card--parent .ca-store--play:hover { background: var(--p-d); border-color: var(--p-d); }
.ca-store--apk {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--navy);
}
.ca-store--apk:hover { border-color: var(--p); color: var(--p-d); }
.ca-qr {
  display: inline-flex;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
}
.ca-qr img { display: block; border-radius: 4px; }
.ca-switch {
  font-size: .88rem;
  color: var(--muted);
}
.ca-switch a {
  color: var(--p-d);
  font-weight: 700;
}
.ca-switch a:hover { text-decoration: underline; }

/* ── 푸터 ── */
.ca-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}
.ca-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted);
}
.ca-footer-inner b { color: var(--navy); }
.ca-footer-inner a {
  color: var(--muted);
  margin-left: 14px;
}
.ca-footer-inner a:hover { color: var(--p-d); }

@media (max-width: 768px) {
  .ca-nav { display: none; }
  .ca-top-inner { height: 58px; }
  .ca-tabs-switch { max-width: 100%; width: 100%; }
  .ca-tab { padding: 9px 8px; font-size: .82rem; gap: 6px; }
  .ca-tab-ic { width: 24px; height: 24px; }
  .ca-tab-ic svg { width: 14px; height: 14px; }
  .ca-card { padding: 36px 20px 28px; }
  .ca-card h1 { font-size: 1.65rem; }
  .ca-footer-inner { flex-direction: column; text-align: center; }
}
