:root {
  --navy: #14213D;
  --navy-2: #1F2F55;
  --ink: #1B1D22;
  --muted: #6B7280;
  --line: #E4E6EB;
  --paper: #F7F7F4;
  --white: #FFFFFF;
  --green: #1FA463;
  --green-soft: #E6F6EC;
  --red: #C8433B;
  --red-soft: #FBEAE8;
  --amber: #A16A0B;
  --amber-soft: #FBF1DC;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,33,61,.06), 0 8px 24px rgba(20,33,61,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }
button, input, select { font: inherit; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1080px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: var(--navy); }
.brand-mark { width: 28px; height: 28px; }
.top-nav a { font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: 10px; }
.top-nav a:hover { background: var(--white); color: var(--navy); }

/* landing */
.landing { max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px; }
.hero { padding: 36px 0 20px; max-width: 640px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--green); letter-spacing: .04em; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.18; font-weight: 800; letter-spacing: -.01em; margin: 0 0 18px; color: var(--navy); word-break: keep-all; }
.lede { font-size: 17px; color: #3B4252; margin: 0 0 24px; max-width: 560px; word-break: keep-all; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: transform .06s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: #C9CDD6; }
.btn-green { background: var(--green); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.fineprint { font-size: 13px; color: var(--muted); margin: 14px 0 0; word-break: keep-all; }

.demo { display: flex; justify-content: flex-start; padding: 12px 0 8px; }
.phone { width: 340px; max-width: 100%; background: #0F1626; border-radius: 34px; padding: 18px 14px 22px; box-shadow: 0 30px 60px rgba(20,33,61,.25); position: relative; }
.phone-top { height: 22px; display: flex; justify-content: center; }
.phone-top span { width: 100px; height: 24px; background: #000; border-radius: 14px; margin-top: -8px; }
.msg { background: #fff; border-radius: 16px; padding: 12px 14px; margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: #1B1D22; }
.msg-earlier { opacity: .72; }
.msg-from { font-weight: 800; font-size: 12px; color: var(--navy); margin-bottom: 4px; }
.msg-time { font-size: 11px; color: var(--muted); margin-top: 6px; text-align: right; }

.how, .why { padding: 40px 0 8px; }
h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 18px; color: var(--navy); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 700px; }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 58px; position: relative; word-break: keep-all; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; font-size: 16px; margin-bottom: 3px; }
.steps span { color: #3B4252; font-size: 14.5px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.why-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; word-break: keep-all; }
.why-card b { display: block; font-size: 16px; margin-bottom: 6px; color: var(--navy); }
.why-card p { margin: 0; color: #3B4252; font-size: 14.5px; }
.cta-bottom { text-align: center; padding: 48px 0 10px; }
.cta-bottom h2 { margin-bottom: 16px; }
.foot { max-width: 1080px; margin: 0 auto; padding: 24px 20px 40px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.foot a { color: var(--navy); }
.foot-legal { margin-top: 8px; font-size: 12px; word-break: keep-all; }

/* app */
.app { max-width: 640px; margin: 0 auto; padding: 8px 16px 80px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card h2 { font-size: 20px; margin-bottom: 12px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: #3B4252; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); outline: none; }
.input:focus, .select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,33,61,.08); }
.input.is-error { border-color: var(--red); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: #3B4252; cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.parsed { background: var(--green-soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #14532D; }
.parsed.bad { background: var(--red-soft); color: #7F1D1D; }
.error { color: var(--red); font-size: 13px; margin-top: 4px; }
.notice { font-size: 13px; color: var(--muted); }
.mt { margin-top: 14px; }
.center { text-align: center; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }

.bk { display: block; }
.bk-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bk-name { font-weight: 800; font-size: 17px; color: var(--navy); }
.bk-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.badge-green { background: var(--green-soft); color: #14532D; }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-gray { background: #EEF0F3; color: var(--muted); }
.badge-red { background: var(--red-soft); color: #7F1D1D; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pbox { background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.pbox .l { font-size: 12px; color: var(--muted); }
.pbox .v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pbox .v.down { color: var(--green); }
.pbox .v.up { color: var(--muted); }
.saving { margin-top: 12px; background: var(--green-soft); border-radius: 12px; padding: 12px 14px; color: #14532D; font-weight: 700; }
.saving.none { background: var(--paper); color: var(--muted); font-weight: 500; }
.hist { margin-top: 12px; font-size: 13px; }
.hist-row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hist-row:first-child { border-top: none; }
.actions { display: flex; gap: 8px; margin-top: 14px; }
.spark { width: 100%; height: 56px; margin-top: 12px; }
