/* sample1 구성의 사전등록 페이지. 레퍼런스의 빨강 → 브랜드 파랑, 따뜻한 종이색 → zinc/50 으로 바꿨다. A/B 는 문구만 다르다. */
:root {
  /* 색은 Babel AI 디자인 시스템(babel-ai apps/web/src/styles/tokens.css) 값만 쓴다 — zinc 회색 · blue 주색 · 상태색 */
  --blue: #2563eb;           /* primary-normal · blue/600 */
  --blue-strong: #1d4ed8;    /* primary-strong · blue/700 */
  --blue-weak: #93c5fd;      /* primary-weak · blue/300 */
  --blue-light: #60a5fa;     /* blue/400 */
  --blue-soft: #eff6ff;      /* primary-subtle · blue/50 */
  --navy: #172554;           /* background-brand · blue/950 */
  --ink: #27272a;            /* text-normal · zinc/800 */
  --ink-sub: #52525b;        /* text-assistive · zinc/600 */
  --ink-mute: #71717a;       /* text-hint · zinc/500 */
  --line: #e4e4e7;           /* line-divider · zinc/200 */
  --line-border: #d4d4d8;    /* line-border · zinc/300 */
  --bg: #ffffff;             /* background-normal */
  --bg-sub: #f4f4f5;         /* background-sub · zinc/100 */
  --bg-subtle: #fafafa;      /* background-subtle · zinc/50 */
  --black: #18181b;          /* background-inverse · zinc/900 — 알약 버튼 · 터미널 */
  --red: #b91c1c;            /* status-negative · red/700 */
  --green: #15803d;          /* status-positive · green/700 */
  --tint-mark: #fefce8;      /* tint-mark · yellow/50 */
  --tint-mark-fg: #a16207;   /* tint-mark-foreground · yellow/700 */
  --tint-mark-line: #fde047; /* tint-mark-line · yellow/300 */
  --tint-negative-line: #fca5a5; /* tint-negative-line · red/300 */
  --radius: 14px;
  --shadow: 0 1px 2px rgb(24 24 27 / 0.05), 0 12px 32px -12px rgb(24 24 27 / 0.18);
  --gutter: 16px;
  --max: 1120px;
  --label: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; /* 머리말·번호 — 손글씨 대신 본문 글꼴의 보통 굵기 파란 글자(D안, 2026-10-28) */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg-subtle); word-break: keep-all; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, svg { display: block; }
:root { --display: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; --gutter: 20px; --wrap: 1200px; }
.page { overflow: hidden; }
.head, .hero, .pains, .features, .end, .foot { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-sub); }
.label::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.label--dark { color: var(--blue-weak); }

.head { display: flex; align-items: center; height: 72px; }
.head__logo { width: auto; height: 26px; }

/* ── ① 첫 화면 ── */
.hero__notice { position: relative; width: fit-content; margin-bottom: 8px; padding: 6px 15px 6px 7px; font-size: 13.5px; color: #fff; background: var(--blue); border-radius: 16px; box-shadow: 0 12px 24px -10px rgb(37 99 235 / 0.6); }
.hero__notice::before { display: none; }
.hero__notice::after { content: ""; position: absolute; bottom: -7px; left: 18px; width: 16px; height: 12px; background: var(--blue); clip-path: polygon(0 0, 100% 0, 0 100%); }
.hero__tag { display: inline-flex; flex: none; gap: 5px; align-items: center; padding: 3px 10px 3px 8px; font-size: 12.5px; font-weight: 700; color: var(--blue); background: #fff; border-radius: 999px; white-space: nowrap; }
.hero__tag svg { flex: none; width: 13px; height: 13px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero { display: grid; gap: 40px; padding-top: 20px; }
.hero__title { margin-top: 18px; min-height: 5.2em; font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; color: var(--black); }
.hero__title { font-weight: 300; }
.hero__title .accent { display: block; font-weight: 800; color: var(--black); }
.hero__title mark { padding: 0 0.06em; color: inherit; white-space: nowrap; background: linear-gradient(180deg, transparent 62%, var(--blue-weak) 62%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__desc { margin-top: 16px; max-width: 540px; min-height: 0; font-size: 17px; line-height: 1.7; color: var(--ink); }
.hero__form { margin-top: 20px; max-width: 480px; }
.hero__visual { position: relative; display: flex; justify-content: center; }

/* 첫 화면 — 제품 창 */
.win { overflow: hidden; width: min(100%, 560px); background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 40px 70px -32px rgb(24 24 27 / 0.45); }
.win__bar { display: flex; gap: 6px; padding: 13px 16px; background: var(--bg-sub); border-bottom: 1px solid var(--line); }
.win__bar i { width: 10px; height: 10px; background: #ff5f57; border-radius: 50%; }
.win__bar i:nth-child(2) { background: #febc2e; }
.win__bar i:nth-child(3) { background: #28c840; }
.win .mock { min-height: 400px; border: 0; border-radius: 0; box-shadow: none; }


/* ── ② 문제 공감 ── */
.pains { padding-top: 80px; }
.pains__flow { display: grid; justify-items: center; gap: 20px; }
.pains__chat { display: grid; align-content: start; gap: 14px; width: 100%; min-height: 322px; position: relative; isolation: isolate; }
.pains__chat::before, .pains__chat::after { position: absolute; z-index: -1; font-family: Georgia, "Times New Roman", serif; font-size: 150px; font-weight: 700; line-height: 1; color: #dbeafe; pointer-events: none; }
.pains__chat::before { content: "“"; top: -27px; left: -10px; }
.pains__chat::after { content: "”"; right: -7px; bottom: -89px; }
.pains__chat li { display: flex; align-items: flex-start; gap: 10px; }
.pains__chat p { position: relative; font-family: var(--display); letter-spacing: -0.01em; text-wrap: pretty; padding: 14px 18px; border: 1px solid var(--line); font-size: 17px; line-height: 1.5; font-weight: 400; color: var(--black); background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgb(24 24 27 / 0.05), 0 8px 18px -12px rgb(24 24 27 / 0.2); }
.pains__chat mark { color: var(--blue-strong); background: none; font-weight: 600; }
.pains__chat li:nth-child(2) mark { color: var(--tint-mark-line); }
.pains__chat p::before { content: ""; position: absolute; bottom: -9px; left: 17px; width: 12px; height: 9px; background: var(--line); clip-path: polygon(0 0, 100% 0, 0 100%); }
.pains__chat p::after { content: ""; position: absolute; bottom: -7px; left: 18px; width: 16px; height: 12px; background: #fff; clip-path: polygon(0 0, 100% 0, 0 100%); }
.pains__chat li:nth-child(2) { justify-content: flex-end; }
.pains__chat li:nth-child(2) p { color: #fff; background: var(--blue); border-color: var(--blue); }
.pains__chat li:nth-child(2) p::before { display: none; }
.pains__chat li:nth-child(2) p::after { right: 18px; left: auto; background: var(--blue); clip-path: polygon(0 0, 100% 0, 100% 100%); }


/* ── ③ 하는 일 — 가운데 제목, 글·목업 지그재그 ── */
.features { padding-top: 88px; padding-bottom: 80px; }
.features__head { margin-bottom: 44px; text-align: center; }
.features__head p { font-size: 16px; color: var(--ink-sub); }
.features__head h2 { margin-top: 8px; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.feature { display: grid; gap: 24px; }
.feature + .feature { margin-top: 64px; }
.feature__num { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--blue); }
.feature h3 { margin-top: 8px; font-size: 24px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; color: var(--ink); }
.feature__text p { margin-top: 8px; font-size: 17px; line-height: 1.7; color: var(--ink); }
.feature__panel .mock { min-width: 0; }
@media (min-width: 640px) {
  .features__head h2 { font-size: 34px; }
  .feature__panel .app-split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .feature__panel .doc { border-top: 0; border-left: 1px solid var(--line); }
  .feature__panel .term { font-size: 11.5px; }
}
@media (min-width: 1024px) {
  .features { padding-top: 180px; padding-bottom: 180px; }
  .features__head { margin-bottom: 72px; }
  .features__head h2 { font-size: 42px; }
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
  .feature + .feature { margin-top: 96px; }
  .feature h3 { font-size: 32px; line-height: 1.3; }
  .feature__text p { margin-top: 12px; font-size: 19px; }
}

/* ── ④ 마지막 신청 — 연파랑 카드, 뒤에 큰 종 ── */
.end__card { position: relative; display: grid; gap: 20px; padding-block: 24px; }
.end__text, .end__form { position: relative; z-index: 1; }
.end__card h2 { font-size: 32px; font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; color: var(--black); text-wrap: balance; }
.end__card h2 .accent { white-space: nowrap; background: linear-gradient(180deg, transparent 62%, var(--blue-weak) 62%); }
.end__text p { margin-top: 14px; font-size: 16px; color: var(--ink); }
@media (min-width: 640px) {
  .end__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
  .end__card h2 { font-size: 38px; }
}
@media (min-width: 1024px) {
  .end__card { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; padding-block: 48px; }
  .end__card h2 { font-size: 52px; line-height: 1.25; }
}

/* ── 푸터 ── */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 20px; padding-bottom: 24px; }
.foot__logo { width: auto; height: 20px; }
.foot__sub { font-size: 12px; color: var(--ink-mute); }

/* ── 폼 ── */
.signup__row { display: flex; flex-direction: column; gap: 8px; }
.signup__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px; /* iOS 확대 방지 */
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.signup__input::placeholder { color: var(--ink-mute); }
.signup__input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(37 99 235 / 0.15); }
.signup__input[aria-invalid="true"] { border-color: var(--red); }
.signup__button {
  position: relative;
  height: 48px;
  padding: 0 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--black);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgb(0 0 0 / 0.5);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.signup__button:hover { background: var(--ink); }
.signup__button:disabled { cursor: progress; }
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner--btn { display: none; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; }
.signup[data-state="sending"] .signup__label { visibility: hidden; }
.signup[data-state="sending"] .spinner--btn { display: block; }

.signup__error { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--red); }
.signup__consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-sub); cursor: pointer; }
.signup__consent input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--black); }
.signup__note { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--blue); }

.signup__done { display: none; align-items: center; gap: 10px; padding: 14px; font-weight: 700; color: var(--navy); background: var(--blue-soft); border-radius: 12px; }
.signup__done-icon { display: grid; place-items: center; flex: none; width: 26px; height: 26px; color: #fff; background: var(--blue); border-radius: 50%; font-size: 14px; }
.signup[data-state="done"] > :not(.signup__done) { display: none; }
.signup[data-state="done"] .signup__done { display: flex; animation: rise 0.35s ease-out; }


.signup__row { flex-direction: row; gap: 6px; }
.signup__input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; background: #fff; border-color: var(--line); border-radius: 999px; }
.signup__button { flex: none; height: 46px; font-size: 14px; }
.signup__consent { margin-top: 10px; padding: 0 6px; font-size: 13px; color: var(--ink-sub); }
.signup__note { display: none; }

/* ── 움직이는 목업 ──
   실제 제품 화면의 모양(상단 탭 · 흰 카드 · 파란 ID · 상태 배지 · 채팅 말풍선)을 따서 핵심만 다시 그린다.
   [data-at=N] 은 N단계부터 보이고, [data-at-off=N] 은 N단계부터 숨는다(main.js). */
.mock {
  overflow: hidden;
  background: var(--bg-sub); /* 제품 화면의 바탕 면 */
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}
.mock p, .feature .mock p { margin: 0; font-size: inherit; color: inherit; }

[data-scene] [data-at] { opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
[data-scene] [data-at].is-on { opacity: 1; transform: none; }
[data-scene] .is-off { display: none; }

/* 제품 상단 — 알약 탭 */
.app-top { display: flex; align-items: center; height: 44px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.app-title { font-size: 13px; font-weight: 700; }
.app-tabs { display: flex; gap: 2px; padding: 3px; background: var(--bg-sub); border-radius: 999px; white-space: nowrap; }
.app-tabs span { padding: 4px 10px; font-size: 11.5px; color: var(--ink-sub); border-radius: 999px; }
.app-tabs .is-cur { color: var(--blue); font-weight: 700; background: #fff; box-shadow: 0 1px 2px rgb(24 24 27 / 0.08); }
.app-body { display: grid; gap: 10px; padding: 12px; }

/* 채팅 입력칸 */
.ask { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 6px 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.ask__text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
[data-scene] .ask__text[data-at] { transform: none; }
.ask__placeholder { position: absolute; left: 14px; right: 70px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask__send { flex: none; padding: 6px 12px; font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 8px; }

/* 프로젝트 홈 「기획」 칸 */
.card { padding: 14px 16px 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; min-height: 252px; }
.card__head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1.5px solid var(--line); font-size: 15px; }
.card__icon { width: 18px; height: 18px; fill: none; stroke: var(--ink-sub); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card__count { margin-left: auto; font-size: 12px; color: var(--ink-mute); }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; align-items: center; padding: 10px 2px; font-size: 13.5px; border-bottom: 1px solid var(--bg-sub); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink-mute); }
.doc-list li::after { content: "›"; margin-left: 10px; font-size: 16px; line-height: 1; color: var(--ink-mute); }

/* ③-1 채팅 | 문서 */
.app-split { display: grid; grid-template-columns: minmax(0, 1fr); }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 12px; min-height: 92px; }
.bubble { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: 12.5px; }
.bubble--ai { align-self: flex-start; background: #fff; }
.bubble--me { align-self: flex-end; color: #fff; background: var(--blue); }
.doc { padding: 14px 16px 16px; background: #fff; border-top: 1px solid var(--line); min-height: 178px; }
.doc__h { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--blue); }
.doc__p { min-height: 3em; font-size: 12.5px; }
[data-scene] .doc__p[data-at] { transform: none; }
.tbl { margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tbl__row { display: grid; grid-template-columns: 1fr 1.4fr; padding: 7px 10px; border-top: 1px solid var(--line); font-size: 12px; }
.tbl__row--head { border-top: 0; background: var(--bg-subtle); font-weight: 600; color: var(--ink-sub); }

/* ③-2 바뀐 요구사항 → 영향받는 문서 → 제안 */
.req { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; font-weight: 600; background: var(--tint-mark); border: 1.5px solid var(--tint-mark-line); border-radius: 12px; }
.req__label { padding: 2px 8px; font-size: 11px; font-weight: 700; color: var(--tint-mark-fg); background: #fff; box-shadow: inset 0 0 0 1px var(--tint-mark-line); border-radius: 6px; }
.req__old { color: var(--red); }
.req__new { color: var(--green); }
[data-scene] .req [data-at] { display: inline-block; }
.impact { list-style: none; display: grid; gap: 6px; margin: 0 0 0 14px; padding: 0 0 0 12px; border-left: 2px dashed var(--line-border); }
.impact li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.impact__doc { flex: none; width: 58px; font-size: 11px; font-weight: 700; color: var(--ink-sub); }
.impact code { flex: none; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--blue); }
.impact__name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { flex: none; padding: 2px 8px; font-size: 10.5px; font-weight: 700; border-radius: 999px; }
.badge--wait { color: var(--ink-sub); background: var(--bg-sub); }
.badge--stale { color: var(--red); background: #fff; box-shadow: inset 0 0 0 1px var(--tint-negative-line); }
.review { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #fff; border: 1.5px solid rgb(37 99 235 / 0.45); border-radius: 12px; }
.review__title { font-weight: 700; color: var(--navy); }
.review__title b { color: var(--blue); }
.review__btn { padding: 5px 12px; font-size: 12px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 8px; }
.review__done { font-size: 12px; font-weight: 700; color: var(--green); }

/* ③-3 AI 연결 → 코딩 도구 */
.tool { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color 0.35s, box-shadow 0.35s; }
.tool:has(.tool__state.is-on) { border-color: rgb(37 99 235 / 0.6); box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1); }
.tool b { font-size: 13px; }
.tool__state { font-size: 11px; font-weight: 700; color: var(--green); }
.tool__cmd { grid-column: 1 / -1; padding: 9px 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: var(--blue-weak); background: var(--black); border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term { min-height: 120px; padding: 12px 14px; color: var(--line-border); background: var(--black); border-radius: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; line-height: 1.6; }
.term .term__status { display: flex; align-items: center; gap: 8px; color: var(--blue-weak); }
.term__ok { color: #86efac; } /* green/300 — 어두운 바탕 위 성공 표시(예외) */
.code { margin: 8px 0 0; white-space: pre-wrap; font: inherit; }
.code span { display: inline-block; }
.c-cmt { color: var(--ink-mute); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }



@media (max-width: 359px) {
  .signup__row { flex-direction: column; }
  .signup__button { width: 100%; }
  .hero__title { min-height: 6.5em; font-size: 32px; }
  .hero__desc { min-height: 0; }
  .pains__chat { min-height: 348px; }
}

/* ── 태블릿 이상 ── */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero__title { min-height: 3.9em; font-size: 46px; }
  .hero__desc { min-height: 0; }
  .pains__chat { width: fit-content; max-width: 100%; min-height: 314px; gap: 16px; }
  .pains__chat p { padding: 16px 24px; font-size: 20px; }
  .features__head h2 { font-size: 34px; }
}
@media (min-width: 900px) {
  .features__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── 데스크톱 ── */
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 32px; align-items: center; padding-top: 41px; }
  .hero__title { min-height: 3.66em; font-size: clamp(50px, 4.7vw, 60px); font-weight: 300; line-height: 1.22; }
  .hero__desc { min-height: 0; font-size: 19px; }
  .hero__form { margin-top: 22px; }
  .pains { padding-top: 180px; }
  .pains__chat { min-height: 0; gap: 18px; }
  .pains__chat::before, .pains__chat::after { font-size: 240px; }
  .pains__chat::before { top: -44px; left: -40px; }
  .pains__chat::after { right: -26px; bottom: -151px; }
  .pains__chat p { padding: 20px 30px; font-size: 22px; border-radius: 20px; }
  .features__head { grid-template-columns: minmax(0, 1fr) 240px; align-items: end; gap: 40px; }
  .features__head h2 { font-size: 42px; line-height: 1.2; }
  .features__head p { padding-bottom: 6px; }
  .features__grid { margin-top: 44px; gap: 16px; }
  .foot { margin-top: 72px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__title { min-height: 4.88em; }
}

/* ── 기능 구역 — 위가 둥근 흰 판이 올라오며 새 구역이 시작된다. 신청 칸·푸터까지 같은 판 위에 있다 ── */
.page { background: #fff; }
.features { max-width: none; margin-top: 72px; padding: 64px max(var(--gutter), calc((100% - var(--wrap)) / 2)) 96px; background: #fff; border-radius: 48px 48px 0 0; box-shadow: 0 -24px 48px -32px rgb(24 24 27 / 0.25); }
.end { margin-top: 0; padding-top: 0; background: #fff; }
.foot { margin-top: 0; background: #fff; }
@media (min-width: 1024px) {
  .features { margin-top: 140px; padding-top: 120px; padding-bottom: 276px; }
  .end { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media (min-width: 1024px) and (max-width: 1099px) { .pains__chat { min-height: 294px; } }
@media (min-width: 1024px) { .end__text p { margin-top: 18px; font-size: 18px; } }
@media (max-width: 389px) { .hero__desc { min-height: 116px; } }

/* ── 모바일 정리 — 예시 화면의 탭·표·코드 같은 잔글씨를 덜어 핵심 장면만 남긴다. 데스크톱은 그대로다 ── */
@media (max-width: 639px) {
  .pains { padding-top: 56px; }
  .pains__chat::before, .pains__chat::after { display: none; }
  .pains__chat { min-height: 0; }
  .features { margin-top: 108px; }
  .win__bar, .app-top { display: none; }
  .win .mock, .feature__panel .mock { min-height: 0; font-size: 15px; }
  .doc-list em { display: none; }
  .doc-list li::after { margin-left: auto; }
  /* 기능 목업 — 장면은 데스크톱과 같게 모두 보여 준다. 아직 안 나온 글자가 자리를 차지해 줄이 꺾이거나 높이가 튀지 않게 한다 */
  .feature__panel .doc { min-height: 0; }
  .feature__panel .tbl:not(:has(.is-on)) { border-color: transparent; }
  .feature__panel .term__ok:not(.is-on), .feature__panel .review__done:not(.is-on) { display: none; }
  .feature__panel .term { padding-block: 16px; font-size: 12px; }
  /* 첫 화면 — 안내·제목·설명 다음에 신청 칸, 그다음 예시 창 */
  .head { height: 56px; }
  .head__logo { height: 22px; }
  .hero { gap: 0; padding-top: 13px; }
  .hero__text { display: contents; }
  .hero__notice { order: 1; gap: 6px; margin-bottom: 4px; padding: 3px 11px 3px 4px; font-size: 12px; box-shadow: 0 6px 14px -8px rgb(37 99 235 / 0.6); }
  .hero__notice::after { bottom: -5px; left: 14px; width: 12px; height: 7px; } /* 꼬리 윗변이 흰 태그를 덮지 않게 말풍선 안쪽으로 2px 만 들어간다 */
  .hero__tag { gap: 4px; padding: 2px 8px 2px 6px; font-size: 11px; }
  .hero__tag svg { width: 11px; height: 11px; }
  .hero__title { order: 2; min-height: 0; margin-top: 14px; font-size: 28px; line-height: 1.28; }
  .hero__visual { order: 5; margin-top: 28px; min-width: 0; }
  .win { box-shadow: 0 0 0 1px var(--line), 0 10px 18px -14px rgb(24 24 27 / 0.35); }
  .hero__desc { order: 3; min-height: 0; margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: var(--ink-sub); }
  .hero__form { order: 4; margin-top: 24px; }
}
/* 첫 화면 제목 — A/B 줄 수가 달라도 아래 위치가 같도록 높이를 잡아 둔다(모바일) */
@media (max-width: 519px) { .hero__title { min-height: 107px; } }
@media (max-width: 339px) { .hero__title { min-height: 143px; } .hero__desc { min-height: 0; } }
/* 첫 화면 설명 — A/B 줄 수가 달라도(폭 430 전후) 아래 위치가 같도록 3줄 높이를 잡아 둔다(모바일) */
@media (max-width: 459px) { .hero__desc { min-height: 65px; } }

/* 신청 칸(첫 화면·하단) — 입력칸과 버튼을 검은 선 알약 하나로 묶는다(모든 폭). 입력 중·오류 상태는 알약 선 색으로 보여 준다 */
.hero__form .signup__row, .end__form .signup__row { flex-direction: row; gap: 4px; padding: 4px; background: #fff; border-radius: 999px; box-shadow: 0 0 0 1.5px var(--black), 0 12px 24px -16px rgb(24 24 27 / 0.5); }
.hero__form .signup__row:focus-within, .end__form .signup__row:focus-within { box-shadow: 0 0 0 2px var(--blue), 0 0 0 5px rgb(37 99 235 / 0.15); }
.hero__form .signup__row:has([aria-invalid="true"]), .end__form .signup__row:has([aria-invalid="true"]) { box-shadow: 0 0 0 2px var(--red); }
.hero__form .signup__input, .hero__form .signup__input:focus, .hero__form .signup__input[aria-invalid="true"], .end__form .signup__input, .end__form .signup__input:focus, .end__form .signup__input[aria-invalid="true"] { flex: 1; min-width: 0; height: 44px; padding: 0 14px; background: transparent; border-color: transparent; box-shadow: none; }
.hero__form .signup__button, .end__form .signup__button { flex: none; width: auto; height: 44px; padding-inline: 16px; }
.hero__form .signup__consent, .end__form .signup__consent { margin-top: 14px; padding: 0 4px; color: var(--ink); }
.signup__consent strong { font-weight: 500; }
.signup__rest { display: block; }
/* 모바일 — 수집 안내를 연하게 보여 준다. 첫 화면 신청 칸만 접어 두고 꺾쇠로 편다(하단 칸·태블릿 이상은 항상 펼쳐 둔다) */
@media (max-width: 639px) {
  .hero__form .signup__consent, .end__form .signup__consent { font-size: 11.5px; line-height: 1.5; color: var(--ink-mute); }
  .signup__consent strong { font-size: 13px; color: var(--ink); }
  .signup__rest { margin-top: 4px; }
}

/* 하단 신청 칸 — 제목·부제·입력칸을 가운데로 모으고, 푸터와 넉넉히 띄운다 */
.end__card { justify-items: center; gap: 24px; padding-block: 16px; text-align: center; }
.end__form { width: 100%; max-width: 520px; text-align: left; }
.foot { margin-top: 84px; }
@media (min-width: 640px) {
  .end__card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .foot { margin-top: 88px; }
}
@media (min-width: 1024px) {
  .end__card { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 24px; }
  .end__text p { margin-top: 12px; }
  .foot { margin-top: 256px; }
}

/* 윗 구역에서 신청 칸으로 이어 주는 점 무늬 — 신청 칸 뒤에서 옅게 번지고, 글자 뒤는 흰색으로 비운다 */
.end { position: relative; z-index: 1; background: none; --gap-top: 96px; }
.end::before { content: ""; position: absolute; z-index: -1; top: calc(-1 * var(--gap-top)); bottom: -40px; left: calc(50% - 50vw); width: 100vw; background-image: radial-gradient(var(--blue-weak) 1.6px, transparent 1.6px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(ellipse 48% 62% at 50% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 48% 62% at 50% 50%, #000 30%, transparent 100%); pointer-events: none; }
.end__card { background: radial-gradient(ellipse at center, #fff 45%, transparent 75%); }
@media (min-width: 1024px) { .end { --gap-top: 276px; } }
/* 모바일 — 하단 신청 칸 위 간격. 점 무늬도 같은 높이만큼 위로 번진다 */
@media (max-width: 639px) {
  .features { padding-bottom: 124px; }
  .end { --gap-top: 124px; }
}

/* 푸터 위 구분선 — 화면 끝까지 */
.foot { position: relative; }
.foot::before { content: ""; position: absolute; top: 0; left: calc(50% - 50vw); width: 100vw; height: 1px; background: var(--line); }

/* 데스크톱 — 첫 화면·말풍선·하단 신청 칸이 화면 하나씩 차지하고 내용은 세로 가운데. 기능 3개는 화면보다 길어 이어서 스크롤한다 */
@media (min-width: 1024px) {
  .hero { min-height: calc(100svh - 72px); padding-top: 0; padding-bottom: 24px; align-content: center; }
  .pains { display: grid; align-content: center; min-height: 100svh; padding-top: 0; }
  .features { margin-top: 0; padding-bottom: 120px; }
  .end { display: grid; align-content: center; min-height: calc(100svh - var(--foot-h)); --gap-top: 0px; --foot-h: 64px; } /* 신청 칸 + 푸터 = 화면 하나 */
  .end::before { top: 0; bottom: 0; }
  .foot { margin-top: 0; }
}

/* 데스크톱 말풍선 구역 — 말풍선을 키우고 뒤에 점 무늬를 깐다. 점 무늬는 화면 끝까지, 아래 흰 판의 둥근 모서리 뒤까지 이어진다 */
@media (min-width: 1024px) {
  .pains { position: relative; isolation: isolate; }
  .pains::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: -48px; left: calc(50% - 50vw); width: 100vw; background: radial-gradient(#bfdbfe 1.6px, transparent 1.6px) 0 0 / 20px 20px; -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 30%, transparent 100%); pointer-events: none; }
  .features { position: relative; z-index: 1; }
  .pains__chat { gap: 22px; }
  .pains__chat p { padding: 24px 38px; font-size: clamp(20px, 1.75vw, 26px); line-height: 1.45; border-radius: 24px; text-wrap: pretty; }
  .pains__chat p::before { bottom: -12px; left: 26px; width: 18px; height: 12px; }
  .pains__chat p::after { bottom: -10px; left: 27px; width: 22px; height: 16px; }
  .pains__chat li:nth-child(2) p::after { right: 26px; left: auto; }
  .pains__chat::before, .pains__chat::after { font-size: 290px; }
  .pains__chat::before { top: -58px; left: -50px; }
  .pains__chat::after { right: -34px; bottom: -212px; }
}

/* 첫 화면에서 말풍선 구역으로 이어지게 — 경계 위부터 점 무늬가 서서히 번진다 */
@media (min-width: 1024px) {
  .hero { position: relative; z-index: 1; } /* 번지는 무늬가 첫 화면 글자·입력칸을 덮지 않게 */
  .pains::before { top: -160px; }
}

/* 모바일·태블릿 말풍선 구역 — 데스크톱과 같은 점 무늬. 위는 예시 창 아래부터, 아래는 흰 판의 둥근 모서리 뒤까지 번진다 */
@media (max-width: 1023px) {
  .hero { position: relative; z-index: 1; }
  .pains { position: relative; isolation: isolate; }
  .pains::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: -156px; left: calc(50% - 50vw); width: 100vw; background: radial-gradient(#bfdbfe 1.6px, transparent 1.6px) 0 0 / 20px 20px; -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 30%, transparent 100%); pointer-events: none; }
  .features { position: relative; z-index: 1; }
}
@media (min-width: 640px) and (max-width: 1023px) { .pains::before { bottom: -120px; } }

/* 첫 화면이 한 줄로 쌓이는 폭(1023px 이하) — 설명·신청 칸·예시 창을 화면 폭에 맞춘다 */
@media (max-width: 1023px) {
  .hero__desc, .hero__form { max-width: none; }
  .win { width: 100%; }
}
