* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Gowun Dodum", "Apple SD Gothic Neo", sans-serif; color: #2b2b2b; background: #fff;
  background-image: linear-gradient(#eef3fa 1px, transparent 1px), linear-gradient(90deg, #eef3fa 1px, transparent 1px);
  background-size: 18px 18px; min-height: 100vh; }
.wrap { max-width: 480px; margin: 0 auto; padding: 22px 0 40px; overflow-x: hidden; }
.inner { padding: 0 20px; }
a { color: #2f5da8; }
:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }

.logo { font-family: "Jua", sans-serif; font-size: 28px; color: #2f5da8; text-decoration: none; display: inline-block; }
.tagline { font-size: 14px; margin-top: 4px; color: #555; }
.tape { margin: 16px 0 4px; height: 50px; background: #ffe066; position: relative; transform: rotate(-2deg); width: 112%; margin-left: -6%;
  box-shadow: 0 2px 0 #e6c64a;
  background-image: repeating-linear-gradient(90deg, #6b5a12 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, #6b5a12 0 2px, transparent 2px 60px);
  background-size: 100% 12px, 100% 22px; background-repeat: no-repeat; }
.tape span { position: absolute; bottom: 5px; font-family: "Jua", sans-serif; font-size: 14px; color: #4a3f0c; }
.ask { font-family: "Jua", sans-serif; font-size: 22px; margin-top: 18px; }
.group { font-family: "Jua", sans-serif; font-size: 15px; color: #2f5da8; margin: 16px 0 8px; }

.menu a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; background: #fff;
  border: 2px solid #2b2b2b; border-radius: 4px 14px 4px 14px; padding: 13px 14px; margin-bottom: 10px; box-shadow: 3px 3px 0 #2f5da8; }
.menu a:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 #2f5da8; }
.ico { width: 38px; height: 38px; border-radius: 50%; background: #e7eefb; display: grid; place-items: center; font-family: "Jua", sans-serif; color: #2f5da8; font-size: 15px; flex: none; }
.menu b { font-family: "Gothic A1", sans-serif; font-weight: 700; font-size: 16px; display: block; }
.menu .d { font-size: 13px; color: #666; }
.menu i { margin-left: auto; font-style: normal; font-size: 20px; color: #2f5da8; }

/* 계산기 화면 */
.back { font-size: 14px; color: #2f5da8; font-family: "Gothic A1", sans-serif; font-weight: 700; text-decoration: none; }
h1.title { font-family: "Jua", sans-serif; font-weight: 400; font-size: 26px; margin-top: 12px; }
.lead { font-size: 15px; color: #444; margin-top: 6px; line-height: 1.65; }
.field { margin-top: 16px; }
.field > label, .field > .lab { font-size: 14px; color: #444; display: block; }
.num-in { margin-top: 6px; display: flex; align-items: center; background: #fff; border: 2px solid #2b2b2b; border-radius: 10px; padding: 0 14px; }
.num-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: "Gothic A1", sans-serif; font-weight: 900; font-size: 22px; padding: 11px 0; color: #2b2b2b; }
.num-in:focus-within { border-color: #2f5da8; box-shadow: 0 0 0 3px #cddbf3; }
.num-in em { font-style: normal; font-size: 15px; color: #777; font-weight: 700; font-family: "Gothic A1", sans-serif; }
.two { display: flex; gap: 10px; }
.two > .field { flex: 1; min-width: 0; }
.seg { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.seg button { flex: 1; font-family: "Gothic A1", sans-serif; font-weight: 700; font-size: 14px; padding: 10px 6px; border-radius: 10px; border: 2px solid #2b2b2b; background: #fff; cursor: pointer; color: #2b2b2b; }
.seg button[aria-pressed="true"] { background: #2f5da8; color: #fff; border-color: #2f5da8; }
.seg.col button { flex: 1 1 100%; text-align: left; padding: 10px 12px; }
.seg.col button small { font-weight: 400; display: block; font-size: 12px; opacity: .8; margin-top: 2px; }

.card { margin-top: 20px; background: #fff; border: 2px solid #2b2b2b; border-radius: 4px 14px 4px 14px; box-shadow: 4px 4px 0 #2f5da8; padding: 16px; }
.card h2 { font-family: "Jua", sans-serif; font-weight: 400; font-size: 18px; margin-bottom: 10px; }
.big { font-family: "Gothic A1", sans-serif; font-weight: 900; font-size: 36px; color: #2f5da8; line-height: 1.15; letter-spacing: -1px; }
.big small { font-size: 16px; color: #2b2b2b; font-weight: 700; letter-spacing: 0; margin-left: 2px; }
.line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1.5px dashed #c9d6ec; font-size: 15px; }
.line:first-of-type { border-top: 0; }
.line b { font-family: "Gothic A1", sans-serif; font-weight: 900; font-size: 18px; white-space: nowrap; }
.line.total b { color: #2f5da8; font-size: 22px; }
.muted { color: #777; }

.bar-row + .bar-row { margin-top: 16px; }
.bar-row .lbl { font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bar-row .lbl b { font-family: "Gothic A1", sans-serif; font-weight: 900; font-size: 22px; color: #2f5da8; white-space: nowrap; }
.bar-row.base .lbl b { color: #777; font-size: 18px; }
.bar { height: 14px; background: #eef3fa; border-radius: 7px; margin-top: 6px; position: relative; overflow: hidden; }
.bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; transition: width .3s; }
.bar .rng { background: #9bb3d9; }
.bar .mid { background: #2f5da8; }
.bar-row.base .bar span { background: #b9b9b9; }
.sub { font-size: 13px; color: #555; margin-top: 4px; }

.why { margin-top: 18px; background: #fff7cc; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.7; }
.why b { font-family: "Jua", sans-serif; font-weight: 400; font-size: 15px; display: block; margin-bottom: 2px; }
.fine { font-size: 12.5px; color: #666; line-height: 1.65; margin-top: 12px; }

.stage { margin-top: 10px; background: #fff; border: 1.5px solid #9bb3d9; border-radius: 10px; padding: 10px 12px 12px; }
.stage .head { display: flex; justify-content: space-between; align-items: center; font-family: "Jua", sans-serif; font-size: 15px; color: #2f5da8; }
.stage .head button { border: 0; background: none; color: #999; font-size: 13px; cursor: pointer; font-family: "Gothic A1", sans-serif; }
.stage .field { margin-top: 8px; }
.stage .num-in { border-width: 1.5px; padding: 0 10px; }
.stage .num-in input { font-size: 18px; padding: 8px 0; }
.addbtn { margin-top: 10px; width: 100%; font-family: "Gothic A1", sans-serif; font-weight: 700; font-size: 15px; padding: 11px; border: 2px dashed #2f5da8; border-radius: 10px; background: #fff; color: #2f5da8; cursor: pointer; }

.prose { font-size: 15px; line-height: 1.8; margin-top: 22px; }
.prose h2 { font-family: "Jua", sans-serif; font-weight: 400; font-size: 19px; margin: 22px 0 6px; }
.prose p + p { margin-top: 8px; }

.foot { margin-top: 34px; padding-top: 14px; border-top: 1.5px dashed #9bb3d9; font-size: 12.5px; color: #777; line-height: 1.7; }
.foot nav a { color: #555; margin-right: 12px; }
@media (prefers-reduced-motion: reduce) { .bar span { transition: none; } }
.srcs { margin-top: 26px; }
.srcs ul { font-size: 12.5px; color: #555; line-height: 1.7; padding-left: 18px; }
.srcs li + li { margin-top: 4px; }
.srcs a { color: #555; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 0; }
