/* Desliga: the landing and the 3-minute test. One warm, light world painted in gouache at golden hour.
   Layout: a phone column (cards with big radii, one full-width button); wide screens open into two columns.
   Colour: warm cream page, deep plum ink, peach / lilac / butter blocks taken from the paintings.
   Type: Bricolage Grotesque for headlines, Figtree for everything else. */
@font-face { font-family: 'Bricolage Grotesque'; src: url(/assets/bricolage.woff2) format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: Figtree; src: url(/assets/figtree.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }

html.b {
  --bg: #fbf4ea; --paper: #fffcf7; --sand: #f3e6d4; --line: #eadcc9;
  --ink: #2d2131; --ink2: #5c4b5d; --mute: #8e7f8c; --on-ink: #fff8ef;
  --peach: #f5b08a; --peach-soft: #fbe3d3; --lilac: #dcd0f2; --lilac-soft: #efe9fa; --butter: #f7dc97; --butter-soft: #fbf0cf; --sage: #c7d8bc;
  --display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --text: Figtree, 'Avenir Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lift: 0 1px 0 rgba(45, 33, 49, .04), 0 14px 30px -20px rgba(45, 33, 49, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html.b *, html.b *::before, html.b *::after { box-sizing: border-box; }
html.b body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html.b h1, html.b h2, html.b h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.03em; margin: 0; text-wrap: balance; font-variation-settings: 'opsz' 72; }
html.b p { margin: 0; }
html.b img { display: block; max-width: 100%; }
.wrap { padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }

/* ---------- top */
.b-top { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.b-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font: 650 21px/1 var(--display); letter-spacing: -.035em; }
.b-logo img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.b-top a.b-small { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); padding: 9px 16px; border-radius: 999px; background: var(--paper); box-shadow: var(--lift); }

/* ---------- buttons */
.b-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink);
  font: 600 17.5px/1 var(--text); text-decoration: none; cursor: pointer; box-shadow: 0 12px 26px -14px rgba(45, 33, 49, .75); transition: transform .15s var(--ease), box-shadow .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.b-btn::after { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.b-btn.plain::after { display: none; }
.b-btn:hover { transform: translateY(-1px); }
.b-btn:active { transform: scale(.985); }
.b-btn[disabled] { opacity: .35; pointer-events: none; box-shadow: none; }
.b-link { background: none; border: 0; padding: 8px; font: 500 15px var(--text); color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); cursor: pointer; }
:is(.b-btn, .b-link, .qz-card, .qz-row, .b-top a):focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }

/* ---------- the landing: five full-screen pages, one per swipe, none needs scrolling */
html.b.snap { scroll-snap-type: y mandatory; }
.pages { display: block; }
.page { height: 100svh; min-height: 520px; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); }
.page > h2 { font-size: clamp(28px, 7.6vw, 46px); line-height: 1.02; padding: 6px 6px 0; flex: none; }
.b-top { flex: none; height: 52px; }

/* 1 · hero */
.hero-art { flex: 1 1 0; min-height: 140px; border-radius: 30px; overflow: hidden; background: var(--peach-soft); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-copy { flex: none; display: grid; gap: 12px; padding: 4px 6px 0; }
.p-hero h1 { font-size: clamp(32px, min(9.6vw, 5.2svh), 68px); line-height: .98; }
.p-hero h1 span { color: var(--ink2); font-weight: 500; }
.p-hero .sub { font-size: clamp(15.5px, 2.2svh, 18px); line-height: 1.42; color: var(--ink2); max-width: 28em; }
.micro { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; color: var(--mute); }
.micro::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #7fb27a; flex: none; }

/* 2 · the evening, as a story: tap (or wait) for the next moment */
.story-frame { position: relative; flex: 1 1 0; min-height: 160px; border: 0; padding: 0; border-radius: 30px; overflow: hidden; background: var(--sand); cursor: pointer; display: block; width: 100%; -webkit-tap-highlight-color: transparent; }
.story-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: 0; transition: opacity .8s var(--ease); }
.story-frame img.on { opacity: 1; }
.story-bars { position: absolute; z-index: 2; top: 12px; left: 14px; right: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.story-bars i { height: 4px; border-radius: 9px; background: rgba(255, 252, 247, .45); overflow: hidden; }
.story-bars b { display: block; height: 100%; width: 0; background: var(--paper); }
.story-bars i.done b { width: 100%; }
.story-bars i.now b { animation: fillbar var(--dwell, 4.2s) linear forwards; }
@keyframes fillbar { to { width: 100%; } }
.story-frame .clock { position: absolute; z-index: 2; top: 28px; left: 14px; padding: 7px 14px; border-radius: 999px; background: var(--paper); font: 650 17px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; box-shadow: var(--lift); color: var(--ink); }
.story-cards { flex: none; display: grid; }
.story-card { grid-area: 1 / 1; background: var(--paper); border-radius: 26px; padding: 18px 20px 20px; box-shadow: var(--lift); display: grid; gap: 6px; align-content: start; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.story-card.on { opacity: 1; transform: none; }
.story-card .time { font: 650 15px/1 var(--display); color: var(--mute); font-variant-numeric: tabular-nums; }
.story-card h2 { font-size: clamp(24px, 6.6vw, 34px); line-height: 1.05; }
.story-card p { color: var(--ink2); font-size: 16px; }
.story-card.last { background: var(--ink); color: var(--on-ink); }
.story-card.last p, .story-card.last .time { color: #d9cdd6; }

/* 3 · the ten minutes */
.phone { flex: 0 1 auto; min-height: 0; align-self: center; width: min(330px, 86vw); border-radius: 44px; padding: 9px; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(45, 33, 49, .6); display: flex; }
.phone-in { flex: 1; min-height: 0; overflow: hidden; justify-content: flex-start; border-radius: 36px; background: var(--bg); padding: 14px 13px; display: flex; flex-direction: column; gap: 9px; }
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 2px 4px 9px; border-bottom: 1px solid var(--line); flex: none; }
.phone-bar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.phone-bar b { display: block; font: 650 15.5px/1.1 var(--display); }
.phone-bar small { color: var(--mute); font-size: 12px; }
.bub { flex: none; max-width: 88%; font-size: clamp(13px, 1.75svh, 14.5px); line-height: 1.4; padding: 9px 12px; border-radius: 18px; }
.bub.me { align-self: flex-end; background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 6px; }
.bub.her { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 6px; box-shadow: 0 1px 0 rgba(45, 33, 49, .05); }
.bub.list { align-self: flex-start; background: var(--butter-soft); display: grid; gap: 4px; }
.bub.list b { font: 650 12.5px var(--display); }
.bub.list span { display: flex; gap: 8px; align-items: flex-start; }
.bub.list span::before { content: ''; width: 12px; height: 12px; border: 1.8px solid var(--ink2); border-radius: 4px; flex: none; margin-top: 3px; }
.bub.breathe { align-self: center; display: flex; align-items: center; gap: 10px; background: var(--lilac-soft); border-radius: 999px; padding: 8px 15px 8px 9px; font-weight: 600; }
.bub.breathe i { width: 20px; height: 20px; border-radius: 50%; background: var(--lilac); animation: breath 10s ease-in-out infinite; }
@keyframes breath { 0% { transform: scale(.6); } 40% { transform: scale(1.1); } 100% { transform: scale(.6); } }
.phone .bub { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.phone.seen .bub { opacity: 1; transform: none; }
.phone.seen .bub:nth-of-type(2) { transition-delay: .5s; } .phone.seen .bub:nth-of-type(3) { transition-delay: 1.3s; } .phone.seen .bub:nth-of-type(4) { transition-delay: 2s; } .phone.seen .bub:nth-of-type(5) { transition-delay: 2.7s; } .phone.seen .bub:nth-of-type(6) { transition-delay: 3.6s; } .phone.seen .bub:nth-of-type(7) { transition-delay: 4.3s; }
.p-how { justify-content: center; }
.how-line { flex: none; text-align: center; color: var(--ink2); font-size: 15.5px; max-width: 26em; align-self: center; padding: 0 8px; }

/* 4 · science: three compact cards */
.sci-list { flex: 1 1 0; min-height: 0; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sci-card { border-radius: 24px; padding: 10px; display: grid; grid-template-columns: minmax(0, 34%) 1fr; gap: 12px; align-items: stretch; min-height: 0; overflow: hidden; }
.sci-card.lilac { background: var(--lilac-soft); } .sci-card.peach { background: var(--peach-soft); } .sci-card.butter { background: var(--butter-soft); }
.sci-card img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 16px; }
.sci-card > div { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; padding-right: 4px; }
.sci-card b { font: 650 clamp(26px, 4.2svh, 40px)/1 var(--display); letter-spacing: -.04em; }
.sci-card p { font-size: clamp(13px, 1.75svh, 15px); line-height: 1.35; }
.sci-card small { color: var(--ink2); font-size: 11.5px; opacity: .85; line-height: 1.3; }

/* 5 · end */
.p-end { justify-content: center; }
.end { flex: 0 1 auto; min-height: 0; border-radius: 34px; background: var(--peach-soft); padding: 26px 20px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.end img { width: clamp(72px, 13svh, 120px); height: clamp(72px, 13svh, 120px); border-radius: 50%; object-fit: cover; }
.end h2 { font-size: clamp(32px, 8.6vw, 54px); line-height: 1; }
.end p { color: var(--ink2); max-width: 22em; }
.end .b-btn { margin-top: 4px; }
.b-foot { flex: none; display: grid; gap: 8px; color: var(--mute); font-size: 12.5px; line-height: 1.45; padding: 4px 6px 0; }
.b-foot .row { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.b-foot a { color: var(--ink2); }

/* ---------- wide screens: the same five pages, two columns where it helps */
@media (min-width: 900px) {
  .page { padding: 16px max(40px, calc((100vw - 1180px) / 2)) 28px; gap: 22px; }
  .b-top { height: 60px; }
  .p-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 56px; }
  .p-hero .b-top { grid-column: 1 / -1; }
  .hero-art { grid-column: 2; grid-row: 2; border-radius: 36px; min-height: 0; }
  .hero-copy { grid-column: 1; grid-row: 2; align-self: center; gap: 18px; }
  .p-hero h1 { font-size: clamp(40px, min(4.4vw, 8svh), 68px); }
  .p-hero .b-btn { width: auto; justify-self: start; }
  .micro { justify-content: flex-start; }
  .p-story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
  .story-frame { height: 100%; }
  .story-card { padding: 30px; }
  .story-card h2 { font-size: 40px; }
  .p-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto 1fr; column-gap: 56px; }
  .p-how > h2 { grid-column: 1; grid-row: 2; align-self: end; }
  .how-line { grid-column: 1; grid-row: 3; text-align: left; align-self: start; justify-self: start; padding: 0 6px; font-size: 18px; }
  .phone { grid-column: 2; grid-row: 1 / span 3; height: 100%; align-self: center; justify-self: center; }
  .sci-list { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .sci-card { grid-template-columns: none; grid-template-rows: minmax(0, 1fr) auto; padding: 12px 12px 18px; }
  .sci-card > div { padding: 4px 8px 0; }
  .sci-card p { font-size: 15.5px; }
  .end { padding: 40px; }
  .end .b-btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html.b.snap { scroll-snap-type: none; }
  .story-frame img, .story-card { transition: none; }
}

/* ---------- the 3-minute test: a full-height app; every screen fits without scrolling */
html.b.qz-page, html.b.qz-page body { height: 100%; overflow: hidden; }
.qz { height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.qz-top { display: grid; grid-template-columns: 48px 1fr 52px; align-items: center; gap: 6px; height: 56px; padding: env(safe-area-inset-top, 0px) max(8px, env(safe-area-inset-right, 0px)) 0 max(8px, env(safe-area-inset-left, 0px)); box-sizing: content-box; }
.qz-back { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.qz-back svg { width: 22px; height: 22px; }
.qz-back[hidden] { visibility: hidden; display: grid !important; }
.qz-bar { height: 7px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.qz-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--ink); transition: width .45s var(--ease); }
.qz-count { font-size: 13px; font-weight: 600; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; padding-right: 8px; white-space: nowrap; }
.qz-main { min-height: 0; overflow-y: auto; overscroll-behavior: contain; width: 100%; max-width: 560px; margin: 0 auto; padding: 4px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); display: flex; }
.qz-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; animation: qz-in .42s var(--ease) both; }
.qz-screen.back { animation-name: qz-back; }
@keyframes qz-in { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes qz-back { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.qz-head { flex: none; display: flex; align-items: center; gap: 14px; }
.qz-pic { flex: none; width: clamp(56px, 9svh, 84px); aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--sand); }
.qz-pic img { width: 100%; height: 100%; object-fit: cover; }
.qz-q { font-size: clamp(23px, min(6.6vw, 3.9svh), 34px); line-height: 1.07; }
.qz-sub { flex: none; color: var(--ink2); font-size: 15.5px; margin-top: -6px; }
.qz-grid { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 10px; }
.qz-card { position: relative; min-height: 0; display: flex; flex-direction: column; border: 0; padding: 6px 6px 10px; border-radius: 22px; background: var(--paper); text-align: left; cursor: pointer; box-shadow: var(--lift); font: inherit; color: inherit; transition: transform .15s var(--ease), box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.qz-card img { flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; border-radius: 16px; }
.qz-card span { flex: none; display: block; padding: 8px 6px 0; font-weight: 650; font-size: clamp(13.5px, 1.85svh, 15.5px); line-height: 1.2; }
.qz-card:active { transform: scale(.97); }
.qz-card.on { box-shadow: 0 0 0 2.5px var(--ink), var(--lift); }
.qz-card .tick, .qz-row .tick { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1.5px var(--line); display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.qz-card.on .tick, .qz-row.on .tick { background: var(--ink); box-shadow: none; }
.qz-card .tick svg, .qz-row .tick svg { width: 15px; height: 15px; color: var(--on-ink); opacity: 0; transition: opacity .2s; }
.qz-card.on .tick svg, .qz-row.on .tick svg { opacity: 1; }
.qz-grid.people { flex: 0 1 auto; grid-auto-rows: auto; align-content: start; }
.qz-grid.people .qz-card img { flex: none; height: auto; aspect-ratio: 4 / 5; max-height: min(52svh, 360px); }
.qz-grid.people .qz-card img { object-position: 50% 30%; }
.qz-grid.people .qz-card span { font-size: 17px; text-align: center; }
.qz-list { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.qz-row { position: relative; flex: 0 1 60px; min-height: 44px; display: flex; align-items: center; padding: 8px 54px 8px 18px; border: 0; border-radius: 18px; background: var(--paper); box-shadow: var(--lift); text-align: left; font: 600 clamp(15px, 2svh, 16.5px)/1.2 var(--text); color: var(--ink); cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.qz-row .tick { top: 50%; transform: translateY(-50%); right: 14px; }
.qz-row:active { transform: scale(.985); }
.qz-row.on { box-shadow: 0 0 0 2.5px var(--ink), var(--lift); }
.qz-more { flex: none; display: flex; flex-wrap: wrap; gap: 0 12px; justify-content: center; }
.qz-scale { flex: none; display: grid; gap: 14px; padding: 16px 18px 20px; background: var(--paper); border-radius: 26px; box-shadow: var(--lift); }
.qz-scale output { font: 650 clamp(44px, 8svh, 64px)/1 var(--display); letter-spacing: -.04em; text-align: center; }
.qz-scale input { width: 100%; -webkit-appearance: none; appearance: none; height: 12px; border-radius: 99px; background: var(--sand); outline: none; }
.qz-scale input::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); border: 5px solid var(--paper); box-shadow: 0 4px 12px rgba(45,33,49,.35); cursor: pointer; }
.qz-scale input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 5px solid var(--paper); cursor: pointer; }
.qz-scale .ends { display: flex; justify-content: space-between; color: var(--mute); font-size: 14px; }
.qz-text { flex: 1 1 0; min-height: 90px; max-height: 260px; width: 100%; border: 0; border-radius: 22px; background: var(--paper); box-shadow: var(--lift); padding: 16px; font: 400 17px/1.5 var(--text); color: var(--ink); resize: none; }
.qz-text:focus { outline: 2.5px solid var(--ink); }
.qz-fact { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.qz-fact > img { flex: 1 1 0; min-height: 90px; width: 100%; object-fit: cover; border-radius: 26px; }
.qz-fact .from { flex: none; align-self: flex-start; font: 650 14px var(--display); color: var(--ink2); background: var(--lilac-soft); padding: 6px 12px; border-radius: 999px; }
.qz-fact p.big { flex: none; font: 600 clamp(17px, min(5.2vw, 2.7svh), 22px)/1.3 var(--display); letter-spacing: -.02em; }
.qz-fact small { flex: none; color: var(--mute); font-size: 12.5px; }
.qz-foot { padding: 10px max(16px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--bg); }
.qz-foot .in { width: 100%; max-width: 528px; margin: 0 auto; display: grid; gap: 0; justify-items: center; }
.qz-foot .b-link { padding: 8px 8px 2px; }
.qz-foot[hidden] { display: none; }
.qz-done { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; text-align: center; }
.qz-done > img { width: clamp(64px, 12svh, 120px); height: clamp(64px, 12svh, 120px); border-radius: 50%; object-fit: cover; }
.qz-checks { display: grid; gap: 10px; text-align: left; width: 100%; }
.qz-check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 14px; background: var(--paper); border-radius: 20px; box-shadow: var(--lift); font-size: clamp(13.5px, 1.8svh, 15px); line-height: 1.42; cursor: pointer; }
.qz-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.qz-check a { color: var(--ink); }
.qz-err { color: #a8432f; font-size: 14.5px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .qz-screen, .qz-screen.back { animation: none; }
  .bub.breathe i, .qz-making .spin { animation: none; }
  .phone .bub { opacity: 1; transform: none; transition: none; }
  .story-pin img { transition: none; }
}

/* ---------- the analysis after the test */
.qz-analyze { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; }
.qz-analyze img { width: clamp(84px, 14svh, 120px); aspect-ratio: 1; border-radius: 50%; animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.06); } }
.qz-analyze ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; text-align: left; }
.qz-analyze li { display: flex; gap: 12px; align-items: center; color: var(--mute); font-weight: 600; font-size: 15.5px; transition: color .3s; }
.qz-analyze li i { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--sand); flex: none; }
.qz-analyze li.now { color: var(--ink); }
.qz-analyze li.now i { border-top-color: var(--ink); animation: spin .8s linear infinite; }
.qz-analyze li.ok { color: var(--ink); }
.qz-analyze li.ok i { background: var(--ink); border-color: var(--ink); }
.qz-analyze li.ok i::after { content: ''; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid var(--on-ink); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }

.pt-index { flex: none; display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 16px; background: var(--paper); border-radius: 24px; padding: 14px 16px; box-shadow: var(--lift); }
.pt-index svg { grid-column: 1; grid-row: 1; width: 92px; height: 92px; transform: rotate(-90deg); }
.pt-index .trk { fill: none; stroke: var(--sand); stroke-width: 9; }
.pt-index .val { fill: none; stroke: #e8875e; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.pt-index .num { grid-column: 1; grid-row: 1; display: grid; justify-items: center; line-height: 1; }
.pt-index .num b { font: 650 30px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pt-index .num small { font-size: 11px; color: var(--mute); margin-top: 3px; }
.pt-index .txt span { font-size: 12.5px; font-weight: 600; color: var(--mute); }
.pt-index .txt p { font: 600 clamp(15px, 2.1svh, 17px)/1.3 var(--display); letter-spacing: -.01em; margin-top: 2px; }
.pt-rows { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: space-evenly; gap: 8px; }
.pt-row .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 650; font-size: clamp(14px, 1.95svh, 15.5px); }
.pt-row em { font-style: normal; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pt-row.good em { background: #e2efdf; color: #3e6b3a; } .pt-row.mid em { background: var(--butter-soft); color: #7a5a12; } .pt-row.bad em { background: var(--peach-soft); color: #9a4524; }
.pt-row .bar { height: 9px; border-radius: 99px; background: var(--sand); overflow: hidden; margin: 6px 0 4px; }
.pt-row .bar i { display: block; height: 100%; border-radius: 99px; transition: width 1.1s var(--ease); }
.pt-row.good .bar i { background: #93c08a; } .pt-row.mid .bar i { background: #e8c25c; } .pt-row.bad .bar i { background: #ec946b; }
.pt-row small { display: block; color: var(--mute); font-size: 11.5px; line-height: 1.3; }
.pt-note { flex: none; text-align: center; color: var(--mute); font-size: 12.5px; }

.gl-chart { flex: 1 1 0; min-height: 140px; background: var(--paper); border-radius: 24px; box-shadow: var(--lift); overflow: hidden; }
.gl-chart svg { display: block; }
.gl-chart .ax { font: 600 11.5px var(--text); fill: var(--mute); }
.gl-chart .g { stroke: var(--line); stroke-width: 1; }
.gl-chart .ar { fill: var(--peach-soft); opacity: .8; }
.gl-chart .ln { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.gl-chart .pt { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.gl-chart .pt.end { fill: #e8875e; stroke: var(--ink); }
.gl-chart .tag text { font: 650 13px var(--display); fill: var(--ink); }
.gl-weeks { flex: none; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; counter-reset: w; }
.gl-weeks li { counter-increment: w; display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.gl-weeks li::before { content: 'S' counter(w); font: 650 12px var(--display); color: var(--mute); }
.seals { flex: none; display: grid; gap: 8px; }
.seals p { font-size: 12.5px; color: var(--mute); text-align: center; }
.seals div { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.seal { display: grid; text-align: center; padding: 7px 11px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.seal b { font: 650 13px/1.2 var(--display); letter-spacing: -.01em; }
.seal small { font-size: 10.5px; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .qz-analyze img, .qz-analyze li.now i, .gl-chart .ln { animation: none; } .gl-chart .ln { stroke-dashoffset: 0; } }

/* the institutions' shields, only inside the funnel (never in ads or on the landing) */
.qz-fact .from.inst { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); padding: 5px 12px 5px 6px; }
.qz-fact .from.inst img { display: inline-block; height: 24px; width: auto; flex: none; }
.pt-row small .lg { display: inline-block; height: 13px; width: auto; vertical-align: -2px; margin-right: 6px; }
.seal { grid-template-columns: auto 1fr; align-items: center; gap: 8px; text-align: left; padding: 7px 12px 7px 8px; }
.seal img { height: 30px; width: auto; }
.seal > span { display: grid; }
.seals .aff { text-align: center; color: var(--mute); font-size: 11px; }
