/* 큐피오 사전등록 — 아이보리·코랄, 둥근 고딕(나눔스퀘어라운드), 실제 큐피드 그림. */
@font-face { font-family: 'QRound'; font-weight: 400; font-display: swap;
  src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareRound/NanumSquareRoundR.woff2) format('woff2'); }
@font-face { font-family: 'QRound'; font-weight: 700; font-display: swap;
  src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareRound/NanumSquareRoundB.woff2) format('woff2'); }
@font-face { font-family: 'QRound'; font-weight: 800; font-display: swap;
  src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumSquareRound/NanumSquareRoundEB.woff2) format('woff2'); }

:root {
  --ivory: #FBF6EE;
  --paper: #FFFDF8;
  --peach: #FCE7DC;
  --peach-soft: #FDF1EA;
  --sage: #E4EBDD;
  --coral: #C24E3A;        /* 버튼 채움 — 흰 글자 4.7:1 */
  --coral-bright: #EE7A62; /* 장식 점·밑줄 */
  --coral-text: #A8432E;   /* 강조 글자 */
  --ink: #3B2C25;
  --ink-soft: #7B675C;
  --line: #EFE3D6;
  --shadow: 0 10px 30px rgba(120, 72, 48, 0.10), 0 2px 6px rgba(120, 72, 48, 0.06);
  --radius: 28px;
  --font: 'QRound', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  font-family: var(--font); color: var(--ink); background: var(--ivory);
  line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* 상단 */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(16px, calc((100vw - 1040px) / 2)); background: rgba(251, 246, 238, 0.92);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { width: 36px; height: 36px; }
.top-link { font-weight: 700; font-size: 15px; text-decoration: none; color: var(--coral-text); padding: 8px 4px; }

main { padding: 0 16px; }
section { max-width: 1040px; margin: 0 auto; }

/* 훅 */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center; padding: 40px 0 32px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 14px; color: var(--coral-text); background: var(--peach); padding: 5px 12px; border-radius: 12px; margin-bottom: 18px; }
h1 { font-weight: 800; font-size: clamp(40px, 7vw, 64px); line-height: 1.18; letter-spacing: -0.02em; }
h1 br { display: block; }
.lead { margin-top: 18px; font-size: 18px; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.note { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }

.hero-art { position: relative; justify-self: center; width: 100%; max-width: 380px; aspect-ratio: 1 / 1;
  background: radial-gradient(closest-side, var(--peach) 0%, var(--peach-soft) 60%, transparent 100%); border-radius: 50%; }
.hero-art img { position: absolute; inset: 14% 14% 10% 14%; width: 72%; height: auto; margin: 0 auto; animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.bubble { position: absolute; z-index: 1; font-size: 14px; font-weight: 700; padding: 10px 14px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); max-width: 62%; line-height: 1.45; }
.bubble.b1 { top: 4%; left: -2%; border-bottom-left-radius: 6px; }
.bubble.b2 { bottom: 4%; right: -2%; background: var(--coral); color: #fff; border-bottom-right-radius: 6px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: 18px;
  font-family: inherit; font-size: 17px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer;
  transition: transform 160ms ease, background-color 200ms ease, opacity 200ms ease; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--coral); color: #fff; box-shadow: 0 6px 16px rgba(194, 78, 58, 0.22); }
.btn.primary:hover { background: #B24532; }
.btn.primary:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { background: var(--peach-soft); }
.btn.wide { width: 100%; }
:focus-visible { outline: 3px solid var(--coral-bright); outline-offset: 3px; border-radius: 12px; }

/* 순서 */
.how ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 8px 0 48px; counter-reset: step; }
.how li { counter-increment: step; padding: 20px 20px 22px; border-radius: 24px; background: var(--paper); }
.how li:nth-child(2) { background: var(--peach-soft); }
.how li:nth-child(3) { background: var(--sage); }
.how li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--ivory); font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.how strong { display: block; font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.how span { font-size: 15px; color: var(--ink-soft); }

/* 미리보기 */
.try { padding: 8px 0 48px; }
.try-head { max-width: 640px; margin: 0 auto 18px; text-align: center; }
h2 { font-size: clamp(26px, 4.2vw, 34px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.try-head p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; }

.card { max-width: 640px; margin: 0 auto; scroll-margin-top: 76px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px; }
.step { animation: rise 320ms ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ask { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.ask img { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--peach-soft); }
.ask p { background: var(--ivory); border-radius: 20px; border-top-left-radius: 6px; padding: 13px 16px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.progress { font-size: 14px; font-weight: 700; color: var(--coral-text); margin-bottom: 10px; }

.answer-form { display: grid; gap: 10px; }
input, select, textarea { width: 100%; font-family: inherit; font-size: 17px; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: 16px; padding: 13px 15px; transition: border-color 160ms ease; }
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--coral-bright); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%237B675C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; }
select:disabled { opacity: 0.55; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.center-row { justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.count, .hint { font-size: 13px; color: var(--ink-soft); }
.error { color: #A3311F; font-size: 14px; font-weight: 700; }
.privacy-mini { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

.facts { list-style: none; display: grid; gap: 8px; margin-bottom: 18px; }
.facts li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 16px; background: var(--ivory); font-size: 15px; transition: opacity 200ms ease; }
.facts li.off { opacity: 0.5; }
.facts li.off .fact-text { text-decoration: line-through; }
.facts li.wait { color: var(--ink-soft); }
.facts li.wait::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--coral-bright); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.fact-toggle { flex: none; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink-soft); background: var(--paper); border: 0; border-radius: 12px; padding: 8px 12px; cursor: pointer; min-height: 40px; }
.facts li.off .fact-toggle { color: var(--coral-text); }
.facts li.empty { color: var(--ink-soft); font-size: 14px; }

.center { text-align: center; display: grid; justify-items: center; gap: 8px; }
.writing-art { width: 160px; animation: float 3s ease-in-out infinite; }
.big { font-size: 20px; font-weight: 800; }
.sub { font-size: 15px; color: var(--ink-soft); max-width: 420px; }
.dots { display: flex; gap: 6px; margin-top: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral-bright); animation: blink 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; } .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.letter { position: relative; background: #fff; border-radius: 24px; padding: 24px 20px 20px; box-shadow: inset 0 0 0 2px var(--peach); }
.letter .tag { position: absolute; top: -12px; right: 18px; background: var(--ink); color: var(--ivory); font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 10px; }
.letter .who { font-size: 14px; font-weight: 700; color: var(--coral-text); }
.letter h3 { font-size: 21px; font-weight: 800; line-height: 1.45; margin: 6px 0 14px; }
.letter #pv-body p { font-size: 16px; line-height: 1.85; margin-bottom: 12px; }
.letter .hook { display: grid; gap: 2px; margin-top: 6px; padding: 12px 14px; border-radius: 16px; background: var(--peach-soft); font-size: 15px; }
.letter .hook span { font-size: 13px; font-weight: 700; color: var(--coral-text); }
.pv-note { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.pv-after { margin-top: 10px; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* 등록 */
.signup { padding: 8px 0 56px; scroll-margin-top: 72px; }
.try { scroll-margin-top: 72px; }
.form-card h2 { margin-bottom: 4px; }
.form-lead { color: var(--ink-soft); margin-bottom: 20px; }
#signup-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; }
.field label, .field legend { font-size: 15px; font-weight: 800; }
.field legend { margin-bottom: 8px; }
.field.two { grid-template-columns: 1fr 1fr; gap: 10px; }
.field.two > div { display: grid; gap: 8px; }
.label-spacer { font-size: 15px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 52px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font-weight: 800; font-size: 16px; transition: all 160ms ease; }
.seg input:checked + span { border-color: var(--coral); background: var(--peach-soft); color: var(--coral-text); }
.seg input:focus-visible + span { outline: 3px solid var(--coral-bright); outline-offset: 2px; }
.checks { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: var(--ivory); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 700; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--coral); padding: 0; }
.check em { font-style: normal; color: var(--ink-soft); font-weight: 400; }
details { margin: 6px 0 0 32px; font-size: 14px; color: var(--ink-soft); }
summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 6px; }
dt { font-weight: 700; color: var(--ink); }

.foot { text-align: center; padding: 28px 16px 40px; font-size: 13px; color: var(--ink-soft); display: grid; gap: 4px; }

/* 모바일 */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; gap: 8px; }
  .hero-art { order: -1; max-width: 300px; }
  .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .how ol { grid-template-columns: 1fr; padding-bottom: 36px; }
  .card { padding: 22px 16px; border-radius: 24px; }
  dl { grid-template-columns: 1fr; }
  dd { margin-bottom: 6px; }
  details { margin-left: 0; }
}
