/* ADHLink 소개 웹 v2 — 앱에서 잘라낸 한 장의 따뜻한 종이 (docs/concept.md 7·8번) */

:root {
  --bg: #F8F3EA;
  --face: #EFE7DA;
  --ink: #2A2420;
  --soft: #6E6256;
  --line: #7A6E62;
  --hair: rgba(122, 110, 98, 0.32);
  --grid: rgba(122, 110, 98, 0.28);
  --violet: #5B5BB0;
  --violet-face: #E7E6F4;
  --on-violet: #FFFFFF;
  --yellow: #E9AE3B;
  --amber: #87580A;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1916;
    --face: #26221E;
    --ink: #F2EADF;
    --soft: #B3A797;
    --line: #9C9081;
    --hair: rgba(156, 144, 129, 0.3);
    --grid: rgba(156, 144, 129, 0.24);
    --violet: #9C9CE6;
    --violet-face: #2C2A44;
    --on-violet: #1C1916;
    --yellow: #E9AE3B;
    --amber: #E9AE3B;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap {
  max-width: 1088px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

h1, h2 { text-wrap: balance; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: 52px; line-height: 1.15; }
h2 { font-size: 36px; line-height: 1.25; }

.label { font-size: 14px; font-weight: 700; color: var(--soft); margin: 0 0 12px; }
.body { margin: 16px 0 0; color: var(--soft); max-width: 26em; }
.note { font-size: 14px; color: var(--soft); margin: 16px 0 0; display: flex; align-items: center; gap: 10px; }

/* ---------- 위 ---------- */

.top-line { border-bottom: 1px solid var(--hair); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }

.top nav { display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; white-space: nowrap; }
.top nav .lang { color: var(--soft); }
.top nav .go { color: var(--violet); }

/* ---------- 버튼 ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 24px;
  border: 0;
  background: var(--violet);
  color: var(--on-violet);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:focus-visible, .linkhit:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ---------- 앱 화면 조각 ---------- */

.surface {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: 28px;
  background: var(--bg);
  overflow: hidden;
}

.art { display: block; width: 100%; height: auto; }
.only-narrow { display: none; }

.art text { font-family: inherit; fill: var(--ink); }
.art .t-brand { font-size: 22px; font-weight: 800; letter-spacing: -0.2px; }
.art .t-name { font-size: 22px; font-weight: 700; letter-spacing: -0.2px; }
.art .t-row { font-size: 15px; }
.art .t-soft { fill: var(--soft); }
.art .t-seg { font-size: 13px; font-weight: 600; text-anchor: middle; }
.art .t-on { fill: var(--violet); }
.art .paper { fill: var(--bg); }
.art .grid-dot { fill: var(--grid); }
.art .hairline { stroke: var(--hair); stroke-width: 1; }
.art .face { fill: var(--face); }
.art .on-bg { fill: var(--bg); }
.art .rim { fill: none; stroke: var(--line); stroke-width: 1.4; opacity: 0.7; }
.art .rim2 { fill: none; stroke: var(--line); stroke-width: 1.2; opacity: 0.32; }
.art .ink { fill: var(--ink); }
.art .pick { fill: var(--violet); }
.art .ring { fill: none; stroke: var(--violet); stroke-width: 1.6; }
.art .solid { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }
.art .dashed { fill: none; stroke: var(--violet); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0.1 7; }
.art .send { fill: var(--violet); opacity: 0.55; }
.art .icon { fill: none; stroke: var(--soft); stroke-width: 1.6; stroke-linecap: round; }

/* 선을 누르면 확정 */
.linkhit { cursor: pointer; }
.linkhit .hit { fill: none; stroke: transparent; stroke-width: 44; }
.linkhit.done .dashed { stroke: var(--ink); stroke-width: 1.7; stroke-dasharray: none; }

/* ---------- 첫 화면 ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(0, 460px);
  align-items: center;
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.hero .body { font-size: 20px; margin-top: 20px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 32px; }
.hero .actions span { font-size: 15px; color: var(--soft); }
.hero .for { margin-top: 40px; font-size: 14px; color: var(--soft); }

/* ---------- 장면 ---------- */

.scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.scene.flip > .copy { order: 2; }

.copy .character { width: 132px; height: auto; margin: 0 0 8px -6px; }

/* 목록: 점 · 글 · 시각, 묶음 이름까지 가로선 */
.list { padding: 20px 22px 18px; }
.list .day { font-size: 14px; font-weight: 600; color: var(--soft); margin-bottom: 4px; }
.row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
}
.row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; margin-top: 8px; }
.row.new .dot { background: var(--violet); }
.row .text { flex: 0 1 auto; min-width: 0; }
.row .text b { display: block; font-weight: 400; font-size: 17px; line-height: 1.35; }
.row .text small { display: block; font-size: 13px; color: var(--soft); margin-top: 2px; }
.row .rule { flex: 1 1 16px; min-width: 16px; height: 0; border-top: 1.5px solid var(--line); margin-top: 11px; }
.row .tag {
  flex: none;
  margin-top: -3px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 2px 11px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.row.new .rule { border-top-style: dashed; }
.row.new .tag { border-style: dashed; }

.composer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  height: 48px;
  border-radius: 24px;
  background: var(--face);
  padding: 0 4px 0 18px;
  color: var(--soft);
  font-size: 15px;
}
.composer span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer i { width: 40px; height: 40px; border-radius: 50%; background: var(--violet); opacity: 0.55; flex: none; display: grid; place-items: center; }

/* 이음: 넓게 한 번 */
.feature { padding-top: 48px; padding-bottom: 48px; }
.feature-head { display: flex; align-items: flex-end; gap: 24px; }
.feature-head .character { width: 112px; height: auto; flex: none; }
.feature-head .body { max-width: 34em; }
.linkcard { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); margin-top: 32px; }
.linkcard .reason { border-top: 0; border-left: 1px solid var(--hair); display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.linkcard.done .join { border-left-style: solid; border-left-color: var(--ink); }

/* 이어진 이유 */
.reason { border-top: 1px solid var(--hair); padding: 18px 22px 20px; background: var(--bg); }
.reason .label { margin-bottom: 8px; }
.reason .q { margin: 0; position: relative; padding: 5px 0 5px 18px; font-size: 17px; }
.reason .q::before { content: ""; position: absolute; left: 1px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--violet); }
.reason .join { height: 12px; margin-left: 4px; border-left: 2px dotted var(--violet); }
mark { background: var(--violet-face); color: var(--violet); font-weight: 700; border-radius: 5px; padding: 0 2px; margin: 0 -2px; }
.reason .hint { margin: 12px 0 0; font-size: 14px; color: var(--soft); }

/* 시간 */
.timebox { position: relative; }
.timebox .ongie { position: absolute; left: -118px; bottom: 6px; width: 108px; }
.board { padding: 22px; }
.board .plan { display: flex; gap: 10px; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
.board .plan .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; transform: translateY(-3px); }
.board .plan b { display: block; font-weight: 400; font-size: 17px; }
.board .plan small { display: block; font-size: 14px; font-weight: 700; color: var(--amber); margin-top: 2px; }
.board .left { margin-top: 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.board .left b { font-size: 30px; font-weight: 800; color: var(--amber); letter-spacing: -0.01em; }
.board .left span { font-size: 14px; color: var(--soft); font-weight: 600; white-space: nowrap; }
.track { margin-top: 12px; height: 14px; border-radius: 7px; border: 1.5px solid var(--ink); overflow: hidden; }
.track i { display: block; width: 50%; height: 100%; background: var(--yellow); border-right: 1.5px solid var(--ink); }
.checks { margin-top: 16px; }
.check { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 17px; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; }
.check.done { color: var(--soft); }
.check.done .box { background: var(--ink); border-color: var(--ink); }
.check.done .box svg { stroke: var(--bg); }

/* ---------- 약속 ---------- */

.promise-section { padding-top: 72px; padding-bottom: 48px; }

.promises { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.promises li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hair);
}
.promises svg { display: block; }
.promises b { font-size: 20px; letter-spacing: -0.01em; }
.promises span { color: var(--soft); }

.makers { display: flex; align-items: center; gap: 20px; margin-top: 36px; }
.makers img { width: 150px; flex: none; }
.makers p { margin: 0; color: var(--soft); }

/* ---------- 마무리: 가격 + 출시 알림 ---------- */

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 96px;
  border-top: 1px solid var(--hair);
}

.price-line { margin: 16px 0 0; font-size: 20px; }
.price-line b { font-weight: 800; }
.closing ul { list-style: none; margin: 16px 0 0; padding: 0; color: var(--soft); }
.closing li { position: relative; padding: 4px 0 4px 20px; }
.closing li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--line); }

.soon {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 24px;
  border: 1.5px dashed var(--violet);
  color: var(--violet);
  font-size: 16px;
  font-weight: 700;
}
.get .soon { margin-top: 20px; }

/* ---------- 아래 ---------- */

footer { border-top: 1px solid var(--hair); padding-top: 28px; padding-bottom: 44px; font-size: 14px; color: var(--soft); }
footer .row-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer p { margin: 14px 0 0; }
footer .brand { font-size: 17px; color: var(--ink); }
footer .brand img { width: 24px; height: 24px; }

/* ---------- 좁은 화면 ---------- */

@media (max-width: 340px) {
  .top nav .lang { display: none; }
}

@media (max-width: 900px) {
  .hero, .scene, .closing { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .scene.flip > .copy { order: 0; }
  .hero { padding-top: 36px; padding-bottom: 28px; }
  .hero .surface { max-width: 460px; }
  .scene { padding-top: 28px; padding-bottom: 28px; }
  .feature { padding-top: 28px; padding-bottom: 28px; }
  .feature-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .feature-head .character { width: 96px; }
  .linkcard { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .linkcard .reason { border-left: 0; border-top: 1px solid var(--hair); padding: 18px 20px 20px; }
  .promise-section { padding-top: 56px; padding-bottom: 28px; }
  .closing { padding-top: 28px; padding-bottom: 56px; }
  .timebox { margin-top: 56px; }
  .timebox .ongie { left: auto; right: 18px; bottom: auto; top: -78px; width: 84px; }
  .promises li { grid-template-columns: 44px minmax(0, 1fr); }
  .promises li span { grid-column: 2; margin-top: -10px; }
}

@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  body { font-size: 16px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .hero .body { font-size: 17px; }
  .top nav { gap: 12px; }
  .only-wide { display: none; }
  .only-narrow { display: block; }
  .brand { font-size: 18px; }
  .copy .character { width: 104px; }
  .list { padding: 16px 16px 14px; }
  .row .text b { font-size: 16px; }
  .board { padding: 18px; }
  .board .left b { font-size: 26px; }
  .makers img { width: 112px; }
  .promises b { font-size: 18px; }
}

/* ---------- 처리방침·약관 (tools/build_legal_pages.py) ---------- */

.doc { max-width: 776px; padding-top: 48px; padding-bottom: 96px; font-size: 16px; line-height: 1.7; }
.doc h1 { font-size: 36px; margin-bottom: 20px; }
.doc h2 { font-size: 22px; line-height: 1.35; margin: 48px 0 12px; padding-top: 24px; border-top: 1px solid var(--hair); letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.doc p { margin: 12px 0; }
.doc ul, .doc ol { padding-left: 1.4em; margin: 12px 0; }
.doc li { margin: 6px 0; }
.doc li > ul, .doc li > ol { margin: 6px 0; }
.doc hr { display: none; } /* 문서의 가로줄은 h2 윗줄이 대신해요 */
.doc .table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--hair); border-radius: 16px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.6; }
.doc table:has(th:nth-child(3)) { min-width: 540px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--hair); }
.doc th { background: var(--face); font-weight: 700; }
.doc tr:last-child td { border-bottom: 0; }
.doc td + td, .doc th + th { border-left: 1px solid var(--hair); }
.doc code { font-size: 0.92em; background: var(--face); border-radius: 5px; padding: 1px 5px; }
.doc a { color: var(--violet); }
.doc .draft { margin: 0 0 28px; padding: 12px 16px; border-radius: 14px; border: 1.5px dashed var(--violet); font-size: 15px; }
mark.todo { background: var(--violet-face); color: var(--violet); border-radius: 5px; padding: 0 4px; margin: 0; font-weight: 600; }

@media (max-width: 560px) {
  .doc { padding-top: 28px; padding-bottom: 56px; }
  .doc h1 { font-size: 28px; }
  .doc h2 { font-size: 20px; margin-top: 36px; }
}
