@font-face { font-family: Source Sans; src: url("../assets/source-sans-3-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Source Sans; src: url("../assets/source-sans-3-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { color-scheme: dark; --ink: #f2f5f8; --muted: #b7c7d2; --sky: #86d5fc; --edge: #435765; --dark: #101820; font: 1rem/1.45 "Source Sans", system-ui, sans-serif; background: var(--dark); color: var(--ink); }
* { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, dl, dt, dd { margin: 0; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
a { color: var(--sky); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ffb38f; outline-offset: 3px; }
.skip { position: absolute; transform: translateY(-150%); background: var(--dark); z-index: 5; padding: .5rem; }
.skip:focus { transform: none; }
.shell { width: min(65rem, calc(100% - clamp(2rem,8vw,6rem))); margin: auto; }
.mast { border-bottom: 1px solid #344650; background: #15212b; }
.mast-inner, .brand, .demo-footer, .dialog-top { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.mast-inner { min-height: 4.3rem; }
.brand { color: #e2f3ff; font-size: 1.42rem; font-weight: 700; letter-spacing: -.035em; }
.brand img { width: 2.1rem; height: 2.1rem; border-radius: .52rem; }
.back, .source-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; background: none; border: 0; padding: .15rem 0; color: var(--sky); text-decoration: underline; text-underline-offset: .2em; font-weight: 700; }
.pet-intro { display: flex; gap: 2rem; align-items: center; justify-content: space-between; padding: clamp(2rem,5vw,4.3rem) 0 1.7rem; }
.kicker, .page-no, .sources-title { font-size: .82rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; line-height: 1.3; }
.kicker { color: var(--sky); }
h1 { font-size: clamp(2.65rem,6.3vw,4.6rem); line-height: 1.06; letter-spacing: -.048em; margin: .32rem 0; }
.pet-intro p:last-child, .card > p:not(.kicker):not(.success), .demo-footer { color: var(--muted); }
.next-up { border-left: 2px solid #629eb6; padding-left: 1rem; }
.next-up > :is(span,strong) { display: block; }
.next-up > span { font-size: .92rem; color: var(--muted); }
.next-up strong { font-size: 1.35rem; }
.next-up button { font-size: .92rem; }
.tabs { display: flex; gap: .26rem; width: fit-content; max-width: 100%; padding: .24rem; margin-bottom: 1.5rem; background: #1b2a36; border: 1px solid var(--edge); border-radius: 2rem; }
.tabs a { display: grid; place-items: center; min-height: 2.75rem; padding: .25rem 1.15rem; border-radius: 2rem; color: #d6e4ed; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tabs a[aria-selected="true"] { color: #10283b; background: var(--sky); }
.tabs a:hover { text-decoration: underline; }
.panel-grid { display: grid; grid-template-columns: minmax(0,1.22fr) minmax(0,1fr); align-items: start; gap: clamp(.8rem,2vw,1.4rem); }
.card, .paper { min-width: 0; padding: clamp(1.05rem,3vw,2rem); border-radius: 1.1rem; }
.card { background: #1c2933; border: 1px solid #3b4c58; }
h2 { font-size: clamp(1.5rem,3.3vw,2.1rem); line-height: 1.15; letter-spacing: -.027em; }
.card > .kicker { margin-bottom: .5rem; }
.card > h2 + p, #review-saved > p, #answer { margin-top: .65rem; }
.review-invite { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; text-align: left; margin: 1rem 0 .4rem; padding: .68rem .9rem; border: 1px solid #486f83; border-radius: .6rem; background: #203c4b; }
.review-invite strong,.review-invite small { display: block; }
.review-invite small { color: #bfdae8; font-size: .91rem; }
.review-invite > span:last-child { color: var(--sky); font-size: 1.4rem; }
.timeline { list-style: none; padding: 0; margin: .6rem 0 0; }
.timeline li { position: relative; display: grid; gap: .1rem; padding: .8rem .25rem .2rem 1.25rem; }
.timeline li::before { content: ""; position: absolute; left: 1px; top: 1.27rem; width: .46rem; height: .46rem; border-radius: 50%; background: #88cbe8; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: .25rem; top: 1.98rem; bottom: -.8rem; width: 1px; background: #48616d; }
.timeline time, .trend-values span { font-size: .88rem; color: var(--muted); }
.timeline li > strong { font-size: 1.2rem; }
.timeline .source-link { justify-self: start; font-size: .9rem; }
.chart-card { background: linear-gradient(150deg,#253c49,#1b2d37); }
.latest-weight { margin-top: .6rem; color: #b7dce9; }
.latest-weight strong { color: #f4fbff; font-size: 2.9rem; line-height: 1.1; letter-spacing: -.04em; }
#trend { width: 100%; display: block; margin: .8rem 0 .3rem; }
.trend-values { list-style: none; display: flex; justify-content: space-between; gap: .5rem; padding: 0; margin: 0; }
.trend-values span, .trend-values strong { display: block; }
.trend-values strong { font-size: .98rem; }
form label, fieldset legend { display: block; font-weight: 700; margin: 1rem 0 .35rem; }
input[type="number"], input[type="text"] { width: 100%; min-height: 2.75rem; border: 1px solid #7c95a6; color: var(--ink); background: #12202a; border-radius: .45rem; padding: .45rem .65rem; }
.weight-input { display: flex; gap: .55rem; align-items: stretch; }
.weight-input input { width: 7rem; min-width: 0; }
.primary,.soft,.questions button,.source-links button,.dialog-top button { min-height: 2.75rem; font-weight: 700; padding: .5rem .8rem; border-radius: .55rem; }
.primary { margin-top: 1.1rem; color: #102635; background: var(--sky); border: 1px solid var(--sky); }
.soft,.questions button,.source-links button,.dialog-top button { color: #d8effb; background: #243a48; border: 1px solid #5a7484; }
button:hover:not(:disabled) { filter: brightness(1.12); }
.feedback:not(:empty) { margin-top: .4rem; color: #ffc7ac; }
.success { color: #a4e6bb; font-weight: 700; }
.paper { color-scheme: light; color: #223541; background: #faf8f2; border: 1px solid #d4dcda; box-shadow: 0 8px 26px #02090e20; }
.paper-brand { color: #245166; font-weight: 700; letter-spacing: -.015em; }
.page-no { margin-top: .2rem; color: #536973; font-size: .71rem; }
.paper h3,.paper h2 { margin: 1.3rem 0 .5rem; font-size: clamp(1.55rem,3vw,2.1rem); letter-spacing: -.035em; }
.paper-facts { border-block: 1px solid #bdcbcb; padding: .65rem 0; margin: .7rem 0 1.1rem; }
.paper-facts div { display: grid; grid-template-columns: 6rem 1fr; padding: .12rem 0; }
.paper-facts dt,.signature,.pet-id { color: #4b626d; }
.paper mark { color: #164354; background: #b9e2ec; padding-inline: .16rem; }
.signature { margin-top: 1.7rem; padding-top: .55rem; border-top: 1px solid #c5cfce; font-size: .88rem; }
.signature span { float: right; }
.questions { display: grid; gap: .6rem; margin-top: 1.05rem; }
.questions button { text-align: left; }
.questions button[aria-pressed="true"] { border-color: #84ceed; background: #29495b; }
.answer-card { border-top: 3px solid #67bbdf; }
.answer-card > .kicker { margin-bottom: .5rem; }
.review-source { margin-top: .3rem; }
.handoff-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; }
.handoff-facts { list-style: none; margin: .8rem 0 0; padding: 0; }
.handoff-facts li { border-top: 1px solid var(--edge); padding: .7rem 0; }
.handoff-facts li p { margin: .2rem 0; color: var(--muted); }
.handoff-facts .source-link { font-size: .93rem; }
.sources-title { margin: 1.55rem 0 .5rem; color: var(--muted); }
.source-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.source-links button { font-size: .94rem; }
fieldset { margin: 1rem 0 0; padding: 0; border: none; }
fieldset label { display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; border-bottom: 1px solid #3d515f; cursor: pointer; }
fieldset input { width: 1.15rem; height: 1.15rem; accent-color: var(--sky); }
.summary section { border-top: 1px solid #b9c9c9; margin-top: .7rem; padding-top: .65rem; }
.summary h4 { margin-bottom: .18rem; }
.summary ul { padding-left: 1.12rem; margin: .2rem 0 0; }
.demo-footer { flex-wrap: wrap; margin: 1.8rem 0; border-top: 1px solid #344650; padding-top: .5rem; font-size: .9rem; }
dialog { color: var(--ink); width: min(30rem,calc(100% - 2rem)); max-height: 90dvh; border: 1px solid var(--edge); border-radius: 1rem; padding: .8rem; background: #18242f; }
dialog::backdrop { background: #071019bb; }
.dialog-top { padding: 0 .25rem .75rem; }
#source-date { margin-bottom: 1rem; color: #4b626d; }
@media(max-width: 44rem) {
  .panel-grid { grid-template-columns: minmax(0,1fr); }
  .pet-intro { gap: 1rem; }
  .tabs { margin-bottom: 1rem; }
  .tabs a { padding-inline: .85rem; }
}
@media(max-width: 34rem) {
  .pet-intro { display: block; padding-bottom: 1.15rem; }
  .next-up { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .5rem; margin-top: 1rem; padding-left: .6rem; }
  .next-up strong { font-size: 1rem; }
  .next-up button { display: block; flex-basis: 100%; text-align: left; font-size: .86rem; }
}
@media(max-width: 22rem) {
  .tabs { gap: 0; }
  .tabs a { padding-inline: .55rem; }
}
@page { size: auto; margin: 16mm; }
@media print {
  :root,body { background: white; color: #15202a; color-scheme: light; }
  .mast,.skip,.pet-intro,.tabs,.demo-footer,.controls-card,dialog,#history,#review,#ask,noscript { display: none !important; }
  .shell,.handoff-grid { display: block; width: 100%; margin: 0; }
  #one-pager { display: block !important; }
  .summary { padding: 0; background: white; border: 0; box-shadow: none; break-inside: avoid; }
  .summary h3 { font-size: 24pt; }
  .summary section { margin-top: 10pt; padding-top: 7pt; }
}
