
  :root {
    --bg: #F6F7F9;
    --paper: #FFFFFF;
    --navy: #0E1F36;
    --ink: #0E1F36;
    --muted: #5B6A7A;
    --line: #E4E8EE;
    --line-strong: #C9D3DC;
    --celadon: #5E9C93;
    --celadon-deep: #2F6F66;
    --wash: #E6F1EE;
    --field: #F3F5F8;
    --photo: #DDE7EA;
    --danger: #B3382C;
    --shadow: 0 1px 2px rgba(16,35,61,.04), 0 6px 20px rgba(16,35,61,.07);
    --r-card: 16px;
    --r-ctl: 12px;
    --sans: "IBM Plex Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; background: #F6F7F9; color: var(--ink); font-family: var(--sans); line-height: 1.6; }
  .wrap { max-width: 520px; min-height: 100vh; margin: 0 auto; background: var(--bg); padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* ---- 상단 네이비 영역 ---- */
  .top { background: var(--navy); color: #fff; }
  .topbar { height: 56px; padding: 0 24px; display: flex; align-items: center; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
  .topbar.hidden { display: none; }
  .hero { padding: 20px 24px 64px; background: linear-gradient(180deg, #0E1F36 0%, #142A4A 60%, #183054 100%); }
  h1 { margin: 0; font-size: 30px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
  .lead { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.78); }

  .benefit { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; margin: 0 8px; padding: 14px 16px; border-radius: var(--r-ctl); background: linear-gradient(135deg, #FFF8E6 0%, #FFEFC0 100%); border: 1px solid #D9B65D; box-shadow: 0 2px 8px rgba(217,182,93,.18); }
  .benefit::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent); transform: skewX(-18deg); animation: shine 3.6s ease-in-out 1s infinite; }
  @keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
  .benefit .gift { flex: none; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 3px 5px rgba(120,20,20,.2)); }
  .benefit .gift svg { display: block; }
  .benefit > div:last-child { min-width: 0; }
  .benefit b { display: block; font-size: 16.5px; word-break: keep-all; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; color: #493713; }
  .benefit span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; word-break: keep-all; color: #6A5222; }
  .live { display: none; align-items: center; gap: 10px; margin: 14px 8px 0; padding: 12px 14px; border-radius: 12px; background: var(--field); font-size: 13.5px; line-height: 1.5; }
  .live.on { display: flex; flex-wrap: wrap; row-gap: 4px; }
  .dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #1FA66A; }
  .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1FA66A; animation: ping 1.8s ease-out infinite; }
  @keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }
  .live .cnt { font-weight: 600; font-variant-numeric: tabular-nums; }
  .live .tick { flex-basis: 100%; min-width: 0; height: 21px; overflow: hidden; padding-left: 20px; text-align: left; color: var(--muted); font-size: 13px; }
  .live .tick span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: tickin .5s ease-out both; }
  @keyframes tickin { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
  .linkbtn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .linkbtn:focus-visible { outline: 3px solid var(--celadon); outline-offset: 3px; }
  .policy { position: fixed; inset: 0; z-index: 50; display: none; background: rgba(14,31,54,.55); }
  .policy.on { display: block; }
  .sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; max-height: 92vh; margin: 0 auto; display: flex; flex-direction: column; background: var(--paper); border-radius: 20px 20px 0 0; animation: rise .25s ease-out both; }
  @keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .sheethead { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .sheethead h2 { font-size: 18px; }
  .sheetbody { overflow-y: auto; padding: 8px 20px 28px; font-size: 14px; line-height: 1.7; -webkit-overflow-scrolling: touch; }
  .sheetbody h3 { margin: 22px 0 6px; font-size: 15px; line-height: 1.4; font-weight: 600; }
  .sheetbody p, .sheetbody li { margin: 0 0 4px; color: #2B3A4B; }
  .sheetbody ul { margin: 4px 0 0; padding-left: 18px; }
  .sheetbody .need { background: #FFF4D6; color: #6B4E00; padding: 0 4px; border-radius: 4px; }
  .sheetbody .meta { color: var(--muted); font-size: 13px; }
  .coinfo div { display: flex; gap: 8px; }
  .coinfo div b { flex: none; min-width: 88px; font-weight: 600; }
  .steps { position: relative; margin: -36px 16px 0; padding: 20px 8px 0; background: var(--paper); border-radius: var(--r-card); box-shadow: var(--shadow); }
  .stepgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .step { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 600; }
  .step i { width: 44px; height: 44px; border-radius: 50%; background: var(--wash); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(46,111,102,.12); }
  .notice { margin: 18px 8px 0; padding: 14px 0 16px; display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; font-weight: 600; }
  .notice svg { flex: none; margin-top: 1px; }
  .testmode { display: none; margin: 16px 16px 0; padding: 10px 12px; border-radius: 10px; background: #FFF4D6; color: #6B4E00; font-size: 13px; line-height: 1.5; border: 1px solid #ECD48A; }
  .testmode.on { display: block; }
  .loading { padding: 0 24px 32px; font-size: 14px; color: var(--muted); }
  .loading::after { content: ""; display: block; margin-top: 12px; height: 140px; border-radius: var(--r-card); background: linear-gradient(90deg, var(--field) 30%, #E8ECF0 50%, var(--field) 70%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; }
  @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

  /* ---- 단지 ---- */
  #cards { padding: 16px 16px 0; }
  .card { margin-bottom: 16px; background: var(--paper); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s ease, transform .2s ease; }
  .card:active { transform: scale(.985); }
  .card.selected { box-shadow: 0 0 0 2.5px var(--celadon-deep), 0 10px 28px rgba(16,35,61,.12); }
  .card.selected .poster { background: linear-gradient(150deg, #1E7066 0%, #12514A 80%); }
  .poster { background: linear-gradient(150deg, #2A4A72 0%, #1B3658 80%); }
  .photo { position: relative; height: 200px; background: var(--photo); overflow: hidden; }
  .photo::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(to top, rgba(0,0,0,.12), transparent); pointer-events: none; }
  .photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
  .card:active .photo img { transform: scale(1.02); }
  .poster { position: relative; min-height: 112px; padding: 22px 20px;  color: #fff; display: flex; flex-direction: column; justify-content: flex-start; }
  .poster .pname { font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
  .poster .parea { align-self: flex-start; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.14); color: #E6F1EE; font-size: 12.5px; font-weight: 500; line-height: 1.5; }
  .chip { position: absolute; top: 14px; right: 14px; display: none; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--paper); color: #14524C; font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(14,31,54,.12); }
  .photo .chip { right: auto; left: 14px; }
  .chip::before { content: "\2713"; font-size: 13px; }
  .card.selected .chip { display: inline-flex; }
  .namewrap { padding: 20px 20px 0; }
  .namebox { display: block; }
  .namebox .cname { font-size: 26px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
  .namebox .carea { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: var(--wash); color: var(--celadon-deep); font-size: 12.5px; font-weight: 500; line-height: 1.5; }
  .summary { margin: 12px 0 0; padding: 0 20px; font-size: 15px; line-height: 1.65; }
  .actions { display: flex; gap: 10px; padding: 18px 20px 20px; }

  .btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; border-radius: var(--r-ctl); font-family: inherit; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .2s, box-shadow .2s, transform .15s; }
  .btn.primary { flex: 1; border: 0; background: var(--navy); color: #fff; font-weight: 600; }
  .btn.primary:active:not(:disabled) { transform: scale(.97); background: #1A3460; }
  .btn.ghost { width: 104px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font-weight: 500; }
  .btn.ghost:active { background: var(--field); }
  .btn.wide { width: 100%; height: 52px; }
  .btn:disabled { opacity: .55; cursor: not-allowed; }
  .btn:focus-visible, .consent input:focus-visible, summary:focus-visible { outline: 3px solid var(--celadon); outline-offset: 3px; }

  /* ---- 폼 ---- */
  .formarea { position: relative; margin: 0 16px 16px; padding: 24px 20px; background: var(--paper); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: hidden; }
  .formarea::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--celadon-deep), var(--celadon)); }
  h2 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
  .formlead { margin: 6px 0 20px; font-size: 14.5px; line-height: 1.6; color: #4A5A6C; }
  .picked { display: none; margin: 0 0 20px; padding: 14px 16px; border-radius: var(--r-ctl); background: linear-gradient(135deg, #1E7066, #12514A); color: #fff; }
  .picked.on { display: block; }
  .picked small { display: block; font-size: 12px; font-weight: 500; color: #CFEDE6; }
  .picked b { display: block; margin-top: 2px; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
  .field { margin-bottom: 18px; }
  label.l { display: block; margin-bottom: 8px; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--ink); }
  .opt { font-weight: 400; color: #5B6A7A; }
  input[type=text], input[type=tel], select { display: block; width: 100%; height: 52px; padding: 0 16px; border: 1px solid #E1E6ED; border-radius: var(--r-ctl); background: var(--field); color: var(--ink); font-family: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s, background .2s; }
  input[type=text]:focus, input[type=tel]:focus, select:focus { outline: none; border-color: var(--navy); background: var(--paper); box-shadow: 0 0 0 3px rgba(14,31,54,.08); }
  .sel { position: relative; }
  .sel select { padding-right: 40px; }
  .sel::after { content: ""; position: absolute; right: 18px; top: 19px; width: 8px; height: 8px; border-right: 1.8px solid var(--ink); border-bottom: 1.8px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
  .err { display: none; gap: 6px; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--danger); }
  .err:not(:empty) { display: flex; animation: errIn .25s ease-out; }
  @keyframes errIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  .err:not(:empty)::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 2px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 11px; line-height: 13px; text-align: center; font-weight: 600; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .consent { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; margin: 0 -12px; border-radius: var(--r-ctl); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--field); }
  .consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--navy); }
  details { margin: 2px 0 0 34px; font-size: 14px; color: #44546A; }
  details summary { cursor: pointer; line-height: 28px; text-decoration: underline; text-underline-offset: 3px; }
  details ul { margin: 6px 0 4px; padding-left: 18px; line-height: 1.6; }
  .consent-err { margin-left: 34px; }
  .secure { margin-top: 20px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; border-radius: var(--r-ctl); background: var(--field); font-size: 13.5px; line-height: 1.6; color: #364556; }
  .secure svg { flex: none; margin-top: 1px; }
  .submit { width: 100%; height: 56px; margin-top: 16px; border: 0; border-radius: var(--r-ctl); background: linear-gradient(180deg, #142A4A 0%, #0E1F36 100%); color: #fff; font-size: 16px; font-weight: 600; transition: background .2s, transform .15s, box-shadow .2s; box-shadow: 0 3px 10px rgba(14,31,54,.18); }
  .submit:active:not(:disabled) { transform: scale(.98); box-shadow: 0 1px 4px rgba(14,31,54,.12); }
  .formmsg { margin-top: 12px; font-size: 14px; line-height: 1.5; min-height: 20px; }
  .formmsg.error { color: var(--danger); }

  /* ---- 완료 ---- */
  .done { display: none; padding: 0 24px 24px; }
  .done.on { display: block; }
  .done.on > * { animation: fadeUp .45s ease-out both; }
  .done.on > :nth-child(2) { animation-delay: .12s; }
  .done.on > :nth-child(3) { animation-delay: .22s; }
  .done.on > :nth-child(4) { animation-delay: .32s; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .done .ok { width: 72px; height: 72px; margin-top: 20px; border-radius: 50%; background: linear-gradient(135deg, #E6F1EE, #D0E8E2); box-shadow: 0 4px 16px rgba(46,111,102,.18); display: flex; align-items: center; justify-content: center; }
  .done .ok svg path { stroke-dasharray: 30; stroke-dashoffset: 0; }
  .done.on .ok svg path { animation: draw .5s ease-out .15s both; }
  @keyframes draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
  .done h2 { margin: 20px 0 0; font-size: 26px; }
  .done .who { margin-top: 20px; padding: 18px 20px; background: var(--paper); border-radius: var(--r-card); box-shadow: var(--shadow); border-left: 3px solid var(--celadon); }
  .done .who .n { font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; color: var(--celadon-deep); }
  .done .who p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
  .done .btn { margin-top: 24px; }

  footer { margin: 0 16px; text-align: left; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); font-size: 13.5px; line-height: 1.7; color: #536274; }
  footer:empty { display: none; }

  /* ---- 하단 고정 바: 전화상담 + 관심고객 등록 ---- */
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid rgba(228,232,238,.7); box-shadow: 0 -4px 20px rgba(16,35,61,.08); }
  .dockin { max-width: 520px; margin: 0 auto; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .btn.call { flex: 1.2; height: 56px; gap: 10px; border: 0; background: linear-gradient(135deg, #22B873, #17935C); color: #fff; white-space: nowrap; box-shadow: 0 4px 14px rgba(31,166,106,.38); }
  .btn.call:active { transform: scale(.97); box-shadow: 0 2px 6px rgba(31,166,106,.25); }
  .btn.call .calltxt { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.3; }
  .btn.call small { font-size: 15px; font-weight: 600; opacity: 1; }
  .btn.call b { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .btn.call svg { flex: none; width: 26px; height: 26px; transform-origin: 50% 60%; animation: ring 3.2s ease-in-out 1.5s infinite; filter: drop-shadow(0 0 4px rgba(255,255,255,.4)); }
  @keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-16deg); } 78% { transform: rotate(14deg); } 82% { transform: rotate(-10deg); } 86% { transform: rotate(8deg); } 90% { transform: rotate(0); } }
  .ctabar { display: none; flex: 1; }
  .ctabar.on { display: flex; }
  .ctabar .btn { flex: 1; width: 100%; height: 56px; }

  /* ---- 입장 애니메이션 ---- */
  .hero h1 { animation: heroIn .7s ease-out both; }
  .hero .lead { animation: heroIn .7s ease-out .15s both; }
  @keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

  .benefit { animation: fadeUp .5s ease-out .25s both; }
  .benefit .gift { animation: float 3s ease-in-out 1s infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

  .steps { animation: slideUp .5s ease-out .35s both; }
  @keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .step i { animation: popIn .4s ease-out both; }
  .step:nth-child(1) i { animation-delay: .5s; }
  .step:nth-child(2) i { animation-delay: .65s; }
  .step:nth-child(3) i { animation-delay: .8s; }
  @keyframes popIn { from { opacity: 0; transform: scale(.55); } 65% { transform: scale(1.1); } to { opacity: 1; transform: scale(1); } }

  .card { animation: cardIn .45s ease-out both; }
  .card:nth-child(1) { animation-delay: .1s; }
  .card:nth-child(2) { animation-delay: .22s; }
  .card:nth-child(3) { animation-delay: .34s; }
  .card:nth-child(4) { animation-delay: .46s; }
  @keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

  .formarea { animation: slideUp .5s ease-out .4s both; }

  .dock { animation: dockUp .5s ease-out .6s both; }
  @keyframes dockUp { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
  .btn.call { animation: callGlow 3s ease-in-out 1.5s infinite; }
  @keyframes callGlow { 0%, 100% { box-shadow: 0 4px 14px rgba(31,166,106,.38); } 50% { box-shadow: 0 4px 20px rgba(31,166,106,.55), 0 0 24px rgba(31,166,106,.2); } }
  .ctabar.on .btn.primary { animation: ctaPulse 2.8s ease-in-out 2s infinite; }
  @keyframes ctaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(14,31,54,.25); } 50% { box-shadow: 0 0 0 6px rgba(14,31,54,0); } }

  @media (max-width: 340px) { h1 { font-size: 26px; } .poster .pname { font-size: 22px; } }
  @media (prefers-reduced-motion: reduce) {
    .dot::after, .live .tick span, .sheet, .loading::after { animation: none; }
    .btn.call svg, .benefit::after, .benefit .gift { animation: none; }
    .hero h1, .hero .lead, .benefit, .steps, .step i, .card, .formarea, .dock { animation: none; }
    .btn.call, .ctabar.on .btn.primary { animation: none; }
    .done.on .ok svg path, .done.on > *, .err:not(:empty) { animation: none; }
    .card, .btn, .submit, .photo img, input[type=text], input[type=tel], select { transition: none; }
  }
