:root{
  --bg:#f7f6fb;
  --card:#ffffff;
  --text:#1f1630;
  --muted:#6f6882;
  --border:#e7e2f2;
  --brand:#5f3ec8;
  --brandSoft:#f2edff;

  --r-xl:22px;
  --shadow: 0 14px 46px rgba(25, 10, 60, .08);

  --tabbar-h: 78px;
  --tabbar-total: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:"Noto Sans KR", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: var(--tabbar-total);
}
a{color:inherit; text-decoration:none}
.container{max-width:980px; margin:0 auto; padding:0 18px;}

header{
  position:sticky; top:0; z-index:30;
  background: rgba(247,246,251,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(231,226,242,.9);
}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:12px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  min-width:240px;
}
.logo{
  width:34px; height:34px; border-radius:12px;
  background: linear-gradient(135deg, var(--brand) 0%, #8c70ff 72%);
  box-shadow: 0 10px 24px rgba(95,62,200,.18);
}
.brandtext b{display:block; font-size:14px; letter-spacing:-.2px}
.brandtext span{display:block; font-size:12px; color:var(--muted); margin-top:2px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:900;
  cursor:pointer;
  transition:.16s;
  white-space:nowrap;
  font-size:13px;
  color:var(--text);
}
.btn:hover{background:var(--brandSoft); border-color:rgba(95,62,200,.25)}
.btn.primary{
  background: var(--brand);
  border-color: rgba(95,62,200,.25);
  color:#fff;
}
.btn.primary:hover{filter:brightness(1.03)}
.btnblock{width:100%;}

main{
  padding:16px 0 calc(var(--tabbar-total) + 32px);
}

.section{margin-top:14px;}
.section.tight{margin-top:8px;}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--r-xl);
  box-shadow: var(--shadow);
}

.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:12px; margin-bottom:10px;
}
.section-head h2{
  margin:0;
  font-size:16px;
  letter-spacing:-.2px;
}

.footer-text{
  padding:8px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
  font-weight:600;
  margin-bottom: 18px;
}
.footer-text .cols{
  display:grid;
  grid-template-columns: 1fr;
  gap:22px;
  padding:14px 0;
  border-top:1px solid rgba(231,226,242,.95);
  border-bottom:1px solid rgba(231,226,242,.95);
}
.footer-text h3{
  margin:0 0 8px;
  font-size:13px;
  color:var(--text);
  letter-spacing:-.2px;
}
.footer-text a{
  display:block;
  padding:4px 0;
  color:var(--muted);
  font-weight:700;
}
.footer-text a:hover{color:var(--text)}
.footer-text .small{
  margin-top:10px;
  color:var(--muted);
}
.copyright{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(231,226,242,.95);
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}

/* 하단 탭바 */
.tabbar{
  position:fixed; left:0; right:0; bottom:0;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-top:1px solid rgba(231,226,242,.95);
  z-index:40;

  height: var(--tabbar-total);
  padding-bottom: 0;

  display:flex;
  align-items:center;
}
.tabinner{
  max-width:980px; margin:0 auto;
  padding:10px 18px;
  width:100%;
  display:flex;
  justify-content:space-around;
  gap:10px;
}
.tab{
  width:100%;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:6px;
  padding:8px 8px;
  border-radius:16px;
  color:var(--muted);
  font-weight:900;
  font-size:11px;
  cursor:pointer;
  user-select:none;
}
.tab.active{color:var(--brand); background: rgba(242,237,255,.75)}
.tab .ico{
  width:28px; height:28px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
  color:inherit;
}

@media (max-width: 720px){
  .brand{min-width:auto}
  .brandtext span{display:none}
}
