/*
 * 랜딩 페이지(layouts/landing) 전용 스타일. 구역 순서는 2026-11-02 승인된 와이어프레임 docs/design/landing-wireframe/index.html에서 시작했고,
 * 2026-11-18 개편에서 색·글꼴·모서리를 앱의 "파스텔 타일과 스티커 버튼"(DESIGN.md)에 맞췄다.
 * 랜딩 레이아웃만 이 파일을 불러오고, 앱 화면(Tailwind)은 불러오지 않는다(layouts/_head의 stylesheets).
 * 색은 앱과 같은 원본 토큰(app/assets/stylesheets/tokens.css의 --color-*)의 밝은 값만 쓴다. layouts/landing이 tokens.css를 이 파일보다 먼저 불러온다.
 * - 바탕 canvas, 카드 surface(1px line 테두리, 20px 모서리), 강조색 accent 하나.
 * - 첫 화면 예시 무대는 accent-soft(앱 오늘 날짜 카드와 같은 색), 시작 구역 띠도 accent-soft다.
 * - highlight는 지금 단계(어떻게 만드나 셋째 단계)와 선택된 칸(.seg)에만 쓴다.
 * - 큰 버튼(.button, 시작 상자의 주 버튼, 카카오)은 스티커 모양(2px sticker-line 선, 3px 3px 0 비킨 그림자, 누를 때 2px 이동)이다.
 * - 원아 색(kid-*)은 첫 화면 예시의 원아 칸에만 쓴다.
 * 글꼴: h1·h2는 Jua 400, 본문·버튼은 IBM Plex Sans KR, AI 초안 예시 글(.doc-text)만 Gowun Batang이다. 글꼴은 layouts/_head의 Google Fonts 링크가 불러온다.
 * 움직임은 첫 화면 예시의 화살표와 초안이 한 번 나타나는 것뿐이다(동작 줄이기 설정이면 움직이지 않는다).
 * js 클래스는 <html>에 붙는다(layouts/landing의 <head> 인라인 스크립트). 자주 묻는 질문의 답 숨김만 이 클래스를 쓴다.
 * 구역 순서: 첫 화면(.hero) → 왜 필요한가(.problem) → 어떻게 만드나(.concept) → 주요 기능(.features) → 새로 생긴 기능(.new-features)
 * → 업무 순서(.flow) → 검토와 개인정보(.trust) → 자주 묻는 질문(.faq) → 홈 화면에 추가하기(.install) → 시작(.start) → 바닥글(.foot).
 */
:root {
  --font: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --font-display: "Jua", "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-title: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem);
  --step-head: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  --step-display: clamp(2.25rem, 1.2rem + 3vw, 3.75rem);

  /* 모서리: 앱과 같다(카드 20px, 버튼 14px, 입력칸·원아 칸 10px). */
  --radius-card: 1.25rem;
  --radius-button: 0.875rem;
  --radius-field: 0.625rem;

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

* { 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, dl, dd, figure { 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(--color-accent-soft); color: var(--color-ink); }
[id] { scroll-margin-top: 24px; }

.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); }
/* 제목(h1·h2)은 Jua 400 한 굵기다. 굵기를 주면 브라우저가 가짜 굵게를 그리므로 400으로 둔다. */
h1, h2 { font-family: var(--font-display); font-weight: 400; }
h2 { grid-column: 1 / span 9; font-size: var(--step-head); line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: var(--step-title); font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
main > section { padding-top: var(--section); }

/* 캐릭터 그림(CharacterComponent). 크기는 <img>의 height·width 속성이 정한다. 앱(application.css)의 같은 규칙과 같다.
   .character-sticker는 그림 둘레에 흰 2px 테두리를 그린다(drop-shadow를 오른쪽·왼쪽·아래·위로 한 번씩). */
.character { display: inline-flex; flex: none; }
.character img { display: block; }
.character-sticker img {
  filter:
    drop-shadow(2px 0 0 var(--color-sticker-edge))
    drop-shadow(-2px 0 0 var(--color-sticker-edge))
    drop-shadow(0 2px 0 var(--color-sticker-edge))
    drop-shadow(0 -2px 0 var(--color-sticker-edge));
}

/* 큰 버튼(첫 화면 "시작하기"·"업무 순서 보기"). 앱의 스티커 버튼과 같다: 2px sticker-line 선, 오른쪽 아래 3px 비킨 그림자,
   누르는 동안 2px 오른쪽 아래로 옮기고 그림자를 1px로 줄인다. 마우스를 올리면 바탕만 바뀐다. */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 2px solid var(--color-sticker-line); border-radius: var(--radius-button); background: var(--color-accent); color: var(--color-on-accent); box-shadow: 3px 3px 0 var(--color-sticker-shadow); font: 500 var(--step-body)/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--t-hover), translate var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out); }
.button:hover { background: var(--color-accent-hover); }
.button-ghost { background: var(--color-surface); color: var(--color-ink); }
.button-ghost:hover { background: var(--color-accent-soft); }
.button:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--color-sticker-shadow); }

/* 앱 화면과 같은 작은 버튼·입력칸(첫 화면 예시의 복사 버튼, 시작 상자). 작은 버튼은 1px 선이고 그림자가 없다. */
.ui-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--color-line-strong); border-radius: var(--radius-button); background: var(--color-field); color: var(--color-ink); font: 500 0.9375rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color var(--t-hover), scale 120ms var(--ease-out); }
.ui-btn:hover { background: var(--color-accent-soft); }
.ui-btn:active { scale: 0.98; }
.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); }
/* 예시 안의 버튼 모양 span("고치기")은 누를 수 없으므로 손가락 커서와 hover·누름 효과를 끈다. */
span.ui-btn { cursor: default; }
span.ui-btn:hover { background: var(--color-field); }
span.ui-btn:active { scale: none; }
.ui-label { display: block; font-size: 0.9375rem; font-weight: 500; margin-bottom: 6px; }
.ui-field { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--color-line-strong); border-radius: var(--radius-field); background: var(--color-field); color: var(--color-ink); font: 400 1rem/1.6 var(--font); }
.ui-field:focus { border-color: var(--color-accent); }
.doc-text { font-family: var(--font-doc); font-size: 1.0625rem; line-height: 1.85; }

/* 문서 이름 표시(어떻게 만드나 셋째 단계, 업무 순서). 앱의 검토 완료 배지와 같은 색이다. */
.doc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.doc-chips li { padding: 3px 12px; border-radius: 999px; background: var(--color-accent-soft); color: var(--color-accent-ink); font-size: var(--step-small); font-weight: 500; line-height: 1.5; max-width: 100%; }

/* 그림(landings/_icon). 크기는 쓰는 곳에서 정한다. */
.icon { display: block; flex: none; width: 24px; height: 24px; }

/* 카드 목록(왜 필요한가, 주요 기능, 새로 생긴 기능, 검토와 개인정보). 앱 카드와 같은 surface 바탕, 1px line 테두리, 20px 모서리다. */
.card-list { grid-column: 1 / -1; display: grid; gap: var(--gap); margin-top: 48px; }
.card-list > li { padding: 24px; border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); }
.card-list p { margin-top: 10px; max-width: 34em; color: var(--color-ink-muted); }

/* ---------- 첫 화면 ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; font-size: var(--step-small); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.375rem; font-weight: 400; letter-spacing: -0.01em; text-decoration: none; color: var(--color-ink); }
/* 상단 링크와 "비밀번호를 잊으셨나요?"는 누름 영역을 44px로 넓힌다. 위아래 음수 여백((1lh - 44px) / 2)으로
   차지하는 줄 높이는 글자 한 줄 그대로 두어 배치가 바뀌지 않는다. 워드마크는 그림(32px)이 있어 그대로 44px 안에 든다. */
.nav ul a,
.dialog .forgot a { display: inline-flex; align-items: center; min-height: 44px; margin-block: calc((1lh - 44px) / 2); }
.wordmark { min-height: 44px; }
.nav ul a { color: var(--color-ink); text-decoration: none; transition: color var(--t-hover); }
/* 상단 메뉴 링크는 좌우 안쪽 여백 10px과 최소 폭 44px로 누름 폭을 넓히고, 목록의 오른쪽 음수 여백이 마지막 링크의 여백을 상쇄한다. */
.nav ul { display: flex; align-items: center; gap: 8px; margin-right: -10px; }
.nav ul a { justify-content: center; min-width: 44px; padding-inline: 10px; }
.nav ul a:hover { color: var(--color-accent-ink); }
.nav .nav-login { font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; }

.hero-body { align-items: center; padding: 72px 0 24px; }
.hero-copy { grid-column: 1 / span 6; }
.hero h1 { max-width: 12em; font-size: var(--step-display); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.hero-lead { margin-top: 28px; max-width: 32em; color: var(--color-ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* 예시 무대: accent-soft 바탕, 20px 모서리. 위쪽은 앱 오늘 화면 모양(날짜, 요정, 원아 칸), 아래쪽은 메모 → 알림장 초안이다. */
.stage { grid-column: 7 / -1; padding: 28px; border-radius: var(--radius-card); background: var(--color-accent-soft); }
.example { width: 100%; max-width: 520px; margin: 0 auto; }
.example-today-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.example-date { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.3; color: var(--color-accent-ink); }
/* 원아 칸 세 개. 앱 오늘 화면의 원아 칸(a.kid-cell)과 같은 원아 색 바탕·글자, 10px 모서리다. 누를 수 없는 그림이라 연필 아이콘은 없다. */
.example-kids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 16px; }
.kid-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: var(--radius-field); background: var(--kid-bg); color: var(--kid-ink); }
.kid-cell b { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.kid-cell span { font-size: 0.75rem; line-height: 1.4; }
.kid-tint-coral { --kid-bg: var(--color-kid-coral-bg); --kid-ink: var(--color-kid-coral-ink); }
.kid-tint-mint { --kid-bg: var(--color-kid-mint-bg); --kid-ink: var(--color-kid-mint-ink); }
.kid-tint-apricot { --kid-bg: var(--color-kid-apricot-bg); --kid-ink: var(--color-kid-apricot-ink); }
.example-card { padding: 18px 20px 20px; border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); color: var(--color-ink); }
.example-meta { font-size: var(--step-small); color: var(--color-ink-muted); }
.example-memo-body { margin-top: 8px; font-size: 1rem; line-height: 1.7; }
.example-arrow { display: flex; align-items: center; gap: 10px; padding: 12px 0 12px 20px; color: var(--color-accent-ink); font-size: var(--step-small); font-weight: 600; }
.example-draft { border-color: var(--color-accent); }
.example-draft .doc-text { margin-top: 8px; }
/* 메모가 초안으로 바뀌는 움직임. 화면을 열면 화살표, 초안 순서로 한 번 나타난다. JS 없이 동작하고 끝나면 그대로 보인다. */
.example-arrow { animation: example-in 500ms var(--ease-out) 300ms both; }
.example-draft { animation: example-in 600ms var(--ease-out) 700ms both; }
@keyframes example-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: none; } }
.copy-row { margin-top: 16px; }
.copy-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-message:empty { display: none; }
.copy-message { margin-top: 8px; font-size: 0.875rem; color: var(--color-danger-ink); }
.copy-fallback { margin-top: 8px; }

/* ---------- 왜 필요한가, 검토와 개인정보 ---------- */
.problem-list,
.trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 어떻게 만드나 ----------
   넓은 화면은 다섯 단계를 가로 한 줄로 두고 단계 사이 간격 가운데에 오른쪽 화살표를 둔다. 1100px 이하는 위에서 아래로 쌓고 화살표가 아래를 가리킨다.
   셋째 단계(AI)는 지금 단계 표시로 highlight 바탕과 2px sticker-line 선이다. */
.concept-flow { --flow-gap: 40px; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--flow-gap); margin-top: 48px; }
.concept-step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 24px; border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); }
.concept-step h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 1.125rem; }
.concept-number { color: var(--color-accent-ink); font-variant-numeric: tabular-nums; }
.concept-step p { font-size: 1rem; line-height: 1.65; color: var(--color-ink-muted); }
.concept-step .icon { position: absolute; top: 50%; right: calc((var(--flow-gap) + 24px) / -2); color: var(--color-line-strong); transform: translateY(-50%); }
.concept-step.is-ai { border: 2px solid var(--color-sticker-line); background: var(--color-highlight); }
.concept-step.is-ai .concept-number { color: var(--color-ink); }
.concept-step.is-ai .doc-chips li { background: var(--color-surface); color: var(--color-ink); }

/* ---------- 주요 기능, 새로 생긴 기능 ---------- */
.feature-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.new-feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 아이콘은 accent-soft 바탕의 44px 칸 안에 그린다(앱의 아이콘 색 accent-ink). */
.feature-list .icon { width: 44px; height: 44px; padding: 10px; border-radius: var(--radius-button); background: var(--color-accent-soft); color: var(--color-accent-ink); }
.feature-list h3 { margin-top: 18px; }
/* 알림장 내용 두 가지("사실만", "풍성하게"). 이름(accent-ink 600)과 설명을 canvas 바탕 칸에 하나씩 둔다. */
.choices { display: grid; gap: 8px; margin-top: 16px; }
.choices > div { padding: 10px 14px; border-radius: var(--radius-field); background: var(--color-canvas); }
.choices dt { font-weight: 600; color: var(--color-accent-ink); }
.choices dd { color: var(--color-ink-muted); font-size: 1rem; }

/* ---------- 업무 순서 ----------
   왼쪽 목록(1~6열)과 달력 그림(8~12열). 표시(.mark-*)는 목록과 달력에서 같은 모양이다. */
.flow-list { grid-column: 1 / span 6; margin-top: 48px; }
.flow-list > li { padding: 22px 0 26px; border-top: 1px solid var(--color-line-strong); }
.flow-list > li:last-child { border-bottom: 1px solid var(--color-line-strong); }
.flow-when { display: flex; align-items: center; gap: 12px; font-size: var(--step-lead); color: var(--color-accent-ink); }
.flow-marks { display: inline-flex; align-items: center; gap: 6px; }
.flow-list p { margin-top: 8px; }
.flow-list .doc-chips { margin-top: 12px; }

.mark { display: inline-block; flex: none; }
.mark-daily { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
.mark-weekly { width: 14px; height: 14px; border-radius: 3px; background: var(--color-accent-soft); box-shadow: inset 0 0 0 1px var(--color-accent); }
.mark-adaptation { width: 22px; height: 8px; border-radius: 4px; background: var(--color-accent); }
.mark-month { width: 14px; height: 14px; border: 2px solid var(--color-accent); border-radius: 50%; }
.mark-term { width: 22px; height: 8px; border-radius: 4px; background: var(--color-neutral-soft); box-shadow: inset 0 0 0 1px var(--color-line-strong); }
/* 상담: accent-ink 채움 마름모(10px 정사각형을 45도 돌림). */
.mark-consultation { width: 10px; height: 10px; margin: 2px; background: var(--color-accent-ink); transform: rotate(45deg); }

.calendar { grid-column: 8 / -1; align-self: start; margin-top: 48px; padding: 24px; border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); }
.calendar-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.calendar-month { font-family: var(--font-display); font-size: 1.625rem; font-weight: 400; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8125rem; color: var(--color-ink-muted); }
.calendar-legend li { display: inline-flex; align-items: center; gap: 6px; }
.calendar-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 20px; }
.calendar-weekday { padding-bottom: 4px; font-size: 0.8125rem; color: var(--color-ink-muted); text-align: center; }
.calendar-day { position: relative; display: flex; justify-content: space-between; align-items: flex-start; min-height: 4rem; padding: 6px 8px; border-radius: 8px; background: var(--color-canvas); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.calendar-marks { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.calendar-day.is-outside { background: transparent; color: var(--color-ink-muted); }
.calendar-day.is-weekly { background: var(--color-accent-soft); box-shadow: inset 0 0 0 1px var(--color-accent); }
.calendar-day.is-month-end .calendar-date { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; margin: -3px 0 0 -5px; border: 2px solid var(--color-accent); border-radius: 50%; }
/* 입소 기간 막대 조각: 둘째 주 칸 아래쪽에 두고 오른쪽으로 칸 사이 간격(4px)만큼 늘려 다음 칸 조각과 잇는다. 마지막 칸은 늘리지 않는다.
   막대의 양 끝 조각만 둥글게 한다. */
.calendar-adaptation { position: absolute; left: 0; right: -4px; bottom: 6px; z-index: 1; min-height: 1.125rem; padding: 0 8px; background: var(--color-accent); color: var(--color-on-accent); font-size: 0.75rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.calendar-day:nth-child(5n) .calendar-adaptation { right: 6px; border-radius: 0 6px 6px 0; }
.calendar-day:nth-child(5n + 1) .calendar-adaptation { left: 6px; border-radius: 6px 0 0 6px; }
.calendar-term { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--color-line); }
.calendar-term-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; }
.calendar-term-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
.calendar-term-months li { padding: 4px 0; background: var(--color-neutral-soft); font-size: 0.75rem; color: var(--color-ink-muted); text-align: center; }
.calendar-term-months li:first-child { border-radius: 6px 0 0 6px; }
.calendar-term-months li:last-child { border-radius: 0 6px 6px 0; }
.calendar-term-months li.is-current { background: var(--color-accent-soft); color: var(--color-accent-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--color-accent); }

/* ---------- 자주 묻는 질문 ---------- */
.faq h2 { margin-bottom: 40px; }
/* 질문과 답을 모두 펼쳐 둔 목록이다. 질문마다 카드 하나. */
.q-list { grid-column: 1 / span 8; display: grid; gap: 16px; }
.qa { padding: 20px 24px 22px; border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); }
.q { display: flex; gap: 14px; align-items: baseline; font: 600 var(--step-lead)/1.4 var(--font); color: var(--color-ink); }
.q::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); transform: translateY(-2px); }
.a { margin-top: 8px; padding-left: 22px; font-size: var(--step-body); line-height: 1.65; color: var(--color-ink-muted); }

/* ---------- 홈 화면에 추가하기 ----------
   아이폰·안드로이드 카드 두 개(앱 카드 모양: surface 바탕, 1px line, 20px 모서리)를 넓은 화면에서 나란히 두고, 760px 이하는 위아래로 쌓는다.
   단계는 순서 목록이고 번호는 accent-ink 600이다. 그 아래 앱 안 브라우저 안내 한 줄은 ink-muted다. */
.install-lead { grid-column: 1 / span 8; margin-top: 20px; max-width: 34em; color: var(--color-ink-muted); }
.install-list { grid-column: 1 / span 10; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
.install-steps { display: grid; gap: 8px; margin-top: 14px; padding-left: 1.5em; list-style: decimal; }
.install-steps li { padding-left: 4px; }
.install-steps li::marker { color: var(--color-accent-ink); font-weight: 600; }
.install-note { grid-column: 1 / span 8; margin-top: 20px; max-width: 40em; font-size: 1rem; color: var(--color-ink-muted); }

/* ---------- 시작 ----------
   accent-soft 띠. 왼쪽에 날개 수첩 그림과 제목, 오른쪽에 시작 상자(앱 카드 모양)다. */
main > .start { margin-top: var(--section); padding-top: 0; background: var(--color-accent-soft); }
.start .grid { padding-top: 96px; padding-bottom: 96px; align-items: center; }
.start .closing { grid-column: 1 / span 6; }
.start h2 { margin-top: 16px; font-size: var(--step-display); line-height: 1.2; }
.start .closing p { margin-top: 20px; max-width: 30em; }
.start .dialog { grid-column: 8 / span 5; width: 100%; max-width: 460px; padding: 26px; border: 1px solid var(--color-line); border-radius: var(--radius-card); background: var(--color-surface); color: var(--color-ink); }
.dialog h3 { font-size: 1.25rem; margin-bottom: 18px; }
/* 카카오 버튼은 앱의 큰 카카오 버튼과 같다(kakao 바탕, kakao-ink 글자, 스티커 모양). */
.kakao { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; border: 2px solid var(--color-sticker-line); border-radius: var(--radius-button); background: var(--color-kakao); color: var(--color-kakao-ink); box-shadow: 3px 3px 0 var(--color-sticker-shadow); font: 500 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: translate var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out), filter var(--t-hover); }
.kakao:hover { filter: brightness(.97); }
.kakao:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--color-sticker-shadow); }
.or { margin: 18px 0; text-align: center; font-size: 0.875rem; color: var(--color-ink-muted); }
/* 두 칸 선택(로그인·가입). 앱의 .seg와 같다: neutral-soft 바탕, 선택된 칸은 highlight 바탕과 2px sticker-line 안쪽 선, 600 ink. */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--radius-button); background: var(--color-neutral-soft); 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; font-weight: 500; color: var(--color-ink-muted); cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--color-highlight); box-shadow: inset 0 0 0 2px var(--color-sticker-line); color: var(--color-ink); font-weight: 600; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.dialog .ui-field + .ui-label { margin-top: 14px; }
/* 시작 상자의 주 버튼("이메일로 로그인", "이메일로 가입하기")은 큰 버튼이라 스티커 모양이다. */
.dialog .ui-btn.primary { width: 100%; min-height: 52px; margin-top: 18px; border: 2px solid var(--color-sticker-line); box-shadow: 3px 3px 0 var(--color-sticker-shadow); font-size: 1rem; transition: background-color var(--t-hover), translate var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out); }
.dialog .ui-btn.primary:active { scale: none; translate: 2px 2px; box-shadow: 1px 1px 0 var(--color-sticker-shadow); }
.dialog .signup .ui-btn.primary { margin-top: 0; }
.dialog .forgot { margin-top: 14px; font-size: 0.9375rem; text-align: center; }
.dialog .test-account { margin: 0 0 12px; font-size: 0.875rem; color: var(--color-ink-muted); }
.dialog .invite-only { margin: 12px 0 0; font-size: 0.875rem; color: var(--color-ink-muted); text-align: center; }
.dialog .forgot a { color: var(--color-ink-muted); }
.dialog .forgot a:hover { color: var(--color-accent-ink); }

/* ---------- 안내(탈퇴 뒤) ---------- */
.landing-notice { margin: 0; padding: 12px 16px; text-align: center; font-size: 0.9375rem; background: var(--color-accent-soft); color: var(--color-ink); }

/* ---------- 바닥글 ---------- */
.foot { padding: 48px 0 40px; font-size: var(--step-small); color: var(--color-ink-muted); }
.foot-name { font-family: var(--font-display); font-size: 1rem; color: var(--color-ink); }
/* 개인정보 처리방침·이용약관 링크. 누르기 쉽게 줄 높이를 44px로 둔다. */
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 8px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 동작 줄이기 ----------
   앱(app/assets/tailwind/application.css)과 같이 모든 전환을 끄고 누름 이동·축소도 끈다. 스티커 버튼은 옮기지 않고 그림자만 1px로 줄인다.
   첫 화면 예시의 나타나기 움직임도 끈다. 색·밝기·선택 표시는 전환 없이 바로 바뀐다. */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { transition: none !important; }
  .button:active, .kakao:active, .dialog .ui-btn.primary:active { translate: none; }
  .ui-btn:active { scale: none; }
  .example-arrow, .example-draft { animation: none; }
}

/* ---------- 1100px 이하 ---------- */
@media (max-width: 1100px) {
  .hero-copy { grid-column: 1 / -1; }
  .stage { grid-column: 1 / -1; margin-top: 56px; }
  /* 다섯 단계를 위에서 아래로 쌓는다. 단계는 제목(왼쪽)과 설명(오른쪽) 두 칸이고, 화살표는 단계 사이 간격 가운데에서 아래를 가리킨다. */
  .concept-flow { --flow-gap: 40px; grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .concept-step { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: start; gap: 8px 24px; }
  .concept-step .icon { top: auto; right: auto; bottom: calc((var(--flow-gap) + 24px) / -2); left: 50%; transform: translateX(-50%) rotate(90deg); }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 카드가 셋이라 2열이면 하나가 홀로 남는다. 알림장 카드를 윗줄 전체 폭에 두고 나머지 둘을 아래에 나란히 둔다. */
  .new-feature-list > li:first-child { grid-column: 1 / -1; }
  .flow-list { grid-column: 1 / -1; }
  .calendar { grid-column: 1 / -1; max-width: 560px; }
  .q-list { grid-column: 1 / -1; }
  .install-list { grid-column: 1 / -1; }
  .start .closing { grid-column: 1 / span 6; }
  .start .dialog { grid-column: 7 / -1; }
}

/* ---------- 휴대폰 ---------- */
@media (max-width: 760px) {
  /* 이 폭에서는 모든 격자 항목이 한 줄을 다 쓴다. 열 간격 11개가 200% 확대에서 가로 넘침을 만들지 않게 없앤다. */
  .grid { column-gap: 0; }
  h2 { grid-column: 1 / -1; }
  .nav ul li:not(:last-child) { display: none; }
  .hero-body { padding-top: 40px; }
  /* 휴대폰 폭의 제목은 rem이 섞인 clamp()로 정해 브라우저 글자 크기 설정을 따른다. h1의 최솟값 2rem은 h2의 최솟값(1.75rem)보다 크다. */
  .hero h1 { font-size: clamp(2rem, 1.2rem + 3.5vw, 3rem); }
  .hero-lead { margin-top: 20px; font-size: 1rem; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .button { flex: 1 1 10rem; padding: 0 16px; }
  .stage { margin-top: 40px; padding: 16px; }
  .example-date { font-size: 1.375rem; }
  .example-today-head .character img { width: auto; height: 72px; }
  .example-card { padding: 16px; }
  .problem-list, .trust-list, .feature-list, .new-feature-list { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
  .card-list > li { padding: 20px; }
  .concept-flow { margin-top: 32px; }
  .concept-step { grid-template-columns: minmax(0, 1fr); padding: 20px 18px 22px; }
  .flow-list, .calendar { margin-top: 32px; }
  .calendar { padding: 16px; }
  .calendar-day { min-height: 3.5rem; padding: 4px 6px; }
  .q-list { grid-column: 1 / -1; }
  .qa { padding: 16px 18px 18px; }
  .install-lead, .install-note { grid-column: 1 / -1; }
  .install-list { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
  .start .grid { padding-top: 64px; padding-bottom: 48px; align-items: start; row-gap: 32px; }
  .start .closing, .start .dialog { grid-column: 1 / -1; max-width: none; }
  .start h2 { font-size: clamp(1.875rem, 1.2rem + 6vw, 3.5rem); }
  .start .dialog { padding: 20px; }
}
