@font-face {
  font-family: Pretendard;
  src: url("../PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --field: #E4F1EC;
  --accent: #1D9E75;
  --button: #16866A;
  --deep: #0F7A5C;
  --ink: #1C1C1E;
  --muted: #6C6C72;
  --line: #E5E5EA;
  --radius: 18px;
  --gutter: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px; line-height: 1.55; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: anywhere;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(34px, 9vw, 44px); line-height: 1.12; letter-spacing: -0.045em; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }

.top { padding: 14px var(--gutter); max-width: 560px; width: 100%; margin: 0 auto; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
main:focus, main:focus-visible { outline: none; }
main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 8px var(--gutter) 32px; display: flex; flex-direction: column; gap: 12px; outline: none; }
.foot { text-align: center; padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom)); font-size: 13px; }
.foot a { color: var(--muted); }

/* 첫 화면 */
.start { display: grid; gap: 20px; padding: 24px 0 8px; grid-template-areas: "hero" "demo" "go" "beta"; }
.hero { grid-area: hero; display: grid; gap: 14px; padding: 8px 4px 0; }
.lead { margin: 0; font-size: 17px; color: var(--muted); max-width: 26em; }
.demo { grid-area: demo; margin: 0; padding: 20px; background: var(--surface); border-radius: var(--radius); }
.demo .eyebrow { margin-bottom: 4px; }
.demo ul { list-style: none; margin: 0; padding: 0; }
.demo li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.demo li:first-child { border-top: 0; }
.demo li:nth-child(n+2) { display: none; }
.go { grid-area: go; display: grid; gap: 10px; }
.badge { justify-self: start; margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--field); color: var(--deep); font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.invite { margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; color: var(--ink); line-height: 1.5; }
.go .fine { text-align: center; }
.beta { grid-area: beta; padding: 16px 20px; background: var(--surface); border-radius: var(--radius); font-size: 14px; color: var(--muted); }
.beta summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.beta p { margin: 12px 0 0; }
.beta ul { margin: 8px 0 0; padding-left: 20px; }

/* 카드 */
.card { background: var(--surface); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.card.center, .center { text-align: center; align-items: center; }
.sub { margin: 0; color: var(--muted); font-size: 15px; }
.fine { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: var(--deep); }
.notice { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--field); color: var(--deep); font-size: 14px; }
.tip { margin: 6px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 14px; text-align: left; }

.mine-name { margin: 2px 0 0; font-size: clamp(22px, 6.4vw, 28px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.25; }
.mine .link { align-self: flex-start; }

/* 버튼 */
.primary, .secondary {
  display: block; width: 100%; min-height: 54px; padding: 14px 20px; border: 0; border-radius: 14px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em; transition: transform .12s, background .12s;
}
.primary { background: var(--button); color: #fff; }
.primary:hover { background: var(--deep); }
.primary:active, .secondary:active { transform: scale(.985); }
.primary:disabled { background: #B9C9C2; cursor: default; transform: none; }
.secondary { background: var(--field); color: var(--deep); }
.secondary:disabled { opacity: .6; cursor: default; }
.link { background: none; border: 0; padding: 6px 0; color: var(--deep); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.center-block { align-self: center; }
.link.quiet { color: var(--muted); font-weight: 500; font-size: 14px; }
.bar { position: sticky; bottom: 0; margin: 4px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(242, 242, 247, 0), var(--bg) 30%); }

/* 바뀔 모양 목록 */
.rows { list-style: none; margin: 4px 0 0; padding: 0; }
.rows li { border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.row, .pair { display: grid; gap: 2px; padding: 12px 0; }
.rows label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: center; cursor: pointer; }
.rows label .pair { padding: 12px 0; }
.rows input { width: 20px; height: 20px; margin: 0; accent-color: var(--button); }
.before { color: var(--muted); font-size: 14px; }
.after { font-weight: 600; font-size: 16px; }
.off .after { color: var(--muted); font-weight: 400; text-decoration: line-through; }

/* 칩 */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--button); border-color: var(--button); color: #fff; }

/* 방식 고르기 */
.formats { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; }
.format { width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 2px; }
.format b { font-size: 17px; letter-spacing: -0.03em; }
.format span { color: var(--muted); font-size: 13px; }
.format.on { border: 2px solid var(--button); padding: 13px 15px; }

/* 진행 */
.steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.steps .now { color: var(--ink); font-weight: 600; }
.steps .now::before { border-color: var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
.steps .done { color: var(--ink); }
.steps .done::before { background: var(--accent); border-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { width: 100%; height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; margin-top: 6px; }
.progress span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .3s; }
.check { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 28px; font-weight: 700; display: grid; place-items: center; margin-bottom: 4px; }

/* PC */
@media (min-width: 900px) {
  .top, main { max-width: 640px; padding-left: 0; padding-right: 0; }
  .top { padding-top: 28px; padding-bottom: 8px; }
  main { padding-top: 32px; padding-bottom: 48px; }
  body.wide .top, body.wide main { max-width: 1040px; padding-left: 40px; padding-right: 40px; }
  body.wide main { justify-content: center; padding-top: 0; }
  .start {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 72px; row-gap: 28px; align-items: start;
    grid-template-areas: "hero demo" "go demo" "beta demo"; grid-template-rows: auto auto 1fr;
    padding: 0;
  }
  .hero { padding: 0; gap: 20px; }
  h1 { font-size: 60px; }
  .lead { font-size: 19px; }
  .go, .beta { max-width: 420px; }
  .go .fine { text-align: left; }
  .demo { align-self: center; padding: 28px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(15, 122, 92, .08); }
  .demo li { padding: 16px 0; }
  .demo li:nth-child(n+2) { display: grid; }
  .demo .after { font-size: 18px; }
  .card { padding: 28px; }
  .bar { margin: 4px 0 0; padding-left: 0; padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 처리방침 */
.doc .card { gap: 12px; }
.doc-title { font-size: 28px; }
.doc h2 { font-size: 18px; margin-top: 12px; }
.doc p, .doc li { font-size: 15px; margin: 0; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
