:root {
  --bg: #eae9e6;
  --paper: #f4f3f1;
  --ink: #111;
  --muted: #6b6a66;
  --line: #cfcdc8;
  --accent: #111;
  --good: #1f6b3a;
  --warn: #b3261e;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

.topline {
  background: var(--ink); color: #fff; text-align: center;
  font-size: 12px; padding: 7px 16px;
}
.bar {
  display: flex; align-items: center; justify-content: center; position: relative;
  height: 52px; border-bottom: 1px solid var(--line);
}
.logo { display: flex; }
.logo img { display: block; height: 25px; width: auto; }
.progress { position: absolute; right: 16px; font: 12px var(--mono); color: var(--muted); }

main { max-width: 480px; margin: 0 auto; padding: 36px 20px 64px; }
.screen { display: flex; flex-direction: column; gap: 20px; animation: in .25s ease backwards; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }

.period { margin-left: 8px; padding: 2px 8px; background: var(--ink); color: #fff; letter-spacing: 0; }
.eyebrow { font: 12px var(--mono); color: var(--muted); margin: 0; letter-spacing: .08em; }
h1 { font-size: 32px; line-height: 1.25; margin: -8px 0 0; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 24px; line-height: 1.35; margin: 0; font-weight: 700; letter-spacing: -0.03em; }
.lead { margin: 0; color: #333; font-size: 16px; }
.sub { margin: -8px 0 4px; color: var(--muted); font-size: 14px; }
.fine { margin: 0; color: var(--muted); font-size: 12.5px; text-align: center; }

.how { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.how li { display: flex; gap: 14px; align-items: baseline; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.how span { font: 12px var(--mono); color: var(--muted); }
.how em { margin-left: auto; font-style: normal; font: 12px var(--mono); color: var(--muted); }

.perk { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.perk > div { background: var(--paper); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.perk strong { font-size: 18px; letter-spacing: -0.02em; }
.perk small { color: var(--muted); font-size: 12.5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 20px; border: 1px solid var(--ink);
  font: 600 15px var(--sans); cursor: pointer; text-decoration: none;
  border-radius: 0; transition: opacity .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn.primary { background: var(--ink); color: #fff; width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn:disabled { opacity: .3; cursor: default; }
.btn:not(:disabled):active { opacity: .7; }
.screen > .btn { margin-top: 8px; }
.screen > .btn.ghost { width: 100%; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; min-width: 0; }
.row .btn { flex: none; width: 112px; height: 52px; padding: 0 12px; font-size: 14px; }
input[type=tel], input[type=text], input[type=number] {
  height: 52px; padding: 0 14px; border: 1px solid var(--line); background: #fff;
  font: 500 17px var(--sans); color: var(--ink); border-radius: 0; width: 100%;
  -webkit-appearance: none; appearance: none; outline: none;
}
input:focus { border-color: var(--ink); }
input::placeholder { color: #b5b3ae; }
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
.timer { font: 13px var(--mono); color: var(--warn); font-style: normal; }
.msg { margin: 0; min-height: 1em; color: var(--warn); font-size: 13.5px; }
.msg:empty { display: none; }
.dev { margin: 0; font: 12px var(--mono); color: var(--muted); background: #fff8d6; padding: 8px 10px; }

.items { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: flex; gap: 12px; align-items: center; padding: 16px;
  background: var(--paper); border: 1px solid var(--line); cursor: pointer;
}
.item input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }
.item .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item .name { font-weight: 600; }
.item .desc { font-size: 13px; color: var(--muted); }
.item.is-done { opacity: .5; cursor: default; }
.item:has(input:checked) { border-color: var(--ink); background: #fff; }
.tag { display: inline-block; font: 11px var(--mono); padding: 1px 6px; border: 1px solid var(--line); margin-left: 4px; vertical-align: 1px; color: var(--muted); }
.empty { background: var(--paper); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.empty p { margin: 0; font-size: 14px; color: #333; }

.body-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.unit { position: relative; }
.unit input { padding-right: 44px; }
.unit i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 14px; }

.fits { display: flex; flex-direction: column; gap: 12px; }
.fit { background: var(--paper); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.fit .head { display: flex; flex-direction: column; gap: 2px; }
.fit .name { font-weight: 600; }
.fit .spec { font: 12px var(--mono); color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.seg button {
  height: 46px; border: 0; background: #fff; font: 600 14px var(--sans); color: var(--ink);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; }
.parts { display: flex; flex-direction: column; gap: 8px; }
.parts p { margin: 0; font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  height: 34px; padding: 0 12px; border: 1px solid var(--line); background: #fff;
  font: 13px var(--sans); color: var(--ink); cursor: pointer;
}
.chips button[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: #fff; }

.consent { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 14.5px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
details summary { font-size: 13px; color: var(--muted); cursor: pointer; }
details dl { margin: 10px 0 0; font-size: 12.5px; color: #444; background: var(--paper); padding: 14px; border: 1px solid var(--line); }
details dt { font-weight: 600; margin-top: 10px; }
details dt:first-child { margin-top: 0; }
details dd { margin: 2px 0 0; }

.done-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.done-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.done-list li span:last-child { font: 13px var(--mono); color: var(--muted); white-space: nowrap; }
.photo-cta {
  display: flex; flex-direction: column; gap: 2px; padding: 20px; background: var(--ink); color: #fff; text-decoration: none;
}
.photo-cta span { font-size: 14px; opacity: .8; }
.photo-cta strong { font-size: 20px; letter-spacing: -0.02em; }
.photo-cta em { font-style: normal; font-size: 13px; margin-top: 6px; opacity: .8; }

.hint { margin: 0; color: var(--muted); font-size: 12.5px; }
.hero { display: flex; flex-direction: column; gap: 16px; }
.hero h1 { margin: 0; }
.block { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.block-title { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.block-title em { margin-left: auto; font: 12px var(--mono); font-style: normal; color: var(--muted); }
.block-title .num { font: 12px var(--mono); color: var(--muted); font-weight: 400; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; }
.steps li > span { font: 12px/22px var(--mono); color: var(--muted); }
.steps b { font-size: 15px; }
.steps p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.preview { background: #fff; border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.preview-k { font: 11px var(--mono); color: var(--muted); letter-spacing: .04em; }
.preview strong { font: 700 26px var(--mono); letter-spacing: -0.03em; }
.preview p { margin: 0; font-size: 13.5px; }
.start { border-top: 2px solid var(--ink); }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); transition: opacity .2s, transform .2s; z-index: 5; }
.sticky-cta .btn { max-width: 440px; margin: 0 auto; display: flex; }
.sticky-cta.off { opacity: 0; transform: translateY(100%); pointer-events: none; }
[data-screen="phone"] { padding-bottom: 72px; }

.tag-note { margin: 0; padding: 12px 14px; background: var(--paper); border: 1px solid var(--ink); font-size: 13.5px; }
