/*
 * 랜딩 페이지(layouts/landing) 전용 스타일. 확정 시안 docs/design/taste-landing/index.html의 <style>을 옮겼다.
 * 랜딩 레이아웃만 이 파일을 불러오고, 앱 화면(Tailwind)은 불러오지 않는다(layouts/_head의 stylesheets).
 * 색은 앱과 같은 원본 토큰(app/assets/stylesheets/tokens.css의 --color-*)을 쓴다. layouts/landing이 tokens.css를 이 파일보다 먼저 불러온다.
 * 랜딩은 밝은 테마로 고정하고, 첫 화면과 마지막 구역은 어두운 테마 값(--color-dark-*)을 쓴다.
 * js 클래스는 시안처럼 <html>에 붙는다(layouts/landing의 <head> 인라인 스크립트). JS가 없으면 숨기는 규칙이 적용되지 않아 모든 내용이 보인다.
 * 시안과 달라진 점은 파일 끝 "앱 연결" 구역과 .js 아래로 옮긴 숨김 규칙(기능 설명, 자주 묻는 질문 답, 초안)이다.
 */
:root {
  /* 랜딩에만 있는 역할 이름. 값은 tokens.css의 어두운 테마 값이다. */
  --night: var(--color-dark-canvas);          /* 첫 화면 바탕 */
  --night-ink: var(--color-dark-ink);         /* 첫 화면 글자 */
  --night-muted: var(--color-dark-ink-muted); /* 첫 화면 보조 글자 */
  --stage: var(--color-dark-accent);          /* 화면 조각 무대, 마지막 구역 바탕, 첫 화면 버튼 */
  --stage-ink: var(--color-dark-on-accent);   /* stage 위 글자 */
  /* 랜딩 전용 값. 앱 토큰(tokens.css)에는 없다.
     - desk: DESIGN.md colors의 desk(#DDE4E0). 시안 틀 바탕이라 앱 화면에는 없고 랜딩의 기능 목록 입력칸·항목 hover 바탕에만 쓴다.
     - call: 사용 순서의 교사 입력 상자 바탕과 시작 구역의 두세 칸 선택 바탕. 시안 값 그대로이고 DESIGN.md의 밝은 값에는 없다
       (같은 값은 dark-ink뿐이라 그 토큰을 빌려 쓰지 않는다).
     - mark: 메모 화면 조각에서 가린 이름 표시의 바탕. 시안 값 그대로이고 DESIGN.md에는 없다. */
  --desk: #DDE4E0;
  --call: #E2E8E4;
  --mark: #CFE3D9;

  --font: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --font-doc: "Gowun Batang", "AppleMyungjo", "Noto Serif KR", serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.875rem, 1.2rem + 2.4vw, 3.25rem);
  --step-display: clamp(2.125rem, 0.9rem + 4.6vw, 4.5rem);

  --margin: 40px;
  --gap: 24px;
  --radius: 0px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --t-hover: 180ms;
}
@media (max-width: 760px) { :root { --margin: 20px; --gap: 16px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-canvas); color: var(--color-ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
::selection { background: var(--stage); color: var(--stage-ink); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
h2 { font-size: var(--step-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius); background: var(--color-accent); color: var(--color-on-accent); font: 500 var(--step-body)/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color var(--t-hover), transform 120ms var(--ease-out); }
.button:hover { background: var(--color-accent-hover); }
.button:active { transform: translateY(1px) scale(0.98); }
.link { font-weight: 500; transition: color var(--t-hover); }
.link:hover { color: var(--color-accent); }

/* ---------- 첫 화면 ---------- */
.hero { background: var(--night); color: var(--night-ink); overflow: hidden; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; font-size: var(--step-small); }
.wordmark { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; color: var(--night-ink); }
.nav ul { display: flex; gap: 28px; align-items: center; }
/* 상단·끝줄 링크와 "비밀번호를 잊으셨나요?"는 누름 영역을 44px로 넓힌다. 위아래 음수 여백((1lh - 44px) / 2)으로
   차지하는 줄 높이는 글자 한 줄 그대로 두어 배치가 바뀌지 않는다. */
.nav a,
.foot a,
.dialog .forgot a { display: inline-flex; align-items: center; min-height: 44px; margin-block: calc((1lh - 44px) / 2); }
.nav a { color: var(--night-ink); text-decoration: none; transition: color var(--t-hover); }
/* 상단 메뉴 링크는 좌우 안쪽 여백 10px과 최소 폭 44px로 누름 폭을 넓힌다("검토", "기능"은 글자 폭이 25px이다).
   글자 사이 간격은 목록 간격 8px + 양쪽 여백 20px = 28px로 이전과 같고, 목록의 오른쪽 음수 여백이 마지막 링크의 여백을 상쇄한다. */
.nav ul { gap: 8px; margin-right: -10px; }
.nav ul a { justify-content: center; min-width: 44px; padding-inline: 10px; }
.nav a:hover { color: var(--stage); }
.nav .nav-login { text-decoration: underline; text-underline-offset: 0.25em; }
.hero-body { align-items: start; }
.hero-copy { grid-column: 1 / span 6; padding: 120px 0 120px; }
.hero h1 { font-size: var(--step-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; }
.hero-lead { margin-top: 36px; max-width: 30em; font-size: var(--step-body); color: var(--night-ink); }
.hero .button { margin-top: 32px; background: var(--stage); color: var(--stage-ink); }
.hero .button:hover { background: var(--color-dark-accent-hover); }
.legend { margin-top: 88px; }
.legend h2 { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; }
.legend dl { margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 40px; }
.legend dt { font-size: var(--step-small); color: var(--night-muted); }
.legend dd { margin: 4px 0 0; font-size: var(--step-body); font-weight: 500; }
.legend .tok { display: inline-block; padding: 0 6px; background: var(--color-dark-accent-soft); color: var(--color-dark-accent-ink); font-weight: 500; }
.stage { grid-column: 7 / -1; margin: 96px calc(var(--margin) * -1 - 200px) 0 0; padding: 96px 0 72px 48px; background: var(--stage); clip-path: polygon(0 48px, 160px 48px, 192px 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- 화면 조각(앱의 규칙을 따른다) ---------- */
[data-ui] { font-family: var(--font); color: var(--color-ink); font-size: 0.9375rem; line-height: 1.6; }
.panel { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: 14px; } /* taste-skill-ignore: data-ui */
.ui-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--color-line-strong); /* taste-skill-ignore: data-ui */ border-radius: 12px; background: var(--color-field); color: var(--color-ink); font: 500 0.875rem/1 var(--font); cursor: pointer; transition: background-color var(--t-hover), transform 120ms var(--ease-out); }
.ui-btn:hover { background: var(--color-accent-soft); }
.ui-btn:active { transform: scale(0.97); }
.ui-btn.primary { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-on-accent); }
.ui-btn.primary:hover { background: var(--color-accent-hover); }
.ui-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ui-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; }
.ui-field { width: 100%; padding: 10px 12px; border: 1px solid var(--color-line-strong); /* taste-skill-ignore: form field */ border-radius: 10px; background: var(--color-field); color: var(--color-ink); font: 400 0.9375rem/1.6 var(--font); }
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; background: var(--color-accent-soft); color: var(--color-accent); white-space: nowrap; }
.badge.draft { background: var(--color-neutral-soft); color: var(--color-ink-muted); }
.badge.warn { background: var(--color-warn-soft); color: var(--color-warn-ink); }
.badge.fail { background: var(--color-danger-soft); color: var(--color-danger-ink); }
.ui-muted { color: var(--color-ink-muted); font-size: 0.9375rem; }
.doc-text { font-family: var(--font-doc); font-size: 1rem; line-height: 1.85; }

.memo-app { width: 600px; max-width: 100%; }
.memo-app .bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--color-line); font-size: 0.9375rem; } /* taste-skill-ignore: data-ui */
.memo-app .bar b { font-size: 1rem; }
.memo-app .body { padding: 18px; }
.memo-app textarea { min-height: 128px; resize: vertical; }
.sent { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--color-neutral-soft); }
.sent p { font-size: 0.9375rem; line-height: 1.7; }
.sent mark { background: var(--mark); color: var(--color-accent); padding: 0 3px; border-radius: 4px; font-weight: 600; }
.memo-actions { display: flex; gap: 8px; margin-top: 16px; }
.draft-box { margin-top: 16px; padding: 16px; border: 1px solid var(--color-line); border-radius: 10px; background: var(--color-field); } /* taste-skill-ignore: data-ui */
.draft-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.9375rem; }
.draft-box .ui-btn { margin-top: 10px; }

/* ---------- 소개 ---------- */
.intro { padding: 200px 0 0; }
.intro .text { grid-column: 4 / span 6; }
.intro .text p { margin-top: 22px; }
.intro .text p:first-of-type { font-weight: 500; margin-top: 36px; }

/* ---------- 사용 순서 ---------- */
.how { padding: 200px 0 0; }
.how-col { grid-column: 4 / span 6; }
.how h2 { margin-bottom: 64px; }
.exchange + .exchange { margin-top: 96px; }
.exchange > p { font-size: var(--step-lead); font-weight: 500; line-height: 1.4; }
.call { margin-top: 18px; padding: 20px; background: var(--call); }
/* call 바탕 위에서 line-strong 테두리는 2.89:1로 입력칸 경계 기준(3:1)에 못 미친다. ink-muted로 4.94:1을 맞춘다. */
.call .ui-field { min-height: 0; border-color: var(--color-ink-muted); }
.response { margin: 18px 0 0 56px; }
.exchange.last .response { margin-right: calc(-100% / 6 * 3 - var(--gap) * 1.5); }
.today .progress { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-bottom: 1px solid var(--color-line); } /* taste-skill-ignore: data-ui */
.today .progress div { padding: 10px 4px; font-size: 0.875rem; color: var(--color-ink-muted); }
.today .progress div + div { border-left: 1px solid var(--color-line); } /* taste-skill-ignore: data-ui */
.today .progress b { display: block; font-size: 1.125rem; color: var(--color-ink); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; }
.tile { padding: 10px 12px; border: 1px solid var(--color-line); border-radius: 10px; background: var(--color-field); font-size: 0.9375rem; } /* taste-skill-ignore: data-ui */
.tile b { display: block; font-size: 0.9375rem; }
.tile.on { border-color: var(--color-accent); background: var(--color-accent-soft); }
.tile.none { border-style: dashed; color: var(--color-ink-muted); }
.activity { display: flex; gap: 12px; align-items: center; padding: 14px 16px; font-size: 0.9375rem; }
.activity + .activity { border-top: 1px solid var(--color-line); } /* taste-skill-ignore: data-ui */
.activity .ui-muted { margin-left: auto; }
.status-head { padding: 14px 18px; border-bottom: 1px solid var(--color-line); display: flex; /* taste-skill-ignore: data-ui */ justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.status-head b { font-size: 1rem; }
.status-row { display: grid; grid-template-columns: 7em auto 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; font-size: 0.9375rem; }
.status-row + .status-row { border-top: 1px solid var(--color-line); } /* taste-skill-ignore: data-ui */
.status-row .acts { display: flex; gap: 6px; justify-content: flex-end; }
.status-row .ui-field { min-height: 44px; padding: 6px 10px; font-size: 0.875rem; } /* 누름 크기 44px. 같은 줄의 버튼(.ui-btn)과 높이가 같다. */

/* ---------- 검토 ---------- */
.review { padding: 200px 0 0; }
.review h2 { grid-column: 4 / -1; margin-bottom: 72px; }
.state { display: contents; }
.state-word { grid-column: 1 / span 3; text-align: right; font-size: var(--step-lead); color: var(--color-ink-muted); padding-top: 18px; }
.state-copy { grid-column: 4 / span 6; }
.state-note { grid-column: 10 / -1; padding-top: 18px; }
.state-note p + p { margin-top: 14px; }
.state + .state .state-word, .state + .state .state-copy, .state + .state .state-note { margin-top: 56px; }
.doc-row { padding: 16px 18px; }
.doc-row .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.doc-row .top b { font-size: 1rem; }
.doc-row .top .ui-muted { margin-left: auto; }
.doc-row .why { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--color-warn-soft); color: var(--color-warn-ink); font-size: 0.9375rem; }
/* 확인 항목 줄은 누름 크기 44px이다. 줄 사이 간격은 줄 높이 안에 두므로 gap은 0이다. */
.doc-row .checks { margin-top: 12px; display: grid; gap: 0; }
.doc-row .checks label { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 0.9375rem; cursor: pointer; }
.doc-row .checks input { width: 20px; height: 20px; accent-color: var(--color-accent); }
.doc-row .row-acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.doc-row .doc-text { margin-top: 10px; }
.doc-row.done { border-color: var(--color-accent); }

/* ---------- 기능 목록 ---------- */
.features { padding: 200px 0 0; }
.features h2 { margin-bottom: 32px; }
.finder input { width: 100%; height: 1.9em; min-height: 44px; padding: 0 0.5em; border: 0; border-radius: 0; background: var(--desk); color: var(--color-ink); font: 400 var(--step-lead) var(--font); }
.finder input::placeholder { color: var(--color-ink-muted); }
.cmds { margin-top: 20px; }
.cmd { display: block; width: 100%; padding: 6px 0.4em; border: 0; background: transparent; color: var(--color-ink); text-align: left; font: 600 var(--step-head)/1.15 var(--font); letter-spacing: -0.02em; cursor: pointer; transition: background-color var(--t-hover), color var(--t-hover); }
.cmd:hover { background: var(--desk); }
.cmd-item.on .cmd { background: var(--color-accent); color: var(--color-on-accent); }
.cmd-detail { padding: 4px 0.65em 18px; background: var(--color-accent); color: var(--color-on-accent); }
/* 펼침은 JS가 있을 때만 쓴다. JS가 없으면 모든 설명이 보인다. */
.js .cmd-detail { display: none; }
.js .cmd-item.on .cmd-detail { display: block; }
.cmd-detail p { max-width: 46em; font-size: var(--step-body); }
.cmd-detail .proof { margin-top: 14px; max-width: 640px; padding: 14px 16px; color: var(--color-ink); }
.cmd-detail .proof p { color: var(--color-ink); font-size: 1rem; }
.cmd-detail .proof p.src { color: var(--color-ink-muted); font-size: 0.9375rem; }
.cmd-detail .proof .ui-label { margin: 0 0 4px; }
.cmd-detail .proof .src { font-size: 0.875rem; color: var(--color-ink-muted); margin: 2px 0 10px; }
.cmds-empty { padding: 12px 0.4em; color: var(--color-ink-muted); }

/* ---------- 자주 묻는 질문 ---------- */
.faq { padding: 200px 0 0; }
.faq h2 { grid-column: 1 / -1; margin-bottom: 40px; }
.q-list { grid-column: 1 / span 5; }
.q { display: flex; gap: 14px; align-items: baseline; width: 100%; padding: 9px 0; border: 0; background: none; color: var(--color-ink); text-align: left; font: 400 var(--step-body)/1.5 var(--font); cursor: pointer; transition: color var(--t-hover); }
.q::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--color-line-strong); transform: translateY(-2px); transition: background-color var(--t-hover); }
.q:hover { color: var(--color-accent); }
.q[aria-expanded="true"] { font-weight: 600; }
.q[aria-expanded="true"]::before { background: var(--color-accent); }
/* JS가 있으면 넓은 화면은 오른쪽 칸(a-pane)에 답을 보이고, 좁은 화면은 고른 질문 뒤의 답만 보인다.
   JS가 없으면 오른쪽 칸을 숨기고 모든 질문 뒤에 답을 보인다. */
.js .a-inline { display: none; }
html:not(.js) .a-pane { display: none; }
html:not(.js) .a-inline { padding: 0 0 14px 22px; }
.a-pane { grid-column: 7 / -1; position: sticky; top: 120px; align-self: start; min-height: 12em; }
.a-pane p { font-size: var(--step-lead); line-height: 1.4; max-width: 24em; transition: opacity 150ms; }

/* ---------- 시작 ---------- */
.start { margin-top: 160px; background: var(--stage); color: var(--stage-ink); }
.start .grid { min-height: 90svh; padding-top: 80px; padding-bottom: 80px; align-items: end; }
.start .closing { grid-column: 1 / span 6; }
.start h2 { font-size: var(--step-display); line-height: 1.05; letter-spacing: -0.03em; }
.start .closing p { margin-top: 24px; max-width: 30em; }
.start .dialog { grid-column: 8 / span 5; align-self: center; width: 100%; max-width: 460px; padding: 26px; background: var(--color-surface); border-radius: 14px; box-shadow: 0 18px 40px rgba(16, 32, 26, .22); } /* taste-skill-ignore: dialog */
/* 그림자 색은 dark-on-accent(#10201A)의 22%다. 투명도가 있는 색 토큰이 없어 DESIGN.md Elevation의 "랜딩 대화상자" 값을 그대로 적는다. */
.dialog h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 18px; }
/* 카카오 버튼 글자 rgba(0, 0, 0, .85)는 시안 값이다. 앱의 kakao-ink(#191600)와 다르고 DESIGN.md "시안과 앱 값의 차이"에 적혀 있다. */
.kakao { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; border-radius: 12px; background: var(--color-kakao); color: rgba(0, 0, 0, .85); font-weight: 500; text-decoration: none; transition: transform 120ms var(--ease-out), filter var(--t-hover); }
.kakao:hover { filter: brightness(.97); }
.kakao:active { transform: scale(.98); }
.or { margin: 18px 0; text-align: center; font-size: 0.875rem; color: var(--color-ink-muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--call); margin-bottom: 16px; }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 9px; font-size: 0.9375rem; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--color-surface); font-weight: 600; } /* 선택된 칸은 바탕색 차이로 구분한다 */
.seg label:has(input:focus-visible) { outline: 3px solid var(--color-accent); }
.dialog .ui-btn.primary { width: 100%; min-height: 52px; margin-top: 16px; font-size: 1rem; }

/* ---------- 끝줄 ---------- */
.foot { padding: 30svh 0 30px; }
.foot .row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: baseline; font-size: var(--step-small); color: var(--color-ink-muted); }
.foot ul { display: flex; gap: 24px; }
.foot a { color: var(--color-ink); }
.foot .right { text-align: right; }
.fictional { margin-top: 18px; font-size: 0.9375rem; color: var(--color-ink); max-width: 60ch; }

/* ---------- 움직임 ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* 메모 화면 조각의 초안은 JS가 있으면 "알림장 초안 만들기"를 누르기 전까지 숨긴다(draft-preview 컨트롤러가 data-new를 붙인다).
   <html>의 js 클래스는 layouts/landing의 <head>에서 첫 그리기 전에 붙으므로 초안이 보였다가 사라지지 않는다. */
.js .draft-box:not([data-new]) { display: none; }
.draft-box[data-new] { animation: rise 420ms var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
/* 동작 줄이기 설정이면 앱(app/assets/tailwind/application.css)과 같이 모든 전환을 끄고 누를 때 줄어드는 효과도 끈다.
   색·밝기·선택 표시는 그대로 바뀌고 전환 없이 바로 바뀐다. */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition: none !important; }
  .button:active, .ui-btn:active, .kakao:active { transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .draft-box[data-new] { animation: none; }
}

/* ---------- 휴대폰 ---------- */
@media (max-width: 1100px) {
  .hero-copy { grid-column: 1 / -1; padding-bottom: 0; }
  .legend { margin-top: 64px; }
  .stage { grid-column: 1 / -1; margin: 56px calc(var(--margin) * -1) 0 calc(var(--margin) * -1); padding-left: var(--margin); }
  .intro .text, .how-col { grid-column: 2 / span 10; }
  .exchange.last .response { margin-right: calc(-100% / 10); }
}
@media (max-width: 760px) {
  /* 이 폭에서는 모든 격자 항목이 한 줄을 다 쓴다. 열 간격 11개(176px)가 200% 확대(195px)에서 가로 넘침을 만들지 않게 없앤다. */
  .grid { column-gap: 0; }
  .nav ul li:not(:last-child) { display: none; }
  .hero-copy { padding-top: 64px; }
  /* 휴대폰 폭의 제목은 rem이 섞인 clamp()로 정해 브라우저 글자 크기 설정을 따른다. 기본 글자 크기(16px)·390px 폭에서는
     이전 값(8.4vw, 11vw)과 거의 같다. h1의 최솟값 2rem은 h2의 최솟값(--step-head와 .start h2의 1.875rem)보다 커서
     글자를 키워도 h1이 h2보다 작아지지 않는다. */
  .hero h1 { font-size: clamp(2rem, 1.2rem + 3.5vw, 3rem); }
  .hero-lead { margin-top: 28px; font-size: 1rem; }
  .hero .button { width: 100%; }
  .legend dl { grid-template-columns: 1fr; gap: 14px; }
  .legend dl div { display: flex; justify-content: space-between; align-items: baseline; }
  .stage { margin: 48px calc(var(--margin) * -1) 0; padding: 72px 16px 40px; clip-path: polygon(0 40px, 72px 40px, 96px 0, 100% 0, 100% 100%, 0 100%); }
  .memo-app { width: 100%; }
  .intro, .how, .review, .features, .faq { padding-top: 120px; }
  .intro .text { grid-column: 1 / -1; width: 100%; }
  .how-col { grid-column: 1 / -1; }
  .response { margin-left: 0; }
  .exchange.last .response { margin-right: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .activity { flex-wrap: wrap; }
  .status-row { grid-template-columns: 1fr auto; }
  .status-row .msg, .status-row .acts { grid-column: 1 / -1; }
  .status-row .acts { justify-content: flex-start; flex-wrap: wrap; }
  .review h2 { grid-column: 1 / -1; margin-bottom: 40px; }
  .state-word, .state-copy, .state-note { grid-column: 1 / -1; text-align: left; }
  .state-word { order: 2; padding-top: 10px; font-size: 1.0625rem; }
  .state { display: flex; flex-direction: column; grid-column: 1 / -1; }
  .state + .state { margin-top: 48px; }
  .state + .state .state-word, .state + .state .state-copy, .state + .state .state-note { margin-top: 0; }
  .state-copy { order: 1; }
  .state-note { order: 3; padding-top: 14px; }
  .q-list { grid-column: 1 / -1; }
  .a-pane { display: none; }
  .a-inline { padding: 0 0 14px 22px; font-size: 1.0625rem; }
  .js .q[aria-expanded="true"] + .a-inline { display: block; }
  .start .grid { padding-top: 72px; padding-bottom: 40px; align-items: start; min-height: 84svh; row-gap: 40px; }
  .start .closing, .start .dialog { grid-column: 1 / -1; max-width: none; }
  .start h2 { font-size: clamp(1.875rem, 1.2rem + 6vw, 3.5rem); }
  .foot { padding: 20svh 0 24px; }
  .foot .row { grid-template-columns: 1fr; gap: 8px; }
  .foot ul { flex-wrap: wrap; gap: 8px 20px; }
  .foot .right { text-align: left; }
}

/* ---------- 앱 연결 ----------
   시안의 대화상자는 form 하나였다. 앱에서는 카카오 버튼(button_to의 form), 로그인 폼, 가입 링크를 나눠 두므로 그에 맞춘 규칙이다. */
.kakao { border: 0; font-family: inherit; font-size: inherit; line-height: inherit; cursor: pointer; }
.dialog .ui-field + .ui-label { margin-top: 14px; }
.dialog .ui-btn.primary { text-decoration: none; }
.dialog .signup .ui-btn.primary { margin-top: 0; }
.dialog .forgot { margin-top: 14px; font-size: 0.9375rem; text-align: center; }
.dialog .forgot a { color: var(--color-ink-muted); }
.dialog .forgot a:hover { color: var(--color-accent); }
.copy-message:empty { display: none; }
.copy-message { margin-top: 8px; font-size: 0.875rem; color: var(--color-danger-ink); }
.copy-fallback { margin-top: 8px; }
