/* chatela.ai: 밖에서 불러오는 글꼴·스크립트·추적 없음. CSP 때문에 모양은 전부 여기에 둔다 */
:root {
  --bg: #F7F8FB; --bg2: #EEF2F9; --surface: #FFFFFF; --ink: #141A2E; --muted: #55607A; --line: #E2E6EF; --soft: #EEF1FB;
  --accent: #2F55C4; --ga: #3B4FD0; --gb: #1E8C80; --gold: #E9A92A; --ok: #1E9A6A;
  --me-a: #3B4FD0; --me-b: #2A63B5; --screen: #FFFFFF; --ella: #F0F2F8; --frame: #1A2033;
  --shadow: 0 1px 2px rgba(20, 26, 46, .04), 0 8px 28px rgba(20, 26, 46, .06);
  --shadow-lg: 0 30px 70px -20px rgba(30, 50, 140, .35), 0 12px 24px -12px rgba(20, 26, 46, .25);
  --radius: 20px; --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Pretendard", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1120; --bg2: #111731; --surface: #151B2E; --ink: #EEF1F8; --muted: #A3ACC3; --line: #262E45; --soft: #1D2544;
    --accent: #9DAEFF; --ga: #9DAEFF; --gb: #5FD3C0; --ok: #4FD69C;
    --screen: #0F1426; --ella: #1D2440; --frame: #2A3150;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1120; --bg2: #111731; --surface: #151B2E; --ink: #EEF1F8; --muted: #A3ACC3; --line: #262E45; --soft: #1D2544;
  --accent: #9DAEFF; --ga: #9DAEFF; --gb: #5FD3C0; --ok: #4FD69C;
  --screen: #0F1426; --ella: #1D2440; --frame: #2A3150;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* 위 막대 */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand:hover { text-decoration: none; }
nav.links { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav.links a { color: var(--muted); }
nav.links a:hover { color: var(--ink); text-decoration: none; }
nav.links a.lang { color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; background: var(--surface); }

/* 첫 화면 */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ga) 16%, transparent), transparent 70%), radial-gradient(closest-side at 70% 80%, color-mix(in srgb, var(--gb) 14%, transparent), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: .01em; margin-bottom: 18px; }
h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.06; letter-spacing: -.035em; font-weight: 750; text-wrap: balance; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--ga), var(--gb)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 1.9vw, 20px); color: var(--muted); max-width: 32em; margin-top: 22px; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; }
.pill.solid { background: var(--ink); color: var(--bg); }
.pill.line { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.pill.light { background: #FFFFFF; color: #1F2E8A; }
.pill:hover { text-decoration: none; opacity: .9; }
.soon { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent); }

/* 폰 모양 */
.phone { margin: 0 auto; width: 100%; max-width: 340px; padding: 10px; border-radius: 48px; background: var(--frame); box-shadow: var(--shadow-lg); }
.screen { background: var(--screen); border-radius: 39px; overflow: hidden; padding-bottom: 18px; }
.bar { height: 34px; display: flex; justify-content: center; align-items: center; }
.notch { width: 92px; height: 24px; border-radius: 999px; background: var(--frame); }
.who { display: flex; align-items: center; gap: 10px; padding: 6px 18px 12px; border-bottom: 1px solid var(--line); }
.who img { width: 34px; height: 34px; border-radius: 10px; }
.who b { display: block; font-size: 15px; line-height: 1.2; }
.who span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.thread { padding: 16px 14px 0; display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; }
.msg p { text-wrap: pretty; max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; }
.msg.me { justify-content: flex-end; }
.msg.me p { background: linear-gradient(135deg, var(--me-a), var(--me-b)); color: #FFFFFF; border-bottom-right-radius: 6px; }
.msg.ella p { background: var(--ella); color: var(--ink); border-bottom-left-radius: 6px; }
.msg + .msg.me, .chip + .msg.me { margin-top: 6px; }
.chip { align-self: flex-start; max-width: 92%; display: flex; align-items: center; gap: 7px; font-size: 12.5px; line-height: 1.35; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; }
.chip .act { margin-left: 4px; padding-left: 8px; border-left: 1px solid var(--line); color: var(--accent); font-weight: 600; white-space: nowrap; }
.cico { flex: none; display: inline-grid; place-items: center; color: var(--accent); }
.cico svg { width: 15px; height: 15px; }

/* 구역 공통 */
section { padding: 80px 0; }
section h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.025em; line-height: 1.18; text-wrap: balance; }
section .sub { color: var(--muted); margin: 10px 0 40px; max-width: 40em; font-size: 18px; }
h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.moment > p, .feat p, .note p, .node p, .band p, .hownote span, section .sub { text-wrap: pretty; }

/* 자잘한 일 */
.moments { background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.moment { display: flex; flex-direction: column; min-width: 0; }
.moment h3 { margin: 20px 4px 6px; }
.moment > p { margin: 0 4px; color: var(--muted); font-size: 16px; }
.demo { flex: 1; display: flex; flex-direction: column; gap: 8px; background: var(--screen); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-height: 268px; }
.demo .msg p { max-width: 90%; }
.panel { display: flex; flex-direction: column; }
.ph { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mrow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mrow p { font-size: 14.5px; line-height: 1.4; }
.mrow span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.acts { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; }
.acts span { font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--soft); border-radius: 999px; padding: 4px 11px; }
.confirm { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface); margin-top: 4px; }
.confirm .ch { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.confirm .ev { margin-top: 4px; font-size: 14.5px; line-height: 1.4; }
.confirm .ev b { display: block; }
.confirm .ev span { color: var(--muted); font-size: 13.5px; }
.btns { display: flex; gap: 8px; margin-top: 12px; }
.btn { flex: 1; text-align: center; font-size: 14px; font-weight: 600; padding: 8px 6px; border-radius: 10px; background: var(--soft); color: var(--ink); }
.btn.yes { background: var(--me-a); color: #FFFFFF; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.srcs span { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--surface); }
.srcs span:first-child { color: var(--accent); }
.demo .meta { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }

/* 기능 */
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.feat h3 { margin: 16px 0 6px; }
.feat p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--accent); flex: none; }

/* 작동 방식 */
.how { background: var(--bg2); }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr) 92px minmax(0, 1fr) 92px minmax(0, 1fr); align-items: stretch; }
.node { text-align: center; min-width: 0; padding: 22px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.node .ico { margin: 0 auto 12px; }
.node h3 { font-size: 16.5px; }
.node p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.node.home { border-color: color-mix(in srgb, var(--ga) 45%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ga) 10%, transparent); }
.node.home .ico { background: linear-gradient(135deg, #3B4FD0, #1E9A8C); color: #FFFFFF; }
.link { position: relative; min-height: 64px; }
.link::before { content: ""; position: absolute; left: 8px; right: 9px; top: 50%; border-top: 2px dashed color-mix(in srgb, var(--ga) 50%, var(--line)); }
.link::after { content: ""; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid color-mix(in srgb, var(--ga) 65%, var(--line)); border-right: 2px solid color-mix(in srgb, var(--ga) 65%, var(--line)); transform: rotate(45deg); }
.link span { position: absolute; left: 2px; right: 2px; bottom: calc(50% + 8px); font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--muted); }
.hownote { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; color: var(--muted); font-size: 15px; max-width: 46em; }
.hownote .cico { margin-top: 4px; }

/* 미리 알려 드릴 것 */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.note { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 22px; }
.note p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* 끝 */
.end { padding-top: 8px; padding-bottom: 72px; }
.band { text-align: center; color: #FFFFFF; background: radial-gradient(120% 140% at 10% 0%, #4A5EE0 0%, transparent 55%), linear-gradient(120deg, #3346C4, #1C5E9E 55%, #17796F); border-radius: 28px; padding: 56px 24px; }
.band img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 10px 30px rgba(0, 0, 0, .25); }
.band h2 { margin-top: 20px; color: #FFFFFF; }
.band p { margin: 12px auto 28px; max-width: 30em; color: #FFFFFF; font-size: 18px; }

/* 아래 */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.fbrand { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; }
.fbrand img { width: 22px; height: 22px; border-radius: 6px; }
.fbrand b { color: var(--ink); margin-right: 4px; }
.flinks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.flinks a { color: var(--muted); }
.flinks a:hover { color: var(--ink); }
.copy { flex-basis: 100%; font-size: 13px; }

/* 개인정보 */
.doc { max-width: 46em; padding-top: 56px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); }
.doc h2 { font-size: 21px; margin: 36px 0 8px; letter-spacing: -.01em; }
.doc ul { padding-left: 1.2em; margin: 0; }
.doc li { margin: 6px 0; }
.doc .updated { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* 넓은 화면: 세 장면의 제목 줄을 맞춘다 */
@media (min-width: 901px) {
  .mgrid { grid-template-rows: auto auto auto; row-gap: 0; }
  .moment { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
}

/* 좁은 화면 */
@media (max-width: 1000px) {
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .node { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; text-align: left; padding: 18px; }
  .node .ico { margin: 0; grid-row: span 2; }
  .node p { margin-top: 2px; }
  .link { min-height: 60px; margin-left: 39px; }
  .link::before { left: 0; right: auto; top: 6px; bottom: 9px; margin-left: -1px; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--ga) 50%, var(--line)); }
  .link::after { left: 0; right: auto; top: auto; bottom: 8px; margin: 0 0 0 -5px; transform: rotate(135deg); }
  .link span { left: 14px; right: auto; bottom: auto; top: 50%; transform: translateY(-50%); text-align: left; white-space: nowrap; }
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .mgrid, .notes { grid-template-columns: minmax(0, 1fr); }
  .mgrid { max-width: 520px; }
  .demo { min-height: 0; }
}
@media (max-width: 720px) {
  nav.links a:not(.lang) { display: none; }
  section { padding: 60px 0; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .feat { display: flex; gap: 16px; padding: 18px; }
  .feat h3 { margin-top: 0; }
  .band { padding: 44px 20px; border-radius: 22px; }
  .end { padding-bottom: 56px; }
}
@media (max-width: 380px) {
  .cta .pill { flex: 1 1 100%; }
  .phone { border-radius: 42px; padding: 8px; }
  .screen { border-radius: 35px; }
}

/* 한국어: 낱말 중간에서 줄을 바꾸지 않는다 */
:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ko) h1 { letter-spacing: -.04em; line-height: 1.16; }
:lang(ko) section h2 { letter-spacing: -.03em; }

/* The "coming soon" page (site-soon/, until launch) */
.soon { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 24px; text-align: center; }
.soon-mark { border-radius: 18px; }
.soon h1 { font-size: 34px; margin: 6px 0 0; }
.soon-line { font-size: 18px; margin: 0; max-width: 30em; }
.soon-note { font-size: 16px; margin: 0; opacity: 0.7; }
.soon-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 14px; margin: 18px 0 0; }
