/* BluShark AI Focus Survey — house look: white, cyan #00B8F8, near-black. */
:root {
  --cyan: #00B8F8;
  --cyan-deep: #0090c8;
  --ink: #0b1622;
  --ink-soft: #33414f;
  --muted: #6b7686;
  --line: #e6ecf2;
  --bg: #f6f9fc;
  --card: #ffffff;
  --dark: #0b0e14;
  --dark-2: #121826;
  --shadow: 0 10px 30px rgba(11, 22, 34, .08);
  --shadow-lg: 0 24px 60px rgba(11, 22, 34, .16);
  --radius: 18px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--cyan-deep); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; max-width: 1120px; margin: 0 auto;
}
.topbar .logo { height: 30px; width: auto; display: block; }
.topbar .badge-pill {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff;
}

/* hero */
.hero {
  background: radial-gradient(1200px 500px at 50% -10%, #17324a 0%, var(--dark) 55%);
  color: #fff; text-align: center; padding: 54px 20px 64px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 50% 120%, rgba(0,184,248,.20), transparent 70%);
  pointer-events: none;
}
.hero .logo-white { height: 40px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--cyan); }
.hero p { color: #b9c6d6; font-size: 18px; max-width: 560px; margin: 0 auto 30px; }
.hero .meta { color: #7f8fa3; font-size: 14px; margin-top: 22px; }
.hero .meta strong { color: #cdd8e4; font-weight: 600; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 16px; font-weight: 600; cursor: pointer;
  border: 0; border-radius: 12px; padding: 15px 26px; text-decoration: none; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--cyan); color: #04202c; box-shadow: 0 10px 26px rgba(0,184,248,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,184,248,.45); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { border-color: var(--cyan); color: var(--cyan-deep); }
.btn svg { width: 18px; height: 18px; }

/* survey card */
.stage { padding: 40px 20px 80px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px;
}
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--cyan-deep)); transition: width .35s cubic-bezier(.2,.7,.2,1); }
.progress-label { font-size: 13px; color: var(--muted); margin-bottom: 22px; display: flex; justify-content: space-between; }

.q-prompt { font-size: 23px; font-weight: 700; letter-spacing: -.01em; margin: 6px 0 6px; }
.q-help { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

/* options */
.options { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 13px; padding: 15px 17px; font-size: 16px; font-family: var(--font);
  cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .08s ease;
}
.opt:hover { border-color: #bfe6fb; background: #f4fbff; }
.opt.sel { border-color: var(--cyan); background: #ecf9ff; }
.opt .mark {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 999px; border: 2px solid #cdd8e2;
  display: grid; place-items: center; transition: all .15s ease;
}
.opt.multi .mark { border-radius: 7px; }
.opt.sel .mark { border-color: var(--cyan); background: var(--cyan); }
.opt.sel .mark::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #fff; }
.opt.multi.sel .mark::after { width: 6px; height: 10px; border-radius: 0; background: transparent; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.opt .txt { flex: 1; }

/* text + select inputs */
.field { display: block; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; }
input[type=text], textarea, select {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 15px; background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,184,248,.15); }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7686' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 42px; }

/* nav row */
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 12px; }
.back-link { background: none; border: 0; color: var(--muted); font-family: var(--font); font-size: 15px; cursor: pointer; padding: 8px 4px; }
.back-link:hover { color: var(--ink); }
.back-link:disabled { opacity: 0; pointer-events: none; }

/* ---------- result / badge ---------- */
.result-stage { padding: 40px 20px 80px; }
.badge {
  position: relative; border-radius: 24px; overflow: hidden; color: #fff;
  box-shadow: var(--shadow-lg); background: var(--dark);
}
.badge .glow {
  position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 50% -10%, var(--acc, var(--cyan)) 0%, transparent 60%);
  opacity: .28;
}
.badge-inner { position: relative; padding: 40px 34px 34px; text-align: center; }
.badge .eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; color: #9fb0c2; }
.badge .who { font-size: 15px; color: #cdd8e4; margin-top: 4px; }
.badge .icon-ring {
  width: 92px; height: 92px; margin: 22px auto 16px; border-radius: 999px;
  display: grid; place-items: center; background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.16); box-shadow: 0 0 0 8px rgba(255,255,255,.03);
}
.badge .icon-ring svg { width: 46px; height: 46px; stroke: var(--acc, var(--cyan)); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.badge h2 { font-size: clamp(28px, 6vw, 40px); margin: 4px 0 6px; letter-spacing: -.02em; }
.badge .tagline { color: var(--acc, var(--cyan)); font-weight: 600; font-size: 17px; margin-bottom: 18px; }
.badge .blurb { color: #cdd8e4; font-size: 16px; max-width: 480px; margin: 0 auto; line-height: 1.6; }

.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 6px; }
.meter { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px; text-align: left; }
.meter .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #9fb0c2; }
.meter .val { font-size: 26px; font-weight: 700; margin: 2px 0 8px; }
.meter .bar { height: 7px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; }
.meter .bar > span { display: block; height: 100%; border-radius: 999px; background: var(--acc, var(--cyan)); transition: width .8s cubic-bezier(.2,.7,.2,1); }

.detail-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.detail { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px; text-align: left; }
.detail .h { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.detail .h svg { width: 15px; height: 15px; stroke: var(--cyan-deep); fill: none; stroke-width: 2; }
.detail p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.result-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.saved-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 16px; }

/* ---------- admin ---------- */
.admin-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 8px 0 26px; }
.admin-head h1 { font-size: 26px; margin: 0; letter-spacing: -.01em; }
.admin-head .sub { color: var(--muted); font-size: 14px; }
.scorecards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.sc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.sc .k { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.sc .v { font-size: 32px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.sc .v small { font-size: 15px; color: var(--muted); font-weight: 600; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.panel h2 { font-size: 17px; margin: 0 0 4px; }
.panel .desc { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* archetype distribution */
.arch-list { display: flex; flex-direction: column; gap: 11px; }
.arch-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; }
.arch-row .ic { width: 26px; height: 26px; }
.arch-row .ic svg { width: 26px; height: 26px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.arch-row .meta { min-width: 0; }
.arch-row .nm { font-weight: 600; font-size: 14px; }
.arch-row .track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 5px; }
.arch-row .track > span { display: block; height: 100%; border-radius: 999px; }
.arch-row .ct { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; }

/* 3x3 matrix */
.matrix { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 6px; align-items: stretch; }
.matrix .corner { }
.matrix .colh, .matrix .rowh { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; align-self: center; font-weight: 600; }
.matrix .rowh { writing-mode: vertical-rl; transform: rotate(180deg); justify-self: center; }
.cell { border-radius: 11px; min-height: 74px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: #fff; }
.cell .cell-arch { font-size: 11px; color: var(--muted); font-weight: 600; }
.cell .cell-n { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.matrix-axis-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ranked bars */
.rank { display: flex; flex-direction: column; gap: 10px; }
.rank-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.rank-row .rl { font-size: 14px; }
.rank-row .rc { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.rank-row .rt { grid-column: 1 / -1; height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; }
.rank-row .rt > span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--cyan-deep)); border-radius: 999px; }

/* tables */
.tw { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
table.tbl tbody tr:hover { background: #f7fbfe; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #04202c; }
.tag-num { font-variant-numeric: tabular-nums; }

.wishes { display: flex; flex-direction: column; gap: 12px; }
.wish { border-left: 3px solid var(--cyan); background: #f7fbfe; padding: 12px 14px; border-radius: 0 10px 10px 0; }
.wish .w-who { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.wish .w-txt { font-size: 15px; color: var(--ink-soft); }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; }

/* login */
.login-wrap { max-width: 380px; margin: 8vh auto; }
.login-wrap .card { text-align: center; }
.login-wrap .logo { height: 30px; margin-bottom: 18px; }
.err { color: #d64550; font-size: 14px; margin-top: 12px; min-height: 18px; }

footer.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 20px 40px; }
footer.foot a { color: var(--muted); }

/* mobile */
@media (max-width: 720px) {
  .card { padding: 22px; }
  .meters, .detail-cards, .grid-2, .scorecards { grid-template-columns: 1fr; }
  .scorecards { grid-template-columns: 1fr 1fr; }
  .q-prompt { font-size: 20px; }
  .hero { padding: 40px 18px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
