/* tear.report: the landing, personal and tablet pages, on the shared tokens (tokens.css): paper, ink, one quiet accent. */
:root { --accent: var(--violet); --r: 18px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); background-image: var(--grad-paper);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* every page's paper carries the report pages' faint map, which stays put while the page scrolls; cards stay solid over it */
body { isolation: isolate; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--paper-map); }
@media print { body::before { display: none; } }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* the header and the footer are shared by every page: chrome.css */

/* ---------- type ---------- */
.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 20px; }
.kicker { margin: 0 0 16px; font: 500 .72rem/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 8.4vw, 3.5rem); line-height: 1.08; }
h1 b { font-weight: 700; }
.lede { color: var(--ink-2); font-size: 1.06rem; margin: 18px auto 0; max-width: 32em; }
.hero { padding: 48px 0 30px; text-align: center; }
.label-row { display: flex; align-items: center; gap: 14px; margin: 48px 0 18px; }
.label-row .kicker { margin: 0; white-space: nowrap; }
.label-row::before, .label-row::after { content: ""; height: 1px; flex: 1; background: var(--line-2); }

/* ---------- cards, buttons, fields ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: #fff; font-weight: 600; font-size: 1.02rem;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .2s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.wide { width: 100%; }
.panel { padding: 28px 24px 24px; }
.panel h2 { font-size: 1.6rem; line-height: 1.15; }
.panel .sub { color: var(--muted); margin: 8px 0 22px; font-size: .98rem; }
.field { display: block; margin: 0 0 14px; }
.field span { display: block; font-size: .86rem; color: var(--muted); margin: 0 0 6px; }
.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 6px; border: 1px solid var(--line-2);
  background: #fff; font-size: 17px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--violet-l); }
.field input[aria-invalid="true"] { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(235, 104, 52, .14); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--coral-d); font-size: .94rem; margin: 2px 0 14px; }
.fine { color: var(--muted); font-size: .84rem; line-height: 1.5; margin: 14px 0 0; display: flex; gap: 9px; }
.fine svg { flex: none; margin-top: 3px; }
.count { color: var(--muted); font-size: .84rem; text-align: right; margin: -8px 0 12px; }
.done .tick { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; margin-bottom: 16px; }
.done p { color: var(--ink-2); margin: 10px 0 0; }
.linkish {
  background: none; border: 0; padding: 0; min-height: 44px; color: var(--accent); cursor: pointer; font-size: .96rem;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- the dial: one chance as a thin ring ---------- */
.dial { position: relative; width: 84px; height: 84px; flex: none; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial .track { fill: none; stroke: var(--line); stroke-width: 3; }
.dial .arc { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 1.3s var(--ease); }
.dial .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 400 1.65rem/1 var(--display); }
.dial .num small { font: 500 .78rem/1 var(--sans); color: var(--muted); margin: 6px 0 0 2px; }

/* ---------- report tiles: every block a fixed height, so every card lines up ---------- */
/* one type scale: page title (h1), section label (.kicker), card title (h3), body (.95rem), label (.7rem caps) */
/* rows of equal cards; a short last row is centred, so every row is balanced */
.tiles, .cards { --cols: 1; --gap: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.tiles > *, .cards > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.tile { display: flex; flex-direction: column; padding: 24px; text-decoration: none; color: var(--ink); text-align: left; }
.tile .for { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 24px; font: 600 .7rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; }
.tile .for > span { overflow: hidden; text-overflow: ellipsis; }
.tile .for .ic { flex: none; width: 22px; height: 22px; color: var(--accent); }
.tile .for b { color: var(--accent); }
.tile h3 { font-size: 1.32rem; line-height: 1.25; height: 2.5em; margin: 10px 0 10px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile .teaser { margin: 0; font-size: .95rem; line-height: 1.5; height: 3em; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile .mid { display: flex; align-items: center; gap: 16px; height: 108px; margin-top: 18px; border-top: 1px solid var(--line); }
.tile .pick { min-width: 0; }
.tile .pick small { display: block; font: 600 .7rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tile .pick b { font-weight: 600; font-size: .95rem; line-height: 1.4; margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sure { display: flex; gap: 12px; align-items: baseline; height: 4.4em; padding-top: 12px; border-top: 1px solid var(--line); }
.sure b { font: 400 1.15rem/1.2 var(--display); color: var(--accent); white-space: nowrap; }
.sure span { font-size: .88rem; line-height: 1.45; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* the card's last row: what it rests on (mono, left) and what to do with it (right) */
.tile .act-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.tile .meta-l { display: flex; align-items: center; gap: 10px; font: 500 .7rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tile .acts { display: flex; gap: 10px; margin-left: auto; }
.btn.go { min-height: 48px; padding: 0 18px; gap: 10px; background: #16161a; border-color: #16161a; color: #fff; font-size: .96rem; }
.btn.go .ic { width: 18px; height: 18px; stroke-width: 1.8; }
.btn.ghost.sq { min-height: 48px; padding: 0 16px; font-size: .96rem; }
/* the card's picture: its places, its strongest links, its futures */
.art { margin: -24px -24px 18px; padding: 26px 20px 12px; border-radius: var(--r) var(--r) 0 0; background: #16161a; }
.art .wordmark { display: flex; align-items: center; justify-content: center; gap: 12px; height: 56px; color: #fff; font: 600 1.3rem/1 var(--display); letter-spacing: .24em; }
.fut { display: flex; gap: 2px; height: 6px; margin-top: 10px; border-radius: 3px; overflow: hidden; }
.fut-cap { display: flex; justify-content: space-between; margin-top: 7px; font: 500 .64rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }

/* line icons: one stroke weight */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic.big { width: 30px; height: 30px; stroke-width: 1.4; }
.btn .ic { width: 20px; height: 20px; }

.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 .66rem/1 var(--sans); letter-spacing: .06em; color: var(--muted); white-space: nowrap; }

/* ---------- landing: the answer preview and the locked cards ---------- */
.preview { position: relative; padding: 24px 24px 20px; text-align: left; margin: 34px auto 0; max-width: 560px; transform: rotate(-.6deg); }
.preview .tag { font: 600 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.preview .head { font: 400 1.28rem/1.32 var(--display); margin: 10px 0 16px; }
.preview .head mark { background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 92%, transparent 92%); color: inherit; padding: 0 1px; }
.preview .rows { border-top: 1px solid var(--ink); }
.preview .r { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.preview .r b { font: 400 1.15rem/1 var(--display); white-space: nowrap; }
.preview .pfoot { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.preview .pfoot .dial { width: 64px; height: 64px; }
.preview .pfoot .dial .num { font-size: 1.2rem; }
.preview .pfoot p { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.landing .panel { max-width: 520px; margin: 34px auto 0; }
.landing .preview { margin-top: 0; }

/* ---------- landing: what people use TEAR for, and quantum cognition ---------- */
.sec-title { text-align: center; font-size: clamp(1.8rem, 6.4vw, 2.6rem); line-height: 1.12; margin: 0 auto 26px; max-width: 16em; }
.uses { display: grid; grid-template-columns: 1fr; gap: 16px; }
.quantum {
  display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 40px 0 0; padding: 32px 24px;
  border-radius: 6px; background: var(--night-1); color: var(--night-ink); text-align: center;
}
.quantum .kicker { color: #8ab4ea; margin-bottom: 12px; }
.quantum h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.12; color: #fff; }
.quantum p:last-child { margin: 14px auto 0; max-width: 34em; color: var(--night-ink-2); font-size: 1rem; }
.q-art { width: 170px; height: 120px; flex: none; order: -1; }

/* ---------- the black hero of the landing and the tablet: the line centred, one riso object floating on a faint grid ---------- */
body:is(.landing, .tablet, .me, .login) #tear-head { background: #16161a; box-shadow: inset 0 -1px rgba(255, 255, 255, .12); }
.dark-hero { background: #16161a; color: #f2f0ea; text-align: center; padding: 40px 20px 36px; overflow: hidden; }
.dark-hero .kicker { color: #8d8a81; font-size: .78rem; margin-bottom: 18px; }
.dark-hero h1 { margin: 0 auto; max-width: 12em; color: #8d8a81; font-size: clamp(2.3rem, 9.4vw, 4rem); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.dark-hero h1 b { font-weight: 400; color: #fff; }
.dark-hero .lede { margin: 18px auto 0; max-width: 34em; color: #a6a39b; font-size: 1rem; }
.riso { position: relative; }
.riso canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-pic { height: clamp(240px, 38vh, 460px); margin: 0 -20px; }
.riso .float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.btn.light { background: #f2f0ea; border-color: #f2f0ea; color: #000; }
.dark-hero .take { margin-top: 4px; }
.funnel .hero-pic { display: none; }
@media (min-width: 600px) {
  .dark-hero { padding: 56px 36px 48px; }
  .dark-hero .lede { font-size: 1.12rem; }
  .funnel .hero-pic { display: block; height: 280px; margin: 8px -36px -24px; }
}
.landing #register { scroll-margin-top: 84px; }
/* the personal page and the login: the same hero, the object a little smaller, so the form follows soon */
:is(.me, .login) .hero-pic { height: 220px; margin: 4px -20px -16px; }
.login .dark-hero h1 { color: #fff; }
@media (min-width: 600px) { :is(.me, .login) .hero-pic { height: 280px; margin: 8px -36px -24px; } }

/* ---------- the landing's use cards: the object on the A2 blue, a bold headline, one real finding with its chart ---------- */
.ucard { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.ucard .uart { height: 224px; margin: 12px 12px 0; border-radius: 3px; background: var(--violet); overflow: hidden; }
.ucard .utxt { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.ucard h3 { font: 700 1.75rem/1.12 var(--sans); letter-spacing: -.025em; color: var(--ink); }
.ucard h3 em { font-style: normal; color: var(--violet); }
.ucard .ut { margin: 10px 0 18px; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.uex { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.uex .from { display: block; margin-bottom: 6px; font-size: .88rem; color: var(--muted); }
.uex p { margin: 0 0 14px; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.uex p b { color: var(--ink); font-weight: 600; }
.ubars { display: grid; grid-template-columns: minmax(0, 1fr) minmax(64px, 38%) auto; gap: 10px 12px; align-items: center; font-size: .9rem; color: var(--ink-2); }
.ubars > i { display: block; height: 10px; background: var(--paper-2); }
.ubars > i > i { display: block; height: 100%; background: var(--violet); }
.ubars b { font-size: 1rem; font-weight: 600; color: var(--ink); text-align: right; }
.ufan { display: block; width: 100%; height: auto; overflow: visible; }
.ufan text { font: 600 16px/1 var(--sans); fill: var(--ink); }
.ufan .band { fill: var(--violet); opacity: .1; }
.ufan path.up { stroke: var(--violet); stroke-width: 2; }
.ufan path.down { stroke: var(--coral); stroke-width: 2; }
.ufan text.up { fill: var(--violet); } .ufan text.down { fill: var(--coral-d); }
.ufan circle { fill: var(--ink); }
.upast { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 1rem; }
.upast .boxes { display: flex; gap: 6px; }
.upast .boxes i { width: 18px; height: 28px; border-radius: 3px; border: 1.5px solid var(--ink); background: var(--card); }
.upast .boxes i.hit { background: var(--ink); }
.upast b { font-weight: 600; }

/* ---------- the landing's report cards: TEAR and the title on black, the answer on white behind the link ---------- */
.qcard { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.qtop { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 0; background: #16161a; color: #f2f0ea; }
.qhd { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qword { font: 600 .82rem/1 var(--display); letter-spacing: .3em; color: #fff; }
.qhd .who { font-size: .88rem; line-height: 1.3; color: #8d8a81; text-align: right; }
.qhd .who b { font-weight: 500; color: #cfccc3; }
.qtop h3 { margin: 24px 0 22px; font-size: 1.6rem; line-height: 1.2; color: #fff; text-wrap: balance; }
.qbot { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 18px 24px 22px; }
.qbot .n { position: relative; font: 400 3.2rem/.9 var(--display); letter-spacing: -.03em; color: var(--ink); user-select: none; }
.qbot .n span, .qbot .n small { filter: blur(7px); opacity: .7; }
.qbot .n small { font-size: .4em; margin-left: 2px; }
.qbot .n svg { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; color: var(--ink); }
.qbot p { margin: 0; font-size: .9rem; line-height: 1.42; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.qbot .btn { grid-column: 1 / -1; justify-self: end; margin-top: 12px; }

/* ---------- footer ---------- */

/* ---------- wider screens: centred, two columns of cards ---------- */
@media (min-width: 760px) {
  .landing .wrap { max-width: 940px; }
  .me .wrap { max-width: 1180px; padding: 0 36px; }
  .hero { padding-top: 72px; }
  .hero h1 { max-width: 13em; margin: 0 auto; }
  .cards { --cols: 2; }
  .uses { grid-template-columns: 1fr 1fr; gap: 20px; }
  .quantum { flex-direction: row; text-align: left; padding: 40px 44px; gap: 40px; }
  .quantum p:last-child { margin-left: 0; }
  .q-art { order: 1; width: 220px; height: 156px; }
}
.me .ask .panel { max-width: none; }
.me .ask { margin-top: 8px; }

/* ---------- tablet: the overview ---------- */
.tablet { font-size: 18px; }
.tablet .wrap { max-width: 1180px; padding: 0 36px; }
.stage { text-align: center; padding: 40px 0 30px; }
.map-box { height: min(46vh, 430px); margin: 22px auto 0; }
.map-box svg { width: 100%; height: 100%; display: block; overflow: visible; }
.map-box .dept { fill: none; stroke: var(--ink); stroke-opacity: .32; stroke-width: .8; vector-effect: non-scaling-stroke; }
.map-box .outline { fill: rgba(251, 250, 246, .7); stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.map-box .dot { fill: var(--accent); opacity: 0; animation: dot .7s var(--ease) forwards; animation-delay: var(--d, 0s); }
.map-box .halo { fill: var(--accent); fill-opacity: .12; opacity: 0; animation: dot .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes dot { to { opacity: 1; } }
.stage-body { display: flex; flex-direction: column; align-items: center; }
.stage-body .kpis { order: 0; }
.stage-body .map-box { order: 1; }
.stage-body .qrbox { order: 2; }
.kpis { display: flex; justify-content: center; margin: 0 auto; }
@media (min-width: 1000px) and (orientation: landscape) {
  .stage-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
  .stage-body .kpis { order: 0; flex-direction: column; margin: 0; justify-self: end; width: 260px; }
  .stage-body .kpi { padding: 16px 0; }
  .stage-body .kpi + .kpi { border-left: 0; border-top: 1px solid var(--line-2); }
  .stage-body .map-box { order: 1; width: 500px; height: min(56vh, 460px); margin: 0; }
  .stage-body .qrbox { order: 2; justify-self: start; width: 260px; flex-direction: column; text-align: center; margin: 0; }
  .stage-body .qrbox .qr-mini { width: 150px; height: 150px; }
  .stage-body .qrbox .side { align-items: stretch; }
  .stage-body .qrbox .side p { text-align: center; }
  .stage-body .qrbox .take { font-size: 1rem; padding: 0 16px; white-space: nowrap; }
}
.kpi { padding: 4px 36px; text-align: center; }
.kpi + .kpi { border-left: 1px solid var(--line-2); }
.kpi b { display: block; font: 400 2.5rem/1.1 var(--display); }
.counter { display: block; height: 20px; width: auto; max-width: 150px; margin: 0 auto 10px; }
.counter rect { fill: var(--accent); }
.counter rect.alt { fill: #8ab4ea; }
.counter line { stroke: var(--ink); stroke-opacity: .35; stroke-width: 1.2; }
.counter circle { fill: var(--accent); }
.counter circle.now { fill: var(--ink); }
.kpi span { font: 600 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) {
  .kpi { flex: 1 1 0; min-width: 0; padding: 4px 10px; }
  .kpi b { font-size: 2rem; }
  .counter { max-width: 100%; }
  .kpi span { letter-spacing: .08em; }
}
:is(.tablet, .me) .tiles { --cols: 1; --gap: 20px; }
:is(.tablet, .me) .tile h3, :is(.tablet, .me) .tile .teaser, :is(.tablet, .me) .tile .pick b, :is(.tablet, .me) .sure span { height: auto; display: block; -webkit-line-clamp: unset; overflow: visible; }
:is(.tablet, .me) .tile .mid { height: auto; padding: 18px 0; }
:is(.tablet, .me) .sure { height: auto; padding-bottom: 14px; }
:is(.tablet, .me) .tile .teaser { margin-bottom: 4px; }
:is(.tablet, .me) .tile h3 { font-size: clamp(1.6rem, 5.4vw, 2.1rem); line-height: 1.15; margin: 6px 0 14px; letter-spacing: -.015em; }
:is(.tablet, .me) .tile .question { margin: 0 0 12px; font: 400 1.12rem/1.5 var(--display); color: var(--ink); }
:is(.tablet, .me) .tile .question b { font-weight: 700; }
:is(.tablet, .me) .tile .mid { justify-content: center; }
:is(.tablet, .me) .tile .pick { flex: 0 1 auto; max-width: 30em; }
.tablet .tile { transition: transform .18s ease, box-shadow .18s ease; }
.tablet .tile:active { transform: scale(.985); box-shadow: var(--shadow-2); }
.tablet main { padding-bottom: 0; }

.qrbox { display: flex; align-items: center; gap: 16px; padding: 14px; margin: 26px auto 0; border-radius: 20px; }
.qrbox .qr-mini { width: 104px; height: 104px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); flex: none; cursor: pointer; }
.qrbox .qr-mini img { width: 100%; height: 100%; display: block; }
.qr-col { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.qr-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--ink); font: 500 .8rem/1 var(--mono); letter-spacing: .08em; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.qrbox .side { display: flex; flex-direction: column; gap: 10px; }
.qrbox .side p { margin: 0; color: var(--ink-2); font-size: .86rem; line-height: 1.35; max-width: 16em; }
/* once the hero has scrolled away, the button stays reachable */
.take-float {
  position: fixed; right: 22px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30;
  box-shadow: var(--shadow-2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.take-float.on { opacity: 1; transform: none; pointer-events: auto; }
.take { min-height: 60px; padding: 0 24px; font-size: 1.1rem; }
.take svg { width: 24px; height: 24px; }

.qr-sheet {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 32px;
  background: rgba(22, 22, 26, .9); animation: fade .22s ease;
}
.qr-card { position: relative; width: 100%; max-width: 560px; padding: 40px 44px 34px; text-align: center; background: var(--card); border-radius: 24px; }
.qr-card h2 { font-size: 2.3rem; line-height: 1.1; }
.qr-card p { color: var(--ink-2); margin: 12px auto 0; max-width: 26em; }
.qr-card .qr { width: min(360px, 60vw, 44vh); aspect-ratio: 1; margin: 24px auto 8px; }
.qr-card .qr img { width: 100%; height: 100%; display: block; }
.qr-card .url { font: 600 1.4rem/1 var(--display); letter-spacing: .06em; margin-top: 10px; }
.qr-close {
  position: absolute; top: 22px; right: 22px; width: 60px; height: 60px; border-radius: 50%; cursor: pointer;
  border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1;
}

/* ---------- motion: once ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.rise { animation: rise .6s var(--ease) both; animation-delay: var(--d, 0s); }
.preview.rise { animation-name: rise-tilt; }
@keyframes rise-tilt { from { opacity: 0; transform: translateY(12px) rotate(-.6deg); } to { opacity: 1; transform: rotate(-.6deg); } }
@media (prefers-reduced-motion: reduce) { .rise, .qr-sheet, .map-box .dot, .map-box .halo, .riso .float { animation: none; opacity: 1; } }
.tablet .label-row { margin: 56px 0 22px; }

/* ---------- the landing after the sign-up: where the link went, and the report cards' locks open ---------- */
.landing .done h2 { font-size: clamp(1.6rem, 5.6vw, 2rem); line-height: 1.15; text-wrap: balance; }
.done .sent-to { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 20px 0 0; padding: 12px 18px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.done .sent-to svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.done .hint { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.qcard { transition: border-color .6s ease var(--k, 0s); }
.qbot .n span, .qbot .n small, .qbot .n svg, .qbot .n .shackle { transition: all .7s var(--ease) var(--k, 0s); }
.qcard.open { border-color: #b9d3f2; }
.qcard.open .qbot .n span, .qcard.open .qbot .n small { opacity: 0; } /* the blurred figure goes: the open lock stands alone */
.qcard.open .qbot .n svg { color: var(--violet); transform: scale(1.4); }
.qcard.open .qbot .n .shackle { transform: translate(0, -2.6px); } /* in the icon's own units: the shackle lifts out of the body */
.qmail { grid-column: 1 / -1; justify-self: end; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; margin-top: 12px; color: var(--violet-d); font-weight: 600; font-size: .96rem; animation: fade .6s ease var(--k, 0s) both; }
@media (prefers-reduced-motion: reduce) { .qcard, .qbot .n span, .qbot .n small, .qbot .n svg, .qbot .n .shackle, .qmail { transition: none; animation: none; } }

/* ---------- the personal page: the answer to the visitor's question, black, first ---------- */
.answer { margin: 32px 0 0; padding: 32px 26px 30px; border-radius: 6px; background: var(--night-1); color: #f2f0ea; }
.answer .kicker { color: #8ab4ea; margin-bottom: 14px; }
.answer blockquote { margin: 0 0 22px; padding: 0 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .14); font: 400 clamp(1.3rem, 4.4vw, 1.7rem)/1.3 var(--display); color: #a6a39b; }
.answer-text { font-size: 1.06rem; line-height: 1.6; color: #e6e3db; }
.answer-text p, .answer-text ul { margin: 0 0 14px; }
.answer-text ul { padding-left: 1.2em; }
.answer-text li { margin: 0 0 6px; }
.answer-text h3 { margin: 22px 0 10px; font-size: 1.35rem; color: #fff; }
.answer-text b { color: #fff; font-weight: 600; }
.answer .btn { margin-top: 10px; }
@media (min-width: 760px) { .answer { padding: 44px 48px 40px; } }
.label-row #unlock-label { white-space: normal; text-align: center; text-wrap: balance; }
