/*
 * 웰로디 소개 페이지(초안) — 한 장짜리 정적 페이지. 빌드 없음.
 * 색은 앱 기본 테마(src/ui/palettes.ts MADI_LIGHT / MADI_DARK)와 같은 값.
 * 감빛(--node)은 ‘바꾼 자리·지금’에만 쓴다(앱 규칙과 같음). 빨강·초록 판정색 없음.
 */
:root {
  --bg: #F5F8FC;
  --surface: #FFFFFF;
  --surface-alt: #F9FBFE;
  --sunk: #ECF1F7;
  --text: #1A2233;
  --muted: #526074;
  --border: #D8E0EB;
  --hairline: #E7ECF3;
  --primary: #1F64C8;
  --primary-fill: #5B9BF0;
  --on-primary: #FFFFFF;
  --primary-soft: #E2EDFC;
  --primary-tint: #EFF5FE;
  --hero: #6AA6F2;
  --sky-1: #CFE3FB;
  --sky-2: #E8F1FD;
  --node: #D46F33;
  --node-ink: #9C4A17;
  --node-soft: #FCEDE3;
  --demo: #74418A;
  --demo-soft: #F4ECF6;
  --mark: #FFF1C2;
  --mark-text: #6B4E00;
  --bezel: #121822;
  --shadow-near: rgba(26, 34, 51, 0.06);
  --shadow-far: rgba(31, 100, 200, 0.14);
  --kind-activity: #B5652A;
  --kind-heart: #A84F6D;
  --kind-vital: #3A72B0;
  --kind-calm: #5560B5;
  --kind-teal: #207682;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E131C; --surface: #161D29; --surface-alt: #1C2431; --sunk: #1F2836; --text: #E6ECF5; --muted: #A7B3C5;
    --border: #313C4F; --hairline: #222B39; --primary: #7DB4F7; --primary-fill: #7DB4F7; --on-primary: #0A1A33;
    --primary-soft: #1C2D47; --primary-tint: #172236; --hero: #2A62B8; --sky-1: #132744; --sky-2: #101C2E;
    --node: #EE9A62; --node-ink: #F4B88E; --node-soft: #3B2618; --demo: #E2B3EE; --demo-soft: #382140;
    --mark: #4A3C10; --mark-text: #FFE9A8; --bezel: #05080D; --shadow-near: rgba(0, 0, 0, 0.3); --shadow-far: rgba(0, 0, 0, 0.45);
    --kind-activity: #E8A36E; --kind-heart: #E59AB4; --kind-vital: #8DB8F5; --kind-calm: #A9AEF0; --kind-teal: #7CC9D2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E131C; --surface: #161D29; --surface-alt: #1C2431; --sunk: #1F2836; --text: #E6ECF5; --muted: #A7B3C5;
  --border: #313C4F; --hairline: #222B39; --primary: #7DB4F7; --primary-fill: #7DB4F7; --on-primary: #0A1A33;
  --primary-soft: #1C2D47; --primary-tint: #172236; --hero: #2A62B8; --sky-1: #132744; --sky-2: #101C2E;
  --node: #EE9A62; --node-ink: #F4B88E; --node-soft: #3B2618; --demo: #E2B3EE; --demo-soft: #382140;
  --mark: #4A3C10; --mark-text: #FFE9A8; --bezel: #05080D; --shadow-near: rgba(0, 0, 0, 0.3); --shadow-far: rgba(0, 0, 0, 0.45);
  --kind-activity: #E8A36E; --kind-heart: #E59AB4; --kind-vital: #8DB8F5; --kind-calm: #A9AEF0; --kind-teal: #7CC9D2;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 Pretendard, "Pretendard JP", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Hiragino Sans", "Noto Sans KR", "Noto Sans JP", system-ui, sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
:lang(ja) body, body:lang(ja) { font-family: "Pretendard JP", Pretendard, -apple-system, "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; word-break: normal; line-break: strict; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--surface); color: var(--primary); padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }

/* 초안 표시(공개 전 지움) */
.draft-bar { background: var(--mark); color: var(--mark-text); font-size: 13px; line-height: 1.5; text-align: center; padding: 6px 16px; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-scrolled { border-bottom-color: var(--hairline); }
.top-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; color: var(--primary); text-decoration: none; }
.brand svg { width: 112px; height: auto; display: block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 10px; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--sunk); }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline-block; } }
.langs { display: inline-flex; gap: 2px; margin-left: 4px; padding: 3px; background: var(--sunk); border-radius: 999px; }
.langs a { font-size: 13px; padding: 5px 9px; color: var(--muted); }
.langs a[aria-current="page"] { background: var(--surface); color: var(--primary); box-shadow: 0 1px 2px var(--shadow-near); }

/* 첫 장면 */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 40px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 30%, var(--sky-1) 0%, transparent 70%),
    radial-gradient(50% 45% at 12% 8%, var(--sky-2) 0%, transparent 70%),
    linear-gradient(180deg, var(--sky-2) 0%, var(--bg) 78%);
}
.staff { position: absolute; left: 0; right: 0; bottom: 92px; z-index: -1; height: 64px; opacity: .55; pointer-events: none;
  background: repeating-linear-gradient(180deg, var(--border) 0 1px, transparent 1px 16px); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } .hero { padding: 72px 0 96px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--primary); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px 6px 8px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--node); box-shadow: 0 0 0 4px var(--node-soft); }
h1 { font-size: clamp(32px, 8.4vw, 56px); line-height: 1.22; letter-spacing: -0.035em; font-weight: 800; margin: 18px 0 18px; }
:lang(en) h1 { letter-spacing: -0.03em; line-height: 1.12; }
h1 .soft { color: var(--primary); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 14px; border-radius: 16px; background: var(--surface); border: 1px dashed var(--border); color: var(--text); text-decoration: none; cursor: not-allowed; }
.store svg { width: 22px; height: 22px; flex: none; color: var(--text); }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-size: 12px; color: var(--muted); font-weight: 600; }
.store b { font-size: 16px; font-weight: 700; }
.contact-line { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.todo { background: var(--mark); color: var(--mark-text); border-radius: 6px; padding: 1px 6px; font-weight: 600; text-decoration: none; }

/* 바꾼 날 → 진료 — 한 줄 그림 */
.journey { margin: 30px 0 0; padding: 16px 18px 14px; background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid var(--hairline); border-radius: 22px; max-width: 30em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.journey-line { position: relative; display: grid; grid-template-columns: repeat(15, 1fr); align-items: center; height: 34px; }
.journey-line::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: var(--border); border-radius: 2px; }
.journey-line i { position: relative; justify-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-fill); }
.journey-line i.empty { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); }
.journey-line i.change { width: 12px; height: 12px; background: var(--node); box-shadow: 0 0 0 5px var(--node-soft); }
.journey-line i.visit { width: 26px; height: 26px; border-radius: 9px; background: var(--primary); }
.journey-line i.visit::after { content: ""; position: absolute; inset: 7px 11px; background: var(--on-primary); border-radius: 1px; box-shadow: -4px 4px 0 -0px transparent; }
.journey-line i.visit::before { content: ""; position: absolute; inset: 11px 7px; background: var(--on-primary); border-radius: 1px; }
.journey-legend { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.journey-legend b { color: var(--node-ink); font-weight: 700; }
.journey-legend .to { color: var(--primary); font-weight: 700; }

/* 휴대폰 틀 */
.phones { position: relative; display: flex; justify-content: center; min-height: 420px; }
.phone { position: relative; width: min(66vw, 300px); aspect-ratio: 390 / 844; border-radius: 46px; padding: 9px; background: var(--bezel);
  box-shadow: 0 2px 4px var(--shadow-near), 0 30px 60px -12px var(--shadow-far), inset 0 0 0 1.5px rgba(255,255,255,.08); }
.phone picture, .phone img { width: 100%; height: 100%; border-radius: 38px; overflow: hidden; object-fit: cover; object-position: top; background: var(--surface); }
.phones .phone.back { position: absolute; transform: translate(-38%, 7%) rotate(-6deg) scale(.86); opacity: .97; z-index: 0; }
.phones .phone.front { z-index: 1; transform: translateX(14%); }
@media (max-width: 420px) { .phones .phone.back { transform: translate(-30%, 8%) rotate(-6deg) scale(.82); } .phones .phone.front { transform: translateX(16%); width: 62vw; } .phones { min-height: 0; } }
.lody-peek { position: absolute; z-index: 2; width: 120px; right: max(0px, calc(50% - 250px)); bottom: -18px; filter: drop-shadow(0 10px 16px var(--shadow-far)); }
@media (max-width: 420px) { .lody-peek { width: 92px; right: 2px; bottom: -14px; } }

/* 이런 때 */
.for { padding: 8px 0 24px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 14px 0 0; }
.chips li { background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 600; box-shadow: 0 1px 2px var(--shadow-near); }
.note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* 섹션 머리 */
section { scroll-margin-top: 72px; }
.sec-head { max-width: 40em; margin: 0 0 8px; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--primary); margin: 0 0 8px; }
h2 { font-size: clamp(26px, 5.4vw, 40px); line-height: 1.28; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 12px; }
.sec-head p { color: var(--muted); margin: 0; }

/* 기능 */
.features { padding: 64px 0 24px; }
.feature { display: grid; gap: 28px; align-items: center; padding: 44px 0; border-top: 1px solid var(--hairline); }
.feature:first-of-type { border-top: 0; }
@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px 0; }
  .feature:nth-of-type(even) .feature-media { order: 2; }
}
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 48px; background: radial-gradient(closest-side, var(--tint, var(--primary-soft)), transparent); z-index: -1; }
.feature-media .phone { width: min(72vw, 300px); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--tagc, var(--primary)); }
.tag::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
h3 { font-size: clamp(23px, 4vw, 30px); line-height: 1.32; letter-spacing: -0.025em; font-weight: 800; margin: 10px 0 12px; }
.feature p { color: var(--muted); margin: 0 0 14px; }
.points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 26px; font-size: 16px; }
.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--primary-fill); }
.points li.blank::before { border-style: dashed; border-color: var(--muted); }

/* 약속 */
.promise { padding: 72px 0; background: linear-gradient(180deg, transparent, var(--primary-tint) 18%, var(--primary-tint) 82%, transparent); }
.cards { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border-radius: 24px; padding: 22px 22px 20px; box-shadow: 0 1px 2px var(--shadow-near), 0 12px 28px -18px var(--shadow-far); border: 1px solid var(--hairline); }
.card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.015em; }
.card p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.65; }
.card a { font-size: 15px; font-weight: 600; }
.notice { margin-top: 22px; display: grid; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 18px 20px; }
@media (min-width: 720px) { .notice { grid-template-columns: auto 1fr; padding: 20px 24px; } }
.notice img { width: 72px; height: 72px; }
.notice p { margin: 0; font-size: 15px; color: var(--muted); }
.notice strong { color: var(--text); display: block; font-size: 16px; margin-bottom: 2px; }

/* 마무리 */
.closing { padding: 72px 0 80px; text-align: center; }
.closing img { width: 140px; margin: 0 auto 10px; }
.closing h2 { margin-bottom: 10px; }
.closing p { color: var(--muted); margin: 0 auto 24px; max-width: 30em; }
.closing .cta { justify-content: center; }

/* 바닥 */
footer { border-top: 1px solid var(--hairline); padding: 28px 0 44px; font-size: 14px; color: var(--muted); }
.foot { display: grid; gap: 14px; }
@media (min-width: 720px) { .foot { grid-template-columns: 1fr auto; align-items: start; } }
.foot .brand svg { width: 96px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--primary); text-decoration: underline; }
.foot .fine { margin: 0; line-height: 1.6; }

/* 스크롤하면 천천히 — 자바스크립트가 있을 때만 숨긴 채 시작 */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
/* 다크에서 밝은 화면 캡처가 튀지 않게 살짝 낮춤(다크 캡처가 있는 것은 그대로 다크) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone img { filter: brightness(.92); } }
