:root {
  color-scheme: light;
  --brand: #d9f663;
  --background: #fcfaf5;
  --panel: #f5f2e9;
  --deep: #fefcf8;
  --line: #e3ded3;
  --text: #151911;
  --muted: #514e43;
  --subtle: #665f52;
  --accent: #465200;
  --control-border: #8b8270;
  --search-field-border: #8b8270;
  --search-field-surface: #fffdf7;
  --offer-surface: #fcfaf5;
  --offer-border: #e3ded3;
  --offer-link: #465200;
  --featured: #f1ede1;
  --logo-back: #272b1e;
  --hero-stage: radial-gradient(ellipse at 51% 50%, #fee09a40 11%, #ffc36b20 40%, transparent 66%);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #1c1a17;
  --panel: #27241e;
  --deep: #25221d;
  --line: #494136;
  --text: #f9f5ea;
  --muted: #dbd1be;
  --subtle: #c3b6a1;
  --accent: #d9f663;
  --control-border: #81725c;
  --search-field-border: #81725c;
  --search-field-surface: #25221c;
  --offer-surface: #1c1a17;
  --offer-border: #494136;
  --offer-link: #e1c49b;
  --featured: #29251f;
  --logo-back: transparent;
  --hero-stage: radial-gradient(ellipse at 52% 49%, #ab66263a 10%, #9b562023 37%, transparent 65%);
}

.site-header { border-color: var(--line); height: 76px; }
.header-threshold { position: absolute; inset: 100vh 0 auto auto; width: 1px; height: 1px; pointer-events: none; }
.landing-header .header-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.landing-header .view-switch { border-color: var(--line); background: transparent; }
.header-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.header-actions .header-cta { white-space: nowrap; }
.landing-header :is(.wordmark, .header-cta, .theme-toggle, .view-switch a) { border-radius: var(--control-radius); }
.theme-toggle {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0;
  color: var(--text); background: transparent; border: 1px solid var(--control-border);
}
.theme-toggle:hover { background: var(--panel); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linejoin: round; stroke-linecap: round; }
.theme-toggle .mode-sun, :root[data-theme="dark"] .theme-toggle .mode-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .mode-sun { display: block; }
.landing-header.is-floating .header-row {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2;
  min-height: 58px; width: min(calc(100% - 24px), 1160px); padding: 6px 12px;
  background: color-mix(in srgb, var(--background) 96%, transparent);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 5px 21px #0002;
}
.button.button-primary, .landing-header .view-switch [aria-current="page"] {
  background: var(--brand); color: var(--on-accent); border-color: transparent;
}
.button.button-primary:hover { background: #cce75b; color: var(--on-accent); }
.wordmark .brand-mark { background: var(--logo-back); border-radius: var(--control-radius); padding: 3px; }
.skip-link { z-index: 3; background: var(--brand); }

.hero { grid-template-columns: minmax(0, 1.09fr) minmax(0, 1fr); gap: 18px; padding-block: 34px 38px; min-height: 0; }
.hero-copy { padding-block: 15px 12px; }
.hero h1 { max-width: none; font: 700 clamp(44px, 5.45vw, 79px)/.98 var(--display); letter-spacing: -.063em; }
.hero h1 em { color: inherit; }
.hero-setup, .result-link, .offer-credit a { color: var(--offer-link); }
.hero-art { max-width: 610px; margin: 0; background: var(--hero-stage); }
.hero-picture :is(.hero-video,.hero-fallback) {
  object-fit: contain;
  mask-image: radial-gradient(ellipse at 52% 50%, #000 48%, transparent 76%),
    linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent),
    linear-gradient(180deg, transparent, #000 12%, #000 85%, transparent);
  mask-composite: intersect;
}
:root[data-theme="dark"] .hero-fallback:not([data-hero-theme="dark"]) { visibility: hidden; }
.hero-motion { right: 2%; bottom: 0; border-color: var(--line); color: var(--text); background: var(--deep); }

.picks, .playground { padding-block: 34px 37px; background: var(--background); }
.section { border-color: var(--line); }
.picks h2 { margin-bottom: 14px; }
.curated-empty { padding: clamp(20px, 4vw, 50px); background: var(--featured); border-radius: 14px; }
.curated-empty p { max-width: 46ch; color: var(--muted); }
.curated-empty a { display: inline-block; margin-top: 8px; color: var(--offer-link); font-weight: 600; }
.curated-feature { display: grid; grid-template-columns: minmax(0, 1.09fr) minmax(0, 1fr); overflow: hidden; border-radius: 14px; background: var(--featured); }
.curated-feature img { width: 100%; height: 100%; max-height: 340px; aspect-ratio: 1.75; object-fit: cover; }
.curated-feature .offer { align-self: center; border: 0; background: none; padding: clamp(18px, 4vw, 40px); }
.curated-feature:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.curated-feature .offer h3 { font: 700 clamp(23px, 3vw, 44px)/1.06 var(--display); }
.staging-note { font-size: 13px; color: var(--muted); margin-bottom: 13px; }
#playground { scroll-margin-top: 70px; }
.results .offer { order: 0; background: none; border: 0; border-top: 1px solid var(--offer-border); border-radius: 0; padding-inline: 0; }
.results .offer-campaign { order: 1; grid-column: 1 / -1; }
.offer-scope { color: var(--subtle); }
.offer-price strong { font: 700 24px/1 var(--display); letter-spacing: -.035em; }
.offer-saving { font-weight: 650; color: var(--offer-link); }
.offer-thumbnail { background-color: var(--featured); }
.offer-thumbnail-campaign { background: url("/assets/dealon-mark.svg") center / 42% no-repeat, #28251e; }
.share-page { padding-block: 30px 50px; }
.share-page > .offer { margin-top: 16px; }
.share-page h1 { font: 700 clamp(27px, 5vw, 52px)/1.06 var(--display); margin-block: 0 9px; }
.share-page .share-address { margin-top: 20px; overflow-wrap: anywhere; }
.share-page .share-address .code { display: inline; }
.share-page .result-link { display: inline-block; }

@media (max-width: 720px) {
  .site-header { height: 64px; }
  .landing-header .header-row { min-height: 64px; width: calc(100% - 22px); gap: 6px; padding-block: 6px; }
  .landing-header .wordmark { font-size: 18px; }
  .landing-header .brand-mark { width: 25px; height: 21px; flex-basis: 25px; margin-right: 4px; }
  .landing-header .view-switch { width: auto; gap: 2px; padding: 2px; }
  .landing-header .view-switch a { min-width: 39px; min-height: 34px; padding: 3px 5px; font-size: 12px; }
  .theme-toggle { width: 35px; height: 36px; }
  .header-actions { gap: 5px; }
  .header-actions .header-cta { min-height: 36px; padding: 4px 7px; font-size: 12px; }
  .landing-header.is-floating .header-row { min-height: 52px; top: 7px; padding: 4px 7px; }
  .hero { gap: 6px; padding-block: 20px 16px; }
  .hero h1 { font-size: clamp(34px, 10.25vw, 60px); }
  .hero-copy { padding: 0; }
  .hero-art { width: min(96%, 420px); margin: 4px auto 0; align-self: center; }
  .hero-motion { bottom: 2%; right: 1%; }
  .curated-feature { grid-template-columns: minmax(0, 1fr); }
}
