/* Brimly — tokens, reset, type, buttons, utilities */
:root {
  --ivory: #FAF7F1;
  --ivory-2: #F3EEE4;
  --ivory-3: #EAE3D6;
  --paper: #FFFFFF;
  --ink: #12162B;
  --ink-2: #4A4F68;
  --ink-3: #7B8098;
  --line: rgba(18, 22, 43, .09);
  --line-2: rgba(18, 22, 43, .15);

  --brand: #2140D8;
  --brand-2: #1A31B0;
  --brand-soft: #E8ECFF;
  --brand-ink: #0E1C6B;

  --deal: #D4521A;
  --deal-soft: #FFE9DC;
  --fresh: #10805A;
  --fresh-soft: #E0F3E9;
  --sun: #F6B928;
  --sun-soft: #FFF2CC;
  --berry: #B3245A;
  --violet: #5B3FD6;

  --shadow-1: 0 1px 2px rgba(18, 22, 43, .05), 0 2px 10px rgba(18, 22, 43, .04);
  --shadow-2: 0 2px 6px rgba(18, 22, 43, .05), 0 14px 34px rgba(18, 22, 43, .08);
  --shadow-3: 0 30px 80px -20px rgba(18, 22, 43, .32);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-ui: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --container: 1360px;
  --gutter: clamp(16px, 3.6vw, 44px);
  --hdr-h: 120px;
}

/* One platform, six formats: each re-skins the brand tokens. */
html[data-format="market"] { --brand: #0E8A5F; --brand-2: #0A6E4B; --brand-soft: #DDF3E8; --brand-ink: #063D2A; }
html[data-format="fresh"]  { --brand: #2E5B3C; --brand-2: #23472E; --brand-soft: #E3EEE4; --brand-ink: #13301C; }
html[data-format="mini"]   { --brand: #C9500C; --brand-2: #A8420A; --brand-soft: #FFE8D8; --brand-ink: #5C2405; }
html[data-format="go"]     { --brand: #1B1F2E; --brand-2: #0D101A; --brand-soft: #E7E8EE; --brand-ink: #0D101A; }
html[data-format="house"]  { --brand: #8A2257; --brand-2: #6E1A45; --brand-soft: #F7E1EC; --brand-ink: #3F0C26; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
s { text-decoration-thickness: 1px; }
[hidden] { display: none !important; }
::selection { background: var(--brand); color: #fff; }

:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.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 { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico--fill { fill: currentColor; stroke: none; }
[data-icon] { display: inline-flex; }

/* type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--light { color: #AFC0FF; }
.eyebrow--chip {
  padding: 8px 14px 8px 10px; border-radius: 999px; color: var(--ink);
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); letter-spacing: .08em;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #1DB672; box-shadow: 0 0 0 0 rgba(29, 182, 114, .5); animation: live 2.4s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(29, 182, 114, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 182, 114, 0); } }

.section { padding-block: clamp(64px, 7vw, 104px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__title {
  margin-top: 12px;
  font: 700 clamp(34px, 4.6vw, 64px)/.98 var(--font-display);
  font-stretch: 86%; letter-spacing: -.025em;
}
.section__title em { font: italic 400 1.04em/1 var(--font-serif); letter-spacing: -.01em; }
.section__lede { max-width: 440px; color: var(--ink-2); font-size: 16px; }
.section__head--center .section__lede { margin-top: 14px; }

/* buttons */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font-ui); letter-spacing: -.005em; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s, color .2s, border-color .2s;
}
.btn .ico { width: 18px; height: 18px; }
.btn--lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn--primary:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--brand) 85%, transparent); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--primary .ico { transition: transform .25s var(--ease); }
.btn--primary:hover .ico { transform: translateX(3px); }
.btn--glass {
  background: rgba(255, 255, 255, .62); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.btn--glass:hover { background: rgba(255, 255, 255, .85); }
.btn--glass[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--outline { border: 1.5px solid var(--line-2); color: var(--ink); background: var(--paper); }
.btn--outline:hover { border-color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline-light { border: 1.5px solid rgba(255, 255, 255, .28); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper);
  font: 500 13.5px/1 var(--font-ui); color: var(--ink-2); white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .ico { width: 15px; height: 15px; }

.badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--deal); color: #fff; border: 2px solid var(--ivory);
  font: 700 10.5px/15px var(--font-ui); text-align: center;
}
.badge--brand { background: var(--brand); }

.glass {
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 20px 50px -18px rgba(18, 22, 43, .28), inset 0 1px 0 rgba(255, 255, 255, .7);
  backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.rating { display: inline-flex; align-items: center; gap: 4px; font: 600 12.5px/1 var(--font-ui); color: var(--ink); }
.rating .ico { width: 13px; height: 13px; color: var(--sun); }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
.noscript { padding: 16px; text-align: center; background: var(--sun-soft); }
