/* CouponItch — dark by default, with one shared palette for every surface. */
:root {
  color-scheme: dark;
  --bg: #0d1012;
  --surface: #151a1d;
  --raised: #1d2428;
  --text: #f0f3ed;
  --muted: #a5b0ac;
  --line: #303a3c;
  --accent: #c3f879;
  --accent-hover: #d5ff9e;
  --tint: #212e22;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--text); background: var(--bg); font: 15px/1.65 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--bg); padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; background: #0d1012f2; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { height: 82px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; }
.brand img { width: 38px; height: 38px; flex-shrink: 0; }
.brand .brand-accent { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 30px; margin: auto; }
.nav a { font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 0; transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
.header-note { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 8px; }
.header-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #c3f87955; }
/* Explicit padding, line-height and SVG geometry avoid mobile font-glyph drift. */
.icon-button, .dialog-close, .search-clear { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1; flex-shrink: 0; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.icon-button:hover, .dialog-close:hover, .search-clear:hover { background: var(--tint); border-color: #748d54; color: var(--accent); }
.control-icon { display: block; width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.menu-button { display: none; }
.menu-close-icon { display: none; }
.menu-button[aria-expanded="true"] .menu-open-icon { display: none; }
.menu-button[aria-expanded="true"] .menu-close-icon { display: block; }
.search-icon { width: 17px; height: 17px; border: 1.8px solid currentColor; border-radius: 50%; position: relative; display: inline-block; flex-shrink: 0; }
.search-icon::after { content: ""; height: 7px; width: 2px; position: absolute; right: -4px; bottom: -4px; transform: rotate(-45deg); background: currentColor; border-radius: 2px; }
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 85% 35%, #23351b 0, transparent 53%), linear-gradient(120deg, #111719, #121a16); border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#c3f879 1px, transparent 1px); background-size: 28px 28px; opacity: .08; mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.45fr 1fr; gap: 32px; align-items: center; min-height: 540px; padding-block: 65px; position: relative; z-index: 1; }
.hero-copy { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: 1.6px; text-transform: uppercase; }
.hero-label { border: 1px solid #c3f87933; background: #c3f87909; padding: 6px 12px; border-radius: 30px; font-size: 10px; letter-spacing: 1px; }
.spark { font-size: 17px; line-height: 1; }
h1 { font-size: clamp(40px, 4.5vw, 62px); line-height: 1.1; font-weight: 800; letter-spacing: -2.8px; margin: 24px 0 22px; }
h1 span { color: var(--accent); }
.hero-description { font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 530px; margin: 0 0 27px; }
.search-form { display: flex; align-items: center; gap: 15px; background: #1a2220; border: 1px solid #495444; border-radius: 14px; padding: 7px 7px 7px 21px; box-shadow: 0 12px 30px #0002; max-width: 630px; }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #c3f87918; }
.search-form > .search-icon { color: var(--muted); margin-right: 3px; }
.search-input { min-width: 0; flex: 1; width: 100%; border: 0; outline: none; font-size: 14px; background: transparent; height: 44px; color: var(--text); }
.search-input:focus-visible { outline: none; }
.search-input::placeholder { color: var(--muted); opacity: 1; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear { border: 1px solid var(--line); background: var(--raised); border-radius: 50%; height: 36px; width: 36px; }
.search-clear .control-icon { width: 16px; height: 16px; flex-basis: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: #16200f; border: 1px solid var(--accent); border-radius: 9px; padding: 11px 20px; font-weight: 750; font-size: 13px; min-height: 44px; transition: background .18s, border-color .18s; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button-secondary { background: transparent; color: var(--accent); border-color: #50623b; }
.button-secondary:hover { background: var(--tint); border-color: var(--accent); }
.popular { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 11px; color: var(--muted); margin-top: 12px; }
.popular button { border: 0; background: none; padding: 5px 0; color: #c6d1c2; font-size: 11px; text-decoration: underline; text-decoration-color: #677460; text-underline-offset: 4px; }
.popular button:hover { color: var(--accent); }
.hero-art { height: 340px; position: relative; isolation: isolate; }
.orbit { border: 1px solid #c3f87920; border-radius: 50%; width: 340px; height: 340px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.orbit::before { content: ""; position: absolute; inset: 36px; border: 1px dashed #c3f87930; border-radius: 50%; }
.orbit::after { content: ""; width: 9px; height: 9px; background: var(--accent); position: absolute; left: 39px; top: 47px; border-radius: 50%; box-shadow: 275px 170px 0 -2px #c3f879; }
.art-ticket { position: absolute; inset: 72px 14px 39px 38px; border: 1px solid #d6ffa0; border-radius: 20px; background: linear-gradient(135deg, #d5ff9e, #b1e66b); box-shadow: 0 24px 65px #0005; transform: rotate(-8deg); padding: 26px; color: #18230f; overflow: hidden; }
.art-ticket::after { content: "%"; position: absolute; right: -3px; top: -39px; font-size: 150px; font-weight: 800; color: #18230f0b; }
.ticket-brand { font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.ticket-main { font-size: 37px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-top: 16px; }
.ticket-bottom { border-top: 1px dashed #18230f60; margin-top: 20px; padding-top: 12px; font-size: 9px; display: flex; justify-content: space-between; letter-spacing: 1.4px; }
.float-card { position: absolute; background: #1c2622f2; border: 1px solid #42503d; border-radius: 13px; box-shadow: 0 12px 30px #0003; backdrop-filter: blur(12px); display: flex; align-items: center; gap: 11px; padding: 12px 15px; font-size: 11px; line-height: 1.5; }
.float-card strong { display: block; font-size: 12px; }
.float-card small { color: var(--muted); font-size: 10px; }
.float-top { right: 0; top: 14px; transform: rotate(4deg); }
.float-bottom { bottom: 5px; left: 0; transform: rotate(3deg); }
.float-symbol { width: 35px; height: 35px; border-radius: 10px; background: var(--tint); display: grid; place-items: center; font-size: 22px; color: var(--accent); }
.art-star { position: absolute; color: var(--accent); font-size: 31px; left: 20px; top: 30px; }
.hero-benefits { display: flex; gap: 22px; align-items: center; font-size: 10px; color: var(--muted); position: absolute; bottom: 24px; left: 0; }
.hero-benefits span::before { content: "✓"; color: var(--accent); margin-right: 6px; }
.section { padding-block: 56px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { font-size: 29px; line-height: 1.3; letter-spacing: -1px; margin: 5px 0 7px; font-weight: 750; }
.section-heading p { color: var(--muted); margin: 0; font-size: 13px; }
.text-link { font-size: 12px; color: var(--accent); font-weight: 650; white-space: nowrap; padding: 8px 0; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link span { margin-left: 9px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.coupon-card { min-width: 0; position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 3px 6px #0001; cursor: pointer; touch-action: manipulation; transition: transform .2s, box-shadow .2s, border-color .2s; }
.coupon-card:hover { transform: translateY(-4px); border-color: #728759; box-shadow: 0 12px 30px #0003; }
.card-image-wrap { position: relative; margin: 9px 9px 0; border-radius: 11px; overflow: hidden; background: #20272b; aspect-ratio: 1.6; }
.card-image { width: 100%; height: 100%; object-fit: cover; }
.sample-badge { position: absolute; right: 9px; top: 9px; border: 1px solid var(--line); background: #151a1de6; color: var(--text); border-radius: 5px; padding: 2px 7px; font-size: 9px; font-weight: 600; backdrop-filter: blur(8px); }
.card-body { padding: 19px; display: flex; flex-direction: column; flex: 1; align-items: start; }
.category-badge { background: var(--tint); color: var(--accent); border-radius: 5px; padding: 3px 8px; font-size: 10px; font-weight: 650; line-height: 1.6; }
.coupon-card h3 { font-size: 16px; letter-spacing: -.35px; line-height: 1.4; margin: 12px 0 8px; }
.coupon-card p { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 0 0 21px; }
.card-button { width: 100%; margin-top: auto; background: #202a22; border: 1px solid #43513b; border-radius: 8px; min-height: 44px; color: var(--accent); display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; font-weight: 700; font-size: 12px; transition: background .15s, border-color .15s, color .15s; }
.card-button:hover { background: var(--accent); border-color: var(--accent); color: #16200f; }
.card-button span { font-size: 18px; font-weight: 400; line-height: 1; }
.availability { --counter-accent: var(--accent); margin-top: auto; line-height: 1.5; }
.availability-row { display: inline-flex; align-items: center; gap: 6px; }
.availability-dot { width: 4px; height: 4px; flex-shrink: 0; border-radius: 50%; background: var(--counter-accent); }
.availability-value { min-width: 0; color: var(--muted); font-size: 11px; white-space: nowrap; }
.availability-amount { display: inline-block; color: var(--counter-accent); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.availability-change { margin-left: 3px; color: var(--counter-accent); font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; opacity: 0; }
.availability + .card-button { margin-top: 10px; }
.availability.is-low { --counter-accent: #edc77e; }
.availability.is-updating .availability-amount { animation: availability-glow 1.8s ease-out; }
.availability.is-updating .availability-change { animation: availability-change 1.8s ease-out; }
.modal-availability { margin: -6px 0 18px; }
.modal-availability .availability-value { font-size: 12px; }
.modal-availability .availability-amount { font-size: 13px; }
@keyframes availability-glow {
  0%, 20% { text-shadow: 0 0 10px #c3f879aa; }
  100% { text-shadow: 0 0 0 transparent; }
}
@keyframes availability-change {
  0%, 65% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-5px); }
}
.categories-section { padding-block: 30px; background: #121719; border-block: 1px solid var(--line); }
.categories-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 19px; }
.categories-top h2 { font-size: 20px; letter-spacing: -.5px; margin: 0; }
.categories-top p { font-size: 12px; color: var(--muted); margin: 0; }
.category-filters { display: flex; gap: 9px; flex-wrap: wrap; }
.category-filter { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 10px 14px; min-height: 44px; font-size: 12px; color: #c6cfca; transition: border-color .15s, background .15s; }
.category-filter:hover { border-color: #748d54; }
.category-filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #16200f; font-weight: 700; }
.category-symbol { font-size: 16px; font-weight: 600; line-height: 1; }
.category-count { font-size: 10px; opacity: .8; }
.all-heading { margin-bottom: 22px; }
.result-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.transparency-note { display: flex; gap: 10px; border: 1px solid #405237; background: #1a241c; border-radius: 10px; padding: 11px 14px; margin-bottom: 24px; font-size: 11px; color: #bdccb3; line-height: 1.7; }
.transparency-note strong { font-weight: 650; color: var(--accent); }
.note-icon { font-size: 16px; line-height: 1.4; }
.no-results { text-align: center; padding: 50px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--accent); }
.no-results h3 { font-size: 21px; margin: 0 0 7px; }
.no-results p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.how-section { padding: 0 0 56px; }
.how-panel { background: linear-gradient(110deg, #1b241c, #151b1b); border: 1px solid #354330; border-radius: 20px; display: flex; gap: 35px; align-items: center; padding: 32px 35px; }
.how-title { min-width: 210px; }
.how-title h2 { font-size: 22px; letter-spacing: -.6px; margin: 4px 0; }
.how-title p { font-size: 12px; color: var(--muted); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; flex: 1; }
.step { display: flex; gap: 10px; align-items: start; }
.step-number { border: 1px solid #52643e; color: var(--accent); border-radius: 50%; font-size: 11px; flex-shrink: 0; width: 27px; height: 27px; display: grid; place-items: center; background: #c3f87908; }
.step strong { display: block; font-size: 12px; margin: 2px 0 4px; }
.step p { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 0; }
.site-footer { border-top: 1px solid var(--line); padding-top: 38px; background: #0a0e10; }
.footer-top { display: flex; align-items: start; justify-content: space-between; gap: 30px; padding-bottom: 30px; }
.footer-brand .brand { font-size: 22px; }
.footer-brand .brand img { width: 32px; height: 32px; }
.footer-brand p { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.footer-links { display: flex; gap: 23px; flex-wrap: wrap; padding-top: 9px; font-size: 12px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: 10px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
dialog { background: var(--surface); border: 1px solid #46513f; border-radius: 22px; padding: 0; box-shadow: 0 30px 100px #0009; color: var(--text); width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; }
dialog[open] { animation: dialog-in .3s cubic-bezier(.16,1,.3,1); }
dialog::backdrop { background: #050907bc; backdrop-filter: blur(6px); }
.dialog-close { position: absolute; right: 14px; top: 14px; z-index: 2; background: #151a1df5; border: 1px solid #66705f; width: 44px; height: 44px; border-radius: 50%; color: var(--text); }
.modal-image-wrap { height: 165px; background: #20272b; overflow: hidden; }
.modal-image { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: 25px 30px 29px; }
.modal-content h2 { font-size: 27px; line-height: 1.25; letter-spacing: -.8px; margin: 12px 0 10px; }
.modal-description { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.modal-sample { background: #2d2719; color: #e4c581; border: 1px solid #62502b; font-size: 11px; padding: 9px 12px; border-radius: 8px; margin-bottom: 17px; }
.code-label { display: block; font-size: 11px; font-weight: 650; color: #b1bea7; margin-bottom: 7px; }
.code-box { min-height: 76px; display: flex; align-items: center; justify-content: center; padding: 15px; border: 1px dashed #647b4c; background: #1b251c; border-radius: 12px; text-align: center; font: 700 22px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 2px; overflow-wrap: anywhere; user-select: all; transition: border-color .25s, background .25s; }
.code-box.is-locked { color: #9daf91; letter-spacing: 6px; user-select: none; }
.code-box.is-locked.is-partial { color: var(--accent); letter-spacing: 2px; }
.code-box.is-preview { color: var(--accent); font-size: 20px; letter-spacing: 1px; user-select: none; background: linear-gradient(115deg, #1b251c, #253222, #1b251c); }
.code-box.is-masked-preview { color: #b1c49c; letter-spacing: 2px; }
.code-value { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.code-box.is-preview .code-value { min-width: 10ch; }
.code-help { font-size: 11px; color: var(--muted); text-align: center; margin: 8px 0 0; }
.modal-actions { display: grid; gap: 10px; margin-top: 18px; }
.modal-actions .button { width: 100%; font-size: 14px; min-height: 48px; }
.modal-status { font-size: 12px; color: var(--accent); text-align: center; margin: 12px 0 0; min-height: 20px; }
.modal-status:empty, .code-help:empty { display: none; }
.info-dialog { width: min(650px, calc(100% - 32px)); }
.info-content { padding: 36px; }
.info-content h2 { font-size: 29px; letter-spacing: -1px; margin: 0 40px 20px 0; }
.info-content h3 { font-size: 16px; margin: 22px 0 7px; }
.info-content p, .info-content li { color: var(--muted); font-size: 14px; }
.info-content a { color: var(--accent); text-decoration: underline; overflow-wrap: anywhere; }
.info-content ul { padding-left: 20px; }
.noscript, .error-message { padding: 20px; background: #30271a; color: #f1d095; border-radius: 12px; }
.noscript { text-align: center; }
.focus-target:focus { outline: none; }
.discovery-panel { position: relative; isolation: isolate; overflow: hidden; min-height: 122px; margin: 20px 0; padding: 18px; border: 1px solid #405335; border-radius: 15px; background: radial-gradient(ellipse at 0 0, #304425, transparent 70%), #1a241c; }
.discovery-panel::after { content: ""; position: absolute; z-index: -1; inset: -40px -35px auto auto; width: 130px; height: 130px; border: 1px solid #c3f87915; border-radius: 50%; box-shadow: 0 0 0 18px #c3f87905, 0 0 0 36px #c3f87904; pointer-events: none; }
.discovery-heading { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.discovery-copy { flex: 1; min-width: 0; }
.discovery-eyebrow { display: block; color: #b0c39f; font-size: 8px; font-weight: 700; line-height: 1.5; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 3px; }
.discovery-heading h3 { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: -.4px; font-weight: 750; }
.discovery-orb { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid #607b48; border-radius: 13px; background: #293c22; }
.discovery-spinner { position: absolute; display: block; inset: -5px; width: 48px; height: 48px; border: 1.5px solid transparent; border-top-color: var(--accent); border-right-color: #c3f87966; border-radius: 17px; animation: discovery-spin 1.8s linear infinite; }
.discovery-spark { font-size: 27px; line-height: 1; color: var(--accent); animation: discovery-pulse 2s ease-in-out infinite; }
.discovery-check { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent); font-size: 21px; font-weight: 650; }
.discovery-percent { flex-shrink: 0; padding: 4px 7px; border: 1px solid #50633c; border-radius: 7px; background: #182215; color: var(--accent); font-size: 10px; font-weight: 650; line-height: 1.5; font-variant-numeric: tabular-nums; min-width: 37px; text-align: center; }
.discovery-note { font-size: 10px; line-height: 1.7; color: var(--muted); margin: 13px 0 0; }
.discovery-progress { height: 5px; overflow: hidden; border-radius: 20px; background: #35452c; margin-top: 12px; }
.discovery-progress-fill { position: relative; height: 100%; width: 100%; overflow: hidden; border-radius: inherit; background: linear-gradient(90deg, #7fac49, var(--accent)); transform: scaleX(0); transform-origin: left; }
.discovery-progress-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent, #fff6, transparent); transform: translateX(-100%); animation: discovery-shimmer 1.8s linear infinite; }
.is-finding .discovery-progress-fill { animation: discovery-progress var(--preview-duration, 10s) linear forwards; }
.is-complete .discovery-heading { animation: discovery-complete .35s ease-out; }
.is-complete .discovery-spark { display: none; }
.is-complete .discovery-orb { box-shadow: 0 0 0 4px #c3f8790c; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes discovery-spin { to { transform: rotate(360deg); } }
@keyframes discovery-progress { to { transform: scaleX(1); } }
@keyframes discovery-complete { from { opacity: .4; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes discovery-pulse { 50% { opacity: .55; transform: scale(.88); } }
@keyframes discovery-shimmer { to { transform: translateX(100%); } }
@media (min-width: 1400px) { .hero-inner { min-height: 560px; } .hero-art { margin-inline: 15px; } }
@media (max-width: 1050px) {
  .header-note { display: none; }
  .hero-inner { grid-template-columns: 1.4fr 1fr; gap: 15px; }
  .hero-art { transform: scale(.88); transform-origin: center right; }
  .grid { gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how-panel { align-items: start; gap: 25px; padding: 25px; }
  .how-title { min-width: 175px; }
  .steps { gap: 16px; }
  .step { display: block; }
  .step-number { margin-bottom: 8px; }
  .footer-links { gap: 16px; }
  h1 { font-size: 49px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .header-inner { height: 72px; gap: 12px; }
  .brand { font-size: 23px; }
  .brand img { width: 35px; height: 35px; }
  .nav { margin-left: auto; gap: 21px; }
  .nav a { font-size: 12px; }
  .header-search { display: none; }
  .hero-inner { min-height: auto; padding: 46px 0 61px; grid-template-columns: 1fr; }
  .hero-description { max-width: 520px; }
  .hero-art { display: none; }
  h1 { font-size: 51px; max-width: 570px; }
  .hero-benefits { bottom: 20px; font-size: 10px; gap: 16px; }
  .search-form { max-width: none; }
  .section { padding-block: 38px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading p { font-size: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .categories-section { padding-block: 26px; }
  .category-filter { font-size: 11px; padding: 9px 12px; }
  .categories-top p { display: none; }
  .card-body { padding: 15px; }
  .coupon-card h3 { font-size: 15px; }
  .how-panel { display: block; }
  .how-title { margin-bottom: 22px; }
  .step { display: flex; gap: 9px; }
  .steps { gap: 18px; }
  .step-number { margin: 0; }
  .how-section { padding-bottom: 38px; }
  .footer-top { flex-direction: column; gap: 14px; }
  .footer-links { gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 520px) {
  html { scroll-padding-top: 84px; }
  .container { width: calc(100% - 32px); }
  .header-inner { height: 68px; }
  .brand { font-size: 22px; letter-spacing: -.8px; }
  .brand img { width: 34px; height: 34px; }
  .menu-button { display: inline-flex; margin-left: auto; width: 44px; height: 44px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: #12181afc; border-bottom: 1px solid var(--line); box-shadow: 0 12px 25px #0005; padding: 10px 16px 16px; gap: 3px; }
  .nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .nav a { padding: 12px 14px; font-size: 14px; border-radius: 8px; }
  .nav a:hover, .nav a:focus-visible { background: var(--tint); }
  .hero-inner { padding-top: 35px; padding-bottom: 61px; }
  .hero-label { font-size: 9px; letter-spacing: .6px; }
  h1 { font-size: clamp(36px, 10vw, 49px); line-height: 1.12; letter-spacing: -1.8px; margin-top: 22px; }
  .hero-description { font-size: 14px; line-height: 1.8; margin-bottom: 23px; }
  .search-form { padding: 6px 6px 6px 14px; gap: 9px; border-radius: 12px; }
  /* 16px prevents iOS from zooming the page when the search field is focused. */
  .search-input { font-size: 16px; height: 44px; }
  .search-form > .search-icon { width: 15px; height: 15px; margin-right: 0; }
  .search-submit { padding: 10px 13px; font-size: 12px; }
  .popular { gap: 10px; font-size: 10px; margin-top: 10px; }
  .popular button { font-size: 11px; min-height: 36px; }
  .hero-benefits { font-size: 9px; gap: 13px; }
  .section-heading { gap: 12px; }
  .section-heading h2 { font-size: 24px; }
  .section-heading .eyebrow { font-size: 9px; }
  .section-heading p { max-width: 230px; }
  .text-link { font-size: 10px; white-space: normal; text-align: right; }
  .grid { gap: 12px; }
  .coupon-card { border-radius: 14px; }
  .card-image-wrap { margin: 7px 7px 0; border-radius: 8px; aspect-ratio: 1.25; }
  .card-body { padding: 12px; }
  .coupon-card h3 { font-size: 14px; line-height: 1.4; }
  .coupon-card p { font-size: 12px; line-height: 1.65; }
  .card-button { font-size: 11px; padding: 9px; }
  .availability-row { gap: 5px; }
  .availability-value { font-size: 10px; }
  .availability-amount { font-size: 11px; }
  .category-badge { font-size: 9px; }
  .sample-badge { font-size: 8px; top: 6px; right: 6px; padding: 1px 5px; }
  .category-filter { gap: 6px; padding: 9px 10px; font-size: 11px; }
  .category-filters { gap: 7px; }
  .category-count { font-size: 9px; }
  .category-symbol { font-size: 14px; }
  .categories-top h2 { font-size: 18px; }
  .result-count { font-size: 10px; }
  .all-heading { align-items: center; }
  .transparency-note { padding: 10px; gap: 7px; }
  .how-panel { padding: 23px; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .footer-links { gap: 10px 18px; font-size: 12px; }
  .footer-bottom { font-size: 10px; }
  .modal-content { padding: 22px; }
  .modal-content h2 { font-size: 25px; }
  .info-content { padding: 28px 23px; }
  .info-content h2 { font-size: 26px; }
  .info-content p, .info-content li { font-size: 13px; }
  .modal-image-wrap { height: 140px; }
}
@media (max-width: 380px) {
  .discovery-panel { padding: 15px; }
  .discovery-percent { display: none; }
  .discovery-heading h3 { font-size: 16px; }
  .search-form > .search-icon { display: none; }
  .hero-benefits { gap: 9px; font-size: 8px; }
}
@media (max-width: 359px) {
  .grid { grid-template-columns: 1fr; }
  .card-image-wrap { aspect-ratio: 1.8; }
  .coupon-card h3 { font-size: 17px; }
  .coupon-card p { font-size: 13px; }
  .card-button { font-size: 13px; }
  .card-body { padding: 17px; }
  .hero-label { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .coupon-card:hover { transform: none; }
  .discovery-progress-fill { transform: scaleX(var(--preview-progress, 0)); }
}
