/* ===================================================================
   Voqaly — "Royal Ink" design system
   Premium AI-interview product · deep navy-ink + royal blue
   =================================================================== */
:root {
  --bg: #090c16;
  --bg-2: #0c1020;
  --ink: #eef2fb;
  --muted: #9aa4be;
  --faint: #5a6488;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.05);

  --accent: #3b82f6;        /* royal blue */
  --accent-2: #2563eb;      /* deeper */
  --accent-deep: #1d4ed8;
  --accent-soft: #60a5fa;   /* light */

  --good: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;

  --grad-blue: linear-gradient(135deg, #2563eb 0%, #3b82f6 55%, #60a5fa 100%);
  --grad-logo: linear-gradient(120deg, #60a5fa 0%, #3b82f6 50%, #1d4ed8 100%);

  --display: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 26px 70px -28px rgba(0, 0, 0, 0.8);
  --glow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 10px 34px -10px rgba(59, 130, 246, 0.55);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--body); color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  letter-spacing: -0.01em;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; }
button { font-family: inherit; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic-fill { fill: currentColor; stroke: none; }

/* ===================================================================
   BACKDROP — calm blue mesh + drifting glow + grid
   =================================================================== */
.backdrop { position: fixed; inset: 0; z-index: -1; background: radial-gradient(140% 120% at 50% -10%, #0d1226 0%, var(--bg) 55%); overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; will-change: transform; mix-blend-mode: screen; }
.aurora-1 { top: -20vh; left: -8vw; width: 56vw; height: 56vw; background: radial-gradient(circle, rgba(37,99,235,0.55), transparent 65%); animation: drift1 28s ease-in-out infinite; }
.aurora-2 { top: -10vh; right: -12vw; width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(59,130,246,0.4), transparent 65%); animation: drift2 34s ease-in-out infinite; }
.aurora-3 { bottom: -26vh; left: 32vw; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(29,78,216,0.35), transparent 65%); animation: drift3 32s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(7vw, 9vh) scale(1.16); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(-9vw, 7vh) scale(0.92); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5vw, -11vh) scale(1.18); } }

.grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(80% 60% at 50% 35%, #000, transparent 88%); opacity: 0.28; animation: gridFloat 22s ease-in-out infinite; }
@keyframes gridFloat { 0%,100% { background-position: 0 0; } 50% { background-position: 0 14px; } }
.vignette { position: absolute; inset: 0; background: radial-gradient(120% 95% at 50% 0%, transparent 48%, rgba(0,0,0,0.6)); }

/* ===================================================================
   LOGO
   =================================================================== */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { display: block; }
.logo-bars line { transform-box: fill-box; transform-origin: center; }
.logo-anim .logo-bars line { animation: logoBar 1.6s ease-in-out infinite; }
.logo-anim .logo-bars line:nth-child(1) { animation-delay: 0s; }
.logo-anim .logo-bars line:nth-child(2) { animation-delay: 0.18s; }
.logo-anim .logo-bars line:nth-child(3) { animation-delay: 0.36s; }
.logo-anim .logo-bars line:nth-child(4) { animation-delay: 0.18s; }
.logo-anim .logo-bars line:nth-child(5) { animation-delay: 0s; }
@keyframes logoBar { 0%,100% { transform: scaleY(0.72); } 50% { transform: scaleY(1.12); } }
.logo-word { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; background: var(--grad-logo); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }

/* ===================================================================
   VIEWS
   =================================================================== */
.view { min-height: 100vh; display: flex; flex-direction: column; }
.view-anim { animation: viewIn 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px) scale(0.992); } to { opacity: 1; transform: none; } }

/* =================== SETUP NAV =================== */
.setup-nav {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: rgba(9,12,22,0.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.setup-nav-logo { cursor: pointer; }
.setup-nav-right { display: flex; align-items: center; gap: 10px; }

.setup-credits-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.setup-credits-pill svg { flex-shrink: 0; }
.setup-credits-ok   { background: rgba(52,211,153,0.1);  border: 1px solid rgba(52,211,153,0.3);  color: #6ee7b7; }
.setup-credits-demo { background: rgba(59,130,246,0.1);  border: 1px solid rgba(59,130,246,0.3);  color: var(--accent-soft); }
.setup-credits-empty{ background: rgba(251,113,133,0.1); border: 1px solid rgba(251,113,133,0.3); color: #fda4af; }
.setup-credits-admin{ background: rgba(52,211,153,0.1);  border: 1px solid rgba(52,211,153,0.3);  color: #6ee7b7; }

.setup-nav-buy {
  padding: 8px 15px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: var(--grad-blue); color: #fff; border: none; cursor: pointer;
  transition: opacity 0.18s, transform 0.15s;
}
.setup-nav-buy:hover { opacity: 0.85; transform: translateY(-1px); }

.setup-nav-user {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.setup-nav-user:hover { border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.08); }

.setup-nav-logout {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 9px; padding: 7px 13px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.setup-nav-logout:hover { border-color: var(--line-2); color: var(--ink); }

/* =================== SETUP (compact, fits one screen) =================== */
#view-setup { align-items: stretch; justify-content: flex-start; padding: 0; }
.setup-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px; }
.setup-wrap { width: 100%; max-width: 560px; }

@media (max-width: 600px) {
  .setup-nav { padding: 10px 14px; gap: 8px; }
  .setup-credits-pill { display: none; }
  .setup-nav-buy { padding: 7px 12px; font-size: 12px; }
  .setup-nav-user span:last-child { display: none; } /* hide first name, keep avatar */
  .setup-nav-logout { display: none; } /* logged-in user can log out from profile */
  .setup-content { padding: 16px 14px; }
  .setup-header { margin-bottom: 12px; }
  .setup-page-title { font-size: 20px; }
}

.brand { text-align: center; margin-bottom: 13px; }
.brand-logo { justify-content: center; margin-bottom: 6px; animation: floatY 5s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.brand-logo .logo-mark { filter: drop-shadow(0 10px 26px rgba(59,130,246,0.5)); }
.brand-logo .logo-word { font-size: 35px; line-height: 1; }
.brand-tag { color: var(--muted); margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.brand-tag b { color: #cdd5ee; font-weight: 600; }

.setup-header { text-align: center; margin-bottom: 18px; }
.setup-page-title { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 6px; }
.setup-page-sub { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0; }

.setup-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.018));
  border: 1px solid var(--line-2);
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  animation: cardRise 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes cardRise { from { opacity: 0; transform: translateY(22px); } }
.setup-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 22px; padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,0.5), transparent 40%, transparent 60%, rgba(96,165,250,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.55;
}

.setup-section { padding: 13px 22px; position: relative; }
.setup-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 30%, var(--line-2) 70%, transparent); }

.setup-section-head { margin-bottom: 10px; }
.lbl { font-size: 12.5px; font-weight: 600; color: #c9cfe6; display: inline-flex; align-items: center; }
.lbl-hint { display: block; font-size: 11.5px; color: var(--faint); margin-top: 3px; line-height: 1.4; }
.req, .opt { font-weight: 600; font-size: 10px; padding: 2px 7px; border-radius: 6px; margin-left: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.req { color: #93c5fd; background: rgba(59,130,246,0.16); border: 1px solid rgba(59,130,246,0.3); }
.opt { color: var(--faint); background: var(--surface-2); border: 1px solid var(--line); }

/* Type cards (compact) */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 11px 12px 12px; text-align: left; min-height: 106px;
  background: rgba(255,255,255,0.028); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), border-color 0.25s, background 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden; cursor: pointer;
}
.type-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, rgba(59,130,246,0.16), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.type-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.05); }
.type-card:hover::after { opacity: 0.6; }
.type-card.is-active {
  border-color: rgba(59,130,246,0.6); background: rgba(59,130,246,0.1);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.25) inset, 0 14px 34px -16px rgba(59,130,246,0.7);
  animation: cardPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.type-card.is-active::after { opacity: 1; }
@keyframes cardPop { 0% { transform: scale(0.97); } 55% { transform: scale(1.04); } 100% { transform: scale(1); } }

.tc-header { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; margin-bottom: 8px; }
.tc-icon { width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); display: grid; place-items: center; color: var(--muted); transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.tc-icon svg { width: 18px; height: 18px; }
.type-card:hover .tc-icon { transform: scale(1.08) rotate(-4deg); }
.type-card.is-active .tc-icon { background: var(--grad-blue); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -6px rgba(59,130,246,0.8); }
.tc-num { font-size: 10.5px; font-weight: 700; color: var(--faint); letter-spacing: 0.05em; font-family: var(--display); }
.type-card.is-active .tc-num { color: #93c5fd; }
.tc-title { font-weight: 700; font-size: 14px; color: #e2e6f4; margin-bottom: 5px; font-family: var(--display); }
.type-card.is-active .tc-title { color: #eef4ff; }
.tc-sub { font-size: 11px; color: var(--faint); line-height: 1.45; }
.type-card.is-active .tc-sub { color: rgba(147,197,253,0.85); }

/* Dropzone (compact) */
.dropzone { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1.5px dashed rgba(255,255,255,0.12); border-radius: 14px; background: rgba(255,255,255,0.022); cursor: pointer; transition: border-color 0.25s, background 0.25s, transform 0.25s; }
.dropzone:hover { border-color: rgba(59,130,246,0.55); background: rgba(59,130,246,0.05); transform: translateY(-2px); }
.dz-icon-wrap { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.22); display: grid; place-items: center; color: var(--accent); transition: all 0.3s; }
.dropzone:hover .dz-icon-wrap { background: var(--grad-blue); color: #fff; transform: scale(1.06); border-color: transparent; }
.dz-content { display: flex; flex-direction: column; gap: 3px; }
.dz-title { font-size: 13.5px; font-weight: 500; color: #d6dcec; }
.dz-hint { font-size: 11.5px; color: var(--faint); }

/* GitHub input */
.gh-wrap { position: relative; display: flex; align-items: center; }
.gh-prefix { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; gap: 7px; padding: 0 13px; color: var(--faint); font-size: 13px; border-right: 1px solid var(--line-2); pointer-events: none; white-space: nowrap; border-radius: 12px 0 0 12px; }
.gh-input { padding-left: 126px !important; }

input { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; font-family: var(--body); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.16); background: rgba(255,255,255,0.06); }
input::placeholder { color: var(--faint); }

.status { font-size: 12px; color: var(--faint); margin: 8px 0 0; min-height: 15px; transition: color 0.2s; }
.status.ok { color: var(--good); } .status.bad { color: var(--bad); } .status.warn { color: var(--warn); } .status.busy { color: var(--accent); }
.status.busy::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; border: 2px solid rgba(59,130,246,0.3); border-top-color: var(--accent); animation: spin 0.7s linear infinite; vertical-align: -1px; }

/* CTA */
.setup-foot { padding: 12px 0 0; }
.btn-primary {
  position: relative; width: 100%; border: none; border-radius: 14px; padding: 15px;
  font-size: 15px; font-weight: 700; color: #fff; font-family: var(--display);
  background: var(--grad-blue); background-size: 180% auto;
  display: flex; align-items: center; justify-content: center; gap: 9px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 14px 34px -12px rgba(59,130,246,0.7);
  transition: transform 0.18s, box-shadow 0.22s, background-position 0.5s;
}
.btn-primary::before { content: ''; position: absolute; top: 0; left: -60%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent); transform: skewX(-18deg); animation: sweep 4.5s ease-in-out infinite; }
@keyframes sweep { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
.btn-primary:hover:not(:disabled) { background-position: right center; box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 20px 46px -12px rgba(59,130,246,0.9); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.34; cursor: not-allowed; box-shadow: none; }
.btn-primary:disabled::before { display: none; }
.btn-primary span, .btn-primary .ic { position: relative; z-index: 1; }
.btn-primary .ic { stroke: #fff; width: 17px; height: 17px; transition: transform 0.2s; }
.btn-primary:hover:not(:disabled) .btn-arrow { transform: translateX(4px); }
.err-msg { color: var(--bad); text-align: center; font-size: 13px; margin: 12px 0 0; }
.footnote { text-align: center; color: var(--faint); font-size: 11.5px; margin-top: 10px; }
.footnote::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--good); margin-right: 8px; box-shadow: 0 0 8px var(--good); animation: blink 2s ease-in-out infinite; vertical-align: 1px; }

/* =================== INTERVIEW (fits one screen) =================== */
#view-interview { padding: 20px 24px; }
.iv-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.iv-brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 15px; }
.iv-brand .logo-word { font-size: 17px; }
.iv-meta { font-weight: 500; color: var(--muted); font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-left: 4px; }
.iv-timer-wrap { display: flex; align-items: center; gap: 8px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13.5px; padding: 6px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 10px var(--bad); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.selfview {
  position: fixed; top: 20px; right: 22px; width: 196px; height: 132px;
  border-radius: 18px; overflow: hidden; background: #000; z-index: 5;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,0.85), 0 0 0 1px rgba(59,130,246,0.18), 0 0 40px -8px rgba(59,130,246,0.4);
  animation: selfPop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.selfview::before {
  content: ''; position: absolute; inset: 0; border-radius: 18px; padding: 1px;
  background: linear-gradient(135deg, rgba(96,165,250,0.6), transparent 40%, transparent 60%, rgba(59,130,246,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; z-index: 2;
}
@keyframes selfPop { from { opacity: 0; transform: scale(0.78) translateY(-10px); } }
.selfview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.selfview-live {
  position: absolute; top: 8px; left: 9px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.12em; color: #fff;
  background: rgba(220,38,38,0.85); padding: 3px 8px 3px 6px; border-radius: 6px;
  backdrop-filter: blur(4px);
}
.selfview-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }
.selfview-tag {
  position: absolute; bottom: 8px; left: 9px; z-index: 3;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45); padding: 2px 8px; border-radius: 5px; backdrop-filter: blur(4px);
}

.iv-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; min-height: 0; }
.viz-wrap { position: relative; width: min(54vw, 46vh, 380px); height: min(54vw, 46vh, 380px); display: grid; place-items: center; cursor: pointer; }
.viz-ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(59,130,246,0.15); animation: ringPulse 3s ease-in-out infinite; }
.viz-ring.r2 { inset: 0; animation-delay: 1.5s; border-color: rgba(96,165,250,0.12); }
.viz-ring.r3 { inset: -7%; border: 1px dashed rgba(96,165,250,0.16); animation: ringSpin 26s linear infinite; }
@keyframes ringPulse { 0%,100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.05); opacity: 0.2; } }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.viz-halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,0.3), transparent 68%); filter: blur(36px); transition: background 0.5s; animation: haloBreath 4s ease-in-out infinite; }
@keyframes haloBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.viz { width: 100%; height: 100%; position: relative; }
.iv-status { font-family: var(--display); font-size: 22px; font-weight: 600; transition: color 0.3s; animation: statusFade 0.5s ease both; }
@keyframes statusFade { from { opacity: 0; transform: translateY(6px); } }
.iv-hint { font-size: 12.5px; color: var(--faint); min-height: 16px; }

.type-fallback { display: flex; gap: 8px; width: 100%; max-width: 460px; }
.type-fallback input { flex: 1; }
.btn-mini { background: var(--accent); border: 0; color: #fff; border-radius: 10px; padding: 0 18px; font-weight: 600; }

.iv-controls {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px; border-radius: 100px; width: fit-content; margin: 0 auto;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.6);
}
.ctrl-btn { background: rgba(255,255,255,0.05); border: 1px solid transparent; color: var(--ink); border-radius: 100px; padding: 11px 20px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), border-color 0.15s, background 0.15s; }
.ctrl-btn:hover { transform: translateY(-2px); border-color: var(--line-2); background: rgba(255,255,255,0.1); }
.ctrl-btn svg { transition: transform 0.25s; }
.ctrl-btn:hover svg { transform: scale(1.12); }
.ctrl-cam.cam-on { background: rgba(59,130,246,0.16); border-color: rgba(59,130,246,0.4); color: var(--accent-soft); }
.ctrl-end { background: rgba(251,113,133,0.12); border-color: rgba(251,113,133,0.3); color: #fda4af; font-weight: 600; }
.ctrl-end:hover { background: rgba(251,113,133,0.22); border-color: rgba(251,113,133,0.5); }

/* =================== RESULTS (dashboard, no window scroll on desktop) =================== */
#view-results { height: 100vh; padding: 0; }
.results-topbar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; background: rgba(9,12,22,0.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.results-topbar .logo-word { font-size: 17px; }
.btn-ghost { display: flex; align-items: center; gap: 7px; background: transparent; border: 1px solid var(--line-2); color: var(--muted); border-radius: 11px; padding: 9px 16px; font-size: 13px; font-weight: 500; transition: all 0.15s; cursor: pointer; }
.btn-ghost:hover { border-color: rgba(59,130,246,0.45); color: var(--ink); background: rgba(59,130,246,0.08); transform: translateY(-1px); }
.btn-ghost svg { transition: transform 0.4s; }
.btn-ghost:hover svg { transform: rotate(-180deg); }

.results-wrap { flex: 1; min-height: 0; width: 100%; max-width: 1080px; margin: 0 auto; padding: 20px 24px; display: flex; flex-direction: column; }

.results-loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.loader-orbit { position: relative; width: 84px; height: 84px; }
.loader-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255,255,255,0.05); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
.loader-ring.r2 { inset: 12px; border-top-color: transparent; border-right-color: var(--accent-soft); animation: spin 1.3s linear infinite reverse; }
.loader-core { position: absolute; inset: 32px; border-radius: 50%; background: var(--grad-blue); animation: corePulse 1.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes corePulse { 0%,100% { transform: scale(0.8); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }
.loading-text { color: var(--muted); margin-top: 24px; font-size: 15px; }

#results-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; }

/* Dashboard top: 2 columns */
.dash { flex-shrink: 0; display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 16px; align-items: start; animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) both; }
.dash-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.two-col-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* Detail: contained scroll */
.dash-detail { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px 14px 8px 2px; animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.12s both; }
.dash-detail::-webkit-scrollbar { width: 8px; }
.dash-detail::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
.dash-detail::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

.card { background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px 20px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.card-h { font-size: 13.5px; margin: 0 0 13px; font-weight: 600; display: flex; align-items: center; gap: 9px; color: #ccd2e4; }
.card-h .ic { color: var(--accent); width: 16px; height: 16px; }

/* Hero (left column) */
.hero-card { position: relative; overflow: hidden; text-align: center; background: linear-gradient(165deg, rgba(59,130,246,0.14) 0%, rgba(37,99,235,0.05) 60%, rgba(96,165,250,0.06) 100%); border: 1px solid rgba(59,130,246,0.26); border-radius: 20px; padding: 22px 22px 20px; }
.hero-glow { position: absolute; top: -70px; left: 50%; transform: translateX(-50%); width: 360px; height: 240px; background: radial-gradient(50% 50% at 50% 50%, rgba(59,130,246,0.22), transparent 70%); pointer-events: none; animation: glowPulse 4s ease-in-out infinite; }
@keyframes glowPulse { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

.verdict { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; font-family: var(--display); margin-bottom: 16px; position: relative; z-index: 1; animation: badgeIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.2s both; }
@keyframes badgeIn { from { opacity: 0; transform: scale(0.7); } }
.verdict::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.verdict.pass { background: rgba(52,211,153,0.14); color: #6ee7b7; box-shadow: 0 0 0 1px rgba(52,211,153,0.3); }
.verdict.pass::before { background: var(--good); box-shadow: 0 0 8px var(--good); }
.verdict.mid  { background: rgba(251,191,36,0.14);  color: #fcd34d; box-shadow: 0 0 0 1px rgba(251,191,36,0.3); }
.verdict.mid::before { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.verdict.low  { background: rgba(251,113,133,0.14); color: #fda4af; box-shadow: 0 0 0 1px rgba(251,113,133,0.3); }
.verdict.low::before { background: var(--bad); box-shadow: 0 0 8px var(--bad); }

.score-gauge { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.score-gauge svg { transform: rotate(-90deg); width: 150px; height: 150px; }
.gauge-track { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 10; }
.gauge-arc { fill: none; stroke: url(#gaugeGrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 503; stroke-dashoffset: 503; transition: stroke-dashoffset 1.7s cubic-bezier(0.22,1,0.36,1); filter: drop-shadow(0 0 8px rgba(59,130,246,0.6)); }
.gauge-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--display); }
.gauge-label span { font-size: 44px; font-weight: 800; line-height: 1; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gauge-label small { color: var(--muted); font-size: 13px; margin-top: 2px; }
.hero-sub { color: var(--faint); font-size: 10.5px; margin: 9px 0 0; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }

.hero-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.hero-scores .score-row { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; padding: 10px 6px; transition: transform 0.2s, border-color 0.2s; }
.hero-scores .score-row:hover { transform: translateY(-2px); border-color: rgba(59,130,246,0.3); }
.hero-scores .score-top { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-bottom: 8px; }
.hero-scores .score-top span { font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); }
.hero-scores .score-top b { font-size: 19px; font-family: var(--display); font-weight: 800; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-scores .score-bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,0.06); overflow: hidden; }
.hero-scores .score-fill { height: 100%; border-radius: 99px; background: var(--grad-blue); width: 0; transition: width 1.3s cubic-bezier(0.22,1,0.36,1); }

.hero-metrics { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; position: relative; z-index: 1; }
.metric { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); border-radius: 999px; padding: 6px 13px; font-size: 11.5px; color: #aeb4d0; transition: transform 0.2s; }
.metric:hover { transform: translateY(-2px); }
.metric b { color: var(--ink); font-weight: 700; }

/* Strengths / improvements */
.good-card { background: linear-gradient(160deg, rgba(52,211,153,0.08) 0%, rgba(255,255,255,0.018) 70%); border-color: rgba(52,211,153,0.22); }
.good-card .card-h .ic { color: var(--good); }
.warn-card { background: linear-gradient(160deg, rgba(251,191,36,0.08) 0%, rgba(255,255,255,0.018) 70%); border-color: rgba(251,191,36,0.22); }
.warn-card .card-h .ic { color: var(--warn); }
.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bullets li { font-size: 13px; color: #c9cfe2; padding-left: 21px; position: relative; line-height: 1.5; animation: slideInL 0.5s ease both; }
.bullets li:nth-child(2) { animation-delay: 0.07s; } .bullets li:nth-child(3) { animation-delay: 0.14s; }
@keyframes slideInL { from { opacity: 0; transform: translateX(-8px); } }
.bullets li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; border-radius: 2px; }
.bullets.good li::before { background: var(--good); box-shadow: 0 0 7px rgba(52,211,153,0.6); }
.bullets.warn li::before { background: var(--warn); box-shadow: 0 0 7px rgba(251,191,36,0.6); }

.summary { font-size: 13.5px; color: #c9cfe2; line-height: 1.65; margin: 0; }

/* Per-question */
.section-h { font-size: 15px; margin: 0 0 12px; font-weight: 700; color: #d4dae8; }
.perq-list { display: flex; flex-direction: column; gap: 10px; }
.perq { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012)); border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 15px; padding: 16px 18px; transition: transform 0.2s, border-color 0.2s; }
.perq:hover { transform: translateX(3px); }
.perq:has(.s-hi) { border-left-color: var(--good); }
.perq:has(.s-mid) { border-left-color: var(--warn); }
.perq:has(.s-lo) { border-left-color: var(--bad); }
.perq-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.perq-q { font-size: 13px; font-weight: 600; color: #e2e6f1; line-height: 1.5; margin: 0; flex: 1; }
.perq-score { flex-shrink: 0; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 9px; font-family: var(--display); }
.perq-score.s-hi  { background: rgba(52,211,153,0.13);  color: #6ee7b7; }
.perq-score.s-mid { background: rgba(251,191,36,0.13);  color: #fcd34d; }
.perq-score.s-lo  { background: rgba(251,113,133,0.13); color: #fda4af; }
.perq-ans { font-size: 12px; color: var(--muted); font-style: italic; margin: 10px 0 0; line-height: 1.5; padding-left: 12px; border-left: 2px solid rgba(59,130,246,0.3); }
.perq-fb { font-size: 12.5px; color: #b8bed4; margin: 9px 0 0; line-height: 1.55; }

/* Model answer */
.model-card { background: linear-gradient(150deg, rgba(59,130,246,0.12), rgba(96,165,250,0.04)); border-color: rgba(59,130,246,0.3); }
.weakest-q { font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.model-answer { font-size: 13.5px; color: #dde3f3; line-height: 1.65; margin: 0; padding: 16px 18px; border-radius: 12px; background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.18); }

/* Transcript */
.transcript-card summary { cursor: pointer; font-weight: 600; font-size: 13.5px; list-style: none; color: #c5cbe0; display: flex; align-items: center; gap: 9px; }
.transcript-card summary::-webkit-details-marker { display: none; }
.transcript-card summary::before { content: "▸"; color: var(--accent); display: inline-block; transition: transform 0.25s; font-size: 11px; }
.transcript-card[open] summary::before { transform: rotate(90deg); }
.transcript { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.t-row { font-size: 13px; line-height: 1.6; }
.t-row b { font-weight: 600; }
.t-ai b { color: var(--accent); }
.t-you b { color: var(--good); }
.t-row span { color: #c5cbe0; }

.results-actions { display: flex; justify-content: center; padding: 4px 0 6px; }
.results-actions .btn-primary { width: auto; padding: 14px 36px; }

/* ===================================================================
   MOBILE (little scroll is fine)
   =================================================================== */
@media (max-width: 860px) {
  #view-results { height: auto; min-height: 100vh; }
  .results-topbar { position: sticky; top: 0; z-index: 20; }
  .results-wrap { display: block; padding: 20px 16px 40px; }
  #results-body { display: flex; }
  .dash { grid-template-columns: 1fr; }
  .dash-detail { overflow: visible; min-height: auto; padding: 0; }
}

@media (max-width: 640px) {
  #view-setup { padding: 22px 16px; }
  .brand-logo .logo-word { font-size: 34px; }
  .brand-logo .logo-mark { width: 42px; height: 42px; }
  .setup-section { padding: 16px 18px; }

  .type-grid { grid-template-columns: 1fr; gap: 9px; }
  .type-card { min-height: auto; flex-direction: row; align-items: center; gap: 14px; padding: 13px 15px; }
  .tc-header { width: auto; flex-direction: column-reverse; align-items: center; gap: 6px; margin-bottom: 0; }
  .tc-icon { width: 40px; height: 40px; }
  .tc-title { margin-bottom: 3px; }
  .type-card:hover { transform: translateY(0); }

  .two-col-stack { grid-template-columns: 1fr; }
  .hero-card { padding: 26px 22px 22px; }
  .score-gauge, .score-gauge svg { width: 162px; height: 162px; }
  .gauge-label span { font-size: 46px; }

  .selfview { width: 124px; height: 84px; top: 14px; right: 14px; }
  .viz-wrap { width: min(72vw, 50vh, 340px); height: min(72vw, 50vh, 340px); }
  .iv-status { font-size: 19px; }
  .iv-controls { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .iv-meta { display: none; }
  .brand-logo .logo-word { font-size: 30px; }
}

/* ===================================================================
   LOGIN PAGE
   =================================================================== */
#view-login { align-items: center; justify-content: center; padding: 24px 20px; }
.login-wrap { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; }
.login-wrap .brand-logo { margin-bottom: 26px; }
.login-wrap .brand-logo .logo-word { font-size: 30px; }
.login-card {
  width: 100%; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.018));
  border: 1px solid var(--line-2); border-radius: 22px; padding: 34px 30px;
  box-shadow: var(--shadow); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  animation: cardRise 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
.login-title { font-size: 25px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.login-sub { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 26px; }
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 11px;
  background: #fff; color: #1f2329; border: none; border-radius: 13px; padding: 14px;
  font-size: 14.5px; font-weight: 600; font-family: var(--body);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.5); transition: transform 0.15s, box-shadow 0.2s;
}
.btn-google:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgba(0,0,0,0.6); }
.btn-google:active { transform: translateY(0); }
.login-err { color: var(--bad); font-size: 13px; margin: 16px 0 0; }
.login-foot { color: var(--faint); font-size: 11.5px; line-height: 1.5; margin: 18px 0 0; }
.login-info {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 20px;
  padding: 13px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  color: var(--faint); font-size: 12.5px; line-height: 1.55; text-align: left;
}
.login-info svg { flex-shrink: 0; margin-top: 1px; color: var(--accent-soft); }
.login-back {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 22px;
  background: transparent; border: none; color: var(--muted); font-size: 13px; font-weight: 500;
  transition: color 0.15s;
}
.login-back:hover { color: var(--ink); }

/* nav auth chip */
.nav-auth { display: inline-flex; align-items: center; gap: 8px; }
.nav-user { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.nav-user:hover { border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.08); }
.nav-ava-init { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-blue); color: #fff; font-size: 11px; font-weight: 800; flex-shrink: 0; }

/* setup credit bar */
.credit-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.credit-bar-demo { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25); color: var(--accent-soft); }
.credit-bar-ok { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.25); color: var(--good); }
.credit-bar-empty { background: rgba(251,113,133,0.08); border: 1px solid rgba(251,113,133,0.25); color: var(--bad); }
.credit-bar-admin { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.25); color: var(--good); }
.credit-bar svg { flex-shrink: 0; }
.credit-bar a { color: inherit; text-decoration: underline; cursor: pointer; }

@media (max-width: 600px) {
  .profile-nav { padding: 10px 14px; }
  .profile-body { padding: 20px 14px 48px; }
  .profile-hero { padding: 18px; gap: 14px; }
  .profile-avatar { width: 52px; height: 52px; font-size: 20px; }
  .profile-name { font-size: 18px; }
  .pcard { padding: 16px 16px; }
  .pcard-count { font-size: 38px; }
  .pcard-credits-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* =================== PROFILE PAGE =================== */
#view-profile { align-items: stretch; justify-content: flex-start; padding: 0; }

.profile-nav {
  flex-shrink: 0; position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: rgba(9,12,22,0.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.profile-nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
  background: var(--grad-blue); color: #fff; border: none; cursor: pointer;
  font-family: var(--display); transition: opacity 0.15s, transform 0.15s;
}
.profile-nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

.profile-body {
  flex: 1; max-width: 600px; width: 100%; margin: 0 auto;
  padding: 32px 20px 60px; display: flex; flex-direction: column; gap: 18px;
}

/* Hero: avatar + name + email */
.profile-hero {
  display: flex; align-items: center; gap: 20px; padding: 26px 26px;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(29,78,216,0.03));
  border: 1px solid rgba(59,130,246,0.2); border-radius: 20px;
}
.profile-avatar {
  width: 66px; height: 66px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad-blue);
  color: #fff; font-size: 26px; font-weight: 800; font-family: var(--display);
  box-shadow: 0 8px 24px -8px rgba(59,130,246,0.55);
}
.profile-hero-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.profile-name { font-family: var(--display); font-size: 21px; font-weight: 800; margin: 0; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-email { color: var(--muted); font-size: 13.5px; margin: 0; }

/* Shared card */
.pcard {
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 16px;
}
.pcard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pcard-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.pcard-hint { font-size: 12px; color: var(--faint); }

/* Credits */
.pcard-credits-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pcard-count { font-family: var(--display); font-size: 46px; font-weight: 800; line-height: 1; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pcard-unit { font-size: 14px; color: var(--muted); margin-top: 4px; }
.pcard-buy { display: flex; gap: 10px; flex-wrap: wrap; }
.profile-buy-btn { padding: 10px 20px; border-radius: 10px; font-size: 13.5px; font-weight: 600; background: var(--grad-blue); color: #fff; border: none; cursor: pointer; transition: opacity 0.15s, transform 0.15s; }
.profile-buy-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.profile-buy-btn-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.profile-buy-btn-ghost:hover { border-color: rgba(59,130,246,0.4); color: var(--ink); background: rgba(59,130,246,0.07); }

/* History */
.profile-history { display: flex; flex-direction: column; gap: 8px; }
.profile-hist-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; background: rgba(255,255,255,0.025); border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.2s, background 0.2s; }
.profile-hist-item:hover { border-color: var(--line-2); background: rgba(255,255,255,0.04); }
.profile-hist-left { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.profile-hist-type { font-size: 13.5px; font-weight: 600; }
.profile-hist-date { font-size: 12px; color: var(--faint); }
.profile-hist-score { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--accent-soft); flex-shrink: 0; }
.profile-empty { color: var(--faint); font-size: 13px; margin: 0; padding: 8px 0; }

/* Account */
.pcard-account-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard-account-info { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.pcard-account-info svg { color: var(--faint); flex-shrink: 0; }
.pcard-logout-btn { background: transparent; border: 1px solid rgba(251,113,133,0.28); color: #fda4af; border-radius: 9px; padding: 7px 14px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.pcard-logout-btn:hover { background: rgba(251,113,133,0.09); border-color: rgba(251,113,133,0.5); }

/* ===================================================================
   LANDING PAGE
   =================================================================== */
#view-landing { display: block; min-height: 100vh; }

/* scroll-reveal — progressive enhancement: visible by default, hidden only
   once JS sets .reveal-on, then animated in via keyframe (reliable everywhere). */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(26px); }
.reveal-on [data-reveal].in { animation: revealIn 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
@keyframes revealIn { to { opacity: 1; transform: none; } }

/* nav — single authoritative block */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 13px clamp(16px, 4vw, 52px);
  background: rgba(9,12,22,0.7);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s, border-color 0.3s;
}
.lp-nav.scrolled { background: rgba(9,12,22,0.92); border-color: rgba(255,255,255,0.1); }
.lp-nav.scrolled::after {
  content: ""; position: absolute; bottom: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5) 40%, rgba(99,102,241,0.5) 60%, transparent);
  animation: navGlow 3s ease-in-out infinite;
}
@keyframes navGlow { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* logo */
.lp-nav-logo .logo-word { font-size: 19px; }
.lp-nav-logo .logo-mark { transition: filter 0.3s; }
.lp-nav-logo:hover .logo-mark { filter: drop-shadow(0 0 14px rgba(59,130,246,0.7)); }

/* center pill */
.lp-nav-center { display: flex; align-items: center; justify-content: center; }
.lp-nav-pill {
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px; padding: 4px 5px;
}
.lp-nav-link {
  color: rgba(180,190,210,0.85); font-size: 13.5px; font-weight: 500;
  text-decoration: none; padding: 7px 15px; border-radius: 100px;
  transition: color 0.18s, background 0.18s; white-space: nowrap;
}
.lp-nav-link:hover { color: #e2e8f0; background: rgba(255,255,255,0.09); }

/* right side */
.lp-nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.lp-nav-login { background: transparent; border: 1px solid var(--line-2); color: var(--ink); border-radius: 20px; padding: 8px 16px; font-size: 13.5px; font-weight: 500; transition: all 0.18s; }
.lp-nav-login:hover { border-color: rgba(59,130,246,0.45); background: rgba(59,130,246,0.08); }

/* CTA button */
.lp-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none; color: #fff; border-radius: 100px;
  padding: 9px 18px 9px 14px;
  font-size: 13.5px; font-weight: 700; font-family: var(--display);
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 20px -4px rgba(99,102,241,0.6);
  transition: transform 0.18s, box-shadow 0.2s, background 0.2s;
  animation: ctaPulse 3s ease-in-out infinite;
}
.lp-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px -4px rgba(99,102,241,0.85);
  background: linear-gradient(135deg, #4f8ef7, #7c7ff5);
  animation: none;
}
@keyframes ctaPulse {
  0%,100% { box-shadow: 0 4px 20px -4px rgba(99,102,241,0.55); }
  50%      { box-shadow: 0 6px 28px -4px rgba(99,102,241,0.9);  }
}

/* live dot inside CTA */
.lp-nav-cta-live {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #a5f3c0;
  box-shadow: 0 0 6px rgba(52,211,153,0.9);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.65); } }

/* hero */
.lp-hero { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 8vh, 90px) clamp(20px, 5vw, 60px) 60px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #93c5fd; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25); margin-bottom: 22px; }
.lp-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: blink 2s ease-in-out infinite; }
.lp-h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 22px; }
.lp-grad { background: var(--grad-logo); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 6s linear infinite; }
.lp-sub { font-size: clamp(15px, 1.7vw, 18px); color: var(--muted); line-height: 1.65; max-width: 540px; margin: 0 0 32px; }
.lp-sub i { color: #cdd5ee; font-style: italic; }
.lp-hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lp-cta-big { width: auto !important; padding: 15px 26px !important; font-size: 15px; }
.lp-cta-ghost { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 14.5px; font-weight: 500; text-decoration: none; padding: 14px 8px; transition: color 0.15s; }
.lp-cta-ghost svg { color: var(--accent); }
.lp-cta-ghost:hover { color: var(--accent-soft); }
.lp-hero-nudge { font-size: 12.5px; color: var(--faint); margin: 14px 0 0; letter-spacing: 0.01em; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 22px; }
.lp-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.lp-trust .ic { width: 15px; height: 15px; color: var(--good); }

/* hero visual: floating mock */
.lp-hero-visual { display: flex; justify-content: center; perspective: 1200px; }
.lp-mock { position: relative; width: 100%; max-width: 380px; padding: 22px; border-radius: 24px; background: linear-gradient(170deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(16px); animation: mockFloat 6s ease-in-out infinite; }
@keyframes mockFloat { 0%,100% { transform: translateY(0) rotateX(0) rotateY(-3deg); } 50% { transform: translateY(-14px) rotateX(2deg) rotateY(-1deg); } }
.lp-mock-glow { position: absolute; inset: -30% -10% auto -10%; height: 70%; background: radial-gradient(50% 60% at 50% 0%, rgba(59,130,246,0.35), transparent 70%); filter: blur(30px); pointer-events: none; }
.lp-mock-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.lp-mock-tag { font-size: 12px; font-weight: 600; color: var(--muted); padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.lp-mock-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #fda4af; }
.lp-mock-livedot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 8px var(--bad); animation: blink 1.6s ease-in-out infinite; }
.lp-mock-orb { position: relative; height: 130px; display: grid; place-items: center; margin: 14px 0 6px; }
.lp-mock-orb::before { content: ''; position: absolute; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,0.3), transparent 68%); filter: blur(18px); }
.lp-mock-wave { display: flex; align-items: center; gap: 5px; height: 70px; position: relative; }
.lp-mock-wave i { width: 5px; border-radius: 99px; background: var(--grad-blue); animation: mockWave 1.1s ease-in-out infinite; }
.lp-mock-wave i:nth-child(odd) { animation-delay: 0.15s; }
.lp-mock-wave i:nth-child(3n) { animation-delay: 0.3s; }
.lp-mock-wave i:nth-child(3n+1) { animation-delay: 0.45s; }
@keyframes mockWave { 0%,100% { height: 14px; opacity: 0.6; } 50% { height: 56px; opacity: 1; } }
.lp-mock-status { text-align: center; font-size: 12.5px; color: #cdd5ee; font-style: italic; min-height: 32px; margin-bottom: 14px; }
.lp-mock-card { background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; gap: 16px; align-items: center; }
.lp-mock-score { text-align: center; flex-shrink: 0; }
.lp-mock-num { font-family: var(--display); font-size: 34px; font-weight: 800; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lp-mock-score small { display: block; color: var(--faint); font-size: 11px; margin-top: -2px; }
.lp-mock-bars { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.lp-mock-bar { font-size: 10px; color: var(--muted); }
.lp-mock-bar span { display: block; margin-bottom: 4px; }
.lp-mock-bar i { display: block; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; }
.lp-mock-bar i::after { content: ''; position: absolute; inset: 0; width: var(--w); border-radius: 99px; background: var(--grad-blue); animation: barGrow 1.4s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes barGrow { from { width: 0; } }

/* sections */
.lp-section { max-width: 1180px; margin: 0 auto; padding: clamp(50px, 8vh, 90px) clamp(20px, 5vw, 60px); }
.lp-section-head { text-align: center; margin-bottom: 48px; }
.lp-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lp-h2 { font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin: 0; }

/* how-it-works → connected horizontal timeline (no boxes) */
.lp-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* the line running through the node centres */
.lp-steps::before {
  content: ""; position: absolute; top: 41px; left: 16.66%; right: 16.66%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.45) 18%, rgba(59,130,246,0.45) 82%, transparent);
}
.lp-step { position: relative; z-index: 1; padding: 8px 14px 0; text-align: center; background: none; border: none; transition: transform 0.25s; }
.lp-step:hover { transform: translateY(-5px); }
/* icon becomes the node on the line; ring masks the line behind it */
.lp-step-ic {
  position: relative; width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--bg-2); border: 1px solid rgba(59,130,246,0.32); color: var(--accent-soft);
  display: grid; place-items: center;
  box-shadow: 0 0 0 7px var(--bg), 0 12px 28px -12px rgba(59,130,246,0.6);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.lp-step:hover .lp-step-ic { border-color: rgba(96,165,250,0.6); box-shadow: 0 0 0 7px var(--bg), 0 14px 32px -10px rgba(59,130,246,0.85); }
.lp-step-ic svg { width: 27px; height: 27px; }
/* small numbered badge sitting on the node */
.lp-step-num {
  position: absolute; top: 2px; left: 50%; transform: translateX(14px);
  width: 24px; height: 24px; border-radius: 50%; z-index: 3;
  background: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--bg);
  font-family: var(--display); font-size: 12.5px; font-weight: 700; line-height: 1;
  display: grid; place-items: center;
}
.lp-step h3 { font-size: 18px; margin: 0 0 9px; font-weight: 700; }
.lp-step p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0 auto; max-width: 280px; }

/* features → airy, borderless icon grid (no card boxes) */
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; row-gap: 34px; }
.lp-feat { position: relative; padding: 6px 6px 6px 60px; background: none; border: none; transition: transform 0.25s; }
.lp-feat:hover { transform: translateY(-3px); }
/* icon sits to the left of the text, inline — not stacked in a box */
.lp-feat-ic {
  position: absolute; left: 0; top: 2px; width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad-blue); display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 20px -8px rgba(59,130,246,0.7); transition: transform 0.25s, box-shadow 0.25s;
}
.lp-feat:hover .lp-feat-ic { transform: scale(1.08) rotate(-3deg); box-shadow: 0 12px 26px -8px rgba(59,130,246,0.9); }
.lp-feat-ic svg { width: 21px; height: 21px; }
.lp-feat h3 { font-size: 16px; margin: 0 0 7px; font-weight: 700; }
.lp-feat p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

/* interview types */
.lp-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-type { padding: 30px 26px; border-radius: 20px; background: linear-gradient(165deg, rgba(59,130,246,0.07), rgba(255,255,255,0.012)); border: 1px solid rgba(59,130,246,0.18); transition: transform 0.25s, box-shadow 0.25s; }
.lp-type:hover { transform: translateY(-5px); box-shadow: 0 20px 44px -20px rgba(59,130,246,0.6); }
.lp-type-ic { width: 48px; height: 48px; border-radius: 13px; background: rgba(59,130,246,0.14); border: 1px solid rgba(59,130,246,0.25); display: grid; place-items: center; color: var(--accent-soft); margin-bottom: 18px; }
.lp-type-ic svg { width: 23px; height: 23px; }
.lp-type h3 { font-size: 19px; margin: 0 0 9px; font-weight: 700; }
.lp-type p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }

/* pricing */
.lp-section-sub { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.lp-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.lp-plan {
  position: relative; border-radius: 22px; padding: 32px 28px 28px;
  background: linear-gradient(165deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.lp-plan:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -20px rgba(59,130,246,0.35); }
.lp-plan-hero {
  background: linear-gradient(165deg, rgba(59,130,246,0.13), rgba(29,78,216,0.04));
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.2), 0 20px 60px -20px rgba(59,130,246,0.4);
}
.lp-plan-hero:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(59,130,246,0.35), 0 28px 70px -20px rgba(59,130,246,0.55); }
.lp-plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-blue); color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.04em; padding: 4px 14px; border-radius: 99px; white-space: nowrap;
}
.lp-plan-head { display: flex; flex-direction: column; gap: 8px; }
.lp-plan-name { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.lp-plan-price { display: flex; align-items: baseline; gap: 8px; }
.lp-plan-amt { font-family: var(--display); font-size: 42px; font-weight: 800; color: var(--ink); line-height: 1; }
.lp-plan-save { font-size: 12px; font-weight: 600; color: var(--good); background: rgba(52,211,153,0.12); padding: 3px 9px; border-radius: 99px; }
.lp-plan-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.lp-plan-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lp-plan-feats li { font-size: 13.5px; color: var(--muted); padding-left: 22px; position: relative; }
.lp-plan-feats li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-soft); font-weight: 700; }
.lp-plan-btn {
  width: 100%; padding: 13px 20px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: var(--grad-blue); color: #fff; border: none; cursor: pointer;
  transition: opacity 0.18s, transform 0.18s; letter-spacing: 0.01em;
}
.lp-plan-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.lp-plan-btn-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.lp-plan-btn-ghost:hover { border-color: rgba(59,130,246,0.4); color: var(--ink); background: rgba(59,130,246,0.07); }

/* nav credits badge */
.nav-credits {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px;
  background: rgba(59,130,246,0.18); border: 1px solid rgba(59,130,246,0.35);
  color: var(--accent-soft); font-size: 11px; font-weight: 700; line-height: 1;
}
.nav-credits-admin { background: rgba(52,211,153,0.15); border-color: rgba(52,211,153,0.35); color: var(--good); }
.nav-credits-empty { background: rgba(251,113,133,0.12); border-color: rgba(251,113,133,0.3); color: var(--bad); }

/* share button + shared badge */
.share-btn { display: flex; align-items: center; gap: 7px; color: var(--accent-soft); border-color: rgba(59,130,246,0.35); }
.share-btn:hover { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.6); color: #93c5fd; }
.shared-badge { display: inline-flex; align-items: center; margin-left: 10px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; background: rgba(59,130,246,0.14); border: 1px solid rgba(59,130,246,0.3); color: var(--accent-soft); letter-spacing: 0.03em; }

/* payment toast */
.pay-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: rgba(15,20,38,0.95); border: 1px solid rgba(52,211,153,0.4);
  color: var(--ink); padding: 14px 24px; border-radius: 14px; font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); z-index: 9999; white-space: nowrap;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s;
  opacity: 0; pointer-events: none;
}
.pay-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* CTA band */
.lp-cta-band { max-width: 1180px; margin: 0 auto clamp(40px,8vh,80px); padding: 0 clamp(20px, 5vw, 60px); }
.lp-cta-inner { position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 7vw, 70px) 30px; border-radius: 28px; background: linear-gradient(150deg, rgba(59,130,246,0.16), rgba(29,78,216,0.06)); border: 1px solid rgba(59,130,246,0.3); }
.lp-cta-inner::before { content: ''; position: absolute; top: -60%; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(50% 50% at 50% 50%, rgba(59,130,246,0.25), transparent 70%); pointer-events: none; animation: glowPulse 4s ease-in-out infinite; }
.lp-cta-inner h2 { position: relative; }
.lp-cta-inner p { position: relative; color: var(--muted); font-size: 15px; margin: 14px 0 28px; }
.lp-cta-inner .btn-primary { position: relative; margin: 0 auto; }

/* footer */
.lp-footer { border-top: 1px solid var(--line); padding: 40px clamp(20px, 5vw, 60px); max-width: 1180px; margin: 0 auto; text-align: center; }
.lp-foot-logo { justify-content: center; margin-bottom: 12px; }
.lp-foot-logo .logo-word { font-size: 18px; }
.lp-foot-tag { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.lp-foot-links { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.lp-foot-link { color: var(--faint); font-size: 13px; text-decoration: none; transition: color 0.15s; }
.lp-foot-link:hover { color: var(--muted); }
.lp-foot-sep { color: var(--faint); font-size: 13px; }
.lp-foot-copy { color: var(--faint); font-size: 12.5px; margin: 0; }

/* ===================================================================
   404 & MAINTENANCE SPLASH PAGES
   =================================================================== */
#view-404, #view-maintenance {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
}
.spl-wrap {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px; max-width: 420px;
  animation: fadeInUp 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
.spl-code {
  font-family: var(--display); font-size: clamp(80px,16vw,128px);
  font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(99,102,241,0.3));
}
.spl-icon, .spl-maint-icon {
  width: 80px; height: 80px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.spl-icon {
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25);
  color: var(--accent-soft);
  box-shadow: 0 0 32px rgba(99,102,241,0.12);
}
.spl-maint-icon {
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.25);
  color: #fbbf24;
  box-shadow: 0 0 32px rgba(251,191,36,0.12);
}
.spl-title {
  font-family: var(--display); font-size: clamp(22px,5vw,30px);
  font-weight: 800; letter-spacing: -0.03em; color: #e8ecf4; margin: 0;
}
.spl-sub {
  color: var(--muted); font-size: 15px; line-height: 1.65;
  max-width: 360px; margin: 0;
}
.spl-btn { margin-top: 8px; padding: 13px 28px; font-size: 15px; }
.spl-maint-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 100px;
}
.spl-maint-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #fbbf24; animation: livePulse 2s ease-in-out infinite;
}
.spl-maint-eta {
  display: flex; align-items: center; gap: 7px;
  color: var(--faint); font-size: 13px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  padding: 9px 16px; border-radius: 100px; margin-top: 4px;
}
.spl-contact {
  color: var(--accent-soft); font-size: 13px; text-decoration: none;
  opacity: 0.8; transition: opacity 0.2s;
}
.spl-contact:hover { opacity: 1; }

/* ===================================================================
   POLICY PAGES (Terms / Privacy / Contact)
   =================================================================== */
#view-terms, #view-privacy, #view-contact {
  align-items: stretch; justify-content: flex-start; padding: 0;
  min-height: 100vh; background: var(--bg);
}

/* top nav */
.policy-topnav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px,5vw,48px); height: 60px;
  background: rgba(9,11,20,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.policy-back-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted); font-size: 13px; padding: 7px 14px; border-radius: 20px;
  cursor: pointer; transition: color 0.2s, background 0.2s;
}
.policy-back-btn:hover { color: #e2e8f0; background: rgba(255,255,255,0.09); }

/* hero */
.policy-hero-section {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: clamp(48px,8vh,88px) clamp(16px,5vw,40px) clamp(32px,5vh,56px);
  position: relative;
}
.policy-hero-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99,102,241,0.12), transparent);
  pointer-events: none;
}
.policy-hero-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
  border: 1px solid rgba(99,102,241,0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-soft); margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(99,102,241,0.15);
}
.policy-hero-title {
  font-family: var(--display); font-size: clamp(28px,5vw,44px);
  font-weight: 800; letter-spacing: -0.03em; color: #e8ecf4; margin: 0 0 12px;
}
.policy-hero-sub {
  color: var(--muted); font-size: clamp(14px,2.5vw,16px);
  max-width: 480px; line-height: 1.65; margin: 0 0 20px;
}
.policy-badge {
  display: inline-block; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); color: var(--faint);
  font-size: 12px; padding: 4px 12px; border-radius: 20px; letter-spacing: 0.02em;
}

/* content */
.policy-content-wrap {
  width: 100%; max-width: 720px; margin: 0 auto;
  padding: 0 clamp(16px,5vw,40px) 100px;
}
.policy-section {
  display: flex; gap: 24px; padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.policy-section:last-of-type { border-bottom: none; }
.policy-section-num {
  font-family: var(--display); font-size: 11px; font-weight: 700;
  color: var(--accent-soft); letter-spacing: 0.1em; opacity: 0.7;
  min-width: 28px; padding-top: 3px; flex-shrink: 0;
}
.policy-section-body h2 {
  font-family: var(--display); font-size: 15px; font-weight: 700;
  color: #d4dae8; margin: 0 0 8px;
}
.policy-section-body p {
  color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0;
}

/* contact card at bottom */
.policy-contact-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,102,241,0.25); border-radius: 16px;
  padding: 20px 24px; margin-top: 32px; color: var(--accent-soft);
}
.policy-contact-label { font-size: 12px; color: var(--faint); margin: 0 0 3px; }
.policy-contact-email {
  color: var(--accent-soft); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: opacity 0.2s;
}
.policy-contact-email:hover { opacity: 0.75; }

/* contact page specifics */
.contact-content-wrap { display: flex; flex-direction: column; gap: 32px; }
.contact-cards { display: flex; flex-direction: column; gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 18px 20px;
  text-decoration: none; transition: background 0.2s, border-color 0.2s;
}
.contact-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(99,102,241,0.35); }
.contact-card-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25);
  color: var(--accent-soft); display: flex; align-items: center; justify-content: center;
}
.contact-card-label { font-size: 11px; color: var(--faint); margin: 0 0 3px; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-card-val { font-size: 14px; font-weight: 600; color: #d4dae8; margin: 0; }
.contact-faq-title {
  font-family: var(--display); font-size: 18px; font-weight: 700;
  color: #d4dae8; margin: 0 0 16px;
}
.contact-faq-item {
  padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.contact-faq-item:last-child { border-bottom: none; }
.contact-faq-q { font-size: 14px; font-weight: 600; color: #c8d0e0; margin: 0 0 8px; }
.contact-faq-a { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin: 0; }

/* contact form */
.contact-form {
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 7px; }
.contact-field label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.contact-field input, .contact-field textarea {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 12px 14px; color: var(--ink); font-family: var(--body);
  font-size: 14px; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; resize: vertical;
}
.contact-field input::placeholder, .contact-field textarea::placeholder { color: var(--faint); }
.contact-field input:focus, .contact-field textarea:focus {
  outline: none; border-color: rgba(59,130,246,0.55); background: rgba(59,130,246,0.05);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.contact-submit {
  position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, #3b82f6, #6366f1); border: none; color: #fff;
  border-radius: 12px; padding: 13px 24px; font-size: 14.5px; font-weight: 700; font-family: var(--display);
  cursor: pointer; box-shadow: 0 8px 24px -8px rgba(99,102,241,0.6);
  transition: transform 0.18s, box-shadow 0.2s, opacity 0.2s; overflow: hidden;
}
.contact-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(99,102,241,0.85); }
.contact-submit:disabled { opacity: 0.85; cursor: default; transform: none; }
.contact-submit .cf-submit-arrow { transition: transform 0.25s; }
.contact-submit:hover .cf-submit-arrow { transform: translate(2px, -2px); }
.cf-submit-spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 0.7s linear infinite;
}
.contact-submit.loading .cf-submit-label { opacity: 0.7; }
.contact-submit.loading .cf-submit-arrow { display: none; }
.contact-submit.loading .cf-submit-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact-form-status { font-size: 13px; margin: 0; min-height: 18px; line-height: 1.5; }
.contact-form-status.ok { color: var(--good); }
.contact-form-status.err { color: var(--bad); }
@media (max-width: 560px) { .contact-form-row { grid-template-columns: 1fr; } .contact-form { padding: 22px; } }


/* landing responsive */
@media (max-width: 920px) {
  .lp-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; text-align: center; }
  .lp-hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lp-hero-cta, .lp-trust { justify-content: center; }
  .lp-hero-visual { order: -1; }
  .lp-mock { max-width: 340px; }
  .lp-steps, .lp-features, .lp-types, .lp-pricing { grid-template-columns: 1fr; }
  /* timeline → stack vertically; drop the horizontal connector line */
  .lp-steps { gap: 30px; }
  .lp-steps::before { display: none; }
  .lp-features { row-gap: 26px; }
}
@media (max-width: 620px) {
  .lp-trust { gap: 12px 18px; }
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.05ms !important; }
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ===================================================================
   RECONNECT OVERLAY
   =================================================================== */
.reconnect-overlay {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 40px 24px;
  animation: fadeInUp 0.35s ease both;
}
.reconnect-overlay h3 { font-family: var(--display); font-size: 22px; font-weight: 700; margin: 0; }
.reconnect-overlay p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* ===================================================================
   PAYMENT SUCCESS MODAL
   =================================================================== */
.pay-success-modal {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(9,12,22,0.72); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 20px;
}
.pay-success-modal.show { display: flex; animation: fadeIn 0.25s ease both; }
.pay-success-card {
  background: #0f1424; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 40px 36px; max-width: 400px; width: 100%;
  text-align: center; box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}
.pay-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: var(--good);
}
.pay-success-card h3 { font-family: var(--display); font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.pay-success-card p { color: var(--muted); font-size: 15px; margin: 0 0 6px; line-height: 1.5; }
.pay-success-card p b { color: var(--ink); }
.pay-success-total { color: var(--faint) !important; font-size: 13px !important; }

/* service down card */
.service-down-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 48px 32px; gap: 10px;
  max-width: 420px; margin: auto; animation: fadeInUp 0.35s ease both;
}
.service-down-icon {
  width: 68px; height: 68px; border-radius: 50%; margin-bottom: 8px;
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3);
  display: flex; align-items: center; justify-content: center; color: #fbbf24;
  box-shadow: 0 0 32px rgba(251,191,36,0.15);
}
.service-down-card h3 { font-family: var(--display); font-size: 20px; font-weight: 700; margin: 0; color: #e8ecf4; }
.service-down-card p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0; }
.service-down-card p strong { color: var(--good); }
.service-down-sub { font-size: 13px !important; color: var(--faint) !important; }
.service-down-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }

/* ===================================================================
   EMPTY PROFILE STATE
   =================================================================== */
.profile-empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; text-align: center; padding: 36px 20px;
}
.profile-empty-state p { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0; }
.profile-empty-state span { font-size: 13px; color: var(--faint); max-width: 300px; line-height: 1.5; }

/* hamburger */
.lp-hamburger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  background: rgba(255,255,255,0.05); cursor: pointer;
  transition: background 0.18s, border-color 0.18s; flex-shrink: 0;
}
.lp-hamburger:hover { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.35); }
.lp-hamburger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--ink); border-radius: 99px;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.2s, width 0.2s;
}
.lp-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.lp-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.lp-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile menu */
.lp-mob-menu {
  position: fixed; top: 62px; left: 12px; right: 12px; z-index: 99;
  background: rgba(10,13,26,0.97); border: 1px solid rgba(99,102,241,0.2);
  border-radius: 18px; padding: 8px;
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(-10px) scale(0.98);
  transition: opacity 0.26s cubic-bezier(0.22,1,0.36,1), transform 0.26s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.lp-mob-menu.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.lp-mob-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 12px;
  color: var(--muted); font-size: 15px; font-weight: 500;
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.lp-mob-link:hover { background: rgba(59,130,246,0.08); color: var(--ink); }
.lp-mob-auth {
  padding: 10px 6px 4px; border-top: 1px solid var(--line); margin-top: 4px;
}
.lp-mob-auth .nav-auth { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.lp-mob-auth .lp-nav-cta { display: flex; width: 100%; justify-content: center; padding: 13px; border-radius: 14px; font-size: 15px; }
.lp-mob-auth .lp-nav-login { text-align: center; padding: 12px; border-radius: 14px; width: 100%; }
.lp-mob-auth .nav-user { justify-content: flex-start; padding: 12px 14px; border-radius: 12px; width: 100%; }

@media (max-width: 740px) {
  .lp-nav { grid-template-columns: 1fr auto; }
  .lp-nav-center { display: none; }
  .lp-hamburger { display: flex; }
  .lp-nav-right .nav-auth { display: none; }
}
@media (max-width: 480px) {
  .lp-nav { padding: 11px 14px; }
  .lp-nav-logo .logo-word { font-size: 17px; }
  .lp-nav-logo .logo-mark { width: 26px; height: 26px; }
}

/* ===================================================================
   MOBILE INTERVIEW — full-height layout, pinned bottom controls
   =================================================================== */
@media (max-width: 640px) {
  #view-interview {
    padding: 14px 16px 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
  }
  .iv-topbar { flex-shrink: 0; padding-bottom: 6px; }
  .iv-stage { flex: 1; min-height: 0; gap: 10px; padding-bottom: 4px; }
  .viz-wrap {
    width: min(68vw, 46vh) !important;
    height: min(68vw, 46vh) !important;
  }
  .iv-status { font-size: 17px; text-align: center; max-width: 260px; }
  .iv-hint { font-size: 11.5px; text-align: center; }
  .iv-controls {
    flex-shrink: 0;
    padding: 10px 0 max(18px, env(safe-area-inset-bottom, 18px));
    background: linear-gradient(to top, rgba(9,12,22,1) 55%, transparent);
    gap: 8px;
  }
  .ctrl-cam .ctrl-label { display: none; }
  .ctrl-cam { padding: 11px 14px; }
  .ctrl-end { flex: 1; justify-content: center; max-width: 210px; font-size: 13.5px; padding: 12px 16px; }
  .iv-meta { font-size: 11px; padding: 4px 9px; }
  .iv-timer-wrap { font-size: 12px; padding: 5px 10px; }
  .selfview { width: 104px; height: 70px; top: 10px; right: 10px; }
}
@media (max-width: 380px) {
  .iv-status { font-size: 15px; }
  .viz-wrap { width: min(76vw, 42vh) !important; height: min(76vw, 42vh) !important; }
  .iv-timer-wrap { display: none; }
}

/* ===================================================================
   ANIMATIONS — stagger, polish, micro-interactions
   =================================================================== */
.profile-hist-item { animation: slideInUp 0.42s cubic-bezier(0.22,1,0.36,1) both; }
.profile-hist-item:nth-child(1) { animation-delay: 0.04s; }
.profile-hist-item:nth-child(2) { animation-delay: 0.09s; }
.profile-hist-item:nth-child(3) { animation-delay: 0.14s; }
.profile-hist-item:nth-child(4) { animation-delay: 0.19s; }
.profile-hist-item:nth-child(5) { animation-delay: 0.24s; }
.profile-hist-item:nth-child(n+6) { animation-delay: 0.28s; }
@keyframes slideInUp { from { opacity: 0; transform: translateY(12px); } }

.pcard:nth-child(1) { animation: cardRise 0.55s cubic-bezier(0.22,1,0.36,1) 0.04s both; }
.pcard:nth-child(2) { animation: cardRise 0.55s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.pcard:nth-child(3) { animation: cardRise 0.55s cubic-bezier(0.22,1,0.36,1) 0.16s both; }
.pcard:nth-child(4) { animation: cardRise 0.55s cubic-bezier(0.22,1,0.36,1) 0.22s both; }


.ctrl-btn:active { transform: scale(0.94) !important; transition: transform 0.1s !important; }
.btn-primary:active:not(:disabled) { transform: scale(0.98) translateY(0) !important; }

.lp-feat { transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), border-color 0.28s, background 0.28s; }
.lp-feat:hover { transform: translateY(-6px) scale(1.015); }
.lp-step { transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), border-color 0.28s; }
.lp-step:hover { transform: translateY(-6px); }

@media (max-width: 500px) {
  .pay-toast { left: 12px; right: 12px; white-space: normal; text-align: center; transform: translateY(80px); }
  .pay-toast.show { transform: translateY(0); }
  .pay-success-card { padding: 28px 20px; }
}

/* ===================================================================
   ★ PREMIUM ENHANCEMENT LAYER
   Top-tier polish: glass docks, ripples, spotlights, hold-to-end,
   reveals, custom scrollbar, focus rings, reduced-motion.
   =================================================================== */

/* ---- Button click ripple (premium micro-interaction) ---- */
.ctrl-btn, .btn-primary, .btn-ghost, .lp-nav-cta, .setup-nav-buy { position: relative; overflow: hidden; }
.btn-ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255,255,255,0.35); pointer-events: none;
  animation: rippleOut 0.6s ease-out forwards; mix-blend-mode: overlay;
}
@keyframes rippleOut { to { transform: scale(2.4); opacity: 0; } }

/* ---- Interview controls → floating glass dock ---- */
.iv-controls {
  background: rgba(13, 17, 30, 0.55);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-radius: 100px; padding: 9px;
  box-shadow: 0 18px 50px -20px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.06);
  width: fit-content; margin-inline: auto;
}

/* Camera active state — refined blue glow */
.ctrl-cam.cam-on {
  background: rgba(59,130,246,0.16); border-color: rgba(59,130,246,0.4);
  color: var(--accent-soft); box-shadow: 0 0 0 1px rgba(59,130,246,0.25), 0 8px 24px -10px rgba(59,130,246,0.6);
}

/* ---- Hold-to-confirm End button ---- */
.ctrl-end {
  position: relative; isolation: isolate;
  background: rgba(251,113,133,0.1); border: 1px solid rgba(251,113,133,0.28);
  color: #fda4af;
}
.ctrl-end:hover { background: rgba(251,113,133,0.16); border-color: rgba(251,113,133,0.45); color: #fecdd3; }
.ctrl-end-inner { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; }
.ctrl-hold-fill {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: linear-gradient(90deg, #fb7185, #f43f5e);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0s; opacity: 0.9;
}
.ctrl-end.holding .ctrl-hold-fill { transform: scaleX(1); transition: transform 0.65s linear; }
.ctrl-end.holding { color: #fff; border-color: #fb7185; }
.ctrl-end.confirmed { color: #fff; }
.ctrl-end::after {
  content: "Hold"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%) translateY(4px);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--faint);
  background: rgba(13,17,30,0.9); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; white-space: nowrap;
}
.ctrl-end:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* halo gets GPU compositing for the JS-driven pulse */
.viz-halo { will-change: transform, opacity; }

/* ---- Cursor-spotlight cards ---- */
.has-spotlight { position: relative; }
.has-spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%),
              rgba(96,165,250,0.16), transparent 60%);
  opacity: 0; transition: opacity 0.3s; z-index: 0;
}
.has-spotlight:hover::before { opacity: 1; }
.has-spotlight > * { position: relative; z-index: 1; }
/* borderless sections shouldn't show a floating spotlight glow */
.lp-step.has-spotlight::before, .lp-feat.has-spotlight::before { display: none; }

/* ---- Hero mock parallax smoothing ---- */
.lp-mock { transition: transform 0.25s cubic-bezier(0.22,1,0.36,1); transform-style: preserve-3d; will-change: transform; }

/* ---- Results: staggered card reveal + gauge glow ---- */
@keyframes revealPop {
  from { opacity: 0; transform: translateY(18px) scale(0.97); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.reveal-pop { animation: revealPop 0.6s cubic-bezier(0.22,1,0.36,1) both; }
.gauge-arc {
  filter: drop-shadow(0 0 8px rgba(59,130,246,0.55));
  transition: stroke-dashoffset 1.3s cubic-bezier(0.22,1,0.36,1);
}
.score-gauge { position: relative; }
.score-gauge::after {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 70%);
  animation: gaugeBreath 4s ease-in-out infinite;
}
@keyframes gaugeBreath { 0%,100% { opacity: 0.5; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }

/* ---- Confetti overlay ---- */
.confetti-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }

/* ---- Custom scrollbar ---- */
* { scrollbar-width: thin; scrollbar-color: rgba(96,165,250,0.35) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(96,165,250,0.45), rgba(37,99,235,0.45));
  border-radius: 99px; border: 3px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(96,165,250,0.7), rgba(37,99,235,0.7)); background-clip: padding-box; border: 3px solid transparent; }

/* ---- Focus ring: keyboard only, never on mouse/touch click ---- */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; border-radius: 6px; }

/* ---- Smooth view cross-fade (richer entrance) ---- */
.view-anim { animation: viewIn 0.6s cubic-bezier(0.22,1,0.36,1); }

/* ---- Selection colour ---- */
::selection { background: rgba(59,130,246,0.32); color: #fff; }

/* ---- Live caption line under the orb (optional, JS-toggled) ---- */
.iv-caption {
  max-width: min(620px, 86vw); text-align: center; color: var(--muted);
  font-size: 15px; line-height: 1.55; min-height: 1.5em; opacity: 0;
  transition: opacity 0.4s; font-style: italic; letter-spacing: -0.01em;
}
.iv-caption.show { opacity: 1; }

/* ===================================================================
   ★ LANDING — ANIMATED GRAPHICS (voice/audio themed, tasteful)
   =================================================================== */

/* ---- Animated voice-waveform divider ---- */
.lp-wave-divider {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 56px; max-width: 480px; margin: 4px auto 0; opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.lp-wave-divider i {
  display: block; width: 3px; height: var(--bh, 40%); border-radius: 99px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  transform-origin: center; transform: scaleY(0.32);
  animation: waveBar 1.3s ease-in-out infinite;
}
@keyframes waveBar { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

/* ---- Timeline: flowing light along the line ---- */
.lp-steps::before {
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.18) 14%, rgba(96,165,250,0.6) 50%, rgba(59,130,246,0.18) 86%, transparent);
  background-size: 220% 100%;
  animation: tlFlow 5.5s linear infinite;
}
@keyframes tlFlow { to { background-position: -220% 0; } }
/* a glowing pulse that travels node → node along the line */
.lp-steps::after {
  content: ""; position: absolute; top: 41px; width: 9px; height: 9px;
  margin-top: -4px; margin-left: -4px; border-radius: 50%; z-index: 2;
  background: #bfdbfe; box-shadow: 0 0 14px 4px rgba(96,165,250,0.85);
  animation: tlDot 4.5s cubic-bezier(0.65,0,0.35,1) infinite;
}
@keyframes tlDot {
  0%   { left: 16.66%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 83.34%; opacity: 0; }
}
/* nodes gently breathe */
.lp-step-ic { animation: nodeBreath 4.5s ease-in-out infinite; }
.lp-step:nth-child(2) .lp-step-ic { animation-delay: 1.5s; }
.lp-step:nth-child(3) .lp-step-ic { animation-delay: 3s; }
@keyframes nodeBreath {
  0%, 100% { box-shadow: 0 0 0 7px var(--bg), 0 12px 28px -12px rgba(59,130,246,0.55); }
  50%      { box-shadow: 0 0 0 7px var(--bg), 0 14px 32px -10px rgba(59,130,246,0.85), 0 0 22px -2px rgba(96,165,250,0.5); }
}

/* ---- Feature icons: staggered radar-ping rings ---- */
.lp-feat-ic { position: absolute; }   /* ensure ::after anchors to icon */
.lp-feat-ic::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  box-shadow: 0 0 0 0 rgba(96,165,250,0.4);
  animation: featPing 4.5s ease-out infinite;
}
.lp-feat:nth-child(1) .lp-feat-ic::after { animation-delay: 0s; }
.lp-feat:nth-child(2) .lp-feat-ic::after { animation-delay: 0.75s; }
.lp-feat:nth-child(3) .lp-feat-ic::after { animation-delay: 1.5s; }
.lp-feat:nth-child(4) .lp-feat-ic::after { animation-delay: 2.25s; }
.lp-feat:nth-child(5) .lp-feat-ic::after { animation-delay: 3s; }
.lp-feat:nth-child(6) .lp-feat-ic::after { animation-delay: 3.75s; }
@keyframes featPing {
  0%       { box-shadow: 0 0 0 0 rgba(96,165,250,0.4); }
  60%, 100% { box-shadow: 0 0 0 13px rgba(96,165,250,0); }
}

/* ---- Interview-type icons: subtle idle float ---- */
.lp-type-ic { animation: icFloatB 5s ease-in-out infinite; }
.lp-type:nth-child(2) .lp-type-ic { animation-delay: 0.6s; }
.lp-type:nth-child(3) .lp-type-ic { animation-delay: 1.2s; }
@keyframes icFloatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

@media (max-width: 920px) {
  .lp-steps::after { display: none; }   /* no traveling dot when stacked */
  .lp-wave-divider { max-width: 320px; height: 44px; }
}

/* ===================================================================
   ♿ Reduced-motion: honour user preference, kill heavy animation
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
  .aurora, .grid, .viz-ring, .viz-halo, .gauge-arc { animation: none !important; }
  .btn-ripple, .confetti-canvas { display: none !important; }
  .lp-steps::after, .lp-wave-divider { display: none !important; }
  .lp-wave-divider i, .lp-step-ic, .lp-feat-ic::after, .lp-type-ic, .lp-steps::before { animation: none !important; }
}
