:root {
  --c-bg: #F5F7FB;
  --c-bg-alt: #EDF1F7;
  --c-surface: #FFFFFF;
  --c-nav: #0B1C3A;
  --c-nav-soft: #102a52;
  --c-border: #E3E8F0;
  --c-border-strong: #CBD5E1;
  --c-ink: #0B1C3A;
  --c-ink-2: #334155;
  --c-ink-3: #64748B;
  --c-ink-4: #94A3B8;

  --c-primary: #2F6BFF;
  --c-primary-ink: #1D4ED8;
  --c-primary-soft: #EAF0FF;
  --c-accent: #5B9BD5;
  --c-accent-soft: #E6F0FA;

  --c-ok: #16A34A;
  --c-warn: #E0B64A;
  --c-danger: #DC2626;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-md: 0 6px 18px -6px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 48px -20px rgba(15, 23, 42, .18), 0 6px 16px -8px rgba(15, 23, 42, .08);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ff-sans: "Noto Sans KR", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ff-display: "Plus Jakarta Sans", "Space Grotesk", "Noto Sans KR", sans-serif;
  --ff-mono: "Space Grotesk", ui-monospace, monospace;
}

html[data-lang="ja"] { --ff-sans: "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-sans);
  background: var(--c-bg);
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ------- app shell ------- */
.app {
  min-height: 100vh;
}

.topnav {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.topnav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 32px;
}
.topnav .brand {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  flex: none;
}
.topnav .brand .logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2F6BFF 0%, #5B9BD5 60%, #F7C948 140%);
  display: grid; place-items: center;
  color: white; font-family: var(--ff-display); font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  font-size: 11px;
  line-height: 1.0;
  text-align: center;
}
.logo-mark {
  font-size: 11px;
  line-height: 1.0;
  text-align: center;
  font-weight: 800;
}
.topnav .brand .name {
  color: var(--c-nav); font-family: var(--ff-display); font-weight: 800;
  letter-spacing: .02em; font-size: 16px; line-height: 1;
}
.topnav .brand .sub {
  color: var(--c-ink-3); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  margin-top: 3px;
}

.topnav-menu {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}
.topnav-item {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13.5px; font-weight: 500;
  color: var(--c-ink-2);
  transition: all .15s ease;
}
.topnav-item:hover { background: var(--c-bg-alt); color: var(--c-ink); }
.topnav-item.active { color: var(--c-primary-ink); background: var(--c-primary-soft); font-weight: 600; }

.topnav-right {
  display: flex; align-items: center; gap: 10px;
  flex: none;
}
.topnav-burger {
  display: none;
}
#nav-login-btn, #drawer-login-btn {
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}
.lang-toggle {
  display: flex; background: var(--c-bg-alt); border-radius: 8px; padding: 3px;
}
.lang-toggle button {
  padding: 6px 12px; border-radius: 6px;
  font-size: 11.5px; color: var(--c-ink-3); font-family: var(--ff-display); font-weight: 600; letter-spacing: .08em;
}
.lang-toggle button.on { background: white; color: var(--c-nav); box-shadow: var(--shadow-sm); }

/* ------- main ------- */
.main { min-width: 0; }

.page { padding: 28px 32px 80px; max-width: 1400px; margin: 0 auto; }

/* ------- primitives ------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  transition: transform .1s ease, background-color .15s ease;
  justify-content: center;
  box-sizing: border-box;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-primary); color: white; box-shadow: 0 8px 20px -8px rgba(47,107,255,.5); }
.btn-primary:hover { background: var(--c-primary-ink); }
.btn-ghost { background: transparent; color: var(--c-ink-2); }
.btn-ghost:hover { background: var(--c-bg-alt); }
.btn-outline { background: white; color: var(--c-ink); border: 1px solid var(--c-border); }
.btn-outline:hover { border-color: var(--c-border-strong); }
.btn-dark { background: var(--c-nav); color: white; }
.btn-dark:hover { background: var(--c-nav-soft); }
.btn-secondary { background: var(--c-bg-alt); color: var(--c-ink-2); }
.btn-secondary:hover { background: var(--c-border-strong); color: var(--c-ink); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 14.5px; border-radius: 12px; box-sizing: border-box; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; box-sizing: border-box; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  font-size: 11.5px; font-weight: 600;
  background: var(--c-primary-soft); color: var(--c-primary-ink);
  border-radius: 999px;
  font-family: var(--ff-display); letter-spacing: .04em;
}
.chip-soft { background: var(--c-bg-alt); color: var(--c-ink-2); }
.chip-amber { background: #FEF3C7; color: #92400E; }
.chip-emerald { background: #D1FAE5; color: #065F46; }
.chip-violet { background: #EDE9FE; color: #5B21B6; }

.card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

.h-display {
  font-family: var(--ff-display);
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 800;
}

.muted { color: var(--c-ink-3); }
.mono { font-family: var(--ff-mono); font-feature-settings: "tnum"; }

/* ------- landing ------- */
.hero {
  position: relative;
  padding: 56px 48px 40px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(91,155,213,.20), transparent 60%),
    radial-gradient(500px 300px at -10% 110%, rgba(247,201,72,.18), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F5F8FD 100%);
  border: 1px solid var(--c-border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  min-height: 520px;
}
.hero .eyebrow {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  background: white; border: 1px solid var(--c-border);
  font-size: 11.5px; color: var(--c-ink-2); font-family: var(--ff-display); font-weight: 600; letter-spacing: .08em;
  width: fit-content;
}
.hero .eyebrow .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--c-primary); }
.hero h1 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 50px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 18px 0 20px;
  color: var(--c-nav);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #2F6BFF 0%, #5B9BD5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { font-size: 15.5px; color: var(--c-ink-2); line-height: 1.65; max-width: 480px; }
.hero .cta-row { display: flex; gap: 10px; margin-top: 28px; }
.hero .reassure { font-size: 12.5px; color: var(--c-ink-3); margin-top: 24px; display: flex; gap: 18px; }
.hero .reassure span { display: inline-flex; align-items: center; gap: 6px; }

.hero .visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero .viz-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  padding: 16px;
}
.hero .viz-matrix {
  top: 0; right: 0; width: 320px;
}
.hero .viz-gp {
  bottom: -20px; left: 0; width: 280px;
}
.hero .viz-quote {
  top: 220px; right: -24px; width: 240px;
}

.landing-section {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.landing-section .kpi {
  padding: 22px; background: white; border: 1px solid var(--c-border); border-radius: 16px;
}
.kpi .n { font-family: var(--ff-display); font-weight: 800; font-size: 36px; letter-spacing: -0.02em; color: var(--c-nav); }
.kpi .n small { font-size: 14px; color: var(--c-ink-3); margin-left: 4px; font-weight: 600; }
.kpi .t { font-size: 13px; color: var(--c-ink-2); margin-top: 6px; }
.kpi .s { font-size: 12px; color: var(--c-ink-3); margin-top: 12px; }

.section-head {
  display: flex; align-items: end; gap: 16px; margin: 56px 0 18px;
}
.section-head .eyebrow-2 {
  font-size: 11.5px; color: var(--c-primary-ink); font-family: var(--ff-display); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--ff-display); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; color: var(--c-nav);
  margin: 6px 0 0;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  padding: 22px; background: white; border: 1px solid var(--c-border); border-radius: 16px;
  display: flex; flex-direction: column; gap: 10px; min-height: 200px;
}
.feature .num {
  font-family: var(--ff-display); font-weight: 700; font-size: 12px;
  color: var(--c-primary); letter-spacing: .2em;
}
.feature h3 { font-size: 17px; margin: 0; color: var(--c-nav); }
.feature p { font-size: 13.5px; color: var(--c-ink-2); line-height: 1.6; margin: 0; }
.feature .swatch {
  margin-top: auto; height: 50px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary-soft), white);
  border: 1px dashed var(--c-border-strong);
  display: grid; place-items: center;
  font-family: var(--ff-sans); font-size: 10.5px; color: var(--c-ink-3);
  letter-spacing: .12em;
  font-weight: 500;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.explain-card {
  padding: 28px; border-radius: 20px; background: white; border: 1px solid var(--c-border);
}
.explain-card h3 { font-family: var(--ff-display); font-size: 22px; margin: 0 0 8px; color: var(--c-nav); letter-spacing: -0.01em; }
.explain-card p { color: var(--c-ink-2); font-size: 14px; line-height: 1.7; }
.explain-card .tag { font-size: 11px; color: var(--c-primary-ink); letter-spacing: .18em; font-family: var(--ff-display); font-weight: 700; }
.explain-card .mini-viz {
  margin-top: 14px;
  height: 200px; border-radius: 12px;
  background: var(--c-bg-alt); border: 1px solid var(--c-border);
  position: relative; overflow: hidden;
}

.band {
  margin-top: 56px;
  padding: 40px 44px;
  background: var(--c-nav);
  color: white;
  border-radius: 24px;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
}
.band::after {
  content: ""; position: absolute; inset: auto -100px -180px auto; width: 420px; height: 420px;
  background: radial-gradient(closest-side, rgba(91,155,213,.3), transparent 70%);
}
.band h2 { font-family: var(--ff-display); font-weight: 800; font-size: 36px; letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.15; }
.band p { color: #CBD5E1; font-size: 14.5px; line-height: 1.7; max-width: 520px; }
.band .cta-row { margin-top: 22px; display: flex; gap: 10px; }
.band .btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,.3); }
.band .btn-outline:hover { border-color: white; }

.testimonial {
  background: white; border-radius: 16px; padding: 22px; position: relative;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.testimonial .q { font-size: 14px; color: var(--c-ink-2); line-height: 1.6; font-style: italic; }
.testimonial .who { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.testimonial .who .a { width: 34px; height: 34px; border-radius: 999px; background: var(--c-primary-soft); color: var(--c-primary-ink); display:grid; place-items: center; font-family: var(--ff-display); font-weight: 700; }
.testimonial .who .name { font-size: 13px; font-weight: 600; color: var(--c-ink); }
.testimonial .who .role { font-size: 11.5px; color: var(--c-ink-3); }

/* ------- footer ------- */
.footer {
  margin-top: 80px;
  border-top: 1px solid var(--c-border);
  padding: 40px 32px 20px;
  display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 24px;
  color: var(--c-ink-3);
  font-size: 12.5px;
}
.footer h5 { color: var(--c-ink); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; font-family: var(--ff-display); }
.footer a { display: block; padding: 5px 0; }
.footer a:hover { color: var(--c-ink); }
.footer .copy { margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--c-border); grid-column: 1/-1; font-size: 11.5px; display: flex; gap: 20px; }

/* ------- assessment ------- */
.assess-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.progress-bar-container {
  height: 6px; background: var(--c-bg-alt); border-radius: 999px; overflow: hidden; margin-bottom: 24px;
}
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); border-radius: 999px; transition: width 0.3s ease; }
.q-card {
  padding: 36px; border-radius: 20px; background: white; border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md); margin-bottom: 28px;
}
.q-num { font-family: var(--ff-mono); font-size: 13px; color: var(--c-primary); font-weight: 700; letter-spacing: .1em; }
.q-stem { font-size: 22px; line-height: 1.6; color: var(--c-nav); font-weight: 700; margin: 12px 0 0; }
.answer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }

.btn-answer {
  padding: 24px; border-radius: 16px; border: 1px solid var(--c-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: all .15s ease;
}
.btn-answer .btn-title { font-size: 22px; font-weight: 700; }
.btn-answer .btn-hotkey { font-size: 11px; color: var(--c-ink-3); }
.btn-answer-yes { background: rgba(22, 163, 74, 0.04); border-color: rgba(22, 163, 74, 0.15); }
.btn-answer-yes .btn-title { color: var(--c-ok); }
.btn-answer-yes:hover, .btn-answer-yes.selected { background: var(--c-ok); border-color: var(--c-ok); box-shadow: 0 10px 24px -12px rgba(22, 163, 74, .6); }
.btn-answer-yes:hover .btn-title, .btn-answer-yes:hover .btn-hotkey,
.btn-answer-yes.selected .btn-title, .btn-answer-yes.selected .btn-hotkey { color: white; }

.btn-answer-no { background: rgba(220, 38, 38, 0.04); border-color: rgba(220, 38, 38, 0.15); }
.btn-answer-no .btn-title { color: var(--c-danger); }
.btn-answer-no:hover, .btn-answer-no.selected { background: var(--c-danger); border-color: var(--c-danger); box-shadow: 0 10px 24px -12px rgba(220, 38, 38, .6); }
.btn-answer-no:hover .btn-title, .btn-answer-no:hover .btn-hotkey,
.btn-answer-no.selected .btn-title, .btn-answer-no.selected .btn-hotkey { color: white; }

.shortcut-tip { text-align: center; font-size: 12px; color: var(--c-ink-3); margin-top: 14px; }
.timer-box {
  background: var(--c-primary-soft); border: 1px solid rgba(47,107,255,.2);
  border-radius: 999px; padding: 6px 16px; display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-weight: 700; color: var(--c-primary-ink);
}

/* ------- report ------- */
.report-hero {
  padding: 32px; border-radius: 20px; background: linear-gradient(135deg, #0B1C3A, #183876);
  color: white; display: flex; justify-content: space-between; align-items: center;
  position: relative; overflow: hidden; margin-bottom: 24px;
}
.report-hero::after {
  content: ""; position: absolute; inset: auto -80px -100px auto; width: 320px; height: 320px;
  background: radial-gradient(closest-side, rgba(91,155,213,.4), transparent 70%);
}
.report-hero h1 { font-family: var(--ff-display); font-weight: 800; font-size: 32px; margin: 12px 0 8px; letter-spacing: -0.02em; line-height: 1.15; }
.report-hero .sub { color: #CBD5E1; font-size: 13.5px; }
.report-hero .meta-line { display: flex; gap: 18px; color: #94A3B8; font-size: 12px; margin-top: 18px; }

.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.report-grid .span-2 { grid-column: 1/-1; }

.card-h {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--c-border);
}
.card-h .t { font-family: var(--ff-display); font-weight: 700; font-size: 15px; color: var(--c-nav); }
.card-h .s { font-size: 11px; color: var(--c-ink-3); margin-left: auto; font-family: var(--ff-mono); letter-spacing: .06em; text-transform: uppercase; }

.card-body { padding: 20px 24px 24px; }

/* gauges */
.gauges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 20px 24px; }
.gauge { text-align: center; padding: 18px 14px; border-radius: 12px; background: var(--c-bg); border: 1px solid var(--c-border); }
.gauge .ring { position: relative; width: 100px; height: 100px; margin: 0 auto; }
.gauge .ring svg { transform: rotate(-90deg); }
.gauge .ring .v {
  position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ff-display); font-weight: 800; font-size: 24px; color: var(--c-nav);
}
.gauge .ring .v small { font-size: 11px; color: var(--c-ink-3); font-weight: 500; margin-left: 2px; }
.gauge .name { font-size: 13.5px; font-weight: 700; color: var(--c-nav); margin-top: 8px; }
.gauge .desc { font-size: 11px; color: var(--c-ink-3); margin-top: 2px; }

/* summary text card */
.type-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  padding: 22px; border-radius: 16px;
  background: linear-gradient(135deg, #EAF0FF, #F5F8FD);
  border: 1px solid #DBE4F5;
}
.type-hero .badge {
  width: 72px; height: 72px; border-radius: 16px;
  background: white; display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 800; font-size: 24px; color: var(--c-primary);
  box-shadow: var(--shadow-md);
}
.type-hero .type-name { font-family: var(--ff-display); font-weight: 800; font-size: 20px; color: var(--c-nav); }
.type-hero .type-kind { font-size: 11px; color: var(--c-primary-ink); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; font-family: var(--ff-display); }
.type-hero .type-sub { font-size: 13px; color: var(--c-ink-2); margin-top: 6px; line-height: 1.6; }

.eval-list { display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 16px 0 0; }
.eval-list li {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px;
  font-size: 13.5px; line-height: 1.6; color: var(--c-ink-2);
  list-style: none;
}
.eval-list li .pip {
  width: 20px; height: 20px; border-radius: 999px; background: var(--c-primary-soft);
  color: var(--c-primary-ink); display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 10.5px;
}

/* reliability */
.reliability { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 20px 24px; }
.rel-stat { padding: 14px; border-radius: 12px; background: var(--c-bg); border: 1px solid var(--c-border); }
.rel-stat .k { font-size: 10.5px; color: var(--c-ink-3); letter-spacing: .08em; text-transform: uppercase; font-family: var(--ff-display); }
.rel-stat .v { font-family: var(--ff-display); font-weight: 800; font-size: 20px; color: var(--c-nav); margin-top: 4px; }
.rel-stat .b { height: 4px; border-radius: 999px; background: var(--c-border); margin-top: 10px; overflow: hidden; }
.rel-stat .b > div { height: 100%; background: var(--c-primary); border-radius: 999px; }

/* ------- about / notice ------- */
.about-hero {
  padding: 40px; border-radius: 24px; background: white; border: 1px solid var(--c-border);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; margin-bottom: 24px;
}
.about-hero h1 { font-family: var(--ff-display); font-weight: 800; font-size: 34px; margin: 12px 0; letter-spacing: -0.02em; color: var(--c-nav); line-height: 1.15; }
.about-hero p { font-size: 14.5px; color: var(--c-ink-2); line-height: 1.7; }

.notice-list, .faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.notice-item, .faq-item {
  background: white; border: 1px solid var(--c-border); border-radius: 12px;
  padding: 18px 22px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start;
  transition: all .2s ease;
}
.notice-item:hover, .faq-item:hover { border-color: var(--c-border-strong); }
.notice-item .q, .faq-item .q { font-size: 14.5px; font-weight: 600; color: var(--c-nav); cursor: pointer; }
.notice-item .a, .faq-item .a { font-size: 13.5px; color: var(--c-ink-2); margin-top: 8px; line-height: 1.65; display: none; grid-column: 1/-1; }
.notice-item.open .a, .faq-item.open .a { display: block; }
.notice-item .icon, .faq-item .icon { width: 28px; height: 28px; border-radius: 999px; background: var(--c-bg-alt); display: grid; place-items: center; color: var(--c-ink-2); cursor: pointer; }

/* ------- login ------- */
.login-wrap {
  min-height: calc(100vh - 160px);
  display: grid; place-items: center;
}
.login-card {
  width: 440px; background: white; padding: 36px; border-radius: 20px; border: 1px solid var(--c-border); box-shadow: var(--shadow-lg);
}
.login-card h2 { font-family: var(--ff-display); font-weight: 800; font-size: 24px; margin: 0 0 6px; color: var(--c-nav); letter-spacing: -0.01em; }
.login-card p.s { font-size: 13px; color: var(--c-ink-3); margin: 0 0 20px; }
.login-tabs {
  display: flex;
  border-bottom: 2px solid var(--c-border);
  margin-bottom: 24px;
}
.login-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-ink-3);
  cursor: pointer;
  text-align: center;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  font-family: inherit;
}
.login-tab-btn:hover {
  color: var(--c-primary);
}
.login-tab-btn.active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}
.form-group { margin-bottom: 14px; }
.form-group label { font-size: 12px; color: var(--c-ink-2); font-weight: 600; display: block; margin-bottom: 6px; letter-spacing: .04em; font-family: var(--ff-display); }
.form-group input, .form-group select {
  width: 100%;
  height: 40px;
  padding: 0 14px; border: 1px solid var(--c-border); border-radius: 10px;
  font-size: 13.5px; font-family: inherit; background: var(--c-bg);
  color: var(--c-ink);
  outline: none;
  box-sizing: border-box;
}
.form-group input:focus, .form-group select:focus { border-color: var(--c-primary); background: white; box-shadow: 0 0 0 3px rgba(47,107,255,.12); }
.select-wrapper { position: relative; }
.select-wrapper::after {
  content: "▼"; font-size: 9px; color: var(--c-ink-3); position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none;
}
.form-group select { appearance: none; padding-right: 32px; }

/* ------- mypage ------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card {
  padding: 20px; background: white; border: 1px solid var(--c-border); border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.stat-card .k { font-size: 11px; color: var(--c-ink-3); letter-spacing: .08em; text-transform: uppercase; font-family: var(--ff-display); font-weight: 700; }
.stat-card .v { font-family: var(--ff-display); font-weight: 800; font-size: 28px; margin-top: 6px; color: var(--c-nav); letter-spacing: -0.02em; }
.stat-card .t { font-size: 12px; color: var(--c-ink-3); margin-top: 4px; display: flex; align-items: center; gap: 4px; }

.history-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th { text-align: left; font-size: 11px; color: var(--c-ink-3); font-family: var(--ff-display); letter-spacing: .08em; text-transform: uppercase; padding: 12px 14px; border-bottom: 1px solid var(--c-border); }
.history-table td { font-size: 13px; padding: 14px 14px; border-bottom: 1px solid var(--c-border); color: var(--c-ink-2); }
.history-table td.type { color: var(--c-nav); font-weight: 600; }
.history-table tr:hover { background: var(--c-bg); }

/* Toast notification styling */
.toast-container {
  position: fixed; top: 24px; right: 24px; z-index: 1000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: white; border: 1px solid var(--c-border); border-left: 4px solid var(--c-danger);
  border-radius: 8px; padding: 12px 20px; box-shadow: var(--shadow-lg);
  font-size: 13px; color: var(--c-ink); font-weight: 500;
  opacity: 1; transition: opacity 0.3s ease;
}
.toast-success { border-left-color: var(--c-ok); }

/* ------- responsive ------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding: 40px 32px; min-height: auto; gap: 60px; }
  .hero .visual { position: relative; height: 360px; }
  .hero h1 { font-size: 40px; }
  .hero .viz-matrix { top: 0; right: 0; }
  .hero .viz-gp { bottom: 0; left: 0; }
  .hero .viz-quote { top: 180px; right: 0; }

  .report-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .report-grid { grid-template-columns: 1fr; }

  .history-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }

  .about-hero { grid-template-columns: 1fr; }
  .about-hero h1 { font-size: 30px; }

  .two-col { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; padding: 32px; }
  .band h2 { font-size: 28px; }

  .landing-section { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }

  .footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .topnav-menu { display: none; }
  .topnav-login, .lang-toggle { display: none; }
  .topnav-burger { display: inline-flex; }
  .topnav-inner { padding: 12px 20px; gap: 12px; justify-content: space-between; }
  .topnav-drawer {
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 20px 20px;
    border-top: 1px solid var(--c-border);
    background: white;
  }
  .drawer-item {
    text-align: left;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px; font-weight: 500; color: var(--c-ink-2);
  }
  .drawer-item:hover, .drawer-item.active {
    background: var(--c-primary-soft); color: var(--c-primary-ink);
  }

  .page { padding: 20px 20px 60px; }

  .hero { padding: 32px 24px; gap: 40px; border-radius: 20px; }
  .hero h1 { font-size: 32px; }
  .hero p.lede { font-size: 14.5px; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { justify-content: center; }
  .hero .reassure { flex-wrap: wrap; }
  .hero .visual { height: 340px; }
  .hero .viz-matrix { width: 260px; }
  .hero .viz-gp { width: 260px; }
  .hero .viz-quote { width: 200px; right: 10px; top: 160px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; margin: 40px 0 14px; }
  .section-head h2 { font-size: 24px; }

  .landing-section { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer .copy { flex-direction: column; gap: 6px; }

  .about-hero { padding: 28px; }
  .about-hero h1 { font-size: 26px; }

  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .gauges { grid-template-columns: 1fr; }

  .type-hero { grid-template-columns: 1fr; text-align: left; }
  .type-hero .badge { width: 64px; height: 64px; font-size: 22px; }

  .notice-item, .faq-item { padding: 16px 18px; }
  .notice-item .q, .faq-item .q { font-size: 14px; }

  .login-card { width: 100%; max-width: 420px; padding: 28px 24px; }
}

@media (max-width: 520px) {
  .stat-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero .visual { height: 280px; }
  .hero .viz-matrix, .hero .viz-gp { width: 220px; }
  .hero .viz-quote { width: 170px; top: 140px; }
  .topnav .brand .sub { display: none; }
  .kpi .n { font-size: 30px; }
}

/* FAGP Assessment Styles */

/* 3x3 Future-Abstract Matrix styling */
.matrix-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}

.matrix-container {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: 1fr 40px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.matrix-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-end;
  padding-right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-ink-3);
  text-align: right;
  line-height: 1.3;
}

.matrix-y-axis span {
  display: block;
}

.matrix-grid-wrapper {
  position: relative;
  border: 3px solid var(--c-nav);
  border-radius: 12px;
  background: var(--c-bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  height: 320px;
  width: 100%;
}

.matrix-cell {
  border: 1px solid var(--c-border);
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6px;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.matrix-cell.active {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
}

.matrix-cell.active::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--c-primary);
  pointer-events: none;
}

.matrix-cell-id {
  font-size: 10px;
  font-weight: 700;
  color: var(--c-ink-4);
  font-family: var(--ff-mono);
  margin-bottom: 2px;
}

.matrix-cell-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--c-nav);
  line-height: 1.35;
}

.matrix-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--c-ok);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: left 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), top 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 10;
}

.matrix-x-axis {
  grid-column: 2;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-ink-3);
  padding-top: 12px;
}

/* Grab Power horizontal sliders */
.gp-sliders {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

.gp-slider-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gp-slider-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.gp-slider-meta .name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-nav);
}

.gp-slider-meta .val-wrap {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink-2);
}

.gp-slider-meta .val-wrap .num {
  font-size: 18px;
  font-family: var(--ff-mono);
  color: var(--c-primary);
  margin-right: 2px;
}

.gp-slider-meta .level {
  font-size: 11px;
  color: var(--c-ink-3);
  margin-left: 6px;
  font-weight: 600;
}

.slider-track {
  height: 10px;
  background: var(--c-bg-alt);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.slider-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  width: 0;
  transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gp-slider-row.overall .slider-fill {
  background: linear-gradient(90deg, #6366F1, #8B5CF6);
}

.gp-slider-row.overall .gp-slider-meta .val-wrap .num {
  color: #6366F1;
}

/* Review sections layout styling */
.review-section {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.review-section-h {
  background: var(--c-bg-alt);
  padding: 16px 24px;
  font-weight: 800;
  color: var(--c-nav);
  font-size: 15px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-section-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-block .title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-primary-ink);
  letter-spacing: .02em;
}

.review-block .text {
  font-size: 14px;
  color: var(--c-ink-2);
  line-height: 1.7;
}

/* Collapsible appendix */
.appendix-collapse {
  margin-top: 30px;
}

.appendix-toggle-header {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s;
}

.appendix-toggle-header:hover {
  background: var(--c-bg);
}

.appendix-toggle-header .title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.appendix-toggle-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--c-nav);
}

.appendix-toggle-header .icon {
  font-size: 12px;
  color: var(--c-ink-3);
  transition: transform 0.2s;
}

.appendix-content {
  display: none;
  margin-top: 14px;
}

.appendix-collapse.open .appendix-content {
  display: block;
}

.appendix-collapse.open .appendix-toggle-header .icon {
  transform: rotate(180deg);
}

/* Reliability table styling */
.rel-table {
  width: 100%;
  border-collapse: collapse;
}

.rel-table th, .rel-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}

.rel-table th {
  font-weight: 700;
  color: var(--c-nav);
  font-size: 13.5px;
  background: var(--c-bg);
  width: 25%;
}

.rel-table td {
  font-size: 13.5px;
  color: var(--c-ink-2);
}

.rel-table td.rating {
  font-weight: 700;
  color: var(--c-ok);
  width: 15%;
}

/* User Dropdown styling */
.user-dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background-color: var(--c-surface);
  min-width: 160px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 6px 0;
  z-index: 200;
}

.dropdown-menu.show {
  display: block;
  animation: fadeInDown 0.12s ease-out;
}

.dropdown-menu a, .dropdown-menu button {
  color: var(--c-ink-2);
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  margin: 0;
  font-family: inherit;
}

.dropdown-menu a:hover, .dropdown-menu button:hover {
  background-color: var(--c-bg-alt);
  color: var(--c-ink);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------- assessment room responsiveness ------- */

.assess-welcome-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.assess-dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Welcome Header responsive */
@media (max-width: 768px) {
  .assess-welcome-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }
  .assess-welcome-header div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .assess-welcome-header #btnLogout {
    width: 100%;
  }
}

/* Dashboard Grid responsive */
@media (max-width: 860px) {
  .assess-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Assessment taking room responsiveness */
@media (max-width: 600px) {
  .assess-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    text-align: center;
  }
  .assess-head > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
  }
  .assess-head > div:first-child {
    justify-content: center;
    margin-bottom: 4px;
  }
  .q-card {
    padding: 20px 16px;
    margin-bottom: 20px;
  }
  .q-stem {
    font-size: 17.5px;
    line-height: 1.5;
  }
  .answer-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .btn-answer {
    padding: 16px 8px;
    border-radius: 12px;
  }
  .btn-answer .btn-title {
    font-size: 18px;
  }
  .btn-answer .btn-hotkey {
    font-size: 9.5px;
  }
}

/* Complete Screen styling */
.complete-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  padding: 24px 0;
}
.complete-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.complete-card .success-checkmark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
}
.complete-card h1 {
  font-family: var(--ff-display);
  font-size: 24px;
  color: var(--c-nav);
  margin: 0 0 8px;
  font-weight: 800;
}
.complete-card .message {
  font-size: 14px;
  color: var(--c-ink-2);
  line-height: 1.6;
  margin-bottom: 24px;
}
.complete-card .user-summary {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
  font-size: 13.5px;
  color: var(--c-ink-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.complete-card #btnGoHome {
  width: 100%;
}

@media (max-width: 480px) {
  .complete-card {
    padding: 30px 20px;
  }
}

/* ------- MyPage History Table mobile responsiveness ------- */
@media (max-width: 768px) {
  .history-table thead {
    display: none;
  }
  .history-table, 
  .history-table tbody, 
  .history-table tr, 
  .history-table td {
    display: block;
    width: 100%;
  }
  .history-table tr {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
  }
  .history-table td {
    padding: 8px 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 13px;
    box-sizing: border-box;
  }
  .history-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--c-ink-3);
    font-size: 12px;
  }
  .history-table td:last-child {
    justify-content: stretch;
    margin-top: 8px;
    border-top: 1px dashed var(--c-border);
    padding-top: 12px;
  }
  .history-table td:last-child::before {
    content: "";
  }
  .history-table td:last-child .btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
  }
}
