/* LLS Mag Check v3 app shell (Ben 8 Nov: "looks like a web page, make it look/feel more like an app").
   Brand: light background + #00E8A6, no navy or black (Ben). Fixed header + tab bar, one scrolling pane, screen transitions. */
:root {
  --g: #00E8A6; --g2: #00c98f; --gd: #06281f; --ink: #0f2e25; --mut: #5b746c; --line: #e2efea; --soft: #e8faf3;
  --bg: #f3faf7; --card: #ffffff; --warn: #b45309; --warnbg: #fff7ed; --bad: #c2410c; --err: #b91c1c;
  --sh: 0 1px 2px rgba(15,46,37,.05), 0 6px 20px rgba(15,46,37,.06);
  --top: calc(54px + env(safe-area-inset-top)); --barh: calc(66px + env(safe-area-inset-bottom));
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
input, textarea, .code .c, .sub, .w { -webkit-user-select: text; user-select: text; }
a { color: var(--ink); }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

/* ---------- shell */
.shell { position: fixed; inset: 0; display: flex; flex-direction: column; }
.top { flex: 0 0 auto; height: var(--top); padding: env(safe-area-inset-top) 8px 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; background: rgba(243,250,247,.88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); z-index: 5; transition: box-shadow .2s; }
.top.sc { box-shadow: 0 1px 0 var(--line); }
.top .ttl { display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 750; font-size: 1.02em; letter-spacing: -.01em; }
.top .ttl img { width: 22px; height: auto; }
.top .by { justify-self: end; margin-right: 8px; font-size: .7em; font-weight: 800; letter-spacing: .08em; color: var(--mut); }
.back { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.back:active { background: var(--soft); }
body.sub .back { opacity: 1; pointer-events: auto; }

main { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; padding: 6px 16px calc(24px + var(--barh)); scroll-behavior: auto; }
main > section { max-width: 520px; margin: 0 auto; }

.tab, .step { display: none; }
.tab.on, .step.on { display: block; }
.tab.on.in { animation: fade .22s ease-out; }
.step.on.in { animation: slide .28s cubic-bezier(.2,.8,.2,1); }
.step.on.out { animation: slideback .28s cubic-bezier(.2,.8,.2,1); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slideback { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* ---------- type */
.lt { font-size: 1.9em; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; margin: 8px 0 14px; }
.sect { font-size: .78em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); margin: 26px 4px 10px; }
.sub { margin: -6px 0 16px; color: var(--mut); }
.hint { font-size: .86em; color: var(--mut); margin: 8px 0 0; }
.fine { font-size: .76em; color: var(--mut); margin: 12px 0 0; line-height: 1.4; }
.b { font-weight: 750; }
.center { text-align: center; }
.disc { font-size: .74em; color: var(--mut); margin: 20px 4px 0; line-height: 1.4; }
.err { color: var(--err); font-size: .88em; margin: 8px 2px 0; min-height: 0; }
.err:empty { display: none; }

/* ---------- press feedback */
.press { transition: transform .12s ease, filter .12s ease; }
.press:active { transform: scale(.97); filter: brightness(.97); }

/* ---------- buttons */
.btns { display: grid; gap: 10px; margin-top: 4px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border-radius: 16px; border: 0; background: var(--g); color: var(--gd) !important; font-weight: 800; font-size: 1.02em; cursor: pointer; text-decoration: none; padding: 12px 16px; margin-top: 12px; box-shadow: 0 6px 16px rgba(0,201,143,.28); }
.btns .btn { margin-top: 0; }
.btn.alt { background: var(--card); box-shadow: var(--sh); border: 0; }
.btn.sm { width: auto; min-height: 40px; padding: 8px 16px; font-size: .9em; margin: 0; border-radius: 12px; box-shadow: none; }
.btn.sm.alt { border: 1.5px solid var(--line); }
.btn[disabled] { opacity: .6; }
.link { display: block; margin: 14px auto 0; background: none; border: 0; padding: 6px 4px; color: var(--mut); font-weight: 650; font-size: .92em; cursor: pointer; text-decoration: none; text-align: center; }
a.link { color: #0a8f69; }

/* ---------- home: hero + scan button */
.hero { position: relative; margin: 4px 0 14px; padding: 22px 20px 20px; border-radius: 28px; background: radial-gradient(120% 90% at 50% 0%, #d6fbee 0%, #effcf7 55%, #ffffff 100%); box-shadow: var(--sh); text-align: center; overflow: hidden; }
.eyebrow { display: inline-block; font-size: .7em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #078a64; background: rgba(0,232,166,.16); padding: 4px 10px; border-radius: 999px; }
.hero h1 { font-size: 1.72em; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; margin: 12px 4px 8px; }
.lead { color: var(--mut); font-size: .98em; margin: 0 8px; }
.scan { position: relative; width: 150px; height: 150px; margin: 26px auto 10px; display: block; border: 0; border-radius: 50%; background: none; cursor: pointer; padding: 0; }
.scan .core { position: absolute; inset: 14px; border-radius: 50%; background: linear-gradient(160deg, #3ff3c0 0%, var(--g) 45%, var(--g2) 100%); color: var(--gd); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(0,201,143,.42), inset 0 2px 0 rgba(255,255,255,.45); }
.scan .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(0,232,166,.55); animation: pulse 2.4s ease-out infinite; }
.scan .ring.r2 { animation-delay: 1.2s; }
@keyframes pulse { 0% { transform: scale(.82); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }
.scanlbl { font-weight: 750; font-size: .95em; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px; border: 0; border-radius: 20px; background: var(--card); box-shadow: var(--sh); cursor: pointer; }
.tile .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--soft); color: #078a64; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.tile b { font-size: .95em; }
.tile small { font-size: .78em; color: var(--mut); }
.tile.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 12px; }
.tile.wide .ic { margin-bottom: 0; flex: none; }
.tile.wide .tx { display: flex; flex-direction: column; gap: 2px; }
.scanbox .lnk { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: #078a64; }
body[data-src="link"] .scanbox .lnk { display: flex; }
body[data-src="link"] .scanbox img { visibility: hidden; }
.pill.unknown, .pill.notgly { background: #eef2f5; color: #475569; }
.verdict.unknown .tag { background: #eef2f5; color: #475569; } .gauge.unknown .arc { stroke: #94a3b8; }
.gauge .mid small.u { font-size: .7em; }
.drop { margin-top: 10px; border: 2px dashed #a7eed8; border-radius: 16px; padding: 14px; text-align: center; color: var(--mut); font-size: .9em; }
.drop.over { background: var(--soft); }
@media (pointer: coarse) { .drop { display: none; } }

.install { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 20px; background: var(--card); box-shadow: var(--sh); }
.install img { border-radius: 12px; flex-shrink: 0; }
.install div { flex: 1; font-size: .84em; color: var(--mut); line-height: 1.35; } .install div b { display: block; font-size: 1.08em; color: var(--ink); }

.how { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.how::-webkit-scrollbar { display: none; }
.hw { flex: 0 0 44%; scroll-snap-align: start; background: var(--card); border-radius: 20px; padding: 14px; box-shadow: var(--sh); }
.hw .n { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--g); color: var(--gd); font-weight: 800; font-size: .82em; align-items: center; justify-content: center; margin-bottom: 8px; }
.hw b { display: block; font-size: .95em; } .hw small { display: block; font-size: .8em; color: var(--mut); margin-top: 2px; }

.why { margin-top: 12px; background: var(--card); border-radius: 20px; box-shadow: var(--sh); padding: 0 16px; }
.why summary { list-style: none; cursor: pointer; padding: 15px 0; font-weight: 750; display: flex; align-items: center; justify-content: space-between; }
.why summary::-webkit-details-marker { display: none; }
.why summary::after { content: ""; width: 9px; height: 9px; border-right: 2.2px solid var(--mut); border-bottom: 2.2px solid var(--mut); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.why[open] summary::after { transform: rotate(-135deg); }
.why .w { padding: 0 0 14px; font-size: .92em; color: var(--mut); } .why .w b { display: block; color: var(--ink); margin-bottom: 2px; }

/* ---------- reading */
.scanbox { position: relative; width: 240px; height: 300px; margin: 30px auto 22px; border-radius: 26px; overflow: hidden; background: #dff6ee; box-shadow: var(--sh); }
.scanbox img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanbox img:not([src]), .scanbox img[src=""] { visibility: hidden; }
.scanbox .line { position: absolute; left: 0; right: 0; height: 70px; top: -70px; background: linear-gradient(180deg, rgba(0,232,166,0) 0%, rgba(0,232,166,.45) 85%, #00E8A6 100%); animation: sweep 1.6s ease-in-out infinite; }
@keyframes sweep { 0% { top: -70px; } 100% { top: 100%; } }
.scanbox .c { position: absolute; width: 30px; height: 30px; border: 4px solid #fff; }
.scanbox .tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.scanbox .tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.scanbox .bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.scanbox .br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }

/* ---------- numbers form (grouped cells) */
.read { background: var(--card); border-radius: 18px; box-shadow: var(--sh); padding: 10px 12px; font-size: .9em; display: flex; gap: 12px; align-items: center; }
.read img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
#read { margin-bottom: 12px; } #read:empty { display: none; }
.group { background: var(--card); border-radius: 20px; box-shadow: var(--sh); padding: 4px 16px 16px; }
label { display: block; font-weight: 750; margin: 14px 0 6px; font-size: .92em; }
label small { display: block; font-weight: 400; color: var(--mut); font-size: .88em; }
.inp { display: flex; align-items: center; background: #f4f8f6; border-radius: 14px; border: 1.5px solid transparent; transition: border-color .15s, background .15s; }
.inp:focus-within { border-color: var(--g); background: #fff; }
.inp span { padding: 0 14px 0 4px; color: var(--mut); font-weight: 700; font-size: .9em; }
.inp input { flex: 1; min-width: 0; min-height: 50px; border: 0; background: none; padding: 10px 14px; font-size: 17px; color: var(--ink); outline: none; font-weight: 650; }
input.bad { color: var(--err); } .inp:has(input.bad) { border-color: var(--err); }

/* ---------- gate: blurred result + bottom sheet */
.tease { display: flex; justify-content: center; padding: 18px 0 8px; }
.gauge.blur { filter: blur(7px); opacity: .7; }
.sheet { position: relative; margin: 12px -16px 0; padding: 12px 20px 22px; background: var(--card); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 30px rgba(15,46,37,.10); animation: up .38s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: #d5e3de; margin: 0 auto 14px; }
.lock { display: flex; align-items: center; gap: 8px; font-size: 1.25em; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; color: var(--ink); }
.sheet > p:not(.lock):not(.fine):not(.err) { color: var(--mut); font-size: .95em; }
.sheet input[type=email] { width: 100%; min-height: 54px; margin-top: 16px; border: 1.5px solid transparent; border-radius: 14px; padding: 10px 16px; font-size: 17px; background: #f4f8f6; color: var(--ink); outline: none; }
.sheet input[type=email]:focus { border-color: var(--g); background: #fff; }
.sheet input.bad { border-color: var(--err); }

/* ---------- result: ring gauge */
.gauge { position: relative; width: 190px; height: 190px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .trk { fill: none; stroke: #e3f1ec; stroke-width: 11; }
.gauge .arc { fill: none; stroke: var(--g); stroke-width: 11; stroke-linecap: round; transition: stroke-dasharray 1s cubic-bezier(.2,.8,.2,1); }
.gauge.warn .arc { stroke: #fb923c; } .gauge.low .arc { stroke: #94a3b8; }
.gauge .mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge .mid b { font-size: 2.6em; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.gauge .mid small { font-size: .82em; color: var(--mut); margin-top: 4px; }
.verdict { text-align: center; }
.verdict .gauge { margin: 10px auto 12px; }
.verdict .tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78em; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(0,232,166,.18); color: #066b4e; }
.verdict.warn .tag { background: #ffedd5; color: #9a3412; } .verdict.low .tag { background: #eef2f5; color: #475569; }
.verdict .h { font-size: 1.35em; font-weight: 800; letter-spacing: -.015em; margin: 10px 8px 0; }
.verdict .pname { font-size: .88em; color: var(--mut); margin: 6px 0 0; }
.verdict .body { text-align: left; background: var(--card); border-radius: 20px; box-shadow: var(--sh); padding: 14px 16px; margin: 16px 0 14px; font-size: .94em; }
.verdict .body p { margin: 0 0 8px; } .verdict .body p:last-child { margin: 0; }
.verdict .ox { color: var(--bad); font-weight: 750; }
.saved { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .82em; font-weight: 750; color: #066b4e; }

.code { text-align: center; background: var(--card); border: 2px dashed var(--g); border-radius: 20px; padding: 16px; margin: 0 0 14px; }
.code .c { font-size: 1.6em; font-weight: 850; letter-spacing: .08em; margin: 6px 0; }
.code p { margin: 0; font-size: .9em; color: var(--mut); } .code p:first-child { color: var(--ink); font-weight: 700; }
.code .btn.sm { margin: 10px auto 0; }

/* ---------- my checks */
.item { display: block; width: 100%; text-align: left; background: var(--card); border: 0; border-radius: 20px; box-shadow: var(--sh); padding: 12px 14px; margin: 0 0 10px; cursor: pointer; color: var(--ink); }
.item .row1 { display: flex; align-items: center; gap: 12px; }
.item img, .item .ph { width: 50px; height: 50px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: var(--soft); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #078a64; font-size: .82em; }
.item .t { flex: 1; min-width: 0; }
.item .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .t span { font-size: .8em; color: var(--mut); }
.item .pc { font-weight: 850; font-size: 1.15em; text-align: right; }
.pill { display: inline-block; font-size: .68em; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; background: rgba(0,232,166,.18); color: #066b4e; }
.pill.buffered { background: #ffedd5; color: #9a3412; } .pill.low { background: #eef2f5; color: #475569; }
.item .more { display: none; margin-top: 10px; font-size: .9em; border-top: 1px solid var(--line); padding-top: 10px; color: var(--mut); }
.item.open .more { display: block; }
.item .more .link { display: inline-block; margin: 6px 0 0; padding: 0; font-size: .88em; color: var(--err); }
.empty { text-align: center; padding: 36px 16px; background: var(--card); border-radius: 24px; box-shadow: var(--sh); color: var(--mut); }
.empty .eic { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--soft); color: #078a64; display: flex; align-items: center; justify-content: center; }
.empty b { display: block; color: var(--ink); font-size: 1.05em; margin-bottom: 4px; }
#who .link { display: inline; margin: 0; padding: 0; color: #0a8f69; font-size: 1em; }

/* ---------- ours */
.prod { display: flex; align-items: center; gap: 14px; background: radial-gradient(120% 120% at 0% 0%, #d6fbee 0%, #ffffff 70%); border-radius: 24px; box-shadow: var(--sh); padding: 14px; margin-bottom: 12px; }
.prod img { width: 96px; height: 96px; object-fit: contain; flex-shrink: 0; }
.prod small { display: block; color: var(--mut); font-size: .8em; } .prod b { display: block; font-size: 1.2em; letter-spacing: -.01em; margin: 2px 0 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.stats div { background: var(--card); border-radius: 18px; box-shadow: var(--sh); padding: 12px 8px; text-align: center; }
.stats b { display: block; font-size: 1.45em; font-weight: 850; letter-spacing: -.02em; }
.stats small { display: block; font-size: .72em; color: var(--mut); line-height: 1.25; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.vs div { border-radius: 18px; padding: 12px; background: var(--card); box-shadow: var(--sh); }
.vs div.us { box-shadow: 0 0 0 2px var(--g), var(--sh); }
.vs small { display: block; font-size: .76em; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs b { display: block; font-size: 1.7em; line-height: 1.2; font-weight: 850; }
.vs span { font-size: .8em; }
.card { background: var(--card); border-radius: 20px; box-shadow: var(--sh); padding: 16px; margin: 0 0 12px; }
.card h3 { font-size: 1em; margin: 0 0 8px; }
.card .link { margin: 8px 0 0; text-align: left; padding: 0; }
.ul { margin: 0; padding-left: 18px; color: var(--mut); font-size: .93em; } .ul li { margin: 4px 0; }

/* ---------- plan */
.bar-prog { height: 6px; border-radius: 3px; background: #e3f1ec; overflow: hidden; margin: 2px 0 14px; }
.bar-prog i { display: block; height: 100%; background: var(--g); border-radius: 3px; transition: width .3s; }
.q { font-weight: 800; margin: 0 0 12px; font-size: 1.12em; letter-spacing: -.01em; }
.prog { font-size: .72em; color: var(--mut); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.chips { display: grid; gap: 8px; }
.chip { text-align: left; background: #f4f8f6; border: 1.5px solid transparent; border-radius: 14px; padding: 14px 16px; font-size: .95em; font-weight: 650; color: var(--ink); cursor: pointer; transition: transform .12s, background .15s; }
.chip:active { transform: scale(.98); }
.chip.sel { background: var(--g); color: var(--gd); font-weight: 800; }
.sec { margin: 12px 0 0; padding: 12px 14px; background: #f4f8f6; border-radius: 14px; }
.sec h5 { margin: 0 0 6px; font-size: .74em; font-weight: 800; color: #078a64; text-transform: uppercase; letter-spacing: .06em; }
.sec ul { margin: 0; padding-left: 18px; } .sec li { font-size: .92em; margin: 0 0 6px; }
.warnbox { background: #fef3c7; border-radius: 12px; padding: 10px 12px; font-size: .88em; color: #92400e; margin: 10px 0 0; }
.match b { color: #078a64; }

/* ---------- tab bar */
.bar { flex: 0 0 auto; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--barh); padding: 6px 6px env(safe-area-inset-bottom); background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 -1px 0 var(--line); }
.bar button { background: none; border: 0; padding: 2px 0 4px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; color: #7a918a; font-size: .7em; font-weight: 700; cursor: pointer; }
.bar .pi { width: 58px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .15s; }
.bar button:active .pi { transform: scale(.92); }
.bar button.on { color: var(--ink); }
.bar button.on .pi { background: rgba(0,232,166,.22); color: #057556; }

/* ---------- overlays */
.consent { position: fixed; left: 10px; right: 10px; bottom: calc(var(--barh) + 10px); z-index: 8; max-width: 500px; margin: 0 auto; background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 12px 40px rgba(15,46,37,.2); font-size: .86em; color: var(--mut); animation: up .35s cubic-bezier(.2,.8,.2,1); }
.consent b { color: var(--ink); }
.consent p { margin: 0 0 12px; } .consent .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent .btn.sm { width: 100%; }
.toast { position: fixed; left: 50%; top: calc(var(--top) + 8px); transform: translateX(-50%); z-index: 9; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .88em; font-weight: 650; max-width: 90vw; box-shadow: 0 8px 24px rgba(15,46,37,.25); animation: drop .25s ease-out; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* v6 (9 Nov): yours vs ours on the result, and the capsule maths */
.sum { margin: 10px 0 0; padding: 12px; border-radius: 14px; background: var(--card); box-shadow: var(--sh); font-size: .86em; line-height: 1.45; }
.sum summary { list-style: none; cursor: pointer; font-weight: 750; display: flex; align-items: center; justify-content: space-between; }
.sum summary::-webkit-details-marker { display: none; }
.sum summary::after { content: ""; width: 8px; height: 8px; border-right: 2.2px solid var(--mut); border-bottom: 2.2px solid var(--mut); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.sum[open] summary { margin-bottom: 6px; }
.sum[open] summary::after { transform: rotate(-135deg); }
.cmp { margin: 12px 0; padding: 14px; border-radius: 18px; background: var(--card); box-shadow: var(--sh); }
.cmp h3 { margin: 0 0 8px; }
.cmp table { width: 100%; border-collapse: collapse; font-size: .86em; table-layout: fixed; }
.cmp th, .cmp td { padding: 7px 4px; text-align: left; vertical-align: top; border-top: 1px solid rgba(0,0,0,.07); overflow-wrap: anywhere; }
.cmp thead td { font-weight: 800; border-top: 0; font-size: .92em; }
.cmp th { font-weight: 600; color: var(--mut); width: 36%; }
.cmp td.us { background: rgba(0,232,166,.10); font-weight: 700; }
.cmp .btn { margin-top: 12px; width: 100%; text-align: center; }

/* v8 (11 Nov): code pinned on Scan + My checks until copied */
.pin:empty { display: none; }
.pin { margin: 0 0 12px; }

/* v11 (16 Nov, Bryan): The maths under the estimate line, light green */
.sum { margin: 12px 0 0; background: #E6F7EE; box-shadow: none; border: 1px solid rgba(0,160,110,.18); }
