/* 마로 패밀리 토큰 (seneca_maro aptitude/TOS globals.css와 같은 계열). pen 세룰리안 #2d7dba가 가족 색. */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy.css");
@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@500;600&display=swap");

:root {
  --paper: #f3f7fb;
  --card: #ffffff;
  --ink: #1e2b36;
  --muted: #55636e;
  --faint: #647280;            /* 4.6:1 on --paper (was #82919b, 3.0:1) */
  --line: #dfe5ec;
  --accent: #2d7dba;
  --accent-dim: #1b567e;
  --accent-strong: #2a74ad;    /* buttons and small accent text: 5.0:1 with white (the family blue is 4.4:1) */
  --accent-ink: #ffffff;
  --accent-soft: #ddebf7;
  --sun: #ffd66b;
  --good: #1f7a4d;
  --good-soft: #e8f5ee;
  --warn: #9a5a12;
  --warn-soft: #fdf1dc;
  --bad: #b3362b;
  --bad-soft: #fbeceb;
  --filler: #ffe9a8;
  --radius: 16px;
  --serif: "Paperlogy", "Pretendard Variable", Pretendard, sans-serif;
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(27, 86, 126, .05), 0 12px 32px -20px rgba(27, 86, 126, .28);
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  /* The room: the deep ink of an interview room with one warm light on the speaker (--sun). */
  --room: #15212c;
  --room-2: #1e2d3a;
  --room-3: #2a3b4a;
  --room-line: rgba(238, 243, 247, .12);
  --room-ink: #eef3f7;
  --room-muted: #a9b8c5;          /* 7.6:1 on --room */
  --sun-ink: #1e2b36;
}

* { box-sizing: border-box; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.65 var(--sans);
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.3; margin: 0 0 .45em; letter-spacing: -0.02em; word-break: keep-all; }
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 { font-size: 16px; font-family: var(--sans); font-weight: 600; }
a { color: var(--accent-dim); }
.wrap { max-width: 980px; margin: 0 auto; padding: 28px 16px 64px; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }
.hidden { display: none !important; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 18px; }

label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 5px; }
input[type=text], input[type=password], select, textarea {
  width: 100%;
  font: inherit;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { margin-top: 4px; }

button, .btn {
  font: 500 14px var(--sans);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
button:hover, .btn:hover { border-color: #b9c6d3; }
button.primary, .btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
button.primary:hover, .btn.primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); }
button.big { font-size: 16px; padding: 13px 26px; border-radius: 10px; }
button.danger { color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 3px 10px; border-radius: 99px;
  background: #e9eff5; color: var(--muted);
}
.pill.ok { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px;
  z-index: 50;
}
.error-box { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 12px 14px; }

.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 17px var(--serif); color: var(--ink); text-decoration: none; }
.logo img { width: 28px; height: 28px; }
.logo small { font: 500 12px var(--sans); color: var(--muted); margin-left: 2px; }
.pilot { font: 600 11px var(--sans); color: var(--accent-dim); background: var(--accent-soft); padding: 2px 8px; border-radius: 99px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 26px; }
.drop {
  border: 1.5px dashed #b9c6d3; border-radius: 12px; padding: 22px; text-align: center; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice label {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 400; margin: 0;
  background: #fff;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice b { display: block; font-size: 14px; }
.choice span { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .choice { grid-template-columns: 1fr; } }

.choice.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .choice.four { grid-template-columns: 1fr 1fr; } }
.hl { background: linear-gradient(transparent 58%, var(--sun) 58%); }
footer.site { max-width: 980px; margin: 0 auto; padding: 0 16px 40px; font-size: 12px; color: var(--faint); }
.inapp { background: var(--warn-soft); color: #5c3a09; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.6; margin: 14px 0; }
.inapp button { margin-top: 8px; display: flex; }
.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; }
.error-box .row { margin-top: 10px; }
/* Keyboard focus on the choice cards (the radios themselves are visually hidden). */
.choice label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

/* iOS zooms into any field under 16px when it's tapped. */
@media (max-width: 640px) { input[type=text], input[type=password], select, textarea { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none !important; } }

/* ── Bands: the dark "room" surface used for page heads (landing, home, report) ── */
.band { background: var(--room); color: var(--room-ink); position: relative; overflow: hidden; }
.band::before { /* one warm light, top right: the lamp over the interview table */
  content: ""; position: absolute; width: 620px; height: 620px; right: -220px; top: -330px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 107, .16), rgba(255, 214, 107, 0)); pointer-events: none; }
.band > * { position: relative; }
.band .muted, .band .small.muted { color: var(--room-muted); }
.band a:not(.btn) { color: #cfe3f3; }
.band .logo { color: var(--room-ink); }
.band .pilot { background: rgba(255, 214, 107, .16); color: var(--sun); }
.band .btn:not(.sun):not(.primary), .band button:not(.sun):not(.primary):not(.kakao) { background: transparent; color: var(--room-ink); border-color: var(--room-line); }
.band .btn:not(.sun):not(.primary):hover, .band button:not(.sun):not(.primary):not(.kakao):hover { border-color: rgba(238, 243, 247, .35); }
.band-inner { max-width: 980px; margin: 0 auto; padding: 22px 16px 34px; }
.band .topbar { margin-bottom: 0; }

button.sun, .btn.sun { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); font-weight: 700; }
button.sun:hover, .btn.sun:hover { background: #ffcd4a; border-color: #ffcd4a; }
button.sun:disabled { opacity: .55; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.band :focus-visible, .room-dark :focus-visible { outline-color: var(--sun); }

.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.eyebrow-q { font: 600 12px var(--mono); color: var(--accent-dim); letter-spacing: .02em; }

/* Level glyph: three bars, filled up to the pressure level (the same mark on landing, home and report). */
.lv { display: inline-flex; gap: 2px; vertical-align: -1px; margin-right: 6px; }
.lv i { width: 4px; height: 12px; border-radius: 2px; background: var(--accent-soft); }
.lv i.on { background: var(--accent-strong); }
.lv.l3 i.on { background: #c9711b; }

.page-head .band-inner { max-width: 640px; padding-bottom: 30px; }
.page-head h1 { font-size: clamp(26px, 4vw, 32px); margin: 30px 0 8px; letter-spacing: -0.02em; }
.page-head p { margin: 0; color: var(--room-muted); max-width: 56ch; }
.page-head + .wrap { padding-top: 24px; }
