:root {
  --ink: #171717;
  --paper: #f7f7f3;
  --white: #ffffff;
  --orange: #ff5a1f;
  --tangerine: #ffb000;
  --lime: #d6f26b;
  --muted: #707069;
  --line: #d9d9d2;
  --display: "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .8rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(1420px, calc(100% - 72px));
  height: 94px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.wordmark { display: flex; align-items: baseline; gap: .35rem; text-decoration: none; font: 800 1.75rem/1 var(--display); letter-spacing: -.06em; }
.wordmark em { color: var(--muted); font: 500 .82rem/1 var(--mono); letter-spacing: .02em; }
.wordmark-dot { align-self: center; width: 11px; height: 11px; margin-right: 2px; border-radius: 50%; background: var(--orange); box-shadow: 10px 0 0 var(--tangerine), 5px -8px 0 var(--lime); }
.site-nav { display: flex; align-self: stretch; align-items: center; gap: 28px; margin-left: 42px; margin-right: auto; }
.site-nav a { position: relative; display: flex; align-items: center; align-self: stretch; color: var(--muted); text-decoration: none; font: 700 .7rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: transparent; }
.site-nav a:hover { color: var(--orange); }
.site-nav a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { background: var(--orange); }
.source-pill { display: flex; gap: .55rem; align-items: center; font: 600 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.source-pill i { width: 7px; height: 7px; border-radius: 50%; background: #46a749; box-shadow: 0 0 0 4px #46a74922; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.text-button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--muted); font: 700 .65rem/1.4 var(--mono); text-transform: uppercase; cursor: pointer; }
.text-button:hover { color: var(--orange); }

main { width: min(1420px, calc(100% - 72px)); margin: 0 auto; }
.hero { min-height: 620px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .65fr); gap: 7vw; align-items: center; padding: 76px 5vw 82px 0; }
.recent-hero .hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 20px; font: 700 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 0; font: 800 clamp(3.8rem, 7.1vw, 7.6rem)/.9 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.hero h1 span { color: var(--orange); }
.hero-note { max-width: 620px; margin: 36px 0 0; padding-left: 74px; color: var(--muted); font-size: 1.04rem; line-height: 1.55; position: relative; }
.hero-note::before { content: ""; position: absolute; width: 54px; height: 2px; left: 0; top: .75em; background: var(--ink); }

.receipt-card { position: relative; padding: 30px 30px 24px; background: var(--white); filter: drop-shadow(12px 18px 0 #dcdcd5); transform: rotate(1.1deg); }
.receipt-card::before, .receipt-card::after { content: ""; position: absolute; left: 0; width: 100%; height: 10px; background: radial-gradient(circle at 5px 0, transparent 5px, white 5.5px) repeat-x; background-size: 10px 10px; }
.receipt-card::before { top: -9px; transform: rotate(180deg); }
.receipt-card::after { bottom: -9px; }
.receipt-top { display: flex; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px dashed var(--line); font: 700 .65rem/1 var(--mono); }
.receipt-top span { display: flex; gap: .4rem; align-items: center; }
.receipt-total { padding: 32px 0 26px; }
.receipt-total small, .receipt-stats small { display: block; margin-bottom: 8px; color: var(--muted); font-size: .72rem; }
.receipt-total strong { font: 800 clamp(2.8rem, 4vw, 4.4rem)/1 var(--display); letter-spacing: -.045em; }
.receipt-stats { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px dashed var(--line); }
.receipt-stats div { padding: 20px 0; }
.receipt-stats div + div { padding-left: 18px; border-left: 1px dashed var(--line); }
.receipt-stats b { font: 700 1rem/1 var(--mono); }
.barcode { height: 42px; margin: 28px 0 15px; opacity: .72; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px); }
.receipt-card > p { margin: 0; text-align: center; font: 600 .72rem/1.4 var(--mono); }

.ranking-section { padding: 54px 0 120px; border-top: 1px solid var(--ink); }
.ranking-overview { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 28px; margin-bottom: 30px; }
.ranking-left-panel { display: grid; align-content: space-between; min-height: 176px; }
.ranking-left-panel .section-heading { margin-bottom: 24px; }
.ranking-filter-panel { display: grid; gap: 16px; }
.ranking-explanation { max-width: 390px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.top-products-commentary { position: relative; align-self: center; width: min(560px, 100%); height: 224px; justify-self: end; }
.commentary-bubble { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; height: 100%; padding: 27px 30px 22px 46px; border: 2px solid var(--ink); background: var(--white); box-shadow: 8px 8px 0 var(--ink); }
.commentary-bubble::before { content: ""; position: absolute; left: 36px; bottom: -23px; width: 30px; height: 30px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: inherit; transform: skewY(-34deg) rotate(24deg); }
.commentary-bubble .eyebrow { margin-bottom: 10px; color: var(--orange); }
.commentary-bubble h3 { max-width: 530px; margin: 0; overflow: hidden; font: 800 var(--commentary-size)/1.12 var(--display); letter-spacing: -.02em; }
.commentary-actions { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.commentary-button { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--ink); background: var(--tangerine); color: var(--ink); font: 800 .72rem/1 var(--mono); text-transform: uppercase; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.commentary-button:hover:not(:disabled) { box-shadow: 3px 3px 0 var(--ink); transform: translate(-2px, -2px); }
.commentary-button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.commentary-button:disabled { cursor: wait; opacity: .72; }
.commentary-actions small { color: var(--muted); font: .6rem/1.35 var(--mono); }
.top-products-commentary.is-ready .commentary-bubble { background: var(--lime); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 54px; }
.section-heading h2 { margin: 0; font: 800 clamp(2.6rem, 5vw, 5rem)/1 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.section-heading .eyebrow { margin-bottom: 12px; color: var(--orange); }

.period-filter { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.period-filter-button { min-width: 76px; padding: 11px 16px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 700 .82rem/1 var(--mono); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.period-filter-button:hover { background: var(--lime); }
.period-filter-button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.period-filter-button.is-selected { background: var(--ink); color: var(--white); }
.period-filter-button.is-selected:hover { background: var(--orange); }
.ranking-empty { margin: 0; padding: 38px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.5; }
.rank-list { border-top: 1px solid var(--ink); }
.rank-row { display: grid; grid-template-columns: 70px 82px minmax(250px, 1.5fr) minmax(100px, .65fr) 150px 46px; gap: 22px; min-height: 112px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s, background .2s, padding .2s; }
.rank-row:hover { padding-inline: 14px; background: var(--white); }
.rank-row:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.rank-number { color: var(--orange); font: 700 1rem/1 var(--mono); }
.thumb-wrap { width: 72px; aspect-ratio: 1; padding: 7px; overflow: hidden; background: var(--white); border-radius: 50%; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.rank-row:hover img { transform: rotate(-5deg) scale(1.1); }
.rank-copy { display: grid; gap: 9px; }
.rank-copy strong { font-size: 1.08rem; line-height: 1.25; }
.rank-copy small, .rank-price small { color: var(--muted); font: .7rem/1.2 var(--mono); }
.rank-meter { display: block; height: 5px; background: #e5e5de; overflow: hidden; }
.rank-meter i { display: block; height: 100%; background: var(--orange); transform-origin: left; animation: grow .8s both ease-out; }
.rank-price { display: grid; gap: 6px; text-align: right; font: 700 1rem/1 var(--mono); }
.rank-price small { font-size: .58rem; text-transform: uppercase; }
.arrow-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; transition: .2s; }
.rank-row:hover .arrow-button { background: var(--orange); border-color: var(--orange); color: white; transform: rotate(-35deg); }

.recent-purchases-section { padding-top: 0; }
.receipt-list { display: grid; grid-template-columns: 70px 96px minmax(220px, 1fr) max-content max-content 46px; column-gap: 22px; }
.receipt-row { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; gap: 22px; min-height: 110px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s, background .2s, padding .2s; }
.receipt-row:hover { padding-inline: 14px; background: var(--white); }
.receipt-row:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.receipt-row-number { color: var(--orange); font: 700 1rem/1 var(--mono); }
.receipt-row-collage { position: relative; display: block; width: 82px; height: 82px; overflow: hidden; border-radius: 50%; background: var(--white); }
.receipt-row-collage-item { position: absolute; display: grid; place-items: center; width: 32px; height: 32px; overflow: hidden; }
.receipt-row-collage-item img { width: 100%; height: 100%; object-fit: contain; }
.receipt-row-collage-item i, .receipt-row-collage > i { color: var(--line); font-style: normal; font-size: 1.7rem; }
.receipt-row-collage-item-1 { top: 7px; left: 25px; }
.receipt-row-collage-item-2 { bottom: 7px; left: 9px; }
.receipt-row-collage-item-3 { right: 9px; bottom: 7px; }
.receipt-row-collage.is-single-item .receipt-row-collage-item { inset: 7px; width: auto; height: auto; }
.receipt-row-collage > i { display: grid; width: 100%; height: 100%; place-items: center; }
.receipt-row-copy { display: grid; gap: 8px; }
.receipt-row-copy strong { font-size: 1.08rem; line-height: 1.25; }
.receipt-row-copy small, .receipt-row-total small { color: var(--muted); font: .7rem/1.2 var(--mono); }
.receipt-row-meta { display: contents; }
.receipt-row-date { display: grid; gap: 7px; font: 700 1rem/1 var(--mono); text-transform: uppercase; white-space: nowrap; }
.receipt-row-date small { color: var(--muted); font: .7rem/1.2 var(--mono); }
.receipt-row-total { display: grid; justify-items: end; gap: 7px; text-align: right; }
.receipt-row-total strong { font: 700 1rem/1 var(--mono); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0 0; }
.pagination-button { display: inline-flex; align-items: center; gap: .65rem; min-height: 42px; padding: 0 14px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 700 .7rem/1 var(--mono); text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.pagination-button:hover:not(:disabled) { background: var(--lime); }
.pagination-button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.pagination-button:disabled { cursor: not-allowed; opacity: .35; }
.pagination-current { color: var(--muted); font: 700 .68rem/1 var(--mono); text-transform: uppercase; }

.latest-section { padding: 90px 0 120px; border-top: 1px solid var(--ink); }
.section-heading.compact { margin-bottom: 38px; }
.checks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.check-card { min-height: 270px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--ink); background: var(--white); }
.check-card:nth-child(2) { background: var(--lime); }
.check-card:nth-child(3) { background: var(--tangerine); }
.check-date { font: 700 .68rem/1 var(--mono); text-transform: uppercase; }
.check-card h3 { margin: 36px 0 10px; font: 800 1.8rem/1.05 var(--display); letter-spacing: -.02em; }
.check-card p { margin: 0; color: #3c3c39; line-height: 1.45; }
.check-card > div { display: flex; justify-content: space-between; align-items: end; margin-top: auto; padding-top: 20px; border-top: 1px solid #17171755; font: .72rem/1 var(--mono); }
.check-card > div strong { font-size: 1.05rem; }

footer { width: min(1420px, calc(100% - 72px)); margin: 0 auto; padding: 32px 0 42px; display: flex; justify-content: space-between; border-top: 1px solid var(--ink); color: var(--muted); font: .65rem/1.3 var(--mono); text-transform: uppercase; }

.back-nav { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font: 700 .68rem/1 var(--mono); text-transform: uppercase; }
.back-nav a { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.back-nav a:hover { color: var(--orange); }
.back-nav > span { color: var(--muted); }
.product-hero { min-height: 640px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 7vw; align-items: center; padding: 70px 4vw 90px 2vw; }
.product-photo { position: relative; min-height: 480px; display: grid; place-items: center; background: var(--white); border-radius: 50% 50% 46% 54% / 44% 52% 48% 56%; }
.product-photo::after { content: ""; position: absolute; inset: 8%; z-index: -1; background: var(--tangerine); border-radius: inherit; transform: rotate(9deg); }
.product-photo img { width: min(76%, 390px); max-height: 410px; object-fit: contain; filter: drop-shadow(0 18px 15px #1717171f); }
.rank-sticker { position: absolute; z-index: 2; left: -20px; top: 32px; display: grid; place-items: center; width: 108px; height: 108px; color: white; background: var(--orange); border-radius: 50%; font: 800 2.3rem/1 var(--display); transform: rotate(-9deg); }
.rank-sticker small { font: 600 .52rem/1.1 var(--mono); text-align: center; text-transform: uppercase; }
.product-copy h1 { max-width: 760px; margin: 0; font: 800 clamp(2.7rem, 5.2vw, 5.8rem)/.97 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.product-lede { max-width: 630px; margin: 30px 0; color: var(--muted); line-height: 1.55; }
.product-price { display: flex; align-items: center; gap: 20px; margin-bottom: 34px; }
.product-price strong { font: 800 2.3rem/1 var(--display); }
.product-price span { padding-left: 20px; border-left: 1px solid var(--line); color: var(--muted); font: .63rem/1.3 var(--mono); text-transform: uppercase; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--ink); }
.fact-grid div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact-grid div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
.fact-grid dt { margin-bottom: 8px; color: var(--muted); font: .62rem/1 var(--mono); text-transform: uppercase; }
.fact-grid dd { margin: 0; font: 700 .9rem/1 var(--mono); }

.price-chart-section { padding: 90px 0 110px; border-top: 1px solid var(--ink); }
.price-chart-scroll { width: 100%; }
.price-history-chart { display: block; width: 100%; min-width: 0; height: auto; overflow: visible; background: var(--white); color: var(--ink); stroke: none; }
.price-history-chart text { stroke: none; }
.price-chart-frame { fill: var(--white); stroke: var(--ink); stroke-width: 1; }
.price-chart-axis-title { fill: var(--muted); font: 500 clamp(.75rem, .675rem + .35vw, .875rem)/1 var(--mono); letter-spacing: .09em; }
.price-chart-gridline line { stroke: var(--line); stroke-dasharray: 3 5; }
.price-chart-gridline text, .price-chart-date-tick text { fill: var(--muted); font: 400 clamp(.75rem, .675rem + .35vw, .875rem)/1 var(--mono); }
.price-chart-axis, .price-chart-date-tick line { stroke: var(--ink); stroke-width: 1; }
.price-history-line-underlay { fill: none; stroke: var(--lime); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .78; }
.price-history-line { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.price-history-point-halo { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
.price-history-point-dot { fill: var(--orange); stroke: var(--ink); stroke-width: 1.5; }
.price-history-point { cursor: default; }
.price-chart-value-label line { stroke: var(--orange); stroke-width: 1; }
.price-chart-value-label rect { fill: var(--white); }
.price-chart-value-label text { fill: var(--ink); font: 600 clamp(.8125rem, .75rem + .35vw, .9375rem)/1 var(--mono); }

.history-section { padding: 90px 0 110px; border-top: 1px solid var(--ink); }
.history-list { border-top: 1px solid var(--ink); }
.history-row { min-height: 98px; display: grid; grid-template-columns: 54px 1.6fr 1fr .8fr .8fr 90px; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.history-index { color: var(--orange); font: 700 .75rem/1 var(--mono); }
.history-row div { display: grid; gap: 8px; }
.history-row small { color: var(--muted); font: .58rem/1 var(--mono); text-transform: uppercase; }
.history-row strong { font-size: .88rem; }
.history-row a { display: flex; justify-content: end; gap: .4rem; align-items: center; font: 700 .68rem/1 var(--mono); text-transform: uppercase; text-underline-offset: 3px; }
.history-row a:hover { color: var(--orange); }
.receipt-private { color: var(--muted); text-align: right; font: 600 .58rem/1.2 var(--mono); text-transform: uppercase; }

.receipt-detail-hero { min-height: 540px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 8vw; align-items: center; padding: 74px 6vw 88px 2vw; }
.receipt-detail-summary h1 { max-width: 760px; margin: 0; font: 800 clamp(3rem, 5.8vw, 6rem)/.95 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.receipt-detail-summary > p:not(.eyebrow) { max-width: 560px; margin: 26px 0 34px; color: var(--muted); font-size: 1.02rem; line-height: 1.5; }
.receipt-detail-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 650px; margin: 0; border-top: 1px solid var(--ink); }
.receipt-detail-summary dl div { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); }
.receipt-detail-summary dl div + div { padding-left: 16px; }
.receipt-detail-summary dt { margin-bottom: 8px; color: var(--muted); font: .6rem/1 var(--mono); text-transform: uppercase; }
.receipt-detail-summary dd { margin: 0; font: 700 .95rem/1.2 var(--mono); }
.receipt-items-section { padding: 90px 0 110px; border-top: 1px solid var(--ink); }
.receipt-items-list { border-top: 1px solid var(--ink); }
.receipt-item-row { display: grid; grid-template-columns: 55px 76px minmax(220px, 1fr) 130px 130px; gap: 20px; min-height: 104px; align-items: center; border-bottom: 1px solid var(--line); }
.receipt-item-number { color: var(--orange); font: 700 .75rem/1 var(--mono); }
.receipt-item-image { display: grid; place-items: center; width: 62px; height: 62px; padding: 6px; overflow: hidden; border-radius: 50%; background: var(--white); }
.receipt-item-image img { width: 100%; height: 100%; object-fit: contain; }
.receipt-item-name { display: grid; gap: 8px; }
.receipt-item-name strong { font-size: 1rem; line-height: 1.25; }
.receipt-item-name small, .receipt-item-price small, .receipt-item-total small { color: var(--muted); font: .63rem/1.1 var(--mono); }
.receipt-item-price, .receipt-item-total { display: grid; justify-items: end; gap: 7px; text-align: right; }
.receipt-item-price strong, .receipt-item-total strong { font: 700 .88rem/1 var(--mono); }
.receipt-items-total { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0 0; font: 700 .75rem/1 var(--mono); text-transform: uppercase; }
.receipt-items-total strong { font-size: 1rem; }

.insight-strip { display: flex; align-items: center; gap: 25px; margin-bottom: 110px; padding: 28px 34px; background: var(--lime); }
.insight-strip > span { display: grid; place-items: center; flex: 0 0 54px; height: 54px; border: 1px solid var(--ink); border-radius: 50%; font-size: 1.4rem; }
.insight-strip p { display: grid; gap: 6px; margin: 0; }
.insight-strip small { font: 600 .63rem/1 var(--mono); text-transform: uppercase; }
.insight-strip strong { font-size: 1.05rem; }
.not-found { min-height: 70vh; display: grid; place-items: center; align-content: center; text-align: center; }
.not-found > span { color: var(--orange); font: 800 7rem/1 var(--display); }
.not-found h1 { max-width: 700px; font: 800 3rem/1.05 var(--display); text-transform: uppercase; }
.primary-button { display: inline-flex; gap: 1rem; align-items: center; padding: 16px 22px; background: var(--ink); color: white; text-decoration: none; font-weight: 700; }
.primary-button, .secondary-button { border: 0; font-family: var(--body); cursor: pointer; }
.primary-button:disabled { cursor: wait; opacity: .6; }
.secondary-button { padding: 14px 18px; border: 1px solid var(--ink); background: transparent; font-weight: 700; }

.login-layout { min-height: calc(100vh - 170px); display: grid; grid-template-columns: 1.12fr .88fr; gap: 8vw; align-items: center; padding: 70px 5vw 90px 0; }
.login-copy h1, .connection-screen h1 { margin: 0; font: 800 clamp(3.4rem, 6.6vw, 7rem)/.93 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.login-copy h1 span, .connection-screen h1 span { color: var(--orange); }
.login-copy > p:not(.eyebrow), .connection-screen > p:not(.eyebrow) { max-width: 620px; margin: 30px 0; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.login-copy .primary-button { margin-top: 8px; }
.privacy-note { display: block; margin-top: 20px; color: var(--muted); font: .62rem/1.4 var(--mono); text-transform: uppercase; }
.error-note, .warning-bar { padding: 14px 16px; border-left: 4px solid var(--orange); background: #ff5a1f12; font-size: .82rem; line-height: 1.45; }
.warning-bar { margin-top: 22px; }
.privacy-receipt { position: relative; padding: 46px 38px; background: var(--white); filter: drop-shadow(12px 18px 0 #dcdcd5); transform: rotate(1deg); }
.privacy-receipt::before, .privacy-receipt::after { content: ""; position: absolute; left: 0; width: 100%; height: 10px; background: radial-gradient(circle at 5px 0, transparent 5px, white 5.5px) repeat-x; background-size: 10px 10px; }
.privacy-receipt::before { top: -9px; transform: rotate(180deg); }
.privacy-receipt::after { bottom: -9px; }
.privacy-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 42px; border-radius: 50%; background: var(--lime); font-size: 2rem; }
.privacy-receipt h2 { margin: 0; font: 800 clamp(2rem, 3.2vw, 3.5rem)/1.03 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.privacy-receipt ul { list-style: none; margin: 38px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.privacy-receipt li { display: grid; grid-template-columns: 45px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.privacy-receipt li span { color: var(--orange); font: 700 .7rem/1 var(--mono); }
.connection-screen { min-height: calc(100vh - 170px); display: grid; place-items: center; align-content: center; text-align: center; }
.connection-screen .eyebrow { margin-top: 34px; }
.pulse-mark { display: flex; align-items: end; gap: 7px; height: 48px; }
.pulse-mark i { width: 13px; background: var(--orange); animation: pulse 1s infinite alternate ease-in-out; }
.pulse-mark i:nth-child(1) { height: 22px; }
.pulse-mark i:nth-child(2) { height: 46px; animation-delay: -.35s; }
.pulse-mark i:nth-child(3) { height: 31px; animation-delay: -.7s; }
.image-placeholder { font-size: 6rem; color: var(--line); }
@keyframes pulse { to { height: 12px; opacity: .45; } }

.reveal { animation: reveal .65s both cubic-bezier(.2,.8,.2,1); animation-delay: var(--delay, 0ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } }
@keyframes grow { from { transform: scaleX(0); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-right: 0; }
  .receipt-card { width: min(520px, calc(100% - 15px)); }
  .rank-row { grid-template-columns: 45px 70px 1fr 135px 42px; }
  .ranking-overview { grid-template-columns: minmax(0, .8fr) minmax(330px, 1.2fr); gap: 18px; }
  .rank-meter { display: none; }
  .product-hero { grid-template-columns: 1fr; }
  .product-photo { min-height: 420px; }
  .history-row { grid-template-columns: 45px 1.6fr 1fr .8fr 80px; }
  .history-row div:nth-of-type(4) { display: none; }
  .receipt-list { grid-template-columns: 45px 82px minmax(180px, 1fr) max-content max-content 42px; column-gap: 16px; }
  .receipt-row { gap: 16px; }
  .receipt-detail-hero { grid-template-columns: 1fr; gap: 64px; padding-right: 0; }
  .receipt-item-row { grid-template-columns: 45px 70px 1fr 115px; gap: 16px; }
  .receipt-item-total { display: none; }
  .login-layout { grid-template-columns: 1fr; }
  .privacy-receipt { width: min(600px, calc(100% - 15px)); }
}

@media (max-width: 680px) {
  .site-header, main, footer { width: min(100% - 32px, 1420px); }
  .site-header { height: 112px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 54px 1fr; }
  .wordmark { font-size: 1.4rem; }
  .wordmark em, .source-pill { display: none; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; gap: 22px; margin: 0; }
  .site-nav a { align-self: stretch; font-size: .63rem; }
  .header-actions { gap: 12px; }
  .hero { min-height: auto; padding: 60px 0 70px; gap: 58px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-note { padding-left: 0; margin-top: 28px; }
  .hero-note::before { display: none; }
  .receipt-card { padding-inline: 22px; filter: drop-shadow(8px 12px 0 #dcdcd5); }
  .receipt-total strong { font-size: 2.7rem; }
  .ranking-section, .latest-section, .price-chart-section, .history-section { padding: 70px 0 80px; }
  .ranking-section { padding-top: 52px; }
  .recent-purchases-section { padding-top: 0; }
  .ranking-overview { display: flex; flex-direction: column; gap: 26px; margin-bottom: 30px; }
  .ranking-left-panel { display: contents; min-height: 0; }
  .ranking-left-panel .section-heading { order: 1; width: 100%; margin-bottom: 0; }
  .ranking-filter-panel { order: 2; width: 100%; }
  .top-products-commentary { order: 3; width: 100%; max-width: none; height: auto; min-height: 224px; justify-self: stretch; }
  .commentary-bubble { padding: 25px 20px 20px 31px; box-shadow: 5px 5px 0 var(--ink); }
  .commentary-bubble h3 { font-size: min(var(--commentary-size), 1.35rem); }
  .commentary-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .period-filter { justify-content: flex-start; }
  .section-heading { display: block; margin-bottom: 34px; }
  .section-heading > p { margin-top: 18px; }
  .rank-row { min-height: 96px; grid-template-columns: 32px 58px 1fr 36px; gap: 10px; }
  .thumb-wrap { width: 54px; }
  .rank-price { display: none; }
  .rank-copy strong { font-size: .9rem; }
  .rank-copy small { font-size: .6rem; }
  .arrow-button { width: 34px; height: 34px; }
  .receipt-list { grid-template-columns: 32px 58px minmax(0, 1fr) 36px; column-gap: 10px; }
  .receipt-row { min-height: 104px; gap: 10px; }
  .receipt-row-collage { grid-column: 2; grid-row: 1 / 3; width: 54px; height: 54px; }
  .receipt-row-collage-item { width: 23px; height: 23px; }
  .receipt-row-collage-item-1 { top: 3px; left: 16px; }
  .receipt-row-collage-item-2 { bottom: 3px; left: 4px; }
  .receipt-row-collage-item-3 { right: 4px; bottom: 3px; }
  .receipt-row-collage.is-single-item .receipt-row-collage-item { inset: 5px; }
  .receipt-row-meta { grid-column: 3; grid-row: 2; display: flex; align-items: end; justify-content: space-between; gap: 8px; min-width: 0; }
  .receipt-row-date { gap: 3px; font-size: .72rem; }
  .receipt-row-date small { font-size: .5rem; }
  .receipt-row-copy { grid-column: 3; grid-row: 1; gap: 5px; align-self: end; }
  .receipt-row-copy strong { font-size: .9rem; }
  .receipt-row-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .58rem; }
  .receipt-row-total { gap: 3px; flex: 0 0 auto; }
  .receipt-row-total strong { font-size: .72rem; }
  .receipt-row-total small { font-size: .5rem; }
  .receipt-row .arrow-button { grid-column: 4; grid-row: 1 / 3; }
  .pagination { gap: 12px; }
  .pagination-button { padding: 0 10px; }
  .pagination-button span { font-size: .6rem; }
  .checks-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 10px; }
  .back-nav { height: 70px; }
  .product-hero { padding: 50px 0 70px; gap: 55px; }
  .receipt-detail-hero { min-height: auto; gap: 52px; padding: 52px 0 70px; }
  .receipt-detail-summary h1 { font-size: clamp(2.7rem, 12vw, 4.6rem); }
  .receipt-detail-summary dl { grid-template-columns: 1fr; }
  .receipt-detail-summary dl div + div { padding-left: 0; border-left: 0; }
  .receipt-items-section { padding: 70px 0 80px; }
  .receipt-item-row { grid-template-columns: 32px 54px 1fr 85px; gap: 10px; min-height: 90px; }
  .receipt-item-image { width: 50px; height: 50px; }
  .receipt-item-name strong { font-size: .85rem; }
  .receipt-item-name small { font-size: .55rem; }
  .receipt-item-price strong { font-size: .72rem; }
  .receipt-item-price small { font-size: .5rem; }
  .product-photo { min-height: 330px; }
  .rank-sticker { left: 0; width: 82px; height: 82px; font-size: 1.8rem; }
  .product-copy h1 { font-size: clamp(2.4rem, 12vw, 4.2rem); }
  .product-price { align-items: flex-start; flex-direction: column; gap: 12px; }
  .product-price span { padding: 0; border: 0; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid div:nth-child(even) { padding-left: 0; border-left: 0; }
  .history-row { grid-template-columns: 34px 1fr 80px; gap: 10px; padding: 18px 0; }
  .history-row div:nth-of-type(2), .history-row div:nth-of-type(3), .history-row div:nth-of-type(4) { display: none; }
  .insight-strip { align-items: flex-start; margin-bottom: 70px; padding: 22px; }
  .login-layout { padding: 60px 0 80px; gap: 65px; }
  .login-copy h1, .connection-screen h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .privacy-receipt { padding: 36px 24px; filter: drop-shadow(8px 12px 0 #dcdcd5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
