/* portal.varqus.com — same brand grammar as ky.varqus.com */
:root {
  --pt-brand: #97d8fd;
  --pt-bg: #f4f9fc;
  --pt-bg-mid: #eaf4fa;
  --pt-surface: #ffffff;
  --pt-ink: #152033;
  --pt-muted: #5a6b7c;
  --pt-faint: #8494a4;
  --pt-line: rgba(21, 32, 51, 0.08);
  --pt-accent: #2b9fc4;
  --pt-accent-soft: rgba(151, 216, 253, 0.28);
  --pt-accent-deep: #1a7a9a;
  --pt-ok: #2a9a6a;
  --pt-danger: #b42318;
  --pt-danger-soft: rgba(180, 35, 24, 0.08);
  --pt-radius: 18px;
  --pt-radius-sm: 14px;
  --pt-shadow: 0 1px 2px rgba(21, 32, 51, 0.04), 0 14px 36px rgba(42, 159, 196, 0.07);
  --pt-font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --pt-safe-b: env(safe-area-inset-bottom, 0px);
  --pt-safe-t: env(safe-area-inset-top, 0px);
  --pt-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pt-max: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body.pt-body {
  margin: 0;
  font-family: var(--pt-font);
  color: var(--pt-ink);
  background:
    radial-gradient(95% 58% at 50% -10%, rgba(151, 216, 253, 0.42), transparent 60%),
    radial-gradient(70% 40% at 100% 20%, rgba(43, 159, 196, 0.08), transparent 50%),
    linear-gradient(180deg, #fbfcfd 0%, var(--pt-bg) 40%, var(--pt-bg-mid) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#pt-app {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pt-lang {
  position: fixed;
  top: calc(10px + var(--pt-safe-t));
  right: 12px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(43, 159, 196, 0.18);
  box-shadow: 0 6px 18px rgba(21, 32, 51, 0.06);
  backdrop-filter: blur(8px);
}
.pt-lang-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pt-faint);
  margin-right: 2px;
}
.pt-lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--pt-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 7px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}
.pt-lang-btn.is-active {
  background: rgba(43, 159, 196, 0.14);
  color: var(--pt-accent-deep);
}
body.pt-splash-active .pt-lang { opacity: 0; pointer-events: none; }

.pt-screen {
  min-height: 100%;
  min-height: 100dvh;
  display: none;
  flex-direction: column;
  padding: calc(22px + var(--pt-safe-t)) 24px calc(28px + var(--pt-safe-b));
  max-width: var(--pt-max);
  width: 100%;
  margin: 0 auto;
}
.pt-screen.is-active {
  display: flex;
  animation: pt-enter 0.65s var(--pt-ease) both;
}
.pt-screen[hidden] { display: none !important; }
.pt-screen.is-leaving {
  animation: pt-leave 0.28s ease both;
}

@keyframes pt-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pt-leave {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-6px); }
}

/* Splash */
.pt-splash {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  position: relative;
  text-align: center;
}
.pt-splash-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 216, 253, 0.72), transparent 68%);
  filter: blur(2px);
  animation: pt-breathe 3.2s ease-in-out infinite;
}
@keyframes pt-breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 0.85; }
}
.pt-splash-logo {
  width: min(200px, 62vw);
  height: auto;
  position: relative;
  z-index: 1;
  animation: pt-logo-in 1.35s var(--pt-ease) both;
}
@keyframes pt-logo-in {
  0% { opacity: 0; transform: translateY(8px) scale(0.97); filter: blur(3px); }
  55% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.pt-splash-tag {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--pt-muted);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  animation: pt-enter 0.9s 0.4s both;
}
.pt-splash-bar {
  width: 72px;
  height: 2px;
  border-radius: 99px;
  background: rgba(26, 36, 51, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 1;
  animation: pt-enter 0.9s 0.55s both;
}
.pt-splash-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--pt-accent);
  border-radius: inherit;
  animation: pt-load 1.8s 0.35s var(--pt-ease) forwards;
}
@keyframes pt-load {
  to { width: 100%; }
}

/* Route / refresh loader (KY + xtroverso page-move feel) */
.pt-route-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(151, 216, 253, 0.35), transparent 55%),
    rgba(244, 249, 252, 0.88);
  backdrop-filter: blur(10px);
  animation: pt-enter 0.28s var(--pt-ease) both;
}
.pt-route-loader[hidden] { display: none !important; }
.pt-route-loader-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  position: relative;
  text-align: center;
  padding: 24px;
}
.pt-route-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 216, 253, 0.65), transparent 70%);
  animation: pt-breathe 2.4s ease-in-out infinite;
}
.pt-route-logo {
  width: min(140px, 46vw);
  position: relative;
  z-index: 1;
  animation: pt-logo-in 0.9s var(--pt-ease) both;
}
.pt-route-label {
  margin: 0;
  position: relative;
  z-index: 1;
  color: var(--pt-muted);
  font-size: 0.88rem;
  font-weight: 500;
}
.pt-route-bar {
  width: 64px;
  height: 2px;
  border-radius: 99px;
  background: rgba(26, 36, 51, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.pt-route-bar > span {
  display: block;
  height: 100%;
  width: 35%;
  background: var(--pt-accent);
  border-radius: inherit;
  animation: pt-indeterminate 1.1s ease-in-out infinite;
}
@keyframes pt-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.pt-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
  padding-top: 28px;
}
.pt-top--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pt-logo-mark {
  width: 108px;
  height: auto;
  display: block;
  opacity: 0.92;
}
.pt-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.pt-content--narrow { max-width: 420px; width: 100%; }
.pt-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pt-accent-deep);
}
.pt-title {
  margin: 0;
  font-size: clamp(1.55rem, 4.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pt-lead {
  margin: 0;
  color: var(--pt-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.pt-employer {
  margin: 0;
  font-weight: 600;
  color: var(--pt-ink);
  font-size: 1.02rem;
}
.pt-employer:empty { display: none; }

.pt-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.pt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pt-muted);
}
.pt-field input {
  appearance: none;
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius-sm);
  padding: 14px 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--pt-ink);
  background: var(--pt-surface);
  box-shadow: var(--pt-shadow);
}
.pt-field input:focus {
  outline: 2px solid rgba(43, 159, 196, 0.35);
  outline-offset: 1px;
  border-color: rgba(43, 159, 196, 0.45);
}
.pt-form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--pt-danger-soft);
  color: var(--pt-danger);
  font-size: 0.88rem;
  line-height: 1.4;
  display: none;
}
.pt-form-error.is-visible { display: block; }

.pt-btn-primary,
.pt-btn-secondary,
.pt-btn-ghost {
  appearance: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 18px;
  line-height: 1.1;
  transition: transform 0.18s var(--pt-ease), background 0.18s ease, color 0.18s ease;
}
.pt-btn-primary {
  background: linear-gradient(180deg, #3eb0d4 0%, var(--pt-accent-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 122, 154, 0.22);
}
.pt-btn-primary:active { transform: scale(0.98); }
.pt-btn-secondary {
  background: rgba(43, 159, 196, 0.1);
  color: var(--pt-accent-deep);
}
.pt-btn-ghost {
  background: transparent;
  color: var(--pt-muted);
  padding: 8px 12px;
  font-size: 0.86rem;
}

.pt-share-grid {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.pt-share-card {
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
  border-radius: var(--pt-radius);
  box-shadow: var(--pt-shadow);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pt-share-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pt-share-title {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.pt-share-hint {
  font-size: 0.82rem;
  color: var(--pt-faint);
}
.pt-mono {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  border: 1px solid var(--pt-line);
  border-radius: 12px;
  padding: 12px;
  background: #f7fbfd;
  color: var(--pt-ink);
}
.pt-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pt-empty {
  margin: 0;
  color: var(--pt-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (min-width: 720px) {
  .pt-share-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .pt-screen {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (min-width: 1024px) {
  :root { --pt-max: 880px; }
  .pt-title { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-splash-glow,
  .pt-splash-logo,
  .pt-splash-tag,
  .pt-splash-bar,
  .pt-splash-bar > span,
  .pt-route-glow,
  .pt-route-logo,
  .pt-route-bar > span,
  .pt-screen.is-active,
  .pt-screen.is-leaving,
  .pt-route-loader {
    animation: none !important;
  }
  .pt-splash-bar > span,
  .pt-route-bar > span { width: 100%; transform: none; }
}
