/* 2026-11-06 Brand layer for the behavior quiz (Kelty: "more dopamine" and
   "more branding"). Sits on top of trace.css so the chart recorder, the fit
   math and the design-token test stay untouched. Same type as
   scentsiblek9training.com: Barlow Condensed capitals for headings and
   buttons, Libre Baskerville italic for the supporting line, the site's deep
   sage for the one button that matters. Motion is a soft fade and rise, never
   a bounce (Kelty, 10-24). */

@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/barlow-condensed-700-latin.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/barlow-condensed-800-latin.woff2) format("woff2")}
@font-face{font-family:"Libre Baskerville";font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/libre-baskerville-400i-latin.woff2) format("woff2")}

:root{
  --b-head:"Barlow Condensed","Arial Narrow",sans-serif;
  --b-serif:"Libre Baskerville",Georgia,serif;
  --b-sage:#5f6b52;
  --b-sage-press:#4f5a3e;
  --b-sage-lite:#818f6b;
}

/* ---------- headings: the site's condensed capitals ---------- */
.hero h1,.q,.rev h1,.beat .q{
  font-family:var(--b-head)!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.005em!important;line-height:1.02!important}
.hero h1{font-size:clamp(38px,10.5vw,52px)!important}
.hero h1 em,.q em{color:var(--b-sage-lite)!important;font-style:normal}
.q{font-size:calc(clamp(28px,8vw,38px) * (0.8 + 0.2 * var(--fit)))!important}
.setup .setup-head .q{font-size:calc(clamp(30px,8.6vw,40px) * (0.78 + 0.22 * var(--fit)))!important}

/* supporting lines in the italic serif */
.hero .lead,.setup .sub,.beat .sub{font-family:var(--b-serif)!important;font-style:italic;color:#4a4e44}
.hero .lead{font-size:16px!important;line-height:1.6!important}

/* labels and rail tags */
.tag,.flabel,.chip-label{font-family:var(--b-head)!important;font-weight:700!important;letter-spacing:.14em!important;text-transform:uppercase}
.tag.on{color:var(--b-sage)!important}

/* ---------- the button: solid deep sage, white capitals ---------- */
.btn:not(.waiting):not(:disabled){
  background:var(--b-sage)!important;color:#fefefe!important;
  font-family:var(--b-head)!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.07em!important;
  font-size:calc(20px * (0.9 + 0.1 * var(--fit)))!important;border-radius:999px!important;
  box-shadow:0 2px 4px rgba(62,68,44,.25),0 12px 26px -8px rgba(62,68,44,.45)!important}
.btn:not(.waiting):not(:disabled):hover,.btn:not(.waiting):not(:disabled):active{background:var(--b-sage-press)!important}
.btn.waiting,.btn:disabled{font-family:var(--b-head)!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.07em!important;font-size:20px!important;border-radius:999px!important}
/* the moment Next wakes up, it settles in from slightly smaller */
.btn{transition:background .25s ease,transform .25s cubic-bezier(.22,1,.36,1),box-shadow .25s ease!important}

/* ---------- first screen: a real dog, logo tucked on the photo ---------- */
.hero-photo{position:relative;width:100%;margin:0 0 38px}
.hero-photo > img:first-child{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:28% 35%;border-radius:22px;
  box-shadow:0 14px 34px -12px rgba(35,31,25,.35);animation:b-rise .7s cubic-bezier(.22,1,.36,1) both}
.hero-photo .badge{position:absolute!important;left:0;right:0;bottom:-30px;width:64px!important;height:64px!important;margin:0 auto!important;
  border-radius:50%;box-shadow:0 0 0 4px var(--t-paper),0 6px 16px rgba(0,0,0,.18)}
.hero h1{animation:b-rise .7s .08s cubic-bezier(.22,1,.36,1) both}
.hero .lead{animation:b-rise .7s .16s cubic-bezier(.22,1,.36,1) both}
.hero .btn,.hero .meta{animation:b-rise .7s .24s cubic-bezier(.22,1,.36,1) both}
.hero{padding-top:20px!important}

/* ---------- progress: the site's sage, a soft glow on the leading edge ---------- */
.prog i b{background:var(--b-sage)!important}

/* ---------- answers ---------- */
/* each answer rises in, one after another */
.opts .opt{animation:b-rise .45s cubic-bezier(.22,1,.36,1) backwards}
.opts .opt:nth-child(2){animation-delay:.05s}
.opts .opt:nth-child(3){animation-delay:.1s}
.opts .opt:nth-child(4){animation-delay:.15s}
.opts .opt:nth-child(5){animation-delay:.2s}
.opts .opt:nth-child(6){animation-delay:.25s}
/* the one you tap fills with sage, the text goes white and a check draws itself */
.opt.chosen{background:var(--b-sage)!important;color:#fefefe!important;border-left-color:var(--b-sage-press)!important;transform:none!important}
.opt.chosen .hint{color:#e7eddc!important}
.opt.chosen::after{border:0!important;width:9px!important;height:17px!important;right:20px!important;opacity:1!important;
  border-right:3px solid #fefefe!important;border-bottom:3px solid #fefefe!important;
  transform:translateY(-62%) rotate(45deg)!important;clip-path:inset(0 0 100% 0);animation:b-check .35s .05s ease-out forwards}
.opts.locked .opt:not(.chosen){opacity:.35!important;transition:opacity .25s ease}

/* chips on the age and size screen get the same filled look */
.chip.on{background:var(--b-sage)!important;color:#fefefe!important;border-color:var(--b-sage)!important}
.chip.on .chip-qual{color:#e7eddc!important}
.chip.on .chip-dot{background:#fefefe!important}

/* the "nice, set done" screen: the tick draws, the line rises */
.beat .q{animation:b-rise .55s .1s cubic-bezier(.22,1,.36,1) both}
.beat .sub{animation:b-rise .55s .2s cubic-bezier(.22,1,.36,1) both}

@keyframes b-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes b-check{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0 0 0 0)}}

@media (prefers-reduced-motion:reduce){
  .hero-photo > img:first-child,.hero h1,.hero .lead,.hero .btn,.hero .meta,.opts .opt,.beat .q,.beat .sub{animation:none!important}
  .opt.chosen::after{animation:none!important;clip-path:none}
}
@media (max-height:760px){
  .hero-photo{margin-bottom:30px}
  .hero-photo > img:first-child{aspect-ratio:2/1}
  .hero-photo .badge{width:52px!important;height:52px!important;bottom:-24px}
  .hero h1{font-size:clamp(32px,9vw,44px)!important}
  .hero .lead{font-size:15px!important;line-height:1.5!important}
}
/* result page card headings in the same capitals */
.rev h2,.rev h3{font-family:var(--b-head)!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.01em!important;line-height:1.05!important}
.rev .stat-n,.rev .stat-type{font-family:var(--b-head)!important;font-weight:800!important}

/* ---------- 2026-11-06 round 2: built like the drive test ----------
   Kelty: "make it more like the drive one. make the graph even cooler."
   The site header on every quiz screen, a live reading card (the line plus
   five state tiles that fill as answers land), and answer cards that say
   Got it. */
.qhead{display:flex;align-items:center;gap:11px;margin:0 0 calc(12px * var(--fit))}
.qhead img{width:calc(44px * var(--fit));height:calc(44px * var(--fit));border-radius:50%;flex:none}
.qhead span{display:flex;flex-direction:column;line-height:1}
.qhead b{font-family:var(--b-head);font-weight:800;font-size:calc(22px * (0.85 + 0.15 * var(--fit)));letter-spacing:.04em;text-transform:uppercase;color:#221f1c}
.qhead small{font-family:var(--b-head);font-weight:700;font-size:12.5px;letter-spacing:.22em;text-transform:uppercase;color:var(--b-sage);margin-top:4px}
.scr .watermark{display:none}

.live{margin-top:calc(10px * var(--fit));background:#fff;border-radius:18px;padding:calc(11px * var(--fit)) 12px calc(10px * var(--fit));
  box-shadow:0 1px 2px rgba(35,31,25,.06),0 10px 26px -10px rgba(35,31,25,.22)}
.live-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:calc(6px * var(--fit))}
.live-k{display:flex;align-items:center;gap:7px;font-family:var(--b-head);font-weight:700;font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:#6e6a60}
.live-dot{width:8px;height:8px;border-radius:50%;background:#ab4f2c;box-shadow:0 0 0 0 rgba(171,79,44,.5);animation:b-live 1.8s ease-out infinite}
.live-lead{font-family:var(--b-head);font-weight:800;font-size:calc(19px * (0.85 + 0.15 * var(--fit)));letter-spacing:.01em;color:var(--b-sage);text-align:right;transition:color .4s ease}
.live .trace-wrap{margin:0;box-shadow:none;background:#fcfbf8;border-radius:12px;padding-top:calc(6px * var(--fit))}
.live canvas.trace{height:calc(84px * var(--fit) * var(--fit))}
.live .axis{display:none}

.lm-row{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:calc(10px * var(--fit))}
.lm{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.lm-bar{position:relative;width:100%;height:calc(40px * var(--fit));border-radius:10px;background:#f1ede4;overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(35,31,25,.05);transition:box-shadow .35s ease}
.lm-bar i{position:absolute;left:0;right:0;bottom:0;height:0;background:linear-gradient(to top,var(--c),color-mix(in srgb,var(--c) 70%,#fff));
  transition:height .6s cubic-bezier(.22,1,.36,1)}
.lm b{font-family:var(--b-head);font-weight:800;font-size:calc(22px * (0.82 + 0.18 * var(--fit)));line-height:1;margin-top:calc(6px * var(--fit));color:#221f1c;font-variant-numeric:tabular-nums}
.lm span{font-size:11px;font-weight:600;line-height:1.15;color:#6e6a60;margin-top:2px;min-height:2.3em;overflow-wrap:anywhere}
.lm.top .lm-bar{box-shadow:0 0 0 2.5px var(--c),0 6px 16px -4px color-mix(in srgb,var(--c) 55%,transparent)}
.lm.top b,.lm.top span{color:var(--c)}
.lm.bump .lm-bar{animation:b-bump .6s cubic-bezier(.22,1,.36,1)}
.scr.tight .lm span{font-size:10px}

/* answers: bolder, like the drive test cards */
.opt{font-weight:600!important;border-radius:16px!important;box-shadow:0 1px 2px rgba(35,31,25,.06),0 6px 16px -8px rgba(35,31,25,.22)!important}
.opt .got{position:absolute;left:14px;top:-11px;background:var(--b-sage-press);color:#fff;font-family:var(--b-head);font-weight:700;font-size:12px;
  letter-spacing:.1em;text-transform:uppercase;padding:4px 10px;border-radius:999px;box-shadow:0 0 0 2px var(--t-paper);animation:b-rise .3s cubic-bezier(.22,1,.36,1) both}

@keyframes b-live{0%{box-shadow:0 0 0 0 rgba(171,79,44,.5)}70%{box-shadow:0 0 0 7px rgba(171,79,44,0)}100%{box-shadow:0 0 0 0 rgba(171,79,44,0)}}
@keyframes b-bump{0%{transform:none}35%{transform:translateY(-3px)}100%{transform:none}}
@media (prefers-reduced-motion:reduce){.live-dot,.lm.bump .lm-bar,.opt .got{animation:none!important}.lm-bar i{transition:none}}
.qhead .qh-r{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.qhead .qh-r .tag{font-size:11.5px}
.qhead + .prog{margin-bottom:2px}
.lm span{font-family:var(--b-head);font-weight:700;font-size:12.5px;letter-spacing:.01em;overflow-wrap:normal}
.live canvas.trace{height:calc(74px * var(--fit) * var(--fit))}
.scr.tight .lm span{font-size:11.5px}

/* ---------- fit stages: the live card gives up room before the answers do ---------- */
.lm-bar i{height:var(--p,0%);transition:height .6s cubic-bezier(.22,1,.36,1),width .6s cubic-bezier(.22,1,.36,1)}
.scr.compact .qhead{margin-bottom:8px}
.scr.compact .qhead img{width:34px;height:34px}
.scr.compact .qhead b{font-size:18px}
.scr.compact .qhead small{font-size:10.5px;margin-top:2px}
.scr.compact .live{padding:8px 10px 8px;margin-top:8px}
.scr.compact .live-top{margin-bottom:4px}
.scr.compact .live-k{font-size:11.5px}
.scr.compact .live-lead{font-size:16px}
.scr.compact .live canvas.trace{height:48px}
.scr.compact .lm-row{margin-top:6px;gap:5px}
/* 2026-11-07 Kelty: "it keeps changing the bars to a different direction".
   Compact used to flip the fill sideways on long questions. Tiles now always
   fill bottom up, every question. */
.scr.compact .lm b{font-size:17px;margin-top:4px}
.scr.compact .lm span{font-size:10.5px;min-height:0}
.scr.compact .lm span br{display:none}
.scr.compact .lm.bump .lm-bar{animation:none}
/* 2026-11-09 Kelty: "I didn't want you to take out the graph completely."
   The graph never hides. mini and nano used to drop the line and then the
   whole card, and once the 11-08 fit lock applied the longest question's
   stage to every question, smaller phones lost the graph for the whole quiz.
   Now the tile bars go first, then the tile names, and the graph only gets
   shorter. The leader name on the right still says which type is ahead. */
.scr.mini .live canvas.trace{height:40px}
.scr.mini .lm-bar{display:none}
.scr.mini .lm b{margin-top:0}
.scr.mini .lm-row{margin-top:4px}
.scr.nano .live canvas.trace{height:34px}
.scr.nano .lm-row{display:none}
.scr.nano .live{padding:6px 10px 6px!important;margin-top:6px}
.scr.nano .live-top{margin-bottom:3px}
.scr.compact .q-zone .q{margin-top:6px}
.scr.compact .opt{padding-top:calc(12px * var(--fit))!important;padding-bottom:calc(12px * var(--fit))!important}
/* Phones keep :hover on whatever sat under the finger, so the answer in the
   same spot on the next question showed a green edge (Kelty 11-06: "why do
   the last few questions have an outline"). Hover only on real pointers. */
@media (hover:none){.opt:hover:not(.chosen){border-left-color:transparent!important;background:var(--t-panel)!important}.opt:hover::after{opacity:.55;right:17px}}
.opt{-webkit-tap-highlight-color:transparent}

/* ---------- 2026-11-06 quieter pass (Kelty: "a tad overstimulating") ----------
   One thing moves per tap: the answer fills and the line draws. No looping
   motion, no glow, no numbers mid-quiz, one ink color for the line, tiles in
   one quiet sage, no side stripe on the answers. */
.live{padding:calc(10px * var(--fit)) 12px calc(10px * var(--fit))!important}
.lm-bar i{background:#818f6b!important}
.lm.top .lm-bar{box-shadow:none!important}
.lm.top .lm-bar i{background:#5f6b52!important}
.lm.top span{color:#3f4a33!important}
.lm span{color:#6e6a60;margin-top:5px}
.lm-bar{height:calc(30px * var(--fit))!important}
.opt,.opt:hover,.opt.chosen{border-left:0!important}
.opt:hover{transform:none}
.opts .opt{animation-duration:.25s!important;animation-delay:0s!important}
.qhead .qh-r .tag{color:#6e6a60}

/* ---------- 2026-11-09 easier to read, after the drive test ----------
   Kelty: "look at how nice the drive quiz is. be inspired but dont lose the
   graph. make it easier to understand." One plain progress bar, a "So far /
   Leaning X" line, a graph that says what up and down mean, "Question 6 of
   16" over the question, and answers as two-column cards when they are short. */
.scr .prog{gap:0;height:6px}
.scr .prog i{border-radius:0}
.scr .prog i:first-child{border-radius:3px 0 0 3px}
.scr .prog i:last-child{border-radius:0 3px 3px 0}
.scr .prog i b{border-radius:0}
.live .live-top{display:flex}
.live-k{font-size:12px;letter-spacing:.18em}
.live-lead{font-size:calc(17px * (0.88 + 0.12 * var(--fit)))}
.live .trace-wrap{position:relative}
.live .gy{position:absolute;left:8px;z-index:2;font-family:var(--b-head);font-weight:700;font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;color:#8a857a;pointer-events:none;line-height:1;background:rgba(252,251,248,.88);padding:1px 3px;border-radius:3px}
.live .gy.hi{top:calc(7px * var(--fit))}
.live .gy.lo{bottom:4px}
.q-zone{display:block;flex:none;min-height:0;padding:calc(14px * var(--fit)) 0 0}
.q-tag{font-family:var(--b-head);font-weight:700;font-size:12.5px;letter-spacing:.16em;text-transform:uppercase;color:#6e6a60;margin:0 0 calc(8px * var(--fit))}
.scr.compact .q-zone .q{margin-top:0}
.opts{margin-top:0}
.opts.two{grid-template-columns:1fr 1fr;gap:calc(10px * var(--fit))}
.opts.two .opt:last-child:nth-child(odd){grid-column:1 / -1}
.opts.two .opt{display:flex;align-items:center;justify-content:center;text-align:center;
  padding:calc(14px * var(--fit)) 12px!important;font-size:calc(16px * (0.86 + 0.14 * var(--fit)));line-height:1.3;min-height:calc(76px * var(--fit))}
.opts.two .opt::after{display:none}
.opts.two .opt .txt{display:block}

/* Resume screen (2026-11-14): Start over sits centered under the button. */
.resume .back{display:block;margin:14px auto 0;text-align:center}
