@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Host+Grotesk:ital,wght@0,300..800;1,300..800&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Unbounded:wght@200..900&display=swap');

:root {
  /* base - true black */
  --bg: #000000;
  --bg-2: #050505;
  --txt: #f2f2f5;
  --txt-2: #a2a2ac;
  --txt-3: #68686f;

  /* glass */
  --glass: rgba(255, 255, 255, .04);
  --glass-2: rgba(255, 255, 255, .065);
  --edge: rgba(255, 255, 255, .08);
  --edge-2: rgba(255, 255, 255, .15);
  --blur: blur(22px) saturate(140%);

  /* accents */
  --iris: #C68642;
  --cyan: #6fd08c;
  --grad: linear-gradient(135deg, var(--iris), var(--cyan));
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;

  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -24px rgba(0, 0, 0, .95);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 80px -40px rgba(0, 0, 0, 1);

  --display: montserrat;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r: 20px;
  --shell: 1180px;

  /* topbar's rendered height (11px top margin + 50px bar) - used to
     offset the sticky nav and to center the loader against the
     actual visible viewport rather than the full 100vh */
  --topbar-h: 61px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  background-color: #0c0c0c;
  background-image: url(img/bg.svg);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  color: var(--txt);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
  color: inherit
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.005em;
}

a {
  color: inherit;
  text-decoration: none
}



/* width of the scrollbar */
::-webkit-scrollbar {
  width: 6px;
  /* vertical scrollbar */
  height: 6px;
  /* horizontal scrollbar */
}

/* transparent track (the non-draggable area) */
::-webkit-scrollbar-track {
  background: transparent;
}

/* the draggable part */
::-webkit-scrollbar-thumb {
  background-color: #333;
  /* your color */
  border-radius: 8px;
}

/* optional: hover effect */
::-webkit-scrollbar-thumb:hover {
  background-color: #717171;
}

*::selection {
  color: #111;
  background-color: rgba(220, 220, 220, 0.459);
}

[hidden] {
  display: none !important
}

:focus-visible {
  /* outline: 2px solid var(--iris); */
  outline-offset: 2px;
}

/* ambient background ---------------------------------------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(760px 520px at 18% -8%, rgba(27, 107, 63, .14), transparent 62%),
    radial-gradient(680px 460px at 88% 2%, rgba(111, 208, 140, .08), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(27, 107, 63, .06), transparent 65%),
    linear-gradient(180deg, #000000 0%, #050505 55%, #000000 100%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  max-width: 80%;
  margin: 0 auto;
  padding: 0 26px
}

/* glass primitive -------------------------------------------- */
.glass {
  /* background: linear-gradient(165deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02)); */
  border: 1px solid var(--edge);
  border-radius: var(--r);
  /* backdrop-filter: blur(28px) saturate(160%); */
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

.topbar {
  position: static;
  top: 11px;
  z-index: 60;
  /* width: 80%; */
  /* max-width: 1000px; */
  margin: 11px auto 0;
  /* background: #181a1f; */
  border-radius: 50px;
  transition: background-color .25s, box-shadow .25s, backdrop-filter .25s;
}

/* sticky only while the results/report nav is visible (i.e. the
   analysis page) - the home/intake screen keeps a normal static bar */
.topbar:has(#topnav:not([hidden])) {
  position: sticky;
  background: rgb(8 8 10 / 0%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.topbar-in {
  margin: 0 auto;
  padding: 0 26px;
  height: 50px;

  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px
}

.brand-mark {
  border-radius: 50px;
  display: grid;
  place-items: center;
  color: white;
}

.brand-mark img {
  height: 30px;
  width: 30px;
}

.brand-txt {
  font-family: 'Unbounded';
  font-weight: 700;
  letter-spacing: .16em;
  font-size: 14px;
}

/* right-hand cluster of the topbar: nav (post-analysis) and credit badge (pre-analysis) share the slot */
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
}

.tnav {
  display: flex;
  align-items: center;
  gap: 3px
}

.tnav a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--txt-2);
  padding: 7px 12px;
  border-radius: 9px;
  transition: .16s
}

.tnav a:hover {
  color: var(--txt);
  background: var(--glass-2)
}

.btn-reset {
  margin-left: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid var(--edge-2);
  color: var(--txt);
  background: var(--glass);
  transition: .16s
}

.btn-reset:hover {
  background: var(--glass-2);
  border-color: rgba(27, 107, 63, .6)
}

/* credit badge - visible until an analysis/report is showing, then yields the slot to .tnav */
.credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--edge-2);
  background: var(--glass);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--txt-2);
  transition: .2s;
  padding-left: 10px;
}

.credit:hover {
  border-color: rgba(255, 255, 255, .3);
  background: var(--glass-2);
  color: var(--txt);
  transform: translateY(-1px);
}

.credit-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--grad);
  color: #06070c;
}

.credit b {
  font-weight: 600;
  color: var(--txt);
}

#topnav:not([hidden])~.credit {
  display: none;
}

/* hero ------------------------------------------------------- */
.hero {
  padding: 52px 0 32px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto
}

h1 {
  font-family: unbounded;
  font-weight: 320;
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

h1 em {
  font-style: normal;
  background: #717171;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.sub {
  margin: 16px auto 0;
  max-width: 580px;
  color: var(--txt-2);
  font-size: 15px;
  font-family: google sans;
}

/* intake ----------------------------------------------------- */
.intake-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start
}

.panel {
  overflow: hidden
}

.panel-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.step {
  font-family: host grotesk;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #717171;

}

.panel-hd h2 {
  font-family: montserrat;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em
}

.meter {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--txt-3)
}

.panel-bd {
  padding: 16px
}

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 220px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  border: 1.5px dashed rgba(255, 255, 255, .14);
  border-radius: 13px;
  background: rgba(255, 255, 255, .02);
  transition: .2s;
}

.drop:hover,
.drop.over {
  border-color: #717171;
  background: #33333347;
  box-shadow: 0 0 0 4px rgba(64, 66, 83, 0.08);
}

.drop-ico {
  width: 46px;
  height: 46px;
  border-radius: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: var(--glass-2);
  border: 1px solid var(--edge);
  color: var(--cyan)
}

.drop b {
  font-size: 14.5px;
  font-weight: 600
}

.drop-sub {
  font-size: 12.5px;
  color: var(--txt-3)
}

.fmts {
  display: flex;
  gap: 6px;
  margin-top: 14px
}

.fmts i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--glass-2);
  border: 1px solid var(--edge);
  color: var(--txt-3)
}

.filecard {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--edge);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
  padding: 16px
}

.filerow {
  display: flex;
  align-items: center;
  gap: 12px
}

.file-ico {
  width: 34px;
  height: 34px;
  border-radius: 50px;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, .14);
  color: var(--good);
  flex: none
}

.filemeta {
  min-width: 0
}

.filemeta b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  word-break: break-all
}

.filemeta small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--txt-3)
}

.file-x {
  margin-left: auto;
  color: var(--txt-3);
  padding: 14px;
  border-radius: 50px;
  flex: none;
  transition: .16s;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-x:hover {
  background: rgba(251, 113, 133, .14);
  color: var(--bad)
}

.preview {
  margin-top: 14px;
  flex: 1;
  max-height: 128px;
  overflow: auto;
  padding: 13px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 255, 255, .06);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.75;
  color: var(--txt-2);
  white-space: pre-wrap
}

textarea {
  width: 100%;
  min-height: 214px;
  resize: none;
  padding: 15px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--edge);
  color: var(--txt);
  font-size: 13.5px;
  line-height: 1.65;
  outline: none;
  transition: .18s
}

textarea:focus {
  border-color: #717171;
  background: rgba(0, 0, 0, .4);
  /* box-shadow: 0 0 0 4px rgba(27, 107, 63, .1) */
}

textarea::placeholder {
  color: var(--txt-3)
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 22px 0 60px;
  flex-wrap: wrap
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 28px;
  border-radius: 50px;
  font-family: 'Montserrat';
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -.005em;
  color: #06070c;
  background: white;
  transition: .2s;
}

.cta:hover:not(:disabled) {
  transform: translateY(-1px);
}

.cta:active:not(:disabled) {
  transform: translateY(0)
}

.cta:disabled {
  opacity: .32;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(.4)
}

.err {
  max-width: 720px;
  margin: 26px auto 0;
  padding: 15px 18px;
  border-radius: 13px;
  font-size: 13.5px;
  background: rgba(251, 113, 133, .1);
  border: 1px solid rgba(251, 113, 133, .3);
  color: #ffc8ce;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur)
}

.err b {
  color: #fff
}

/* loading ---------------------------------------------------- */
#loading {
  min-height: calc(100vh - var(--topbar-h));
  display: flex;
  align-items: center;
  justify-content: center;
}

.loadwrap {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px
}

/* From Uiverse.io by Pradeepsaranbishnoi - centered via a fixed-size
   stage so the hand's off-box overhang (fingers/thumb) balances around
   the true middle of .loadwrap instead of the raw 80x60 sprite box. */
.hand-loader-stage {
  position: relative;
  width: 160px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 60px;
}

.hand-loader {
  --skin-color: var(--iris);
  --tap-speed: 0.6s;
  --tap-stagger: 0.1s;
  position: relative;
  width: 80px;
  height: 60px
}

.hand-loader:before {
  content: '';
  display: block;
  width: 180%;
  height: 75%;
  position: absolute;
  top: 70%;
  right: 20%;
  background-color: black;
  border-radius: 40px 10px;
  filter: blur(10px);
  opacity: 0.3
}

.hl-palm {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--skin-color);
  border-radius: 10px 40px
}

.hl-thumb {
  position: absolute;
  width: 120%;
  height: 38px;
  background-color: var(--skin-color);
  bottom: -18%;
  right: 1%;
  transform-origin: calc(100% - 20px) 20px;
  transform: rotate(-20deg);
  border-radius: 30px 20px 20px 10px;
  border-bottom: 2px solid rgba(0, 0, 0, .1);
  border-left: 2px solid rgba(0, 0, 0, .1)
}

.hl-thumb:after {
  width: 20%;
  height: 60%;
  content: '';
  background-color: rgba(255, 255, 255, .3);
  position: absolute;
  bottom: -8%;
  left: 5px;
  border-radius: 60% 10% 10% 30%;
  border-right: 2px solid rgba(0, 0, 0, .05)
}

.hl-finger {
  position: absolute;
  width: 80%;
  height: 35px;
  background-color: var(--skin-color);
  bottom: 32%;
  right: 64%;
  transform-origin: 100% 20px;
  animation-duration: calc(var(--tap-speed) * 2);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  transform: rotate(10deg)
}

.hl-finger:before {
  content: '';
  position: absolute;
  width: 140%;
  height: 30px;
  background-color: var(--skin-color);
  bottom: 8%;
  right: 65%;
  transform-origin: calc(100% - 20px) 20px;
  transform: rotate(-60deg);
  border-radius: 20px
}

.hl-finger:nth-child(1) {
  animation-delay: 0;
  filter: brightness(70%);
  animation-name: tap-upper-1
}

.hl-finger:nth-child(2) {
  animation-delay: var(--tap-stagger);
  filter: brightness(80%);
  animation-name: tap-upper-2
}

.hl-finger:nth-child(3) {
  animation-delay: calc(var(--tap-stagger) * 2);
  filter: brightness(90%);
  animation-name: tap-upper-3
}

.hl-finger:nth-child(4) {
  animation-delay: calc(var(--tap-stagger) * 3);
  filter: brightness(100%);
  animation-name: tap-upper-4
}

@keyframes tap-upper-1 {

  0%,
  50%,
  100% {
    transform: rotate(10deg) scale(0.4)
  }

  40% {
    transform: rotate(50deg) scale(0.4)
  }
}

@keyframes tap-upper-2 {

  0%,
  50%,
  100% {
    transform: rotate(10deg) scale(0.6)
  }

  40% {
    transform: rotate(50deg) scale(0.6)
  }
}

@keyframes tap-upper-3 {

  0%,
  50%,
  100% {
    transform: rotate(10deg) scale(0.8)
  }

  40% {
    transform: rotate(50deg) scale(0.8)
  }
}

@keyframes tap-upper-4 {

  0%,
  50%,
  100% {
    transform: rotate(10deg) scale(1)
  }

  40% {
    transform: rotate(50deg) scale(1)
  }
}

.loadmsg {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt-2);
  margin-top: 20px;
}

/* report ----------------------------------------------------- */
#report {
  padding-bottom: 70px
}

.sec {
  margin-bottom: 36px;
  scroll-margin-top: 100px
}

.sec-hd {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-bottom: 14px
}

.sec-n {
  font-family: 'Unbounded';
  font-size: 16px;
  color: #a8d702;
  letter-spacing: 0.03em;
}

.sec-hd h2 {
  font-family: 'Montserrat';
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em
}

.sec-hd p {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--txt-3)
}

/* score */
.score-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch
}

.score-card {
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden
}

.score-card::before {
  content: '';
  position: absolute;
  top: -45%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(27, 107, 63, .22), transparent 62%);
  pointer-events: none
}

.ring {
  position: relative;
  width: clamp(140px, 34vw, 200px);
  height: clamp(140px, 34vw, 200px);
  flex: none
}

.ring svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(-90deg)
}

.ring-mid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center
}

.ring-mid b {
  font-family: var(--display);
  font-size: clamp(34px, 9.5vw, 56px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums
}

.ring-mid b i {
  font-style: normal;
  font-size: clamp(14px, 3.4vw, 19px);
  color: var(--txt-3);
  margin-left: 1px
}

.ring-mid span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-top: 9px
}

.verdict {
  position: relative;
  margin-top: 20px;
  padding: 8px 17px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--glass-2);
  border: 1px solid var(--edge-2);
  backdrop-filter: blur(6px);
  font-family: montserrat;
}

.subs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
  width: 100%
}

.sub {
  width: 100%;
  min-width: 0;
  padding: 17px 19px;
  border-radius: 13px
}

.sub-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px
}

.sub-top b {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.01em
}

.sub-top i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums
}

.bar {
  height: 4px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(.2, .85, .25, 1)
}

.sub small {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--txt-3);
  line-height: 1.55
}

/* summary */
.sum-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start
}

.pad {
  padding: 18px
}

.who {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07)
}

.who-av {
  border: 1px solid #80808063;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: #06070c;
  background-image: url(img/user.webp);
  background-size: contain;
  border-radius: 50px;
}

.who b {
  display: block;
  font-family: montserrat;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.who span {
  font-size: 12.5px;
  /* color: var(--txt-3); */
  font-family: google sans;
}

.who .yrs {
  margin-left: auto;
  text-align: right
}

.who .yrs b {
  font-family: var(--mono);
  font-size: 17px
}

.who .yrs span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase
}

.prose {
  font-size: 14px;
  color: var(--txt-2);
  line-height: 1.75;
  font-family: google sans;
}

.prose+.prose {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .07)
}

.stack {
  display: grid;
  gap: 18px
}

.lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 14px
}

ul.marks {
  list-style: none;
  display: grid;
  gap: 11px
}

ul.marks li {
  display: flex;
  gap: 11px;
  font-size: 13.4px;
  color: var(--txt-2);
  line-height: 1.55
}

ul.marks li i {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  flex: none;
  margin-top: 2px;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: rgba(52, 211, 153, .15);
  color: var(--good)
}

ul.marks.risk li i {
  background-color: rgba(251, 191, 36, .15);
  color: var(--warn)
}

/* keywords */
.kw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 20px;
  align-items: start
}

.kw-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07)
}

.kw-hd b {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600
}

.pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 7px
}

.pill.g {
  background: rgba(52, 211, 153, .14);
  color: var(--good)
}

.pill.r {
  background: rgba(251, 113, 133, .14);
  color: var(--bad)
}

.chips {
  padding: 19px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.chip {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(52, 211, 153, .09);
  border: 1px solid rgba(52, 211, 153, .24);
  color: #8af0c8
}

.mgroup {
  padding: 17px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.mgroup:last-child {
  border-bottom: none
}

.mgroup h3 {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 13px;
  font-weight: 500
}

.mitem {
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, .05)
}

.mitem:first-of-type {
  border-top: none
}

.mitem b {
  font-size: 13.2px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.imp {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  font-weight: 700
}

.imp.critical {
  background: rgba(251, 113, 133, .18);
  color: var(--bad);
  border: 1px solid rgba(251, 113, 133, .3)
}

.imp.important {
  background: rgba(251, 191, 36, .15);
  color: var(--warn);
  border: 1px solid rgba(251, 191, 36, .28)
}

.imp.nice {
  background: rgba(255, 255, 255, .06);
  color: var(--txt-3);
  border: 1px solid var(--edge)
}

.mitem span {
  display: block;
  margin-top: 5px;
  font-size: 12.3px;
  color: var(--txt-3);
  line-height: 1.6
}

/* sections */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start
}

.sc-hd {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07)
}

.sc-hd b {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600
}

.tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700
}

.tag.strong {
  background: rgba(52, 211, 153, .15);
  color: var(--good)
}

.tag.ok {
  background: rgba(27, 107, 63, .18);
  color: #a9e6b8
}

.tag.weak {
  background: rgba(251, 191, 36, .15);
  color: var(--warn)
}

.tag.missing {
  background: rgba(251, 113, 133, .15);
  color: var(--bad)
}

.sc-score {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px
}

.sc-score .bar {
  width: 56px
}

.sc-score i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700
}

.sc-bd {
  padding: 18px 20px;
  display: grid;
  gap: 18px
}

.blk h4 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-3);
  margin-bottom: 11px;
  font-weight: 500
}

ul.dash {
  list-style: none;
  display: grid;
  gap: 8px
}

ul.dash li {
  position: relative;
  padding-left: 15px;
  font-size: 12.8px;
  color: var(--txt-2);
  line-height: 1.6
}

ul.dash li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 1.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .22)
}

ul.dash.fix li::before {
  background: var(--cyan)
}

/* bullets */
.bul {
  margin-bottom: 16px;
  overflow: hidden
}

.bul-hd {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .02)
}

.bul-hd .src {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--txt-3)
}

.copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--edge-2);
  color: var(--txt-2);
  transition: .16s
}

.copy:hover {
  border-color: var(--cyan);
  color: var(--cyan)
}

.copy.done {
  border-color: rgba(52, 211, 153, .5);
  color: var(--good)
}

.ba {
  display: grid;
  grid-template-columns: 1fr 1fr
}

.ba>div {
  padding: 18px 20px
}

.ba .b4 {
  border-right: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .14)
}

.ba h5 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 10px
}

.ba .b4 h5 {
  color: var(--txt-3)
}

.ba .af h5 {
  color: var(--good)
}

.ba p {
  font-size: 13.3px;
  line-height: 1.65
}

.ba .b4 p {
  color: var(--txt-3)
}

.ba .af p {
  color: var(--txt);
  font-weight: 500
}

.why {
  padding: 12px 20px;
  border-top: 1px solid rgba(27, 107, 63, .16);
  background: rgba(27, 107, 63, .07);
  font-size: 12.3px;
  color: #bdead0
}

.why b {
  color: #e4f9ea
}

.copyall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 11px 18px;
  border-radius: 11px;
  border: 1px solid var(--edge-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-2);
  transition: .16s
}

.copyall:hover {
  border-color: var(--cyan);
  color: var(--cyan)
}

/* floating assistant --------------------------------------------- */
.assistant-fab {
  position: fixed;
  right: 10px;
  bottom: 2%;
  z-index: 300;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  transition: transform .22s cubic-bezier(.2, .85, .25, 1);
  border: 2px solid #80808061;
}

.assistant-fab img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.assistant-fab:hover {
  transform: translateY(-2px) scale(1.04);
}

.assistant-fab.active {
  transform: scale(.92);
}

/* fab tooltip - CSS-only, shown on hover/keyboard focus, hidden once
   the chat popup is open (fab already reads "active" then) */
.fab-tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(14, 14, 16, .96);
  border: 1px solid var(--edge-2);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: var(--shadow);
  transition: opacity .18s ease, transform .18s ease;
}

.fab-tip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(14, 14, 16, .96);
}

.assistant-fab:hover .fab-tip,
.assistant-fab:focus-visible .fab-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.assistant-fab.active .fab-tip {
  opacity: 0;
  pointer-events: none;
}

.assistant-popup {
  position: fixed;
  right: 24px;
  bottom: 72px;
  z-index: 299;

  width: 450px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 130px);

  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Clean glass */
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.04));

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;

  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);

  /* Glass depth */
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.35),
    0 8px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);

  /* Subtle glass sheen */
  isolation: isolate;

  transform-origin: bottom right;
  opacity: 0;
  transform: scale(0.85) translateY(14px);

  pointer-events: none;

  transition:
    opacity 0.22s cubic-bezier(0.2, 0.85, 0.25, 1),
    transform 0.26s cubic-bezier(0.2, 0.85, 0.25, 1);
}

/* Soft reflection across the glass */
.assistant-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;

  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.03) 35%,
      transparent 60%);

  opacity: 0.8;
  z-index: -1;
}

/* Open state */
.assistant-popup.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.assistant-hd {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  flex: none;
}

.assistant-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 13.5px;
}

.assistant-title b {
  font-family: var(--display);
  font-weight: 600;
  color: var(--txt);
}

.assistant-title i {
  font-style: normal;
  color: var(--txt-3);
}

.assistant-title span {
  color: var(--txt-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-close {
  margin-left: auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--txt-3);
  flex: none;
  transition: .16s;
}

.assistant-close:hover {
  background: var(--glass-2);
  color: var(--txt);
}

.msgs {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px
}

.msg {
  display: flex;
  max-width: 88%
}

.msg.me {
  align-self: flex-end
}

.bub {
  padding: 13px 16px;
  border-radius: 15px;
  font-size: 13.6px;
  line-height: 1.65
}

.msg.ai .bub {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-top-left-radius: 5px
}

.msg.me .bub {
  background: rgba(27, 107, 63, .16);
  border: 1px solid rgba(27, 107, 63, .3);
  border-top-right-radius: 5px
}

.bub p+p {
  margin-top: 10px
}

.bub ul,
.bub ol {
  margin: 10px 0 10px 19px;
  display: grid;
  gap: 6px
}

.bub code {
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, .4)
}

.bub strong {
  font-weight: 700;
  color: #fff
}

.bub h4 {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  margin: 12px 0 7px
}

.dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  height: 17px
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--txt-3);
  animation: bob 1.2s infinite
}

.dots i:nth-child(2) {
  animation-delay: .15s
}

.dots i:nth-child(3) {
  animation-delay: .3s
}

@keyframes bob {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: .35
  }

  30% {
    transform: translateY(-5px);
    opacity: 1
  }
}

.sugg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, .07)
}

.sugg button {
  font-size: 12px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 100px;
  border: 1px solid var(--edge-2);
  color: var(--txt-2);
  transition: .16s
}

.sugg button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(111, 208, 140, .07)
}

.composer {
  display: flex;
  gap: 11px;
  align-items: flex-end;
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, .07)
}

.composer textarea {
  min-height: 48px;
  max-height: 140px;
  padding: 13px 16px;
  border-radius: 13px;
  font-size: 13.6px;
  min-width: 0;
  overflow: hidden;
}

.send {
  width: 48px;
  height: 48px;
  border-radius: 50px;
  flex: none;
  display: grid;
  place-items: center;
  background: #23b47d;
  color: white;
  transition: .18s
}

.send:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -12px rgba(27, 107, 63, .9)
}

.send:disabled {
  opacity: .3;
  cursor: not-allowed;
  filter: grayscale(.5)
}

/* motion ----------------------------------------------------- */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .6s cubic-bezier(.2, .85, .25, 1) forwards
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important
  }

  html {
    scroll-behavior: auto
  }
}

/* absol1/absol2 (.nina) only belong on the intake/home screen - hide
   them once the loading state or the report is visible, without
   touching the HTML markup */
body:has(#loading:not([hidden])) .nina,
body:has(#report:not([hidden])) .nina {
  display: none;
}

/* responsive ------------------------------------------------- */

/* fluid type/spacing so things scale continuously, not just at breakpoints */
h1 {
  font-size: clamp(1.9rem, 5.4vw, 3rem);
  z-index: 1;
  position: relative;
}

.sub {
  font-size: clamp(13.5px, 1.6vw, 15px);
}

.shell {
  padding: 0 clamp(14px, 4vw, 26px);
}

.hero {
  padding: clamp(34px, 8vw, 52px) 0 clamp(20px, 5vw, 32px);
}

@media (max-width:1100px) {
  .score-grid {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

@media (max-width:1000px) {

  .intake-grid,
  .score-grid,
  .sum-grid,
  .kw-grid,
  .sc-grid {
    grid-template-columns: 1fr
  }

  .tnav a {
    display: none
  }

  .score-card {
    padding: 20px
  }
}

@media (max-width:820px) {
  :root {
    --topbar-h: 67px;
  }

  .topbar-in {
    height: 56px;
    gap: 12px;
  }

  .brand-txt {
    font-size: 12.5px;
  }

  .credit span {
    display: none
  }

  .credit {
    padding: 7px;
  }

  .credit-dot {
    margin: 0
  }

  .btn-reset {
    padding: 7px 12px;
    font-size: 11.5px;
  }

  .who {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .who .yrs {
    margin-left: 0;
    text-align: left;
    flex-basis: 100%;
    display: flex;
    align-items: baseline;
    gap: 6px;
  }
}

@media (max-width:700px) {
  .subs {
    grid-template-columns: 1fr
  }

  .kw-hd {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .kw-hd .copy {
    margin-left: 0;
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .sc-hd {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .sc-score {
    margin-left: 0;
    width: 100%;
  }

  .sc-score .bar {
    flex: 1
  }

  .hand-loader-stage {
    width: 130px;
    height: 75px;
    transform: scale(.82);
  }
}

@media (max-width:600px) {
  .shell {
    max-width: 100%;
  }

  .shell,
  .topbar-in {
    padding-left: 16px;
    padding-right: 16px
  }

  .intake-grid {
    gap: 14px;
  }

  .actions {
    margin: 18px 0 44px;
  }

  .cta {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }

  .drop,
  .filecard {
    min-height: 190px;
  }

  .ba {
    grid-template-columns: 1fr
  }

  .ba .b4 {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .07)
  }

  .msg {
    max-width: 95%
  }

  .assistant-fab {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px
  }

  .assistant-fab img {
    width: 34px;
    height: 34px;
  }

  .fab-tip {
    display: none;
  }

  .assistant-popup {
    right: 16px;
    left: 16px;
    bottom: 82px;
    width: auto;
    max-width: none;
    height: min(72vh, 520px)
  }

  .sec-hd {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .sec-hd p {
    margin-left: 0;
    flex-basis: 100%;
  }
}

@media (max-width:420px) {
  .who-av {
    width: 40px;
    height: 40px;
  }

  .who b {
    font-size: 15px;
  }

  .verdict {
    font-size: 11.5px;
    padding: 7px 13px;
  }

  .sugg {
    padding: 12px 16px;
  }

  .composer {
    padding: 12px 16px 16px;
  }
}