/* ============================================================
   Aiseen — Design Tokens
   Tone: clean sky / restrained mint
   This file is the single source of truth for shared UI styling.
   ============================================================ */
:root{
  /* ── Surface ── */
  --bg:#F7FAFC;            /* page */
  --surface:#ffffff;       /* card */
  --surface-2:#EDF4FA;     /* nested / hover */
  --surface-3:#E7F0FF;     /* selected */
  --line:#DCE7F2;          /* hairline border */
  --line-2:#DCE7F2;        /* stronger border */

  /* ── Ink ── */
  --ink:#0F172A;
  --ink-2:#0F172A;
  --ink-3:#64748B;         /* muted */
  --ink-4:#64748B;         /* faint */

  /* ── Brand palette ── */
  --accent:#2D66F5;
  --accent-2:#12B5CB;
  --accent-press:#2456D6;
  --accent-hover:#2456D6;
  --accent-soft:rgba(47,107,255,.10);
  --accent-line:rgba(47,107,255,.24);
  --secondary:#12B5CB;
  --highlight:#42D6A4;

  /* ── Semantic (score states only — never as decoration) ── */
  --good:#42D6A4;
  --warn:#d97706;
  --bad:#dc2626;

  /* ── Typography ── */
  --font:"Pretendard","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;
  --tracking-tight:-.03em;   /* headlines */
  --tracking-snug:-.02em;    /* subheads */
  --tracking-body:-.01em;    /* body */
  --tracking-wide:.20em;     /* eyebrow / label caps */

  /* ── Radius (2단계: 컨트롤 12 / 카드 16) ── */
  --r-xs:8px;
  --r-sm:12px;   /* 버튼·입력 등 컨트롤 */
  --r-md:16px;   /* 카드 */
  --r-lg:20px;
  --r-pill:999px;

  /* ── Font weight scale (위계: 400 본문 · 600 강조 · 700 헤드 · 800 타이틀/숫자) ── */
  --fw-regular:400;
  --fw-medium:500;
  --fw-semibold:600;
  --fw-bold:700;
  --fw-black:800;

  /* ── Focus outline (키보드 접근성) ── */
  --focus-outline:rgba(47,107,255,.46);

  /* ── Spacing scale (4pt) ── */
  --s-1:4px;  --s-2:8px;  --s-3:12px; --s-4:16px;
  --s-5:20px; --s-6:24px; --s-7:32px; --s-8:40px;
  --s-9:56px; --s-10:72px; --s-11:96px; --s-12:128px;

  /* ── Layout ── */
  --maxw:1140px;
  --maxw-narrow:560px;
  --gutter:20px;

  /* ── Elevation / motion ── */
  --shadow:0 6px 18px rgba(51,51,51,.04);
  --ease:.16s cubic-bezier(.4,0,.2,1);
}

*{box-sizing:border-box;margin:0;padding:0}
html{
  -webkit-text-size-adjust:100%;
  scrollbar-gutter:stable;
  scroll-behavior:smooth;
  scroll-padding-top:80px;
}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font);
  line-height:1.55;
  letter-spacing:var(--tracking-body);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  position:relative;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
::selection{background:rgba(242,247,246,.96);color:var(--ink)}

/* 키보드 포커스 — 마우스 클릭엔 안 뜨고 키보드 탐색 시에만(토스식 일관 포커스) */
:focus{outline:none}
:focus-visible{
  outline:2px solid var(--focus-outline);
  outline-offset:2px;
  box-shadow:none;
  border-radius:var(--r-xs);
}
button:focus-visible,a:focus-visible{box-shadow:none}

/* 모션 최소화 선호 사용자 존중 */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
}
