/* 16번 THE PLATFORM styles.css의 라이트/다크 토큰 원값. 2026-09-06 R16/R18.
   변경은 곡률 6/10/14/20 → 4/6/8/8px뿐. 아래 의미 토큰은 원값을 참조한다.
   브리프 지정에 따라 tokens.css 역할을 styles.css 한 파일에 모은다. */
:root {
  color-scheme: light;
  --surface: #f4f7fb; --surface-dim: #e3ebf4; --card: #ffffff; --cap: #f8fafc;
  --cont-low: #f4f8fc; --cont: #eaf2fb; --cont-high: #e3edf7;
  --grid-head: #eaf4fc;
  --ink: #0f1b2e; --sub: #41506a; --line: #cdd9e6; --line2: #6c7d92;
  --primary: #11243d; --tint: #00a3c4; --info: #006398;
  --good: #16a34a; --amber: #f59e0b; --bad: #d33a3a;
  --navy-grad: linear-gradient(135deg, #0f1626 0%, #1a2338 100%);
  --sky-grad-a: linear-gradient(90deg, #ffffff 0%, #ddebf8 100%);
  --sky-grad-b: linear-gradient(90deg, #ddebf8 0%, #bfd9ef 100%);
  --gold: #d4a017;
  --brand-ink: #0b0f18;
  --brand-edge: drop-shadow(0 1px 1px rgba(19,27,46,.18));
  --brand-sheen: #ffd257;
  --elev: 0 1px 2px rgba(19,27,46,.05), 0 3px 10px rgba(19,27,46,.08);
  --shadow-card: 0 4px 16px rgba(19,27,46,.13), 0 0 0 1px rgba(19,27,46,.05);
  --mono: 'Cascadia Code', Consolas, 'D2Coding', monospace;
  --w-hi: rgba(255,255,255,.85);
  --w-mid: rgba(255,255,255,.72);
  --w-lo: rgba(255,255,255,.6);
  --w-brd: rgba(255,255,255,.9);
  --w-solid: #ffffff;
  --w-line: rgba(148,163,184,.4);
  --w-line2: rgba(148,163,184,.28);
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 8px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(19,27,46,.05), 0 3px 10px rgba(19,27,46,.08);
  --sh-2: 0 6px 18px rgba(19,27,46,.12);
  --sh-3: 0 12px 34px rgba(19,27,46,.2);
  --sh-float: 0 20px 60px rgba(19,27,46,.4);
  --blur-1: 10px; --blur-2: 16px;
  --shell-bg: linear-gradient(178deg, #c3daf3 0%, #d8e8f7 26%, #e9f2fb 50%, #f5f1e8 76%, #fbe9dc 100%);
  --shell-glow: radial-gradient(ellipse 70% 45% at 78% 4%, rgba(0,163,196,.14), transparent 70%),
                radial-gradient(ellipse 95% 42% at 42% 104%, rgba(242,168,116,.22), transparent 72%);
  --rail-bg: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.5) 100%);
  --chat-bg: var(--rail-bg);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #0b1120; --surface-dim: rgba(255,255,255,.1); --card: #131f36; --cap: #16233c;
  --cont-low: rgba(255,255,255,.035); --cont: rgba(255,255,255,.07); --cont-high: rgba(255,255,255,.11);
  --grid-head: rgba(255,255,255,.06);
  --ink: #e9f0fb; --sub: #94a8c6; --line: rgba(255,255,255,.13); --line2: #7d8fa8;
  --primary: #3b82f6; --tint: #22d3ee; --info: #2f7fd6;
  --good: #34d399; --amber: #fbbf24; --bad: #f87171;
  --navy-grad: linear-gradient(135deg, #16243d 0%, #22334f 100%);
  --sky-grad-a: linear-gradient(90deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 100%);
  --sky-grad-b: linear-gradient(90deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,.08) 100%);
  --gold: #e0b445;
  --brand-ink: #060b12;
  --brand-edge: drop-shadow(0 1px 0 rgba(255,255,255,.18));
  --brand-sheen: #fffaea;
  --elev: 0 1px 2px rgba(0,0,0,.3), 0 3px 10px rgba(0,0,0,.35);
  --shadow-card: 0 4px 16px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
  --w-hi: rgba(255,255,255,.1);
  --w-mid: rgba(255,255,255,.07);
  --w-lo: rgba(255,255,255,.05);
  --w-brd: rgba(255,255,255,.1);
  --w-solid: #16233c;
  --w-line: rgba(255,255,255,.15);
  --w-line2: rgba(255,255,255,.1);
  --sh-1: 0 1px 2px rgba(0,0,0,.3), 0 3px 10px rgba(0,0,0,.35);
  --sh-2: 0 6px 18px rgba(0,0,0,.4);
  --sh-3: 0 12px 34px rgba(0,0,0,.5);
  --sh-float: 0 20px 60px rgba(0,0,0,.65);
  --shell-bg: linear-gradient(178deg, #050f1d 0%, #0a2135 20%, #123f5b 44%, #22505f 64%, #3a4a48 82%, #55453c 100%);
  --shell-glow: radial-gradient(ellipse 70% 45% at 78% 4%, rgba(34,211,238,.13), transparent 70%),
                radial-gradient(ellipse 95% 38% at 42% 106%, rgba(226,146,86,.16), transparent 72%);
  --rail-bg: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.025) 100%);
  --chat-bg: linear-gradient(180deg, rgba(10,18,34,.9) 0%, rgba(13,23,44,.84) 100%);
}

/* Homepage semantic tokens: shared values live here, never in page markup. */
:root {
  --font-body: 'Noto Sans KR', sans-serif;
  --font-brand: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
  --info-text: var(--info);
  --muted-text: var(--sub);
  --button-ink: var(--card);
  --panel-bg: var(--w-mid);
  --elev-card: var(--shadow-card);
  --btn-solid-shadow: inset 0 1px 0 var(--w-brd), 0 2px 0 var(--w-line), var(--sh-1);
  --btn-solid-shadow-hover: inset 0 1px 0 var(--w-brd), 0 2px 0 var(--w-line), var(--sh-2);
  --btn-secondary-shadow: var(--sh-1);
  --control-focus-ring: inset 0 0 5px var(--tint);
  --focus-color: var(--info-text);
  --primaryBright: var(--tint);
  --primaryDeep: var(--ink);
  --brand-gradient: linear-gradient(135deg, var(--primaryBright), var(--primary), var(--primaryDeep));
  --content-width: 1180px;
  --page-gutter: clamp(20px, 4vw, 48px);
  --section-gap: 80px;
  --control-height: 48px;
  --touch-target: 44px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --motion-fast: 120ms;
  --press-offset: 2px;
  --focus-width: 2px;
  --focus-offset: 3px;
}
:root[data-theme="dark"] {
  --info-text: var(--ink);
  --muted-text: var(--ink);
  --button-ink: var(--surface);
  --panel-bg: var(--chat-bg);
}

/* Layout and shared surfaces — ordinary document scroll, no clipped overflow. */
* { box-sizing: border-box; }
html { min-width: 0; background: var(--surface); scroll-padding-top: var(--space-6); }
body { margin: 0; min-width: 0; min-height: 100vh; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--shell-glow), var(--shell-bg); }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button { cursor: pointer; }
button, input, fieldset { min-width: 0; }
fieldset { padding: 0; margin: 0; border: 0; }
h1, h2, h3, p { margin: 0; }
ul, ol { padding: 0; margin: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: var(--focus-offset); }
.wrap { width: min(100% - var(--page-gutter) * 2, var(--content-width)); margin-inline: auto; }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { display: inline-flex; align-items: center; gap: var(--space-1); font-family: var(--font-brand); font-size: 25px; font-weight: 800; letter-spacing: -1.1px; text-decoration: none; min-width: 0; }
.brand-dot { align-self: flex-end; margin-bottom: 11px; width: 6px; height: 6px; background: var(--tint); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: var(--touch-target); padding: 10px 20px; border: 0; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; text-decoration: none; transition: box-shadow var(--motion-fast), opacity var(--motion-fast), transform var(--motion-fast); }
.button-primary { background: var(--primary); color: var(--button-ink); box-shadow: var(--btn-solid-shadow); }
.button-quiet { background: var(--w-lo); color: var(--ink); box-shadow: var(--btn-secondary-shadow); }
.button:hover:not(:disabled) { box-shadow: var(--btn-solid-shadow-hover); }
.button:active:not(:disabled) { transform: translateY(var(--press-offset)); box-shadow: none; }
.button:disabled { cursor: not-allowed; opacity: .58; box-shadow: none; transform: none; transition: none; }
.button-large { min-height: 52px; padding-inline: var(--space-6); font-size: 16px; }
.button-wide { width: 100%; min-height: var(--control-height); }
.theme-toggle { padding-inline: var(--space-3); }
.theme-toggle > span:first-child { font-size: 20px; }
.home-link { font-size: 14px; padding-block: 12px; }
.glass { background: var(--panel-bg); box-shadow: var(--elev-card); border: 0; border-radius: var(--r-md); }
.eyebrow { font-family: var(--font-brand); font-weight: 700; letter-spacing: 1.6px; font-size: 12px; color: var(--info-text); }
.caption, .muted, .field-hint { color: var(--muted-text); }
.caption { font-size: 13px; line-height: 1.8; }
.muted { font-size: 15px; }
.page-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; letter-spacing: -1.5px; font-size: clamp(28px, 3.7vw, 50px); font-weight: 800; }
.hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: var(--space-12); padding-block: 60px var(--section-gap); }
.hero > *, .section-heading > *, .form-grid > *, .signup-layout > * { min-width: 0; }
.hero-content > .eyebrow { margin-bottom: var(--space-6); display: flex; align-items: center; gap: var(--space-2); }
.status-dot { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--tint); flex-shrink: 0; }
.hero-statement { margin-top: var(--space-3); font-size: clamp(28px, 3.1vw, 42px); font-weight: 500; line-height: 1.4; letter-spacing: -1.3px; }
.identity { margin-top: var(--space-6); font-size: 15px; font-weight: 700; max-width: 35em; word-break: keep-all; overflow-wrap: anywhere; }
.hero-description { margin-top: var(--space-3); color: var(--muted-text); font-size: 15px; }
.hero-action { margin-top: var(--space-8); display: flex; align-items: flex-start; flex-direction: column; gap: var(--space-3); }
.agent-preview { padding: var(--space-8); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-6); }
.badge { padding: 3px 8px; border-radius: var(--r-xs); background: var(--cont); font-size: 12px; color: var(--sub); white-space: nowrap; }
.agent-preview h2 { font-size: 23px; letter-spacing: -.7px; margin-bottom: var(--space-2); }
.prompt-list { display: grid; gap: var(--space-3); margin-block: var(--space-6); }
.prompt-list li { display: flex; gap: var(--space-3); align-items: center; background: var(--w-lo); border-radius: var(--r-sm); padding: 15px 14px; font-size: 15px; font-weight: 500; }
.prompt-number { font-family: var(--font-brand); color: var(--sub); font-size: 12px; }
.prompt-arrow { color: var(--tint); margin-left: auto; font-size: 18px; }
.example-note { padding-top: var(--space-1); }
.screens-section { padding-bottom: var(--section-gap); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-6); }
.section-heading h2 { margin-top: var(--space-2); font-size: 25px; letter-spacing: -.8px; }
.screen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.screen-card { min-width: 0; padding: var(--space-3); }
.screen-placeholder { position: relative; min-height: 196px; padding: var(--space-5); background: var(--cont-low); border-radius: var(--r-xs); }
.placeholder-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.placeholder-top span { width: 25%; height: 7px; background: var(--line); }
.placeholder-top span:last-child { width: 12%; background: var(--tint); opacity: .4; }
.placeholder-columns { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
.placeholder-columns i { height: 36px; flex: 1; background: var(--cont-high); border-radius: var(--r-xs); }
.placeholder-lines { display: grid; gap: var(--space-2); }
.placeholder-lines i { display: block; height: 6px; width: 100%; background: var(--line); opacity: .65; }
.placeholder-lines i:nth-child(2) { width: 80%; }
.placeholder-lines i:nth-child(3) { width: 60%; }
.progress-lines { gap: var(--space-3); }
.progress-lines i { height: 12px; background: var(--cont-high); }
.progress-lines i:first-child { background: var(--brand-gradient); opacity: .5; }
.progress-lines i:last-child { width: 40%; }
.placeholder-label { position: absolute; bottom: 12px; right: 16px; font-size: 12px; color: var(--sub); }
.screen-caption { padding: var(--space-5) var(--space-2) var(--space-3); }
.screen-number { font-family: var(--font-brand); font-size: 11px; font-weight: 700; letter-spacing: 1.1px; color: var(--sub); }
.screen-caption h3 { font-size: 19px; margin-block: var(--space-2) var(--space-1); }
.screen-caption p { font-size: 14px; color: var(--sub); }
.site-footer { padding-block: var(--space-8); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); box-shadow: 0 -1px 0 var(--w-line2); font-size: 13px; }
.footer-brand { font-size: 18px; }
.site-footer p { margin-top: var(--space-2); color: var(--muted-text); }
.site-footer > a { color: var(--ink); padding-block: var(--space-3); }
.utility-notice { font-size: 13px; padding-bottom: var(--space-4); }

/* Signup: no modal, no nested scroll, every field keeps its visible label. */
.signup-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; padding-block: var(--space-10) var(--section-gap); align-items: start; }
.signup-intro .page-title { font-size: 32px; margin-top: var(--space-4); }
.signup-statement { margin-block: var(--space-5) var(--space-4); font-size: 27px; line-height: 1.5; letter-spacing: -.8px; }
.steps { display: grid; gap: var(--space-6); margin-top: var(--space-10); }
.steps li { display: flex; align-items: flex-start; gap: var(--space-4); color: var(--muted-text); }
.steps li[aria-current="step"] { color: var(--ink); }
.step-index { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--r-xs); background: var(--w-lo); font-family: var(--font-brand); font-weight: 700; font-size: 13px; }
.steps li[aria-current="step"] .step-index { background: var(--primary); color: var(--button-ink); }
.steps strong { font-size: 15px; }
.steps p { font-size: 13px; margin-top: var(--space-1); }
.signup-panel { padding: var(--space-8); }
.form-heading { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: baseline; justify-content: space-between; margin-bottom: var(--space-6); }
.form-heading h2, .verification h2 { font-size: 20px; letter-spacing: -.4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
.field-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field label { font-size: 14px; font-weight: 700; }
.field input { display: block; width: 100%; min-height: var(--control-height); border: 0; border-radius: var(--r-xs); padding: 10px 12px; background: var(--w-hi); color: var(--ink); box-shadow: inset 0 -1px 0 var(--w-line); font-size: 16px; }
.field input::placeholder { color: var(--sub); opacity: 1; }
.field input:focus { box-shadow: var(--control-focus-ring); }
.field input[aria-invalid="true"] { box-shadow: inset 0 -2px 0 var(--bad); }
.field input[readonly], .field input:disabled { background: var(--cont-low); color: var(--sub); }
.field-hint, .field-error { font-size: 12px; line-height: 1.6; }
.field-error { color: var(--bad); background: var(--card); padding: var(--space-1) var(--space-2); border-radius: var(--r-xs); }
.field-error:empty { display: none; }
.form-action { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.form-status { min-height: 26px; font-size: 13px; color: var(--muted-text); margin-top: var(--space-4); overflow-wrap: anywhere; }
.notice { padding: var(--space-4); background: var(--cont); border-radius: var(--r-xs); color: var(--ink); font-size: 14px; margin-bottom: var(--space-5); overflow-wrap: anywhere; }
.error-message { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--r-xs); background: var(--card); color: var(--bad); box-shadow: inset 3px 0 0 var(--bad); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.verification { margin-top: var(--space-8); }
.verification h2 { margin-bottom: var(--space-4); }
.verification .button { margin-top: var(--space-5); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); text-align: center; padding: var(--space-12) var(--space-6); }
.empty-state-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-md); background: var(--cont); color: var(--info-text); font-size: 26px; }
.empty-state h2 { font-size: 24px; letter-spacing: -.8px; }
.complete .button { margin-top: var(--space-3); }
.completion-notice { font-size: 18px; font-weight: 700; }
.privacy-main { padding-block: var(--space-12) var(--section-gap); min-height: 65vh; }
.privacy-main .page-title { font-size: clamp(22px, 4vw, 32px); max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px 16px; background: var(--card); color: var(--ink); box-shadow: var(--sh-2); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
@media (max-width: 900px) {
  :root { --section-gap: 56px; }
  .hero { gap: var(--space-6); padding-top: var(--space-8); }
  .agent-preview { padding: var(--space-6); }
  .signup-layout { gap: var(--space-8); grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); }
  .signup-panel { padding: var(--space-6); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .screen-grid { gap: var(--space-3); }
}
@media (max-width: 640px) {
  .site-header { min-height: 88px; gap: var(--space-2); }
  .brand { font-size: 21px; }
  .brand-dot { margin-bottom: 8px; }
  .header-actions { gap: var(--space-2); }
  .header-actions .button { padding-inline: var(--space-3); font-size: 13px; gap: var(--space-2); }
  .hero, .signup-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
  .hero { padding-top: var(--space-6); }
  .hero-content > .eyebrow { font-size: 10px; letter-spacing: 1.3px; }
  .hero .page-title { font-size: 40px; }
  .hero-statement { font-size: 30px; }
  .agent-preview { padding: var(--space-6) var(--space-5); }
  .agent-preview h2 { font-size: 22px; }
  .prompt-list li { padding: 14px 10px; font-size: 14px; gap: var(--space-2); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: var(--space-2); }
  .section-heading h2 { font-size: 23px; }
  .screen-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .screen-placeholder { min-height: 180px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: var(--space-2); }
  .signup-layout { padding-top: var(--space-5); gap: var(--space-8); }
  .signup-statement { font-size: 25px; }
  .signup-statement br { display: none; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-6); }
  .steps li { flex-direction: column; gap: var(--space-2); }
  .steps strong { font-size: 13px; }
  .steps p { display: none; }
  .signup-panel { padding: var(--space-6) var(--space-5); }
  .empty-state { padding-inline: var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
